PhpStorm 2019.2 Help

Code Inspection: Explicit member types

Highlights type declarations that do not match the current code style.

By default, type declarations are highlighted as redundant when the type can be inferred from context, for example:

Highlights type declarations that do not match the current code style.

var pi: number = 3.14

Highlights type declarations that do not match the current code style.

Enabling any of the options below inverts this and suggests inserting an explicit type declaration even where the type can be inferred.

Last modified: 23 September 2019