-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtopLevel.d.ts
70 lines (67 loc) · 1.87 KB
/
topLevel.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
declare class Array<T> extends Object {
// constants
// -
// properties
length: number;
// constructors
constructor(...values: Object);
constructor(length: number);
constructor();
// methods
concat(...values: Object): Array;
every(callback: Function): boolean;
every(callback: Function, thisObject: Array): boolean;
filter(callback: Function): Array<T>;
filter(callback: Function, thisObject: Array): Array<T>;
forEach(callback: Function): void;
forEach(callback: Function, thisObject: Array): void;
indexOf(elementToLocate: Object): number;
indexOf(elementToLocate: Object, fromIndex: number): number;
join(): string;
join(separator: string): string;
lastIndexOf(elementToLocate: Object): number;
lastIndexOf(elementToLocate: Object, fromIndex: number): number;
map(callback: Function): Array;
map(callback: Function, thisObject: Array): Array;
pop(): T;
push(...values: T): number;
reverse(): void;
shift(): T;
slice(start: number, end: number): Array<T>;
some(callback: Function): boolean;
some(callback: Function, thisObject: Array): boolean;
sort(): Array<T>;
sort(fn: Function): Array<T>;
splice(start: number, deleteCount: number, ...values: Object): Array<T>;
toLocaleString(): string;
toString(): string;
unshift(...values: Object): number;
}
declare class Function extends Object implements Function {
// constants
// -
// properties
length: number;
prototype: Object;
// constructors
constructor(...args: string);
// methods
apply(thisobj: Object, args: Array): Object;
call(thisobj: Object, ...args: Object): Object;
toString(): string;
}
declare class Object {
// constants
// -
// properties
// -
// constructors
constructor();
// methods
hasOwnProperty(propName: string): boolean;
isPrototypeOf(prototype: Object): boolean;
propertyIsEnumerable(propName: string): boolean;
toLocaleString(): string;
toString(): string;
valueOf(): Object;
}