mlh-tsd
Version:
Check TypeScript type definitions
20 lines (19 loc) • 883 B
TypeScript
import { CallExpression } from '../../../../libraries/typescript/lib/typescript';
import { TypeChecker } from '../../entities/typescript';
import { Diagnostic } from '../../interfaces';
/**
* Verifies that the argument of the assertion is identical to the generic type of the assertion.
*
* @param checker - The TypeScript type checker.
* @param nodes - The `expectType` AST nodes.
* @return List of custom diagnostics.
*/
export declare const isIdentical: (checker: TypeChecker, nodes: Set<CallExpression>) => Diagnostic[];
/**
* Verifies that the argument of the assertion is not identical to the generic type of the assertion.
*
* @param checker - The TypeScript type checker.
* @param nodes - The `expectType` AST nodes.
* @return List of custom diagnostics.
*/
export declare const isNotIdentical: (checker: TypeChecker, nodes: Set<CallExpression>) => Diagnostic[];