-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathassert.d.ts
28 lines (26 loc) · 1.45 KB
/
assert.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
export function IN_DEVELOPMENT_ONLY(fn :() => void): void;
export function ASSERT(cond :any, msg? :string): void;
export function ASSERT_NOT_REACHED(): void;
export function ASSERT_IS_INT(v :any, msg? :string): void;
export function ASSERT_IS_INT_IN_RANGE(v :any, range :[number,number], msg? :string): void;
export function ASSERT_IS_NON_NEGATIVE_INT(v :any, msg? :string): void;
export function ASSERT_IS_POSITIVE_INT(v :any, msg? :string): void;
export function ASSERT_IS_ARRAY(v :any, msg? :string): void;
export function ASSERT_IS_FUNC(v :any, msg? :string): void;
export function ASSERT_IS_STRING(v :any, msg? :string): void;
export function ASSERT_IS_UNDEF(v :any, msg? :string): void;
export function ASSERT_IS_OBJ(v :any, msg? :string): void;
export function ASSERT_IS_NUM(v :any, msg? :string): void;
export function ASSERT_IS_CTOR(a :any, b :any, msg? :string): void;
export function is_int(v :any): boolean;
export function is_int_in_range(v :any, range :[number,number]): boolean;
export function is_non_negative_int(v :any): boolean;
export function is_positive_int(v :any): boolean;
export function is_array(v :any): boolean;
export function is_func(v :any): boolean;
export function is_string(v :any): boolean;
export function is_undef(v :any): boolean;
export function is_obj(v :any): boolean;
export function is_num(v :any): boolean;
export function is_ctor(a :any, b :any): boolean;
export function is_typed_array(v :any): boolean;