|
| 1 | +# es2015.collection.d.ts Diffs |
| 2 | + |
| 3 | +```diff |
| 4 | +Index: es2015.collection.d.ts |
| 5 | +=================================================================== |
| 6 | +--- es2015.collection.d.ts |
| 7 | ++++ es2015.collection.d.ts |
| 8 | +@@ -1,28 +1,28 @@ |
| 9 | + interface Map<K, V> { |
| 10 | + clear(): void; |
| 11 | + delete(key: K): boolean; |
| 12 | +- forEach( |
| 13 | +- callbackfn: (value: V, key: K, map: Map<K, V>) => void, |
| 14 | +- thisArg?: any |
| 15 | ++ forEach<This>( |
| 16 | ++ callbackfn: (this: This, value: V, key: K, map: Map<K, V>) => void, |
| 17 | ++ thisArg?: This |
| 18 | + ): void; |
| 19 | + get(key: K): V | undefined; |
| 20 | + has(key: K): boolean; |
| 21 | + set(key: K, value: V): this; |
| 22 | + readonly size: number; |
| 23 | + } |
| 24 | + |
| 25 | ++declare var Map: MapConstructor; |
| 26 | ++ |
| 27 | + interface MapConstructor { |
| 28 | +- new (): Map<any, any>; |
| 29 | + new <K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>; |
| 30 | +- readonly prototype: Map<any, any>; |
| 31 | ++ readonly prototype: Map<unknown, unknown>; |
| 32 | + } |
| 33 | +-declare var Map: MapConstructor; |
| 34 | + |
| 35 | + interface ReadonlyMap<K, V> { |
| 36 | +- forEach( |
| 37 | +- callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, |
| 38 | +- thisArg?: any |
| 39 | ++ forEach<This>( |
| 40 | ++ callbackfn: (this: This, value: V, key: K, map: ReadonlyMap<K, V>) => void, |
| 41 | ++ thisArg?: This |
| 42 | + ): void; |
| 43 | + get(key: K): V | undefined; |
| 44 | + has(key: K): boolean; |
| 45 | + readonly size: number; |
| 46 | +@@ -33,39 +33,39 @@ |
| 47 | + get(key: K): V | undefined; |
| 48 | + has(key: K): boolean; |
| 49 | + set(key: K, value: V): this; |
| 50 | + } |
| 51 | ++declare var WeakMap: WeakMapConstructor; |
| 52 | + |
| 53 | + interface WeakMapConstructor { |
| 54 | +- new <K extends object = object, V = any>( |
| 55 | ++ new <K extends object = object, V = unknown>( |
| 56 | + entries?: readonly [K, V][] | null |
| 57 | + ): WeakMap<K, V>; |
| 58 | +- readonly prototype: WeakMap<object, any>; |
| 59 | ++ readonly prototype: WeakMap<object, unknown>; |
| 60 | + } |
| 61 | +-declare var WeakMap: WeakMapConstructor; |
| 62 | + |
| 63 | + interface Set<T> { |
| 64 | + add(value: T): this; |
| 65 | + clear(): void; |
| 66 | + delete(value: T): boolean; |
| 67 | +- forEach( |
| 68 | +- callbackfn: (value: T, value2: T, set: Set<T>) => void, |
| 69 | +- thisArg?: any |
| 70 | ++ forEach<This>( |
| 71 | ++ callbackfn: (this: This, value: T, value2: T, set: Set<T>) => void, |
| 72 | ++ thisArg?: This |
| 73 | + ): void; |
| 74 | + has(value: T): boolean; |
| 75 | + readonly size: number; |
| 76 | + } |
| 77 | ++declare var Set: SetConstructor; |
| 78 | + |
| 79 | + interface SetConstructor { |
| 80 | +- new <T = any>(values?: readonly T[] | null): Set<T>; |
| 81 | +- readonly prototype: Set<any>; |
| 82 | ++ new <T>(values?: readonly T[] | null): Set<T>; |
| 83 | ++ readonly prototype: Set<unknown>; |
| 84 | + } |
| 85 | +-declare var Set: SetConstructor; |
| 86 | + |
| 87 | + interface ReadonlySet<T> { |
| 88 | +- forEach( |
| 89 | +- callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, |
| 90 | +- thisArg?: any |
| 91 | ++ forEach<This>( |
| 92 | ++ callbackfn: (this: This, value: T, value2: T, set: ReadonlySet<T>) => void, |
| 93 | ++ thisArg?: This |
| 94 | + ): void; |
| 95 | + has(value: T): boolean; |
| 96 | + readonly size: number; |
| 97 | + } |
| 98 | + |
| 99 | +``` |
0 commit comments