UNPKG

689 BTypeScriptView Raw
1import { Equals } from './Any/Equals';
2import { Boolean } from './Boolean/_Internal';
3/**
4 * Test should pass
5 */
6export declare type Pass = 1;
7/**
8 * Test should fail
9 */
10export declare type Fail = 0;
11/**
12 * Check or test the validity of a type
13 * @param debug to debug with parameter hints (`ctrl+p`, `ctrl+shift+space`)
14 * @example
15 * ```ts
16 * // see in `tst` folder
17 * ```
18 */
19export declare function check<Type, Expect, Outcome extends Boolean>(debug?: Type): Equals<Equals<Type, Expect>, Outcome>;
20/**
21 * Validates a batch of [[check]]
22 * @param checks a batch of [[check]]
23 * @example
24 * ```ts
25 * // see in `tst` folder
26 * ```
27 */
28export declare function checks(checks: 1[]): void;