-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathassertions.d.ts
41 lines (21 loc) · 1.5 KB
/
assertions.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
export function Assert(condition: boolean, invert: boolean, value: any, assertion: string,
details: string): void;
export function isSameType(target: any, value: any, invert: boolean): void;
export function isSameTypeName(target: string, value: string, invert: boolean): void;
export function isEqual(target: any, value: any, invert: boolean): void;
export function isSymbol(value: string, invert: boolean): void;
export function isBoolean(value: string, invert: boolean): void;
export function isString(value: string, invert: boolean): void;
export function isNumber(value: number, invert: boolean): void;
export function isInt(value: number, invert: boolean): void;
export function isFloat(value: number, invert: boolean): void;
export function isEqualTo(target: number, value: number, invert: boolean): void;
export function isGreaterThan(target: number, value: number, invert: boolean): void;
export function isGreaterThanOrEqualTo(target: number, value: number, invert: boolean): void;
export function isLessThanOrEqualTo(target: number, value: number, invert: boolean): void;
export function isLessThan(target: number, value: number, invert: boolean): void;
export function isArray(value: any[], invert: boolean): void;
export function isNull(value: any, invert: boolean): void;
export function isObject(value: any, invert: boolean): void;
export function isUndefined(value: number, invert: boolean): void;
export function isRegEx(regEx: RegExp, value: string, invert: boolean): void;