hackmud-script-manager 0.19.1-5bceac8 → 0.19.1-6d8d544
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/bin/hsm.d.ts +0 -0
- package/bin/hsm.js +128 -291
- package/env.d.ts +1357 -0
- package/generateTypeDeclaration.d.ts +1 -2
- package/generateTypeDeclaration.js +19 -19
- package/index.d.ts +2 -2
- package/index.js +2 -1
- package/package.json +6 -7
- package/processScript/index.d.ts +17 -26
- package/processScript/index.js +258 -241
- package/processScript/minify.d.ts +15 -21
- package/processScript/minify.js +381 -395
- package/processScript/postprocess.d.ts +0 -1
- package/processScript/postprocess.js +1 -1
- package/processScript/preprocess.d.ts +6 -9
- package/processScript/preprocess.js +94 -94
- package/processScript/shared.d.ts +1 -1
- package/processScript/shared.js +11 -11
- package/processScript/transform.d.ts +13 -18
- package/processScript/transform.js +594 -559
- package/pull.d.ts +5 -9
- package/pull.js +2 -2
- package/push.d.ts +24 -33
- package/push.js +88 -213
- package/syncMacros.d.ts +1 -2
- package/syncMacros.js +7 -6
- package/typescript@5.3.3.patch +882 -0
- package/watch.d.ts +10 -16
- package/watch.js +30 -31
- package/tsconfig.tsbuildinfo +0 -1
@@ -0,0 +1,882 @@
|
|
1
|
+
diff --git a/lib/lib.es2015.collection.d.ts b/lib/lib.es2015.collection.d.ts
|
2
|
+
index abeb66b929ae2b0ec908012f4db4141d74895a85..3367322770e5450a16014e6873cf6bd5ba3113ec 100644
|
3
|
+
--- a/lib/lib.es2015.collection.d.ts
|
4
|
+
+++ b/lib/lib.es2015.collection.d.ts
|
5
|
+
@@ -50,7 +50,7 @@ interface MapConstructor {
|
6
|
+
new <K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>;
|
7
|
+
readonly prototype: Map<any, any>;
|
8
|
+
}
|
9
|
+
-declare var Map: MapConstructor;
|
10
|
+
+declare const Map: MapConstructor;
|
11
|
+
|
12
|
+
interface ReadonlyMap<K, V> {
|
13
|
+
forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void;
|
14
|
+
@@ -84,7 +84,7 @@ interface WeakMapConstructor {
|
15
|
+
new <K extends WeakKey = WeakKey, V = any>(entries?: readonly (readonly [K, V])[] | null): WeakMap<K, V>;
|
16
|
+
readonly prototype: WeakMap<WeakKey, any>;
|
17
|
+
}
|
18
|
+
-declare var WeakMap: WeakMapConstructor;
|
19
|
+
+declare const WeakMap: WeakMapConstructor;
|
20
|
+
|
21
|
+
interface Set<T> {
|
22
|
+
/**
|
23
|
+
@@ -116,7 +116,7 @@ interface SetConstructor {
|
24
|
+
new <T = any>(values?: readonly T[] | null): Set<T>;
|
25
|
+
readonly prototype: Set<any>;
|
26
|
+
}
|
27
|
+
-declare var Set: SetConstructor;
|
28
|
+
+declare const Set: SetConstructor;
|
29
|
+
|
30
|
+
interface ReadonlySet<T> {
|
31
|
+
forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void;
|
32
|
+
@@ -144,4 +144,4 @@ interface WeakSetConstructor {
|
33
|
+
new <T extends WeakKey = WeakKey>(values?: readonly T[] | null): WeakSet<T>;
|
34
|
+
readonly prototype: WeakSet<WeakKey>;
|
35
|
+
}
|
36
|
+
-declare var WeakSet: WeakSetConstructor;
|
37
|
+
+declare const WeakSet: WeakSetConstructor;
|
38
|
+
diff --git a/lib/lib.es2015.promise.d.ts b/lib/lib.es2015.promise.d.ts
|
39
|
+
index 43b1bd24a869e23f00bdaaf25a13ab90eb24c6ff..7cec1a5a359c92552c03e50eee9a297ac679d76c 100644
|
40
|
+
--- a/lib/lib.es2015.promise.d.ts
|
41
|
+
+++ b/lib/lib.es2015.promise.d.ts
|
42
|
+
@@ -77,5 +77,3 @@ interface PromiseConstructor {
|
43
|
+
*/
|
44
|
+
resolve<T>(value: T | PromiseLike<T>): Promise<Awaited<T>>;
|
45
|
+
}
|
46
|
+
-
|
47
|
+
-declare var Promise: PromiseConstructor;
|
48
|
+
diff --git a/lib/lib.es2015.proxy.d.ts b/lib/lib.es2015.proxy.d.ts
|
49
|
+
index 22a0c174600b0376d9a7a2b010ce5652192e2114..73df6bbfb12df0187df64378638eacce9e8166f3 100644
|
50
|
+
--- a/lib/lib.es2015.proxy.d.ts
|
51
|
+
+++ b/lib/lib.es2015.proxy.d.ts
|
52
|
+
@@ -125,4 +125,3 @@ interface ProxyConstructor {
|
53
|
+
*/
|
54
|
+
new <T extends object>(target: T, handler: ProxyHandler<T>): T;
|
55
|
+
}
|
56
|
+
-declare var Proxy: ProxyConstructor;
|
57
|
+
diff --git a/lib/lib.es2015.reflect.d.ts b/lib/lib.es2015.reflect.d.ts
|
58
|
+
index 3ee27b5250b6ad73b6bf62adead9fd8e4ea3186d..c2e214ede209ef69317528eb5c3b2c3e27cff252 100644
|
59
|
+
--- a/lib/lib.es2015.reflect.d.ts
|
60
|
+
+++ b/lib/lib.es2015.reflect.d.ts
|
61
|
+
@@ -15,130 +15,3 @@ and limitations under the License.
|
62
|
+
|
63
|
+
|
64
|
+
/// <reference no-default-lib="true"/>
|
65
|
+
-
|
66
|
+
-declare namespace Reflect {
|
67
|
+
- /**
|
68
|
+
- * Calls the function with the specified object as the this value
|
69
|
+
- * and the elements of specified array as the arguments.
|
70
|
+
- * @param target The function to call.
|
71
|
+
- * @param thisArgument The object to be used as the this object.
|
72
|
+
- * @param argumentsList An array of argument values to be passed to the function.
|
73
|
+
- */
|
74
|
+
- function apply<T, A extends readonly any[], R>(
|
75
|
+
- target: (this: T, ...args: A) => R,
|
76
|
+
- thisArgument: T,
|
77
|
+
- argumentsList: Readonly<A>,
|
78
|
+
- ): R;
|
79
|
+
- function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any;
|
80
|
+
-
|
81
|
+
- /**
|
82
|
+
- * Constructs the target with the elements of specified array as the arguments
|
83
|
+
- * and the specified constructor as the `new.target` value.
|
84
|
+
- * @param target The constructor to invoke.
|
85
|
+
- * @param argumentsList An array of argument values to be passed to the constructor.
|
86
|
+
- * @param newTarget The constructor to be used as the `new.target` object.
|
87
|
+
- */
|
88
|
+
- function construct<A extends readonly any[], R>(
|
89
|
+
- target: new (...args: A) => R,
|
90
|
+
- argumentsList: Readonly<A>,
|
91
|
+
- newTarget?: new (...args: any) => any,
|
92
|
+
- ): R;
|
93
|
+
- function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: Function): any;
|
94
|
+
-
|
95
|
+
- /**
|
96
|
+
- * Adds a property to an object, or modifies attributes of an existing property.
|
97
|
+
- * @param target Object on which to add or modify the property. This can be a native JavaScript object
|
98
|
+
- * (that is, a user-defined object or a built in object) or a DOM object.
|
99
|
+
- * @param propertyKey The property name.
|
100
|
+
- * @param attributes Descriptor for the property. It can be for a data property or an accessor property.
|
101
|
+
- */
|
102
|
+
- function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): boolean;
|
103
|
+
-
|
104
|
+
- /**
|
105
|
+
- * Removes a property from an object, equivalent to `delete target[propertyKey]`,
|
106
|
+
- * except it won't throw if `target[propertyKey]` is non-configurable.
|
107
|
+
- * @param target Object from which to remove the own property.
|
108
|
+
- * @param propertyKey The property name.
|
109
|
+
- */
|
110
|
+
- function deleteProperty(target: object, propertyKey: PropertyKey): boolean;
|
111
|
+
-
|
112
|
+
- /**
|
113
|
+
- * Gets the property of target, equivalent to `target[propertyKey]` when `receiver === target`.
|
114
|
+
- * @param target Object that contains the property on itself or in its prototype chain.
|
115
|
+
- * @param propertyKey The property name.
|
116
|
+
- * @param receiver The reference to use as the `this` value in the getter function,
|
117
|
+
- * if `target[propertyKey]` is an accessor property.
|
118
|
+
- */
|
119
|
+
- function get<T extends object, P extends PropertyKey>(
|
120
|
+
- target: T,
|
121
|
+
- propertyKey: P,
|
122
|
+
- receiver?: unknown,
|
123
|
+
- ): P extends keyof T ? T[P] : any;
|
124
|
+
-
|
125
|
+
- /**
|
126
|
+
- * Gets the own property descriptor of the specified object.
|
127
|
+
- * An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
|
128
|
+
- * @param target Object that contains the property.
|
129
|
+
- * @param propertyKey The property name.
|
130
|
+
- */
|
131
|
+
- function getOwnPropertyDescriptor<T extends object, P extends PropertyKey>(
|
132
|
+
- target: T,
|
133
|
+
- propertyKey: P,
|
134
|
+
- ): TypedPropertyDescriptor<P extends keyof T ? T[P] : any> | undefined;
|
135
|
+
-
|
136
|
+
- /**
|
137
|
+
- * Returns the prototype of an object.
|
138
|
+
- * @param target The object that references the prototype.
|
139
|
+
- */
|
140
|
+
- function getPrototypeOf(target: object): object | null;
|
141
|
+
-
|
142
|
+
- /**
|
143
|
+
- * Equivalent to `propertyKey in target`.
|
144
|
+
- * @param target Object that contains the property on itself or in its prototype chain.
|
145
|
+
- * @param propertyKey Name of the property.
|
146
|
+
- */
|
147
|
+
- function has(target: object, propertyKey: PropertyKey): boolean;
|
148
|
+
-
|
149
|
+
- /**
|
150
|
+
- * Returns a value that indicates whether new properties can be added to an object.
|
151
|
+
- * @param target Object to test.
|
152
|
+
- */
|
153
|
+
- function isExtensible(target: object): boolean;
|
154
|
+
-
|
155
|
+
- /**
|
156
|
+
- * Returns the string and symbol keys of the own properties of an object. The own properties of an object
|
157
|
+
- * are those that are defined directly on that object, and are not inherited from the object's prototype.
|
158
|
+
- * @param target Object that contains the own properties.
|
159
|
+
- */
|
160
|
+
- function ownKeys(target: object): (string | symbol)[];
|
161
|
+
-
|
162
|
+
- /**
|
163
|
+
- * Prevents the addition of new properties to an object.
|
164
|
+
- * @param target Object to make non-extensible.
|
165
|
+
- * @return Whether the object has been made non-extensible.
|
166
|
+
- */
|
167
|
+
- function preventExtensions(target: object): boolean;
|
168
|
+
-
|
169
|
+
- /**
|
170
|
+
- * Sets the property of target, equivalent to `target[propertyKey] = value` when `receiver === target`.
|
171
|
+
- * @param target Object that contains the property on itself or in its prototype chain.
|
172
|
+
- * @param propertyKey Name of the property.
|
173
|
+
- * @param receiver The reference to use as the `this` value in the setter function,
|
174
|
+
- * if `target[propertyKey]` is an accessor property.
|
175
|
+
- */
|
176
|
+
- function set<T extends object, P extends PropertyKey>(
|
177
|
+
- target: T,
|
178
|
+
- propertyKey: P,
|
179
|
+
- value: P extends keyof T ? T[P] : any,
|
180
|
+
- receiver?: any,
|
181
|
+
- ): boolean;
|
182
|
+
- function set(target: object, propertyKey: PropertyKey, value: any, receiver?: any): boolean;
|
183
|
+
-
|
184
|
+
- /**
|
185
|
+
- * Sets the prototype of a specified object o to object proto or null.
|
186
|
+
- * @param target The object to change its prototype.
|
187
|
+
- * @param proto The value of the new prototype or null.
|
188
|
+
- * @return Whether setting the prototype was successful.
|
189
|
+
- */
|
190
|
+
- function setPrototypeOf(target: object, proto: object | null): boolean;
|
191
|
+
-}
|
192
|
+
diff --git a/lib/lib.es2017.sharedmemory.d.ts b/lib/lib.es2017.sharedmemory.d.ts
|
193
|
+
index a46c5ccb13d7df8603ab6025a66cd3e98fd852cd..f437bc82b7344e9c33d2dbab45ef07c2ec461009 100644
|
194
|
+
--- a/lib/lib.es2017.sharedmemory.d.ts
|
195
|
+
+++ b/lib/lib.es2017.sharedmemory.d.ts
|
196
|
+
@@ -37,7 +37,6 @@ interface SharedArrayBufferConstructor {
|
197
|
+
readonly prototype: SharedArrayBuffer;
|
198
|
+
new (byteLength: number): SharedArrayBuffer;
|
199
|
+
}
|
200
|
+
-declare var SharedArrayBuffer: SharedArrayBufferConstructor;
|
201
|
+
|
202
|
+
interface ArrayBufferTypes {
|
203
|
+
SharedArrayBuffer: SharedArrayBuffer;
|
204
|
+
@@ -131,5 +130,3 @@ interface Atomics {
|
205
|
+
|
206
|
+
readonly [Symbol.toStringTag]: "Atomics";
|
207
|
+
}
|
208
|
+
-
|
209
|
+
-declare var Atomics: Atomics;
|
210
|
+
diff --git a/lib/lib.es2018.intl.d.ts b/lib/lib.es2018.intl.d.ts
|
211
|
+
index da34dae5861c3b7743b202b99c5174c43c9e25b9..81df21a8a170c96cad8913b51774da907716720e 100644
|
212
|
+
--- a/lib/lib.es2018.intl.d.ts
|
213
|
+
+++ b/lib/lib.es2018.intl.d.ts
|
214
|
+
@@ -47,13 +47,6 @@ declare namespace Intl {
|
215
|
+
select(n: number): LDMLPluralRule;
|
216
|
+
}
|
217
|
+
|
218
|
+
- const PluralRules: {
|
219
|
+
- new (locales?: string | string[], options?: PluralRulesOptions): PluralRules;
|
220
|
+
- (locales?: string | string[], options?: PluralRulesOptions): PluralRules;
|
221
|
+
-
|
222
|
+
- supportedLocalesOf(locales: string | string[], options?: { localeMatcher?: "lookup" | "best fit"; }): string[];
|
223
|
+
- };
|
224
|
+
-
|
225
|
+
// We can only have one definition for 'type' in TypeScript, and so you can learn where the keys come from here:
|
226
|
+
type ES2018NumberFormatPartType = "literal" | "nan" | "infinity" | "percent" | "integer" | "group" | "decimal" | "fraction" | "plusSign" | "minusSign" | "percentSign" | "currency" | "code" | "symbol" | "name";
|
227
|
+
type ES2020NumberFormatPartType = "compact" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "unit" | "unknown";
|
228
|
+
diff --git a/lib/lib.es2020.bigint.d.ts b/lib/lib.es2020.bigint.d.ts
|
229
|
+
index d6b04d7a95cb28c1393b17cf1b852c322645def9..ae34f49ca06d09c46b0f91fd99937a29f84170c4 100644
|
230
|
+
--- a/lib/lib.es2020.bigint.d.ts
|
231
|
+
+++ b/lib/lib.es2020.bigint.d.ts
|
232
|
+
@@ -412,8 +412,6 @@ interface BigInt64ArrayConstructor {
|
233
|
+
from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array;
|
234
|
+
}
|
235
|
+
|
236
|
+
-declare var BigInt64Array: BigInt64ArrayConstructor;
|
237
|
+
-
|
238
|
+
/**
|
239
|
+
* A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the
|
240
|
+
* requested number of bytes could not be allocated, an exception is raised.
|
241
|
+
@@ -684,8 +682,6 @@ interface BigUint64ArrayConstructor {
|
242
|
+
from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array;
|
243
|
+
}
|
244
|
+
|
245
|
+
-declare var BigUint64Array: BigUint64ArrayConstructor;
|
246
|
+
-
|
247
|
+
interface DataView {
|
248
|
+
/**
|
249
|
+
* Gets the BigInt64 value at the specified byte offset from the start of the view. There is
|
250
|
+
diff --git a/lib/lib.es2020.intl.d.ts b/lib/lib.es2020.intl.d.ts
|
251
|
+
index 8f356b48996107c30cb97f9533fffadcfc79a171..c9c7a85b89539768a2074e049dba449f4826ebdc 100644
|
252
|
+
--- a/lib/lib.es2020.intl.d.ts
|
253
|
+
+++ b/lib/lib.es2020.intl.d.ts
|
254
|
+
@@ -196,56 +196,6 @@ declare namespace Intl {
|
255
|
+
resolvedOptions(): ResolvedRelativeTimeFormatOptions;
|
256
|
+
}
|
257
|
+
|
258
|
+
- /**
|
259
|
+
- * The [`Intl.RelativeTimeFormat`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)
|
260
|
+
- * object is a constructor for objects that enable language-sensitive relative time formatting.
|
261
|
+
- *
|
262
|
+
- * [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility).
|
263
|
+
- */
|
264
|
+
- const RelativeTimeFormat: {
|
265
|
+
- /**
|
266
|
+
- * Creates [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) objects
|
267
|
+
- *
|
268
|
+
- * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
|
269
|
+
- * For the general form and interpretation of the locales argument,
|
270
|
+
- * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
|
271
|
+
- *
|
272
|
+
- * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
|
273
|
+
- * with some or all of options of `RelativeTimeFormatOptions`.
|
274
|
+
- *
|
275
|
+
- * @returns [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) object.
|
276
|
+
- *
|
277
|
+
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat).
|
278
|
+
- */
|
279
|
+
- new (
|
280
|
+
- locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],
|
281
|
+
- options?: RelativeTimeFormatOptions,
|
282
|
+
- ): RelativeTimeFormat;
|
283
|
+
-
|
284
|
+
- /**
|
285
|
+
- * Returns an array containing those of the provided locales
|
286
|
+
- * that are supported in date and time formatting
|
287
|
+
- * without having to fall back to the runtime's default locale.
|
288
|
+
- *
|
289
|
+
- * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
|
290
|
+
- * For the general form and interpretation of the locales argument,
|
291
|
+
- * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
|
292
|
+
- *
|
293
|
+
- * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
|
294
|
+
- * with some or all of options of the formatting.
|
295
|
+
- *
|
296
|
+
- * @returns An array containing those of the provided locales
|
297
|
+
- * that are supported in date and time formatting
|
298
|
+
- * without having to fall back to the runtime's default locale.
|
299
|
+
- *
|
300
|
+
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf).
|
301
|
+
- */
|
302
|
+
- supportedLocalesOf(
|
303
|
+
- locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],
|
304
|
+
- options?: RelativeTimeFormatOptions,
|
305
|
+
- ): UnicodeBCP47LocaleIdentifier[];
|
306
|
+
- };
|
307
|
+
-
|
308
|
+
interface NumberFormatOptions {
|
309
|
+
compactDisplay?: "short" | "long" | undefined;
|
310
|
+
notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
|
311
|
+
@@ -315,24 +265,6 @@ declare namespace Intl {
|
312
|
+
toString(): BCP47LanguageTag;
|
313
|
+
}
|
314
|
+
|
315
|
+
- /**
|
316
|
+
- * Constructor creates [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale)
|
317
|
+
- * objects
|
318
|
+
- *
|
319
|
+
- * @param tag - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646).
|
320
|
+
- * For the general form and interpretation of the locales argument,
|
321
|
+
- * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
|
322
|
+
- *
|
323
|
+
- * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/Locale#Parameters) with some or all of options of the locale.
|
324
|
+
- *
|
325
|
+
- * @returns [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) object.
|
326
|
+
- *
|
327
|
+
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale).
|
328
|
+
- */
|
329
|
+
- const Locale: {
|
330
|
+
- new (tag: BCP47LanguageTag | Locale, options?: LocaleOptions): Locale;
|
331
|
+
- };
|
332
|
+
-
|
333
|
+
type DisplayNamesFallback =
|
334
|
+
| "code"
|
335
|
+
| "none";
|
336
|
+
@@ -390,40 +322,4 @@ declare namespace Intl {
|
337
|
+
*/
|
338
|
+
resolvedOptions(): ResolvedDisplayNamesOptions;
|
339
|
+
}
|
340
|
+
-
|
341
|
+
- /**
|
342
|
+
- * The [`Intl.DisplayNames()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
|
343
|
+
- * object enables the consistent translation of language, region and script display names.
|
344
|
+
- *
|
345
|
+
- * [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames#browser_compatibility).
|
346
|
+
- */
|
347
|
+
- const DisplayNames: {
|
348
|
+
- prototype: DisplayNames;
|
349
|
+
-
|
350
|
+
- /**
|
351
|
+
- * @param locales A string with a BCP 47 language tag, or an array of such strings.
|
352
|
+
- * For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
|
353
|
+
- * page.
|
354
|
+
- *
|
355
|
+
- * @param options An object for setting up a display name.
|
356
|
+
- *
|
357
|
+
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames).
|
358
|
+
- */
|
359
|
+
- new (locales: LocalesArgument, options: DisplayNamesOptions): DisplayNames;
|
360
|
+
-
|
361
|
+
- /**
|
362
|
+
- * Returns an array containing those of the provided locales that are supported in display names without having to fall back to the runtime's default locale.
|
363
|
+
- *
|
364
|
+
- * @param locales A string with a BCP 47 language tag, or an array of such strings.
|
365
|
+
- * For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
|
366
|
+
- * page.
|
367
|
+
- *
|
368
|
+
- * @param options An object with a locale matcher.
|
369
|
+
- *
|
370
|
+
- * @returns An array of strings representing a subset of the given locale tags that are supported in display names without having to fall back to the runtime's default locale.
|
371
|
+
- *
|
372
|
+
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf).
|
373
|
+
- */
|
374
|
+
- supportedLocalesOf(locales?: LocalesArgument, options?: { localeMatcher?: RelativeTimeFormatLocaleMatcher; }): BCP47LanguageTag[];
|
375
|
+
- };
|
376
|
+
}
|
377
|
+
diff --git a/lib/lib.es2021.intl.d.ts b/lib/lib.es2021.intl.d.ts
|
378
|
+
index b464d55d66e32349649f38eabfba4ee118fbf8d0..833172644f8f007c6aa8239e18cc70cf535be453 100644
|
379
|
+
--- a/lib/lib.es2021.intl.d.ts
|
380
|
+
+++ b/lib/lib.es2021.intl.d.ts
|
381
|
+
@@ -124,43 +124,4 @@ declare namespace Intl {
|
382
|
+
*/
|
383
|
+
resolvedOptions(): ResolvedListFormatOptions;
|
384
|
+
}
|
385
|
+
-
|
386
|
+
- const ListFormat: {
|
387
|
+
- prototype: ListFormat;
|
388
|
+
-
|
389
|
+
- /**
|
390
|
+
- * Creates [Intl.ListFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) objects that
|
391
|
+
- * enable language-sensitive list formatting.
|
392
|
+
- *
|
393
|
+
- * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
|
394
|
+
- * For the general form and interpretation of the `locales` argument,
|
395
|
+
- * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
|
396
|
+
- *
|
397
|
+
- * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters)
|
398
|
+
- * with some or all options of `ListFormatOptions`.
|
399
|
+
- *
|
400
|
+
- * @returns [Intl.ListFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) object.
|
401
|
+
- *
|
402
|
+
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat).
|
403
|
+
- */
|
404
|
+
- new (locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: ListFormatOptions): ListFormat;
|
405
|
+
-
|
406
|
+
- /**
|
407
|
+
- * Returns an array containing those of the provided locales that are
|
408
|
+
- * supported in list formatting without having to fall back to the runtime's default locale.
|
409
|
+
- *
|
410
|
+
- * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
|
411
|
+
- * For the general form and interpretation of the `locales` argument,
|
412
|
+
- * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
|
413
|
+
- *
|
414
|
+
- * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf#parameters).
|
415
|
+
- * with some or all possible options.
|
416
|
+
- *
|
417
|
+
- * @returns An array of strings representing a subset of the given locale tags that are supported in list
|
418
|
+
- * formatting without having to fall back to the runtime's default locale.
|
419
|
+
- *
|
420
|
+
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf).
|
421
|
+
- */
|
422
|
+
- supportedLocalesOf(locales: BCP47LanguageTag | BCP47LanguageTag[], options?: Pick<ListFormatOptions, "localeMatcher">): BCP47LanguageTag[];
|
423
|
+
- };
|
424
|
+
}
|
425
|
+
diff --git a/lib/lib.es2021.promise.d.ts b/lib/lib.es2021.promise.d.ts
|
426
|
+
index fb9bdf26141f651bb115c2d40c148b7ad2dc09da..ff3393f052b13bdee6fbffe764d9e0f8a77955c8 100644
|
427
|
+
--- a/lib/lib.es2021.promise.d.ts
|
428
|
+
+++ b/lib/lib.es2021.promise.d.ts
|
429
|
+
@@ -26,8 +26,6 @@ interface AggregateErrorConstructor {
|
430
|
+
readonly prototype: AggregateError;
|
431
|
+
}
|
432
|
+
|
433
|
+
-declare var AggregateError: AggregateErrorConstructor;
|
434
|
+
-
|
435
|
+
/**
|
436
|
+
* Represents the completion of an asynchronous operation
|
437
|
+
*/
|
438
|
+
diff --git a/lib/lib.es2021.weakref.d.ts b/lib/lib.es2021.weakref.d.ts
|
439
|
+
index 986af60d49ebfd273ee9195e398dce7caf868c0e..711fc823f1fea2810a276998ae4760511a580dde 100644
|
440
|
+
--- a/lib/lib.es2021.weakref.d.ts
|
441
|
+
+++ b/lib/lib.es2021.weakref.d.ts
|
442
|
+
@@ -72,5 +72,3 @@ interface FinalizationRegistryConstructor {
|
443
|
+
*/
|
444
|
+
new <T>(cleanupCallback: (heldValue: T) => void): FinalizationRegistry<T>;
|
445
|
+
}
|
446
|
+
-
|
447
|
+
-declare var FinalizationRegistry: FinalizationRegistryConstructor;
|
448
|
+
diff --git a/lib/lib.es2022.intl.d.ts b/lib/lib.es2022.intl.d.ts
|
449
|
+
index c41f999f11d683303ea4675655ff626e7c8c1ffb..879c3f260f1012cdecedcfd005927197e6fef981 100644
|
450
|
+
--- a/lib/lib.es2022.intl.d.ts
|
451
|
+
+++ b/lib/lib.es2022.intl.d.ts
|
452
|
+
@@ -72,40 +72,6 @@ declare namespace Intl {
|
453
|
+
isWordLike?: boolean;
|
454
|
+
}
|
455
|
+
|
456
|
+
- const Segmenter: {
|
457
|
+
- prototype: Segmenter;
|
458
|
+
-
|
459
|
+
- /**
|
460
|
+
- * Creates a new `Intl.Segmenter` object.
|
461
|
+
- *
|
462
|
+
- * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
|
463
|
+
- * For the general form and interpretation of the `locales` argument,
|
464
|
+
- * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
|
465
|
+
- *
|
466
|
+
- * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)
|
467
|
+
- * with some or all options of `SegmenterOptions`.
|
468
|
+
- *
|
469
|
+
- * @returns [Intl.Segmenter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segments) object.
|
470
|
+
- *
|
471
|
+
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter).
|
472
|
+
- */
|
473
|
+
- new (locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: SegmenterOptions): Segmenter;
|
474
|
+
-
|
475
|
+
- /**
|
476
|
+
- * Returns an array containing those of the provided locales that are supported without having to fall back to the runtime's default locale.
|
477
|
+
- *
|
478
|
+
- * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
|
479
|
+
- * For the general form and interpretation of the `locales` argument,
|
480
|
+
- * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
|
481
|
+
- *
|
482
|
+
- * @param options An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf#parameters).
|
483
|
+
- * with some or all possible options.
|
484
|
+
- *
|
485
|
+
- * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf)
|
486
|
+
- */
|
487
|
+
- supportedLocalesOf(locales: BCP47LanguageTag | BCP47LanguageTag[], options?: Pick<SegmenterOptions, "localeMatcher">): BCP47LanguageTag[];
|
488
|
+
- };
|
489
|
+
-
|
490
|
+
/**
|
491
|
+
* Returns a sorted array of the supported collation, calendar, currency, numbering system, timezones, and units by the implementation.
|
492
|
+
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/supportedValuesOf)
|
493
|
+
diff --git a/lib/lib.es5.d.ts b/lib/lib.es5.d.ts
|
494
|
+
index 55ce47cade53c5cb1a8384edf037922ec07e6cc0..c0cf7b95f133d1119d118c380459936a0a32606b 100644
|
495
|
+
--- a/lib/lib.es5.d.ts
|
496
|
+
+++ b/lib/lib.es5.d.ts
|
497
|
+
@@ -23,8 +23,8 @@ and limitations under the License.
|
498
|
+
/// ECMAScript APIs
|
499
|
+
/////////////////////////////
|
500
|
+
|
501
|
+
-declare var NaN: number;
|
502
|
+
-declare var Infinity: number;
|
503
|
+
+declare const NaN: number;
|
504
|
+
+declare const Infinity: number;
|
505
|
+
|
506
|
+
/**
|
507
|
+
* Evaluates JavaScript code and executes it.
|
508
|
+
@@ -122,7 +122,7 @@ interface PropertyDescriptorMap {
|
509
|
+
|
510
|
+
interface Object {
|
511
|
+
/** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */
|
512
|
+
- constructor: Function;
|
513
|
+
+ constructor: string;
|
514
|
+
|
515
|
+
/** Returns a string representation of an object. */
|
516
|
+
toString(): string;
|
517
|
+
@@ -150,6 +150,8 @@ interface Object {
|
518
|
+
* @param v A property name.
|
519
|
+
*/
|
520
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
521
|
+
+
|
522
|
+
+ __proto__: any;
|
523
|
+
}
|
524
|
+
|
525
|
+
interface ObjectConstructor {
|
526
|
+
@@ -267,7 +269,7 @@ interface ObjectConstructor {
|
527
|
+
/**
|
528
|
+
* Provides functionality common to all JavaScript objects.
|
529
|
+
*/
|
530
|
+
-declare var Object: ObjectConstructor;
|
531
|
+
+declare const Object: ObjectConstructor;
|
532
|
+
|
533
|
+
/**
|
534
|
+
* Creates a new function.
|
535
|
+
@@ -300,10 +302,6 @@ interface Function {
|
536
|
+
|
537
|
+
prototype: any;
|
538
|
+
readonly length: number;
|
539
|
+
-
|
540
|
+
- // Non-standard extensions
|
541
|
+
- arguments: any;
|
542
|
+
- caller: Function;
|
543
|
+
}
|
544
|
+
|
545
|
+
interface FunctionConstructor {
|
546
|
+
@@ -316,7 +314,7 @@ interface FunctionConstructor {
|
547
|
+
readonly prototype: Function;
|
548
|
+
}
|
549
|
+
|
550
|
+
-declare var Function: FunctionConstructor;
|
551
|
+
+declare const Function: FunctionConstructor;
|
552
|
+
|
553
|
+
/**
|
554
|
+
* Extracts the type of the 'this' parameter of a function type, or 'unknown' if the function type has no 'this' parameter.
|
555
|
+
@@ -404,7 +402,6 @@ interface NewableFunction extends Function {
|
556
|
+
interface IArguments {
|
557
|
+
[index: number]: any;
|
558
|
+
length: number;
|
559
|
+
- callee: Function;
|
560
|
+
}
|
561
|
+
|
562
|
+
interface String {
|
563
|
+
@@ -541,7 +538,7 @@ interface StringConstructor {
|
564
|
+
/**
|
565
|
+
* Allows manipulation and formatting of text strings and determination and location of substrings within strings.
|
566
|
+
*/
|
567
|
+
-declare var String: StringConstructor;
|
568
|
+
+declare const String: StringConstructor;
|
569
|
+
|
570
|
+
interface Boolean {
|
571
|
+
/** Returns the primitive value of the specified object. */
|
572
|
+
@@ -554,7 +551,7 @@ interface BooleanConstructor {
|
573
|
+
readonly prototype: Boolean;
|
574
|
+
}
|
575
|
+
|
576
|
+
-declare var Boolean: BooleanConstructor;
|
577
|
+
+declare const Boolean: BooleanConstructor;
|
578
|
+
|
579
|
+
interface Number {
|
580
|
+
/**
|
581
|
+
@@ -616,7 +613,7 @@ interface NumberConstructor {
|
582
|
+
}
|
583
|
+
|
584
|
+
/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */
|
585
|
+
-declare var Number: NumberConstructor;
|
586
|
+
+declare const Number: NumberConstructor;
|
587
|
+
|
588
|
+
interface TemplateStringsArray extends ReadonlyArray<string> {
|
589
|
+
readonly raw: readonly string[];
|
590
|
+
@@ -765,7 +762,7 @@ interface Math {
|
591
|
+
tan(x: number): number;
|
592
|
+
}
|
593
|
+
/** An intrinsic object that provides basic mathematics functionality and constants. */
|
594
|
+
-declare var Math: Math;
|
595
|
+
+declare const Math: Math;
|
596
|
+
|
597
|
+
/** Enables basic storage and retrieval of dates and times. */
|
598
|
+
interface Date {
|
599
|
+
@@ -957,7 +954,7 @@ interface DateConstructor {
|
600
|
+
now(): number;
|
601
|
+
}
|
602
|
+
|
603
|
+
-declare var Date: DateConstructor;
|
604
|
+
+declare const Date: DateConstructor;
|
605
|
+
|
606
|
+
interface RegExpMatchArray extends Array<string> {
|
607
|
+
/**
|
608
|
+
@@ -1069,7 +1066,7 @@ interface RegExpConstructor {
|
609
|
+
"$'": string;
|
610
|
+
}
|
611
|
+
|
612
|
+
-declare var RegExp: RegExpConstructor;
|
613
|
+
+declare const RegExp: RegExpConstructor;
|
614
|
+
|
615
|
+
interface Error {
|
616
|
+
name: string;
|
617
|
+
@@ -1083,7 +1080,7 @@ interface ErrorConstructor {
|
618
|
+
readonly prototype: Error;
|
619
|
+
}
|
620
|
+
|
621
|
+
-declare var Error: ErrorConstructor;
|
622
|
+
+declare const Error: ErrorConstructor;
|
623
|
+
|
624
|
+
interface EvalError extends Error {
|
625
|
+
}
|
626
|
+
@@ -1094,7 +1091,7 @@ interface EvalErrorConstructor extends ErrorConstructor {
|
627
|
+
readonly prototype: EvalError;
|
628
|
+
}
|
629
|
+
|
630
|
+
-declare var EvalError: EvalErrorConstructor;
|
631
|
+
+declare const EvalError: EvalErrorConstructor;
|
632
|
+
|
633
|
+
interface RangeError extends Error {
|
634
|
+
}
|
635
|
+
@@ -1105,7 +1102,7 @@ interface RangeErrorConstructor extends ErrorConstructor {
|
636
|
+
readonly prototype: RangeError;
|
637
|
+
}
|
638
|
+
|
639
|
+
-declare var RangeError: RangeErrorConstructor;
|
640
|
+
+declare const RangeError: RangeErrorConstructor;
|
641
|
+
|
642
|
+
interface ReferenceError extends Error {
|
643
|
+
}
|
644
|
+
@@ -1116,7 +1113,7 @@ interface ReferenceErrorConstructor extends ErrorConstructor {
|
645
|
+
readonly prototype: ReferenceError;
|
646
|
+
}
|
647
|
+
|
648
|
+
-declare var ReferenceError: ReferenceErrorConstructor;
|
649
|
+
+declare const ReferenceError: ReferenceErrorConstructor;
|
650
|
+
|
651
|
+
interface SyntaxError extends Error {
|
652
|
+
}
|
653
|
+
@@ -1127,7 +1124,7 @@ interface SyntaxErrorConstructor extends ErrorConstructor {
|
654
|
+
readonly prototype: SyntaxError;
|
655
|
+
}
|
656
|
+
|
657
|
+
-declare var SyntaxError: SyntaxErrorConstructor;
|
658
|
+
+declare const SyntaxError: SyntaxErrorConstructor;
|
659
|
+
|
660
|
+
interface TypeError extends Error {
|
661
|
+
}
|
662
|
+
@@ -1138,7 +1135,7 @@ interface TypeErrorConstructor extends ErrorConstructor {
|
663
|
+
readonly prototype: TypeError;
|
664
|
+
}
|
665
|
+
|
666
|
+
-declare var TypeError: TypeErrorConstructor;
|
667
|
+
+declare const TypeError: TypeErrorConstructor;
|
668
|
+
|
669
|
+
interface URIError extends Error {
|
670
|
+
}
|
671
|
+
@@ -1149,7 +1146,7 @@ interface URIErrorConstructor extends ErrorConstructor {
|
672
|
+
readonly prototype: URIError;
|
673
|
+
}
|
674
|
+
|
675
|
+
-declare var URIError: URIErrorConstructor;
|
676
|
+
+declare const URIError: URIErrorConstructor;
|
677
|
+
|
678
|
+
interface JSON {
|
679
|
+
/**
|
680
|
+
@@ -1158,27 +1155,52 @@ interface JSON {
|
681
|
+
* @param reviver A function that transforms the results. This function is called for each member of the object.
|
682
|
+
* If a member contains nested objects, the nested objects are transformed before the parent object is.
|
683
|
+
*/
|
684
|
+
- parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
|
685
|
+
+ oparse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
|
686
|
+
+ /**
|
687
|
+
+ * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
|
688
|
+
+ * @param value A JavaScript value, usually an object or array, to be converted.
|
689
|
+
+ * @param replacer A function that transforms the results.
|
690
|
+
+ * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
|
691
|
+
+ */
|
692
|
+
+ ostringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
|
693
|
+
+ /**
|
694
|
+
+ * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
|
695
|
+
+ * @param value A JavaScript value, usually an object or array, to be converted.
|
696
|
+
+ * @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.
|
697
|
+
+ * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
|
698
|
+
+ */
|
699
|
+
+ ostringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
|
700
|
+
+
|
701
|
+
+ /**
|
702
|
+
+ * Converts a JavaScript Object Notation (JSON) string into an object.
|
703
|
+
+ * @param text A valid JSON string.
|
704
|
+
+ * @param error An empty object, which will be given an error message in the event of error.
|
705
|
+
+ * @param reviver A function that transforms the results. This function is called for each member of the object.
|
706
|
+
+ * If a member contains nested objects, the nested objects are transformed before the parent object is.
|
707
|
+
+ */
|
708
|
+
+ parse(text: string, error: any, reviver?: (this: any, key: string, value: any) => any): any;
|
709
|
+
/**
|
710
|
+
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
|
711
|
+
* @param value A JavaScript value, usually an object or array, to be converted.
|
712
|
+
+ * @param error An empty object, which will be given an error message in the event of error.
|
713
|
+
* @param replacer A function that transforms the results.
|
714
|
+
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
|
715
|
+
*/
|
716
|
+
- stringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
|
717
|
+
+ stringify(value: any, error: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
|
718
|
+
/**
|
719
|
+
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
|
720
|
+
* @param value A JavaScript value, usually an object or array, to be converted.
|
721
|
+
+ * @param error An empty object, which will be given an error message in the event of error.
|
722
|
+
* @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.
|
723
|
+
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
|
724
|
+
*/
|
725
|
+
- stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
|
726
|
+
+ stringify(value: any, error: any, replacer?: (number | string)[] | null, space?: string | number): string;
|
727
|
+
}
|
728
|
+
|
729
|
+
/**
|
730
|
+
* An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.
|
731
|
+
*/
|
732
|
+
-declare var JSON: JSON;
|
733
|
+
+declare const JSON: JSON;
|
734
|
+
|
735
|
+
/////////////////////////////
|
736
|
+
/// ECMAScript Array API (specially handled by compiler)
|
737
|
+
@@ -1513,7 +1535,7 @@ interface ArrayConstructor {
|
738
|
+
readonly prototype: any[];
|
739
|
+
}
|
740
|
+
|
741
|
+
-declare var Array: ArrayConstructor;
|
742
|
+
+declare const Array: ArrayConstructor;
|
743
|
+
|
744
|
+
interface TypedPropertyDescriptor<T> {
|
745
|
+
enumerable?: boolean;
|
746
|
+
@@ -1711,7 +1733,7 @@ interface ArrayBufferConstructor {
|
747
|
+
new (byteLength: number): ArrayBuffer;
|
748
|
+
isView(arg: any): arg is ArrayBufferView;
|
749
|
+
}
|
750
|
+
-declare var ArrayBuffer: ArrayBufferConstructor;
|
751
|
+
+declare const ArrayBuffer: ArrayBufferConstructor;
|
752
|
+
|
753
|
+
interface ArrayBufferView {
|
754
|
+
/**
|
755
|
+
@@ -1862,7 +1884,7 @@ interface DataViewConstructor {
|
756
|
+
readonly prototype: DataView;
|
757
|
+
new (buffer: ArrayBufferLike & { BYTES_PER_ELEMENT?: never; }, byteOffset?: number, byteLength?: number): DataView;
|
758
|
+
}
|
759
|
+
-declare var DataView: DataViewConstructor;
|
760
|
+
+declare const DataView: DataViewConstructor;
|
761
|
+
|
762
|
+
/**
|
763
|
+
* A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
|
764
|
+
@@ -2142,7 +2164,7 @@ interface Int8ArrayConstructor {
|
765
|
+
*/
|
766
|
+
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array;
|
767
|
+
}
|
768
|
+
-declare var Int8Array: Int8ArrayConstructor;
|
769
|
+
+declare const Int8Array: Int8ArrayConstructor;
|
770
|
+
|
771
|
+
/**
|
772
|
+
* A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the
|
773
|
+
@@ -2423,7 +2445,7 @@ interface Uint8ArrayConstructor {
|
774
|
+
*/
|
775
|
+
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array;
|
776
|
+
}
|
777
|
+
-declare var Uint8Array: Uint8ArrayConstructor;
|
778
|
+
+declare const Uint8Array: Uint8ArrayConstructor;
|
779
|
+
|
780
|
+
/**
|
781
|
+
* A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.
|
782
|
+
@@ -2704,7 +2726,7 @@ interface Uint8ClampedArrayConstructor {
|
783
|
+
*/
|
784
|
+
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray;
|
785
|
+
}
|
786
|
+
-declare var Uint8ClampedArray: Uint8ClampedArrayConstructor;
|
787
|
+
+declare const Uint8ClampedArray: Uint8ClampedArrayConstructor;
|
788
|
+
|
789
|
+
/**
|
790
|
+
* A typed array of 16-bit signed integer values. The contents are initialized to 0. If the
|
791
|
+
@@ -2984,7 +3006,7 @@ interface Int16ArrayConstructor {
|
792
|
+
*/
|
793
|
+
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array;
|
794
|
+
}
|
795
|
+
-declare var Int16Array: Int16ArrayConstructor;
|
796
|
+
+declare const Int16Array: Int16ArrayConstructor;
|
797
|
+
|
798
|
+
/**
|
799
|
+
* A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the
|
800
|
+
@@ -3265,7 +3287,7 @@ interface Uint16ArrayConstructor {
|
801
|
+
*/
|
802
|
+
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array;
|
803
|
+
}
|
804
|
+
-declare var Uint16Array: Uint16ArrayConstructor;
|
805
|
+
+declare const Uint16Array: Uint16ArrayConstructor;
|
806
|
+
/**
|
807
|
+
* A typed array of 32-bit signed integer values. The contents are initialized to 0. If the
|
808
|
+
* requested number of bytes could not be allocated an exception is raised.
|
809
|
+
@@ -3545,7 +3567,7 @@ interface Int32ArrayConstructor {
|
810
|
+
*/
|
811
|
+
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array;
|
812
|
+
}
|
813
|
+
-declare var Int32Array: Int32ArrayConstructor;
|
814
|
+
+declare const Int32Array: Int32ArrayConstructor;
|
815
|
+
|
816
|
+
/**
|
817
|
+
* A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the
|
818
|
+
@@ -3825,7 +3847,7 @@ interface Uint32ArrayConstructor {
|
819
|
+
*/
|
820
|
+
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array;
|
821
|
+
}
|
822
|
+
-declare var Uint32Array: Uint32ArrayConstructor;
|
823
|
+
+declare const Uint32Array: Uint32ArrayConstructor;
|
824
|
+
|
825
|
+
/**
|
826
|
+
* A typed array of 32-bit float values. The contents are initialized to 0. If the requested number
|
827
|
+
@@ -4106,7 +4128,7 @@ interface Float32ArrayConstructor {
|
828
|
+
*/
|
829
|
+
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array;
|
830
|
+
}
|
831
|
+
-declare var Float32Array: Float32ArrayConstructor;
|
832
|
+
+declare const Float32Array: Float32ArrayConstructor;
|
833
|
+
|
834
|
+
/**
|
835
|
+
* A typed array of 64-bit float values. The contents are initialized to 0. If the requested
|
836
|
+
@@ -4387,7 +4409,7 @@ interface Float64ArrayConstructor {
|
837
|
+
*/
|
838
|
+
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array;
|
839
|
+
}
|
840
|
+
-declare var Float64Array: Float64ArrayConstructor;
|
841
|
+
+declare const Float64Array: Float64ArrayConstructor;
|
842
|
+
|
843
|
+
/////////////////////////////
|
844
|
+
/// ECMAScript Internationalization API
|
845
|
+
@@ -4418,11 +4440,6 @@ declare namespace Intl {
|
846
|
+
compare(x: string, y: string): number;
|
847
|
+
resolvedOptions(): ResolvedCollatorOptions;
|
848
|
+
}
|
849
|
+
- var Collator: {
|
850
|
+
- new (locales?: string | string[], options?: CollatorOptions): Collator;
|
851
|
+
- (locales?: string | string[], options?: CollatorOptions): Collator;
|
852
|
+
- supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[];
|
853
|
+
- };
|
854
|
+
|
855
|
+
interface NumberFormatOptions {
|
856
|
+
localeMatcher?: string | undefined;
|
857
|
+
@@ -4454,12 +4471,6 @@ declare namespace Intl {
|
858
|
+
format(value: number): string;
|
859
|
+
resolvedOptions(): ResolvedNumberFormatOptions;
|
860
|
+
}
|
861
|
+
- var NumberFormat: {
|
862
|
+
- new (locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
|
863
|
+
- (locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
|
864
|
+
- supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];
|
865
|
+
- readonly prototype: NumberFormat;
|
866
|
+
- };
|
867
|
+
|
868
|
+
interface DateTimeFormatOptions {
|
869
|
+
localeMatcher?: "best fit" | "lookup" | undefined;
|
870
|
+
@@ -4498,12 +4509,6 @@ declare namespace Intl {
|
871
|
+
format(date?: Date | number): string;
|
872
|
+
resolvedOptions(): ResolvedDateTimeFormatOptions;
|
873
|
+
}
|
874
|
+
- var DateTimeFormat: {
|
875
|
+
- new (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
|
876
|
+
- (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
|
877
|
+
- supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];
|
878
|
+
- readonly prototype: DateTimeFormat;
|
879
|
+
- };
|
880
|
+
}
|
881
|
+
|
882
|
+
interface String {
|