Inspectopedia Help

Type mismatch in 'any' type

Reports a function call with a parameter, return value, or assigned expression or incorrect type, if the context symbol can be implicitly resolved to the any type. declare var test: any; test.hasOwnProperty(true); //reports 'true'

Locating this inspection

By ID

Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.

TypeScriptValidateJSTypes
Via Settings dialog

Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.

Settings or Preferences | Editor | Inspections | JavaScript and TypeScript | TypeScript

Availability

By default bundled with

JetBrains Rider 2023.3, Qodana for .NET 2023.3,

Can be installed with plugin

JavaScript and TypeScript, 233.15365.5

Last modified: 18 June 2024