Skip to main content

Function: isTypeScriptEslintAstType()

isTypeScriptEslintAstType(checker: Readonly<ts.TypeChecker>, type: Readonly<ts.Type>): boolean

Defined in: _internal/typescript-eslint-node-autofix.ts:648

Determine whether a TypeScript type resolves to an @typescript-eslint AST node type.

Parametersโ€‹

checkerโ€‹

Readonly<ts.TypeChecker>

Type checker for symbol and declaration inspection.

typeโ€‹

Readonly<ts.Type>

Candidate type to inspect.

Returnsโ€‹

boolean

true when the candidate resolves to a TSESTree AST type.