123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197 |
- interface Symbol {
-
- toString(): string;
-
- valueOf(): Object;
- [Symbol.toStringTag]: string;
- }
- interface SymbolConstructor {
-
- prototype: Symbol;
-
- (description?: string|number): symbol;
-
- for(key: string): symbol;
-
- keyFor(sym: symbol): string;
-
-
- hasInstance: symbol;
-
- isConcatSpreadable: symbol;
-
- iterator: symbol;
-
- match: symbol;
-
- replace: symbol;
-
- search: symbol;
-
- species: symbol;
-
- split: symbol;
-
- toPrimitive: symbol;
-
- toStringTag: symbol;
-
- unscopables: symbol;
- }
- declare var Symbol: SymbolConstructor;
- interface IteratorResult<T> {
- done: boolean;
- value?: T;
- }
- interface Iterator<T> {
- next(value?: any): IteratorResult<T>;
- return?(value?: any): IteratorResult<T>;
- throw?(e?: any): IteratorResult<T>;
- }
- interface Iterable<T> {
- [Symbol.iterator](): Iterator<T>;
- }
- interface IterableIterator<T> extends Iterator<T> {
- [Symbol.iterator](): IterableIterator<T>;
- }
- interface WeakMap<K, V> {
- clear(): void;
- delete(key: K): boolean;
- get(key: K): V;
- has(key: K): boolean;
- set(key: K, value?: V): WeakMap<K, V>;
- }
- interface WeakMapConstructor {
- new <K, V>(): WeakMap<K, V>;
- prototype: WeakMap<any, any>;
- }
- declare var WeakMap: WeakMapConstructor;
- interface Map<K, V> {
- clear(): void;
- delete(key: K): boolean;
- entries(): IterableIterator<[K, V]>;
- forEach(callbackfn: (value: V, index: K, map: Map<K, V>) => void, thisArg?: any): void;
- get(key: K): V;
- has(key: K): boolean;
- keys(): IterableIterator<K>;
- set(key: K, value?: V): Map<K, V>;
- size: number;
- values(): IterableIterator<V>;
- [Symbol.iterator]():IterableIterator<[K,V]>;
- [Symbol.toStringTag]: string;
- }
- interface MapConstructor {
- new <K, V>(): Map<K, V>;
- new <K, V>(iterable: Iterable<[K, V]>): Map<K, V>;
- prototype: Map<any, any>;
- }
- declare var Map: MapConstructor;
- interface Set<T> {
- add(value: T): Set<T>;
- clear(): void;
- delete(value: T): boolean;
- entries(): IterableIterator<[T, T]>;
- forEach(callbackfn: (value: T, index: T, set: Set<T>) => void, thisArg?: any): void;
- has(value: T): boolean;
- keys(): IterableIterator<T>;
- size: number;
- values(): IterableIterator<T>;
- [Symbol.iterator]():IterableIterator<T>;
- [Symbol.toStringTag]: string;
- }
- interface SetConstructor {
- new <T>(): Set<T>;
- new <T>(iterable: Iterable<T>): Set<T>;
- prototype: Set<any>;
- }
- declare var Set: SetConstructor;
- interface WeakSet<T> {
- add(value: T): WeakSet<T>;
- clear(): void;
- delete(value: T): boolean;
- has(value: T): boolean;
- [Symbol.toStringTag]: string;
- }
- interface WeakSetConstructor {
- new <T>(): WeakSet<T>;
- new <T>(iterable: Iterable<T>): WeakSet<T>;
- prototype: WeakSet<any>;
- }
- declare var WeakSet: WeakSetConstructor;
|