UNPKG

mlh-tsd

Version:

Check TypeScript type definitions

13 lines (12 loc) 654 B
import { CallExpression } from '../../../../libraries/typescript/lib/typescript'; import { TypeChecker } from '../../entities/typescript'; import { Diagnostic } from '../../interfaces'; /** * A handler is a method which accepts the TypeScript type checker together with a set of assertion nodes. The type checker * can be used to retrieve extra type information from these nodes in order to determine a list of diagnostics. * * @param typeChecker - The TypeScript type checker. * @param nodes - List of nodes. * @returns List of diagnostics. */ export declare type Handler = (typeChecker: TypeChecker, nodes: Set<CallExpression>) => Diagnostic[];