typescript 5.9.0-dev.20250701 → 5.9.0-dev.20250702
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/_tsc.js +1 -1
- package/lib/lib.dom.d.ts +12689 -4227
- package/lib/lib.dom.iterable.d.ts +99 -21
- package/lib/lib.es2022.intl.d.ts +25 -1
- package/lib/lib.webworker.d.ts +3715 -1028
- package/lib/lib.webworker.iterable.d.ts +68 -15
- package/lib/typescript.js +1 -1
- 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,18 +429,38 @@ 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
|
-
/**
|
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
|
+
*/
|
380
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;
|
381
|
-
/**
|
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
|
+
*/
|
382
452
|
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
|
383
|
-
/**
|
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
|
+
*/
|
384
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;
|
385
|
-
/**
|
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
|
+
*/
|
386
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
|
|
@@ -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) */
|
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
|
|