main
Last change
on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
689 bytes
|
Line | |
---|
1 | import { Equals } from './Any/Equals';
|
---|
2 | import { Boolean } from './Boolean/_Internal';
|
---|
3 | /**
|
---|
4 | * Test should pass
|
---|
5 | */
|
---|
6 | export declare type Pass = 1;
|
---|
7 | /**
|
---|
8 | * Test should fail
|
---|
9 | */
|
---|
10 | export 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 | */
|
---|
19 | export 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 | */
|
---|
28 | export declare function checks(checks: 1[]): void;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.