typescript 5.9.0-dev.20250630 → 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 +137 -50
- 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 +197 -76
- package/package.json +2 -2
@@ -42,7 +42,11 @@ interface CSSUnparsedValue {
|
|
42
42
|
}
|
43
43
|
|
44
44
|
interface Cache {
|
45
|
-
/**
|
45
|
+
/**
|
46
|
+
* The **`addAll()`** method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache.
|
47
|
+
*
|
48
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll)
|
49
|
+
*/
|
46
50
|
addAll(requests: Iterable<RequestInfo>): Promise<void>;
|
47
51
|
}
|
48
52
|
|
@@ -56,6 +60,21 @@ interface CanvasPathDrawingStyles {
|
|
56
60
|
setLineDash(segments: Iterable<number>): void;
|
57
61
|
}
|
58
62
|
|
63
|
+
interface CookieStoreManager {
|
64
|
+
/**
|
65
|
+
* The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
|
66
|
+
*
|
67
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
|
68
|
+
*/
|
69
|
+
subscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
|
70
|
+
/**
|
71
|
+
* The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
|
72
|
+
*
|
73
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
|
74
|
+
*/
|
75
|
+
unsubscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
|
76
|
+
}
|
77
|
+
|
59
78
|
interface DOMStringList {
|
60
79
|
[Symbol.iterator](): ArrayIterator<string>;
|
61
80
|
}
|
@@ -97,7 +116,7 @@ interface Headers {
|
|
97
116
|
|
98
117
|
interface IDBDatabase {
|
99
118
|
/**
|
100
|
-
*
|
119
|
+
* 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.
|
101
120
|
*
|
102
121
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
|
103
122
|
*/
|
@@ -106,9 +125,7 @@ interface IDBDatabase {
|
|
106
125
|
|
107
126
|
interface IDBObjectStore {
|
108
127
|
/**
|
109
|
-
*
|
110
|
-
*
|
111
|
-
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
|
128
|
+
* The **`createIndex()`** method of the field/column defining a new data point for each database record to contain.
|
112
129
|
*
|
113
130
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
|
114
131
|
*/
|
@@ -136,17 +153,33 @@ interface StylePropertyMapReadOnly {
|
|
136
153
|
}
|
137
154
|
|
138
155
|
interface SubtleCrypto {
|
139
|
-
/**
|
156
|
+
/**
|
157
|
+
* The **`deriveKey()`** method of the SubtleCrypto interface can be used to derive a secret key from a master key.
|
158
|
+
*
|
159
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey)
|
160
|
+
*/
|
140
161
|
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
141
|
-
/**
|
162
|
+
/**
|
163
|
+
* The **`generateKey()`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).
|
164
|
+
*
|
165
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
|
166
|
+
*/
|
142
167
|
generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
|
143
168
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
144
169
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
145
170
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
|
146
|
-
/**
|
171
|
+
/**
|
172
|
+
* 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.
|
173
|
+
*
|
174
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey)
|
175
|
+
*/
|
147
176
|
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
148
177
|
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
149
|
-
/**
|
178
|
+
/**
|
179
|
+
* The **`unwrapKey()`** method of the SubtleCrypto interface 'unwraps' a key.
|
180
|
+
*
|
181
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey)
|
182
|
+
*/
|
150
183
|
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>;
|
151
184
|
}
|
152
185
|
|
@@ -165,18 +198,38 @@ interface URLSearchParams {
|
|
165
198
|
}
|
166
199
|
|
167
200
|
interface WEBGL_draw_buffers {
|
168
|
-
/**
|
201
|
+
/**
|
202
|
+
* 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.
|
203
|
+
*
|
204
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)
|
205
|
+
*/
|
169
206
|
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
|
170
207
|
}
|
171
208
|
|
172
209
|
interface WEBGL_multi_draw {
|
173
|
-
/**
|
210
|
+
/**
|
211
|
+
* The **`WEBGL_multi_draw.multiDrawArraysInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
212
|
+
*
|
213
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)
|
214
|
+
*/
|
174
215
|
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;
|
175
|
-
/**
|
216
|
+
/**
|
217
|
+
* The **`WEBGL_multi_draw.multiDrawArraysWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
218
|
+
*
|
219
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)
|
220
|
+
*/
|
176
221
|
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
|
177
|
-
/**
|
222
|
+
/**
|
223
|
+
* The **`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
224
|
+
*
|
225
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)
|
226
|
+
*/
|
178
227
|
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;
|
179
|
-
/**
|
228
|
+
/**
|
229
|
+
* The **`WEBGL_multi_draw.multiDrawElementsWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
230
|
+
*
|
231
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)
|
232
|
+
*/
|
180
233
|
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
|
181
234
|
}
|
182
235
|
|
@@ -192,7 +245,7 @@ interface WebGL2RenderingContextBase {
|
|
192
245
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
|
193
246
|
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
|
194
247
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
|
195
|
-
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>):
|
248
|
+
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): GLuint[] | null;
|
196
249
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
|
197
250
|
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
|
198
251
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
|