Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / prettier-eslint / node_modules / typescript / lib / lib.es2015.collection.d.ts
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
16
17
18 /// <reference no-default-lib="true"/>\r
19
20
21 interface Map<K, V> {\r
22     clear(): void;\r
23     delete(key: K): boolean;\r
24     forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void;\r
25     get(key: K): V | undefined;\r
26     has(key: K): boolean;\r
27     set(key: K, value: V): this;\r
28     readonly size: number;\r
29 }\r
30 \r
31 interface MapConstructor {\r
32     new(): Map<any, any>;\r
33     new<K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>;\r
34     readonly prototype: Map<any, any>;\r
35 }\r
36 declare var Map: MapConstructor;\r
37 \r
38 interface ReadonlyMap<K, V> {\r
39     forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void;\r
40     get(key: K): V | undefined;\r
41     has(key: K): boolean;\r
42     readonly size: number;\r
43 }\r
44 \r
45 interface WeakMap<K extends object, V> {\r
46     delete(key: K): boolean;\r
47     get(key: K): V | undefined;\r
48     has(key: K): boolean;\r
49     set(key: K, value: V): this;\r
50 }\r
51 \r
52 interface WeakMapConstructor {\r
53     new <K extends object = object, V = any>(entries?: readonly [K, V][] | null): WeakMap<K, V>;\r
54     readonly prototype: WeakMap<object, any>;\r
55 }\r
56 declare var WeakMap: WeakMapConstructor;\r
57 \r
58 interface Set<T> {\r
59     add(value: T): this;\r
60     clear(): void;\r
61     delete(value: T): boolean;\r
62     forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void;\r
63     has(value: T): boolean;\r
64     readonly size: number;\r
65 }\r
66 \r
67 interface SetConstructor {\r
68     new <T = any>(values?: readonly T[] | null): Set<T>;\r
69     readonly prototype: Set<any>;\r
70 }\r
71 declare var Set: SetConstructor;\r
72 \r
73 interface ReadonlySet<T> {\r
74     forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void;\r
75     has(value: T): boolean;\r
76     readonly size: number;\r
77 }\r
78 \r
79 interface WeakSet<T extends object> {\r
80     add(value: T): this;\r
81     delete(value: T): boolean;\r
82     has(value: T): boolean;\r
83 }\r
84 \r
85 interface WeakSetConstructor {\r
86     new <T extends object = object>(values?: readonly T[] | null): WeakSet<T>;\r
87     readonly prototype: WeakSet<object>;\r
88 }\r
89 declare var WeakSet: WeakSetConstructor;\r