|
1 | | -/*! ***************************************************************************** |
2 | | -Copyright (c) Microsoft Corporation. All rights reserved. |
3 | | -Licensed under the Apache License, Version 2.0 (the "License"); you may not use |
4 | | -this file except in compliance with the License. You may obtain a copy of the |
5 | | -License at http://www.apache.org/licenses/LICENSE-2.0 |
6 | | - |
7 | | -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
8 | | -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED |
9 | | -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, |
10 | | -MERCHANTABLITY OR NON-INFRINGEMENT. |
11 | | - |
12 | | -See the Apache Version 2.0 License for specific language governing permissions |
13 | | -and limitations under the License. |
14 | | -***************************************************************************** */ |
15 | | - |
| 1 | +/*! ***************************************************************************** |
| 2 | +Copyright (c) Microsoft Corporation. All rights reserved. |
| 3 | +Licensed under the Apache License, Version 2.0 (the "License"); you may not use |
| 4 | +this file except in compliance with the License. You may obtain a copy of the |
| 5 | +License at http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | + |
| 7 | +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 8 | +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED |
| 9 | +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, |
| 10 | +MERCHANTABLITY OR NON-INFRINGEMENT. |
| 11 | + |
| 12 | +See the Apache Version 2.0 License for specific language governing permissions |
| 13 | +and limitations under the License. |
| 14 | +***************************************************************************** */ |
16 | 15 |
|
17 | 16 |
|
18 | | -/// <reference no-default-lib="true"/> |
19 | 17 |
|
| 18 | +/// <reference no-default-lib="true"/> |
20 | 19 |
|
21 | | -interface Map<K, V> { |
22 | | - clear(): void; |
23 | | - delete(key: K): boolean; |
24 | | - forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void; |
25 | | - get(key: K): V | undefined; |
26 | | - has(key: K): boolean; |
27 | | - set(key: K, value?: V): this; |
28 | | - readonly size: number; |
29 | | -} |
30 | | - |
31 | | -interface MapConstructor { |
32 | | - new (): Map<any, any>; |
33 | | - new <K, V>(entries?: [K, V][]): Map<K, V>; |
34 | | - readonly prototype: Map<any, any>; |
35 | | -} |
36 | | -declare var Map: MapConstructor; |
37 | | - |
38 | | -interface ReadonlyMap<K, V> { |
39 | | - forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void; |
40 | | - get(key: K): V|undefined; |
41 | | - has(key: K): boolean; |
42 | | - readonly size: number; |
43 | | -} |
44 | | - |
45 | | -interface WeakMap<K, V> { |
46 | | - delete(key: K): boolean; |
47 | | - get(key: K): V | undefined; |
48 | | - has(key: K): boolean; |
49 | | - set(key: K, value?: V): this; |
50 | | -} |
51 | | - |
52 | | -interface WeakMapConstructor { |
53 | | - new (): WeakMap<any, any>; |
54 | | - new <K, V>(entries?: [K, V][]): WeakMap<K, V>; |
55 | | - readonly prototype: WeakMap<any, any>; |
56 | | -} |
57 | | -declare var WeakMap: WeakMapConstructor; |
58 | | - |
59 | | -interface Set<T> { |
60 | | - add(value: T): this; |
61 | | - clear(): void; |
62 | | - delete(value: T): boolean; |
63 | | - forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void; |
64 | | - has(value: T): boolean; |
65 | | - readonly size: number; |
66 | | -} |
67 | | - |
68 | | -interface SetConstructor { |
69 | | - new (): Set<any>; |
70 | | - new <T>(values?: T[]): Set<T>; |
71 | | - readonly prototype: Set<any>; |
72 | | -} |
73 | | -declare var Set: SetConstructor; |
74 | | - |
75 | | -interface ReadonlySet<T> { |
76 | | - forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void; |
77 | | - has(value: T): boolean; |
78 | | - readonly size: number; |
79 | | -} |
80 | | - |
81 | | -interface WeakSet<T> { |
82 | | - add(value: T): this; |
83 | | - delete(value: T): boolean; |
84 | | - has(value: T): boolean; |
85 | | -} |
86 | | - |
87 | | -interface WeakSetConstructor { |
88 | | - new (): WeakSet<any>; |
89 | | - new <T>(values?: T[]): WeakSet<T>; |
90 | | - readonly prototype: WeakSet<any>; |
91 | | -} |
92 | | -declare var WeakSet: WeakSetConstructor; |
| 20 | + |
| 21 | +interface Map<K, V> { |
| 22 | + clear(): void; |
| 23 | + delete(key: K): boolean; |
| 24 | + forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void; |
| 25 | + get(key: K): V | undefined; |
| 26 | + has(key: K): boolean; |
| 27 | + set(key: K, value?: V): this; |
| 28 | + readonly size: number; |
| 29 | +} |
| 30 | + |
| 31 | +interface MapConstructor { |
| 32 | + new (): Map<any, any>; |
| 33 | + new <K, V>(entries?: [K, V][]): Map<K, V>; |
| 34 | + readonly prototype: Map<any, any>; |
| 35 | +} |
| 36 | +declare var Map: MapConstructor; |
| 37 | + |
| 38 | +interface ReadonlyMap<K, V> { |
| 39 | + forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void; |
| 40 | + get(key: K): V|undefined; |
| 41 | + has(key: K): boolean; |
| 42 | + readonly size: number; |
| 43 | +} |
| 44 | + |
| 45 | +interface WeakMap<K, V> { |
| 46 | + delete(key: K): boolean; |
| 47 | + get(key: K): V | undefined; |
| 48 | + has(key: K): boolean; |
| 49 | + set(key: K, value?: V): this; |
| 50 | +} |
| 51 | + |
| 52 | +interface WeakMapConstructor { |
| 53 | + new (): WeakMap<any, any>; |
| 54 | + new <K, V>(entries?: [K, V][]): WeakMap<K, V>; |
| 55 | + readonly prototype: WeakMap<any, any>; |
| 56 | +} |
| 57 | +declare var WeakMap: WeakMapConstructor; |
| 58 | + |
| 59 | +interface Set<T> { |
| 60 | + add(value: T): this; |
| 61 | + clear(): void; |
| 62 | + delete(value: T): boolean; |
| 63 | + forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void; |
| 64 | + has(value: T): boolean; |
| 65 | + readonly size: number; |
| 66 | +} |
| 67 | + |
| 68 | +interface SetConstructor { |
| 69 | + new (): Set<any>; |
| 70 | + new <T>(values?: T[]): Set<T>; |
| 71 | + readonly prototype: Set<any>; |
| 72 | +} |
| 73 | +declare var Set: SetConstructor; |
| 74 | + |
| 75 | +interface ReadonlySet<T> { |
| 76 | + forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void; |
| 77 | + has(value: T): boolean; |
| 78 | + readonly size: number; |
| 79 | +} |
| 80 | + |
| 81 | +interface WeakSet<T> { |
| 82 | + add(value: T): this; |
| 83 | + delete(value: T): boolean; |
| 84 | + has(value: T): boolean; |
| 85 | +} |
| 86 | + |
| 87 | +interface WeakSetConstructor { |
| 88 | + new (): WeakSet<any>; |
| 89 | + new <T>(values?: T[]): WeakSet<T>; |
| 90 | + readonly prototype: WeakSet<any>; |
| 91 | +} |
| 92 | +declare var WeakSet: WeakSetConstructor; |
0 commit comments