@typescript/native-preview-linux-arm64 7.0.0-dev.20251001.1 → 7.0.0-dev.20251003.1
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.
- package/lib/lib.dom.d.ts +14642 -4823
- package/lib/lib.dom.iterable.d.ts +103 -25
- package/lib/lib.es2015.symbol.wellknown.d.ts +1 -1
- package/lib/lib.es2017.sharedmemory.d.ts +1 -1
- package/lib/lib.es2022.intl.d.ts +25 -1
- package/lib/lib.es5.d.ts +9 -2
- package/lib/lib.esnext.d.ts +2 -0
- package/lib/lib.esnext.error.d.ts +24 -0
- package/lib/lib.esnext.float16.d.ts +2 -0
- package/lib/lib.esnext.sharedmemory.d.ts +25 -0
- package/lib/lib.webworker.d.ts +4593 -1337
- package/lib/lib.webworker.iterable.d.ts +72 -19
- package/lib/tsgo +0 -0
- package/lib/tsgo.sig +7 -7
- package/package.json +2 -2
|
@@ -21,7 +21,11 @@ and limitations under the License.
|
|
|
21
21
|
/////////////////////////////
|
|
22
22
|
|
|
23
23
|
interface AudioParam {
|
|
24
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* The **`setValueCurveAtTime()`** method of the following a curve defined by a list of values.
|
|
26
|
+
*
|
|
27
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime)
|
|
28
|
+
*/
|
|
25
29
|
setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
|
|
26
30
|
}
|
|
27
31
|
|
|
@@ -29,9 +33,17 @@ interface AudioParamMap extends ReadonlyMap<string, AudioParam> {
|
|
|
29
33
|
}
|
|
30
34
|
|
|
31
35
|
interface BaseAudioContext {
|
|
32
|
-
/**
|
|
36
|
+
/**
|
|
37
|
+
* The **`createIIRFilter()`** method of the BaseAudioContext interface creates an IIRFilterNode, which represents a general **infinite impulse response** (IIR) filter which can be configured to serve as various types of filter.
|
|
38
|
+
*
|
|
39
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter)
|
|
40
|
+
*/
|
|
33
41
|
createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;
|
|
34
|
-
/**
|
|
42
|
+
/**
|
|
43
|
+
* The `createPeriodicWave()` method of the BaseAudioContext interface is used to create a PeriodicWave.
|
|
44
|
+
*
|
|
45
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave)
|
|
46
|
+
*/
|
|
35
47
|
createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;
|
|
36
48
|
}
|
|
37
49
|
|
|
@@ -69,7 +81,11 @@ interface CSSUnparsedValue {
|
|
|
69
81
|
}
|
|
70
82
|
|
|
71
83
|
interface Cache {
|
|
72
|
-
/**
|
|
84
|
+
/**
|
|
85
|
+
* The **`addAll()`** method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache.
|
|
86
|
+
*
|
|
87
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll)
|
|
88
|
+
*/
|
|
73
89
|
addAll(requests: Iterable<RequestInfo>): Promise<void>;
|
|
74
90
|
}
|
|
75
91
|
|
|
@@ -83,6 +99,21 @@ interface CanvasPathDrawingStyles {
|
|
|
83
99
|
setLineDash(segments: Iterable<number>): void;
|
|
84
100
|
}
|
|
85
101
|
|
|
102
|
+
interface CookieStoreManager {
|
|
103
|
+
/**
|
|
104
|
+
* The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
|
|
105
|
+
*
|
|
106
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
|
|
107
|
+
*/
|
|
108
|
+
subscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
|
|
109
|
+
/**
|
|
110
|
+
* The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
|
|
111
|
+
*
|
|
112
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
|
|
113
|
+
*/
|
|
114
|
+
unsubscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
|
|
115
|
+
}
|
|
116
|
+
|
|
86
117
|
interface CustomStateSet extends Set<string> {
|
|
87
118
|
}
|
|
88
119
|
|
|
@@ -171,7 +202,7 @@ interface HighlightRegistry extends Map<string, Highlight> {
|
|
|
171
202
|
|
|
172
203
|
interface IDBDatabase {
|
|
173
204
|
/**
|
|
174
|
-
*
|
|
205
|
+
* The **`transaction`** method of the IDBDatabase interface immediately returns a transaction object (IDBTransaction) containing the IDBTransaction.objectStore method, which you can use to access your object store.
|
|
175
206
|
*
|
|
176
207
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
|
|
177
208
|
*/
|
|
@@ -180,9 +211,7 @@ interface IDBDatabase {
|
|
|
180
211
|
|
|
181
212
|
interface IDBObjectStore {
|
|
182
213
|
/**
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
|
|
214
|
+
* The **`createIndex()`** method of the field/column defining a new data point for each database record to contain.
|
|
186
215
|
*
|
|
187
216
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
|
|
188
217
|
*/
|
|
@@ -197,7 +226,11 @@ interface MIDIInputMap extends ReadonlyMap<string, MIDIInput> {
|
|
|
197
226
|
}
|
|
198
227
|
|
|
199
228
|
interface MIDIOutput {
|
|
200
|
-
/**
|
|
229
|
+
/**
|
|
230
|
+
* The **`send()`** method of the MIDIOutput interface queues messages for the corresponding MIDI port.
|
|
231
|
+
*
|
|
232
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send)
|
|
233
|
+
*/
|
|
201
234
|
send(data: Iterable<number>, timestamp?: DOMHighResTimeStamp): void;
|
|
202
235
|
}
|
|
203
236
|
|
|
@@ -234,12 +267,17 @@ interface NamedNodeMap {
|
|
|
234
267
|
|
|
235
268
|
interface Navigator {
|
|
236
269
|
/**
|
|
270
|
+
* The **`requestMediaKeySystemAccess()`** method of the Navigator interface returns a Promise which delivers a MediaKeySystemAccess object that can be used to access a particular media key system, which can in turn be used to create keys for decrypting a media stream.
|
|
237
271
|
* Available only in secure contexts.
|
|
238
272
|
*
|
|
239
273
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMediaKeySystemAccess)
|
|
240
274
|
*/
|
|
241
275
|
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;
|
|
242
|
-
/**
|
|
276
|
+
/**
|
|
277
|
+
* The **`vibrate()`** method of the Navigator interface pulses the vibration hardware on the device, if such hardware exists.
|
|
278
|
+
*
|
|
279
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate)
|
|
280
|
+
*/
|
|
243
281
|
vibrate(pattern: Iterable<number>): boolean;
|
|
244
282
|
}
|
|
245
283
|
|
|
@@ -272,7 +310,11 @@ interface PluginArray {
|
|
|
272
310
|
}
|
|
273
311
|
|
|
274
312
|
interface RTCRtpTransceiver {
|
|
275
|
-
/**
|
|
313
|
+
/**
|
|
314
|
+
* The **`setCodecPreferences()`** method of the RTCRtpTransceiver interface is used to set the codecs that the transceiver allows for decoding _received_ data, in order of decreasing preference.
|
|
315
|
+
*
|
|
316
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences)
|
|
317
|
+
*/
|
|
276
318
|
setCodecPreferences(codecs: Iterable<RTCRtpCodec>): void;
|
|
277
319
|
}
|
|
278
320
|
|
|
@@ -327,17 +369,33 @@ interface StyleSheetList {
|
|
|
327
369
|
}
|
|
328
370
|
|
|
329
371
|
interface SubtleCrypto {
|
|
330
|
-
/**
|
|
372
|
+
/**
|
|
373
|
+
* The **`deriveKey()`** method of the SubtleCrypto interface can be used to derive a secret key from a master key.
|
|
374
|
+
*
|
|
375
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey)
|
|
376
|
+
*/
|
|
331
377
|
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
332
|
-
/**
|
|
378
|
+
/**
|
|
379
|
+
* The **`generateKey()`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).
|
|
380
|
+
*
|
|
381
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
|
|
382
|
+
*/
|
|
333
383
|
generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
|
|
334
384
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
335
385
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
336
386
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
|
|
337
|
-
/**
|
|
387
|
+
/**
|
|
388
|
+
* The **`importKey()`** method of the SubtleCrypto interface imports a key: that is, it takes as input a key in an external, portable format and gives you a CryptoKey object that you can use in the Web Crypto API.
|
|
389
|
+
*
|
|
390
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey)
|
|
391
|
+
*/
|
|
338
392
|
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
339
393
|
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
340
|
-
/**
|
|
394
|
+
/**
|
|
395
|
+
* The **`unwrapKey()`** method of the SubtleCrypto interface 'unwraps' a key.
|
|
396
|
+
*
|
|
397
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey)
|
|
398
|
+
*/
|
|
341
399
|
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
342
400
|
}
|
|
343
401
|
|
|
@@ -371,19 +429,39 @@ interface ViewTransitionTypeSet extends Set<string> {
|
|
|
371
429
|
}
|
|
372
430
|
|
|
373
431
|
interface WEBGL_draw_buffers {
|
|
374
|
-
/**
|
|
432
|
+
/**
|
|
433
|
+
* The **`WEBGL_draw_buffers.drawBuffersWEBGL()`** method is part of the WebGL API and allows you to define the draw buffers to which all fragment colors are written.
|
|
434
|
+
*
|
|
435
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)
|
|
436
|
+
*/
|
|
375
437
|
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
|
|
376
438
|
}
|
|
377
439
|
|
|
378
440
|
interface WEBGL_multi_draw {
|
|
379
|
-
/**
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
/**
|
|
386
|
-
|
|
441
|
+
/**
|
|
442
|
+
* The **`WEBGL_multi_draw.multiDrawArraysInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
443
|
+
*
|
|
444
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)
|
|
445
|
+
*/
|
|
446
|
+
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
|
|
447
|
+
/**
|
|
448
|
+
* The **`WEBGL_multi_draw.multiDrawArraysWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
449
|
+
*
|
|
450
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)
|
|
451
|
+
*/
|
|
452
|
+
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
|
|
453
|
+
/**
|
|
454
|
+
* The **`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
455
|
+
*
|
|
456
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)
|
|
457
|
+
*/
|
|
458
|
+
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
|
|
459
|
+
/**
|
|
460
|
+
* The **`WEBGL_multi_draw.multiDrawElementsWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
461
|
+
*
|
|
462
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)
|
|
463
|
+
*/
|
|
464
|
+
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
|
|
387
465
|
}
|
|
388
466
|
|
|
389
467
|
interface WebGL2RenderingContextBase {
|
|
@@ -398,7 +476,7 @@ interface WebGL2RenderingContextBase {
|
|
|
398
476
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
|
|
399
477
|
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
|
|
400
478
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
|
|
401
|
-
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>):
|
|
479
|
+
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): GLuint[] | null;
|
|
402
480
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
|
|
403
481
|
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
|
|
404
482
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
|
|
@@ -29,13 +29,13 @@ interface SharedArrayBuffer {
|
|
|
29
29
|
* Returns a section of an SharedArrayBuffer.
|
|
30
30
|
*/
|
|
31
31
|
slice(begin?: number, end?: number): SharedArrayBuffer;
|
|
32
|
-
readonly [Symbol.species]: SharedArrayBuffer;
|
|
33
32
|
readonly [Symbol.toStringTag]: "SharedArrayBuffer";
|
|
34
33
|
}
|
|
35
34
|
|
|
36
35
|
interface SharedArrayBufferConstructor {
|
|
37
36
|
readonly prototype: SharedArrayBuffer;
|
|
38
37
|
new (byteLength?: number): SharedArrayBuffer;
|
|
38
|
+
readonly [Symbol.species]: SharedArrayBufferConstructor;
|
|
39
39
|
}
|
|
40
40
|
declare var SharedArrayBuffer: SharedArrayBufferConstructor;
|
|
41
41
|
|
package/lib/lib.es2022.intl.d.ts
CHANGED
|
@@ -29,15 +29,27 @@ declare namespace Intl {
|
|
|
29
29
|
granularity?: "grapheme" | "word" | "sentence" | undefined;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
/**
|
|
33
|
+
* The `Intl.Segmenter` object enables locale-sensitive text segmentation, enabling you to get meaningful items (graphemes, words or sentences) from a string.
|
|
34
|
+
*
|
|
35
|
+
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter)
|
|
36
|
+
*/
|
|
32
37
|
interface Segmenter {
|
|
33
38
|
/**
|
|
34
39
|
* Returns `Segments` object containing the segments of the input string, using the segmenter's locale and granularity.
|
|
35
40
|
*
|
|
41
|
+
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/segment)
|
|
42
|
+
*
|
|
36
43
|
* @param input - The text to be segmented as a `string`.
|
|
37
44
|
*
|
|
38
45
|
* @returns A new iterable Segments object containing the segments of the input string, using the segmenter's locale and granularity.
|
|
39
46
|
*/
|
|
40
47
|
segment(input: string): Segments;
|
|
48
|
+
/**
|
|
49
|
+
* The `resolvedOptions()` method of `Intl.Segmenter` instances returns a new object with properties reflecting the options computed during initialization of this `Segmenter` object.
|
|
50
|
+
*
|
|
51
|
+
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/resolvedOptions)
|
|
52
|
+
*/
|
|
41
53
|
resolvedOptions(): ResolvedSegmenterOptions;
|
|
42
54
|
}
|
|
43
55
|
|
|
@@ -50,13 +62,20 @@ declare namespace Intl {
|
|
|
50
62
|
[Symbol.iterator](): SegmentIterator<T>;
|
|
51
63
|
}
|
|
52
64
|
|
|
65
|
+
/**
|
|
66
|
+
* A `Segments` object is an iterable collection of the segments of a text string. It is returned by a call to the `segment()` method of an `Intl.Segmenter` object.
|
|
67
|
+
*
|
|
68
|
+
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/segment/Segments)
|
|
69
|
+
*/
|
|
53
70
|
interface Segments {
|
|
54
71
|
/**
|
|
55
72
|
* Returns an object describing the segment in the original string that includes the code unit at a specified index.
|
|
56
73
|
*
|
|
74
|
+
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/segment/Segments/containing)
|
|
75
|
+
*
|
|
57
76
|
* @param codeUnitIndex - A number specifying the index of the code unit in the original input string. If the value is omitted, it defaults to `0`.
|
|
58
77
|
*/
|
|
59
|
-
containing(codeUnitIndex?: number): SegmentData;
|
|
78
|
+
containing(codeUnitIndex?: number): SegmentData | undefined;
|
|
60
79
|
|
|
61
80
|
/** Returns an iterator to iterate over the segments. */
|
|
62
81
|
[Symbol.iterator](): SegmentIterator<SegmentData>;
|
|
@@ -76,6 +95,11 @@ declare namespace Intl {
|
|
|
76
95
|
isWordLike?: boolean;
|
|
77
96
|
}
|
|
78
97
|
|
|
98
|
+
/**
|
|
99
|
+
* The `Intl.Segmenter` object enables locale-sensitive text segmentation, enabling you to get meaningful items (graphemes, words or sentences) from a string.
|
|
100
|
+
*
|
|
101
|
+
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter)
|
|
102
|
+
*/
|
|
79
103
|
const Segmenter: {
|
|
80
104
|
prototype: Segmenter;
|
|
81
105
|
|
package/lib/lib.es5.d.ts
CHANGED
|
@@ -1158,6 +1158,7 @@ interface JSON {
|
|
|
1158
1158
|
* @param text A valid JSON string.
|
|
1159
1159
|
* @param reviver A function that transforms the results. This function is called for each member of the object.
|
|
1160
1160
|
* If a member contains nested objects, the nested objects are transformed before the parent object is.
|
|
1161
|
+
* @throws {SyntaxError} If `text` is not valid JSON.
|
|
1161
1162
|
*/
|
|
1162
1163
|
parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
|
|
1163
1164
|
/**
|
|
@@ -1165,6 +1166,7 @@ interface JSON {
|
|
|
1165
1166
|
* @param value A JavaScript value, usually an object or array, to be converted.
|
|
1166
1167
|
* @param replacer A function that transforms the results.
|
|
1167
1168
|
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
|
|
1169
|
+
* @throws {TypeError} If a circular reference or a BigInt value is found.
|
|
1168
1170
|
*/
|
|
1169
1171
|
stringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
|
|
1170
1172
|
/**
|
|
@@ -1172,6 +1174,7 @@ interface JSON {
|
|
|
1172
1174
|
* @param value A JavaScript value, usually an object or array, to be converted.
|
|
1173
1175
|
* @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.
|
|
1174
1176
|
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
|
|
1177
|
+
* @throws {TypeError} If a circular reference or a BigInt value is found.
|
|
1175
1178
|
*/
|
|
1176
1179
|
stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
|
|
1177
1180
|
}
|
|
@@ -1393,14 +1396,18 @@ interface Array<T> {
|
|
|
1393
1396
|
/**
|
|
1394
1397
|
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
|
|
1395
1398
|
* @param start The zero-based location in the array from which to start removing elements.
|
|
1396
|
-
* @param deleteCount The number of elements to remove.
|
|
1399
|
+
* @param deleteCount The number of elements to remove. Omitting this argument will remove all elements from the start
|
|
1400
|
+
* paramater location to end of the array. If value of this argument is either a negative number, zero, undefined, or a type
|
|
1401
|
+
* that cannot be converted to an integer, the function will evaluate the argument as zero and not remove any elements.
|
|
1397
1402
|
* @returns An array containing the elements that were deleted.
|
|
1398
1403
|
*/
|
|
1399
1404
|
splice(start: number, deleteCount?: number): T[];
|
|
1400
1405
|
/**
|
|
1401
1406
|
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
|
|
1402
1407
|
* @param start The zero-based location in the array from which to start removing elements.
|
|
1403
|
-
* @param deleteCount The number of elements to remove.
|
|
1408
|
+
* @param deleteCount The number of elements to remove. If value of this argument is either a negative number, zero,
|
|
1409
|
+
* undefined, or a type that cannot be converted to an integer, the function will evaluate the argument as zero and
|
|
1410
|
+
* not remove any elements.
|
|
1404
1411
|
* @param items Elements to insert into the array in place of the deleted elements.
|
|
1405
1412
|
* @returns An array containing the elements that were deleted.
|
|
1406
1413
|
*/
|
package/lib/lib.esnext.d.ts
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
/// <reference no-default-lib="true"/>
|
|
18
|
+
|
|
19
|
+
interface ErrorConstructor {
|
|
20
|
+
/**
|
|
21
|
+
* Indicates whether the argument provided is a built-in Error instance or not.
|
|
22
|
+
*/
|
|
23
|
+
isError(error: unknown): error is Error;
|
|
24
|
+
}
|
|
@@ -374,6 +374,8 @@ interface Float16ArrayConstructor {
|
|
|
374
374
|
new (length?: number): Float16Array<ArrayBuffer>;
|
|
375
375
|
new (array: ArrayLike<number> | Iterable<number>): Float16Array<ArrayBuffer>;
|
|
376
376
|
new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Float16Array<TArrayBuffer>;
|
|
377
|
+
new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float16Array<ArrayBuffer>;
|
|
378
|
+
new (array: ArrayLike<number> | ArrayBuffer): Float16Array<ArrayBuffer>;
|
|
377
379
|
|
|
378
380
|
/**
|
|
379
381
|
* The size in bytes of each element in the array.
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
/// <reference no-default-lib="true"/>
|
|
18
|
+
|
|
19
|
+
interface Atomics {
|
|
20
|
+
/**
|
|
21
|
+
* Performs a finite-time microwait by signaling to the operating system or
|
|
22
|
+
* CPU that the current executing code is in a spin-wait loop.
|
|
23
|
+
*/
|
|
24
|
+
pause(n?: number): void;
|
|
25
|
+
}
|