Skip to main content

Function: isTypeScriptEslintAstType()

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

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

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.