@typescript-deploys/pr-build 4.9.0-pr-51065-26 → 4.9.0-pr-51144-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/lib/README.md +1 -1
  2. package/lib/cs/diagnosticMessages.generated.json +1 -1
  3. package/lib/de/diagnosticMessages.generated.json +1 -1
  4. package/lib/es/diagnosticMessages.generated.json +1 -1
  5. package/lib/fr/diagnosticMessages.generated.json +1 -1
  6. package/lib/it/diagnosticMessages.generated.json +1 -1
  7. package/lib/ja/diagnosticMessages.generated.json +1 -1
  8. package/lib/ko/diagnosticMessages.generated.json +1 -1
  9. package/lib/lib.d.ts +5 -5
  10. package/lib/lib.dom.d.ts +1 -1
  11. package/lib/lib.dom.iterable.d.ts +1 -1
  12. package/lib/lib.es2015.collection.d.ts +133 -133
  13. package/lib/lib.es2015.core.d.ts +542 -542
  14. package/lib/lib.es2015.d.ts +11 -11
  15. package/lib/lib.es2015.generator.d.ts +60 -60
  16. package/lib/lib.es2015.iterable.d.ts +481 -481
  17. package/lib/lib.es2015.promise.d.ts +64 -64
  18. package/lib/lib.es2015.proxy.d.ts +113 -113
  19. package/lib/lib.es2015.reflect.d.ts +129 -129
  20. package/lib/lib.es2015.symbol.d.ts +30 -30
  21. package/lib/lib.es2015.symbol.wellknown.d.ts +307 -307
  22. package/lib/lib.es2016.array.include.d.ts +100 -100
  23. package/lib/lib.es2016.d.ts +2 -2
  24. package/lib/lib.es2016.full.d.ts +5 -5
  25. package/lib/lib.es2017.d.ts +7 -7
  26. package/lib/lib.es2017.full.d.ts +5 -5
  27. package/lib/lib.es2017.intl.d.ts +30 -30
  28. package/lib/lib.es2017.object.d.ts +34 -34
  29. package/lib/lib.es2017.sharedmemory.d.ts +120 -120
  30. package/lib/lib.es2017.string.d.ts +30 -30
  31. package/lib/lib.es2017.typedarrays.d.ts +38 -38
  32. package/lib/lib.es2018.asyncgenerator.d.ts +60 -60
  33. package/lib/lib.es2018.asynciterable.d.ts +27 -27
  34. package/lib/lib.es2018.d.ts +7 -7
  35. package/lib/lib.es2018.full.d.ts +5 -5
  36. package/lib/lib.es2018.intl.d.ts +56 -56
  37. package/lib/lib.es2018.promise.d.ts +13 -13
  38. package/lib/lib.es2018.regexp.d.ts +21 -21
  39. package/lib/lib.es2019.array.d.ts +66 -66
  40. package/lib/lib.es2019.d.ts +7 -7
  41. package/lib/lib.es2019.full.d.ts +6 -6
  42. package/lib/lib.es2019.intl.d.ts +6 -6
  43. package/lib/lib.es2019.object.d.ts +18 -18
  44. package/lib/lib.es2019.string.d.ts +22 -22
  45. package/lib/lib.es2019.symbol.d.ts +7 -7
  46. package/lib/lib.es2020.bigint.d.ts +713 -713
  47. package/lib/lib.es2020.d.ts +10 -10
  48. package/lib/lib.es2020.date.d.ts +26 -26
  49. package/lib/lib.es2020.full.d.ts +6 -6
  50. package/lib/lib.es2020.intl.d.ts +416 -416
  51. package/lib/lib.es2020.number.d.ts +13 -13
  52. package/lib/lib.es2020.promise.d.ts +32 -32
  53. package/lib/lib.es2020.sharedmemory.d.ts +82 -82
  54. package/lib/lib.es2020.string.d.ts +13 -13
  55. package/lib/lib.es2020.symbol.wellknown.d.ts +22 -22
  56. package/lib/lib.es2021.d.ts +6 -6
  57. package/lib/lib.es2021.full.d.ts +6 -6
  58. package/lib/lib.es2021.intl.d.ts +137 -137
  59. package/lib/lib.es2021.promise.d.ts +33 -33
  60. package/lib/lib.es2021.string.d.ts +18 -18
  61. package/lib/lib.es2021.weakref.d.ts +58 -58
  62. package/lib/lib.es2022.array.d.ts +106 -106
  63. package/lib/lib.es2022.d.ts +8 -8
  64. package/lib/lib.es2022.error.d.ts +58 -58
  65. package/lib/lib.es2022.full.d.ts +6 -6
  66. package/lib/lib.es2022.intl.d.ts +94 -94
  67. package/lib/lib.es2022.object.d.ts +9 -9
  68. package/lib/lib.es2022.sharedmemory.d.ts +8 -8
  69. package/lib/lib.es2022.string.d.ts +8 -8
  70. package/lib/lib.es5.d.ts +4509 -4509
  71. package/lib/lib.es6.d.ts +6 -6
  72. package/lib/lib.esnext.d.ts +3 -3
  73. package/lib/lib.esnext.full.d.ts +5 -5
  74. package/lib/lib.esnext.intl.d.ts +13 -13
  75. package/lib/lib.scripthost.d.ts +310 -310
  76. package/lib/lib.webworker.d.ts +1 -1
  77. package/lib/lib.webworker.importscripts.d.ts +7 -7
  78. package/lib/lib.webworker.iterable.d.ts +1 -1
  79. package/lib/pl/diagnosticMessages.generated.json +1 -1
  80. package/lib/pt-br/diagnosticMessages.generated.json +1 -1
  81. package/lib/ru/diagnosticMessages.generated.json +1 -1
  82. package/lib/tr/diagnosticMessages.generated.json +1 -1
  83. package/lib/tsc.js +34 -18
  84. package/lib/tsserver.js +108 -43
  85. package/lib/tsserverlibrary.d.ts +15 -16
  86. package/lib/tsserverlibrary.js +108 -41
  87. package/lib/typescript.d.ts +2 -10
  88. package/lib/typescript.js +71 -31
  89. package/lib/typingsInstaller.js +26 -9
  90. package/lib/zh-cn/diagnosticMessages.generated.json +1 -1
  91. package/lib/zh-tw/diagnosticMessages.generated.json +1 -1
  92. package/package.json +16 -34
package/lib/README.md CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  **These files are not meant to be edited by hand.**
4
4
  If you need to make modifications, the respective files should be changed within the repository's top-level `src` directory.
5
- Running `gulp LKG` will then appropriately update the files in this directory.
5
+ Running `hereby LKG` will then appropriately update the files in this directory.
@@ -1623,7 +1623,7 @@
1623
1623
  "Unexpected_token_1012": "Neočekávaný token",
1624
1624
  "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Neočekávaný token. Očekával se konstruktor, metoda, přístupový objekt nebo vlastnost.",
1625
1625
  "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Neočekávaný token. Očekával se název parametru typu bez složených závorek.",
1626
- "Unexpected_token_Did_you_mean_or_gt_1382": "Neočekávaný token. Měli jste na mysli {'>'} nebo >?",
1626
+ "Unexpected_token_Did_you_mean_or_gt_1382": "Neočekávaný token. Měli jste na mysli {'>'} nebo >?",
1627
1627
  "Unexpected_token_Did_you_mean_or_rbrace_1381": "Neočekávaný token. Měli jste na mysli {'}'} nebo }?",
1628
1628
  "Unexpected_token_expected_1179": "Neočekávaný token. Očekává se znak {.",
1629
1629
  "Unknown_build_option_0_5072": "Neznámá možnost sestavení {0}",
@@ -1623,7 +1623,7 @@
1623
1623
  "Unexpected_token_1012": "Unerwartetes Token.",
1624
1624
  "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Unerwartetes Token. Ein Konstruktor, eine Methode, eine Zugriffsmethode oder eine Eigenschaft wurde erwartet.",
1625
1625
  "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Unerwartetes Token. Es wurde ein Typparametername ohne geschweifte Klammern erwartet.",
1626
- "Unexpected_token_Did_you_mean_or_gt_1382": "Unerwartetes Token. Meinten Sie \"{'>'}\" oder \">\"?",
1626
+ "Unexpected_token_Did_you_mean_or_gt_1382": "Unerwartetes Token. Meinten Sie \"{'>'}\" oder \">\"?",
1627
1627
  "Unexpected_token_Did_you_mean_or_rbrace_1381": "Unerwartetes Token. Meinten Sie \"{'}'}\" oder \"}\"?",
1628
1628
  "Unexpected_token_expected_1179": "Unerwartetes Token. \"{\" wurde erwartet.",
1629
1629
  "Unknown_build_option_0_5072": "Unbekannte Buildoption \"{0}\".",
@@ -1623,7 +1623,7 @@
1623
1623
  "Unexpected_token_1012": "Token inesperado.",
1624
1624
  "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Token inesperado. Se esperaba un constructor, un método, un descriptor de acceso o una propiedad.",
1625
1625
  "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Token inesperado. Se esperaba un nombre de parámetro de tipo sin llaves.",
1626
- "Unexpected_token_Did_you_mean_or_gt_1382": "Token inesperado. ¿Pretendía usar \"{'>'}\" o \">\"?",
1626
+ "Unexpected_token_Did_you_mean_or_gt_1382": "Token inesperado. ¿Pretendía usar \"{'>'}\" o \">\"?",
1627
1627
  "Unexpected_token_Did_you_mean_or_rbrace_1381": "Token inesperado. ¿Pretendía usar \"{'}'}\" o \"}\"?",
1628
1628
  "Unexpected_token_expected_1179": "Token inesperado. Se esperaba \"{\".",
1629
1629
  "Unknown_build_option_0_5072": "Opción de compilación \"{0}\" desconocida.",
@@ -1623,7 +1623,7 @@
1623
1623
  "Unexpected_token_1012": "Jeton inattendu.",
1624
1624
  "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Jeton inattendu. Un constructeur, une méthode, un accesseur ou une propriété est attendu.",
1625
1625
  "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Jeton inattendu. Un nom de paramètre de type est attendu sans accolades.",
1626
- "Unexpected_token_Did_you_mean_or_gt_1382": "Jeton inattendu. Est-ce que vous avez voulu utiliser '{'>'}' ou '>' ?",
1626
+ "Unexpected_token_Did_you_mean_or_gt_1382": "Jeton inattendu. Est-ce que vous avez voulu utiliser '{'>'}' ou '>' ?",
1627
1627
  "Unexpected_token_Did_you_mean_or_rbrace_1381": "Jeton inattendu. Est-ce que vous avez voulu utiliser '{'}'}' ou '}' ?",
1628
1628
  "Unexpected_token_expected_1179": "Jeton inattendu. '{' est attendu.",
1629
1629
  "Unknown_build_option_0_5072": "Option de build inconnue : '{0}'.",
@@ -1623,7 +1623,7 @@
1623
1623
  "Unexpected_token_1012": "Token imprevisto.",
1624
1624
  "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Token imprevisto. È previsto un costruttore, un metodo, una funzione di accesso o una proprietà.",
1625
1625
  "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Token imprevisto. Sono previsti nomi di parametro senza parentesi graffe.",
1626
- "Unexpected_token_Did_you_mean_or_gt_1382": "Token imprevisto. Si intendeva `{'>'}` o `>`?",
1626
+ "Unexpected_token_Did_you_mean_or_gt_1382": "Token imprevisto. Si intendeva `{'>'}` o `>`?",
1627
1627
  "Unexpected_token_Did_you_mean_or_rbrace_1381": "Token imprevisto. Si intendeva `{'}'}` o `}`?",
1628
1628
  "Unexpected_token_expected_1179": "Token imprevisto. È previsto '{'.",
1629
1629
  "Unknown_build_option_0_5072": "L'opzione di compilazione '{0}' è sconosciuta.",
@@ -1623,7 +1623,7 @@
1623
1623
  "Unexpected_token_1012": "予期しないトークンです。",
1624
1624
  "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "予期しないトークンです。コンストラクター、メソッド、アクセサー、またはプロパティが必要です。",
1625
1625
  "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "予期しないトークンです。型パラメーター名には、中かっこを含めることはできません。",
1626
- "Unexpected_token_Did_you_mean_or_gt_1382": "予期しないトークンです。`{'>'}` または `>` を意図していましたか?",
1626
+ "Unexpected_token_Did_you_mean_or_gt_1382": "予期しないトークンです。`{'>'}` または `>` を意図していましたか?",
1627
1627
  "Unexpected_token_Did_you_mean_or_rbrace_1381": "予期しないトークンです。`{'}'}` または `}` を意図していましたか?",
1628
1628
  "Unexpected_token_expected_1179": "予期しないトークンです。'{' が必要です。",
1629
1629
  "Unknown_build_option_0_5072": "'{0}' は不明なビルド オプションです。",
@@ -1623,7 +1623,7 @@
1623
1623
  "Unexpected_token_1012": "예기치 않은 토큰입니다.",
1624
1624
  "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "예기치 않은 토큰입니다. 생성자, 메서드, 접근자 또는 속성이 필요합니다.",
1625
1625
  "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "예기치 않은 토큰입니다. 중괄호가 없는 형식 매개 변수 이름이 필요합니다.",
1626
- "Unexpected_token_Did_you_mean_or_gt_1382": "예기치 않은 토큰입니다. '{'>'}' 또는 '>'를 사용하시겠습니까?",
1626
+ "Unexpected_token_Did_you_mean_or_gt_1382": "예기치 않은 토큰입니다. '{'>'}' 또는 '>'를 사용하시겠습니까?",
1627
1627
  "Unexpected_token_Did_you_mean_or_rbrace_1381": "예기치 않은 토큰입니다. '{'}'}' 또는 '}'를 사용하시겠습니까?",
1628
1628
  "Unexpected_token_expected_1179": "예기치 않은 토큰입니다. '{'가 있어야 합니다.",
1629
1629
  "Unknown_build_option_0_5072": "알 수 없는 빌드 옵션 '{0}'입니다.",
package/lib/lib.d.ts CHANGED
@@ -15,10 +15,10 @@ and limitations under the License.
15
15
 
16
16
 
17
17
 
18
- /// <reference no-default-lib="true"/>
18
+ /// <reference no-default-lib="true"/>
19
19
 
20
20
 
21
- /// <reference lib="es5" />
22
- /// <reference lib="dom" />
23
- /// <reference lib="webworker.importscripts" />
24
- /// <reference lib="scripthost" />
21
+ /// <reference lib="es5" />
22
+ /// <reference lib="dom" />
23
+ /// <reference lib="webworker.importscripts" />
24
+ /// <reference lib="scripthost" />
package/lib/lib.dom.d.ts CHANGED
@@ -15,7 +15,7 @@ and limitations under the License.
15
15
 
16
16
 
17
17
 
18
- /// <reference no-default-lib="true"/>
18
+ /// <reference no-default-lib="true"/>
19
19
 
20
20
 
21
21
  /////////////////////////////
@@ -15,7 +15,7 @@ and limitations under the License.
15
15
 
16
16
 
17
17
 
18
- /// <reference no-default-lib="true"/>
18
+ /// <reference no-default-lib="true"/>
19
19
 
20
20
 
21
21
  /////////////////////////////
@@ -15,136 +15,136 @@ and limitations under the License.
15
15
 
16
16
 
17
17
 
18
- /// <reference no-default-lib="true"/>
19
-
20
-
21
- interface Map<K, V> {
22
-
23
- clear(): void;
24
- /**
25
- * @returns true if an element in the Map existed and has been removed, or false if the element does not exist.
26
- */
27
- delete(key: K): boolean;
28
- /**
29
- * Executes a provided function once per each key/value pair in the Map, in insertion order.
30
- */
31
- forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void;
32
- /**
33
- * Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.
34
- * @returns Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.
35
- */
36
- get(key: K): V | undefined;
37
- /**
38
- * @returns boolean indicating whether an element with the specified key exists or not.
39
- */
40
- has(key: K): boolean;
41
- /**
42
- * Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated.
43
- */
44
- set(key: K, value: V): this;
45
- /**
46
- * @returns the number of elements in the Map.
47
- */
48
- readonly size: number;
49
- }
50
-
51
- interface MapConstructor {
52
- new(): Map<any, any>;
53
- new <K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>;
54
- readonly prototype: Map<any, any>;
55
- }
56
- declare var Map: MapConstructor;
57
-
58
- interface ReadonlyMap<K, V> {
59
- forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void;
60
- get(key: K): V | undefined;
61
- has(key: K): boolean;
62
- readonly size: number;
63
- }
64
-
65
- interface WeakMap<K extends object, V> {
66
- /**
67
- * Removes the specified element from the WeakMap.
68
- * @returns true if the element was successfully removed, or false if it was not present.
69
- */
70
- delete(key: K): boolean;
71
- /**
72
- * @returns a specified element.
73
- */
74
- get(key: K): V | undefined;
75
- /**
76
- * @returns a boolean indicating whether an element with the specified key exists or not.
77
- */
78
- has(key: K): boolean;
79
- /**
80
- * Adds a new element with a specified key and value.
81
- * @param key Must be an object.
82
- */
83
- set(key: K, value: V): this;
84
- }
85
-
86
- interface WeakMapConstructor {
87
- new <K extends object = object, V = any>(entries?: readonly [K, V][] | null): WeakMap<K, V>;
88
- readonly prototype: WeakMap<object, any>;
89
- }
90
- declare var WeakMap: WeakMapConstructor;
91
-
92
- interface Set<T> {
93
- /**
94
- * Appends a new element with a specified value to the end of the Set.
95
- */
96
- add(value: T): this;
97
-
98
- clear(): void;
99
- /**
100
- * Removes a specified value from the Set.
101
- * @returns Returns true if an element in the Set existed and has been removed, or false if the element does not exist.
102
- */
103
- delete(value: T): boolean;
104
- /**
105
- * Executes a provided function once per each value in the Set object, in insertion order.
106
- */
107
- forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void;
108
- /**
109
- * @returns a boolean indicating whether an element with the specified value exists in the Set or not.
110
- */
111
- has(value: T): boolean;
112
- /**
113
- * @returns the number of (unique) elements in Set.
114
- */
115
- readonly size: number;
116
- }
117
-
118
- interface SetConstructor {
119
- new <T = any>(values?: readonly T[] | null): Set<T>;
120
- readonly prototype: Set<any>;
121
- }
122
- declare var Set: SetConstructor;
123
-
124
- interface ReadonlySet<T> {
125
- forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void;
126
- has(value: T): boolean;
127
- readonly size: number;
128
- }
129
-
130
- interface WeakSet<T extends object> {
131
- /**
132
- * Appends a new object to the end of the WeakSet.
133
- */
134
- add(value: T): this;
135
- /**
136
- * Removes the specified element from the WeakSet.
137
- * @returns Returns true if the element existed and has been removed, or false if the element does not exist.
138
- */
139
- delete(value: T): boolean;
140
- /**
141
- * @returns a boolean indicating whether an object exists in the WeakSet or not.
142
- */
143
- has(value: T): boolean;
144
- }
145
-
146
- interface WeakSetConstructor {
147
- new <T extends object = object>(values?: readonly T[] | null): WeakSet<T>;
148
- readonly prototype: WeakSet<object>;
149
- }
150
- declare var WeakSet: WeakSetConstructor;
18
+ /// <reference no-default-lib="true"/>
19
+
20
+
21
+ interface Map<K, V> {
22
+
23
+ clear(): void;
24
+ /**
25
+ * @returns true if an element in the Map existed and has been removed, or false if the element does not exist.
26
+ */
27
+ delete(key: K): boolean;
28
+ /**
29
+ * Executes a provided function once per each key/value pair in the Map, in insertion order.
30
+ */
31
+ forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void;
32
+ /**
33
+ * Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.
34
+ * @returns Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.
35
+ */
36
+ get(key: K): V | undefined;
37
+ /**
38
+ * @returns boolean indicating whether an element with the specified key exists or not.
39
+ */
40
+ has(key: K): boolean;
41
+ /**
42
+ * Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated.
43
+ */
44
+ set(key: K, value: V): this;
45
+ /**
46
+ * @returns the number of elements in the Map.
47
+ */
48
+ readonly size: number;
49
+ }
50
+
51
+ interface MapConstructor {
52
+ new(): Map<any, any>;
53
+ new <K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>;
54
+ readonly prototype: Map<any, any>;
55
+ }
56
+ declare var Map: MapConstructor;
57
+
58
+ interface ReadonlyMap<K, V> {
59
+ forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void;
60
+ get(key: K): V | undefined;
61
+ has(key: K): boolean;
62
+ readonly size: number;
63
+ }
64
+
65
+ interface WeakMap<K extends object, V> {
66
+ /**
67
+ * Removes the specified element from the WeakMap.
68
+ * @returns true if the element was successfully removed, or false if it was not present.
69
+ */
70
+ delete(key: K): boolean;
71
+ /**
72
+ * @returns a specified element.
73
+ */
74
+ get(key: K): V | undefined;
75
+ /**
76
+ * @returns a boolean indicating whether an element with the specified key exists or not.
77
+ */
78
+ has(key: K): boolean;
79
+ /**
80
+ * Adds a new element with a specified key and value.
81
+ * @param key Must be an object.
82
+ */
83
+ set(key: K, value: V): this;
84
+ }
85
+
86
+ interface WeakMapConstructor {
87
+ new <K extends object = object, V = any>(entries?: readonly [K, V][] | null): WeakMap<K, V>;
88
+ readonly prototype: WeakMap<object, any>;
89
+ }
90
+ declare var WeakMap: WeakMapConstructor;
91
+
92
+ interface Set<T> {
93
+ /**
94
+ * Appends a new element with a specified value to the end of the Set.
95
+ */
96
+ add(value: T): this;
97
+
98
+ clear(): void;
99
+ /**
100
+ * Removes a specified value from the Set.
101
+ * @returns Returns true if an element in the Set existed and has been removed, or false if the element does not exist.
102
+ */
103
+ delete(value: T): boolean;
104
+ /**
105
+ * Executes a provided function once per each value in the Set object, in insertion order.
106
+ */
107
+ forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void;
108
+ /**
109
+ * @returns a boolean indicating whether an element with the specified value exists in the Set or not.
110
+ */
111
+ has(value: T): boolean;
112
+ /**
113
+ * @returns the number of (unique) elements in Set.
114
+ */
115
+ readonly size: number;
116
+ }
117
+
118
+ interface SetConstructor {
119
+ new <T = any>(values?: readonly T[] | null): Set<T>;
120
+ readonly prototype: Set<any>;
121
+ }
122
+ declare var Set: SetConstructor;
123
+
124
+ interface ReadonlySet<T> {
125
+ forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void;
126
+ has(value: T): boolean;
127
+ readonly size: number;
128
+ }
129
+
130
+ interface WeakSet<T extends object> {
131
+ /**
132
+ * Appends a new object to the end of the WeakSet.
133
+ */
134
+ add(value: T): this;
135
+ /**
136
+ * Removes the specified element from the WeakSet.
137
+ * @returns Returns true if the element existed and has been removed, or false if the element does not exist.
138
+ */
139
+ delete(value: T): boolean;
140
+ /**
141
+ * @returns a boolean indicating whether an object exists in the WeakSet or not.
142
+ */
143
+ has(value: T): boolean;
144
+ }
145
+
146
+ interface WeakSetConstructor {
147
+ new <T extends object = object>(values?: readonly T[] | null): WeakSet<T>;
148
+ readonly prototype: WeakSet<object>;
149
+ }
150
+ declare var WeakSet: WeakSetConstructor;