UNPKG

types-testing

Version:

Test TypeScript types at test runner runtime - Works seamlessly with Jest, Vitest, and Bun.

10 lines (9 loc) 423 B
import type ts from 'typescript'; /** @internal */ export declare const assertionWithTypeArgument: <Fn extends (checker: ts.TypeChecker, received: ts.Type, expected: ts.Type) => boolean>(fn: Fn) => Fn & { needTypeArgument: true; }; /** @internal */ export declare const assertionWithoutTypeArgument: <Fn extends (checker: ts.TypeChecker, received: ts.Type) => boolean>(fn: Fn) => Fn & { needTypeArgument: false; };