Query module IneffectiveParameterType

name
Ineffective parameter type
description
Omitting the name of a parameter causes its type annotation to be parsed as the name.
kind
problem
problem.severity
warning
id
js/ineffective-parameter-type
precision
high
tags
correctness typescript

Imports

javascript

Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML.

Predicates

isCommonPredefinedTypeName

Holds if there is a predefined type of the given name, and a parameter of that name is likely intended to be typed.

Classes

DefiniteTypeDecl

Any local type declaration, excluding imported names that are not explicitly used as types.