@types/webworker 0.0.10 → 0.0.11
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/README.md +1 -1
- package/index.d.ts +3632 -1018
- package/iterable.d.ts +52 -14
- package/package.json +1 -1
- package/ts5.5/index.d.ts +3632 -1018
- package/ts5.5/iterable.d.ts +52 -14
- package/ts5.6/index.d.ts +3632 -1018
- package/ts5.6/iterable.d.ts +52 -14
package/iterable.d.ts
CHANGED
|
@@ -24,7 +24,11 @@ interface CSSUnparsedValue {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
interface Cache {
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* The **`addAll()`** method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache.
|
|
29
|
+
*
|
|
30
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll)
|
|
31
|
+
*/
|
|
28
32
|
addAll(requests: Iterable<RequestInfo>): Promise<void>;
|
|
29
33
|
}
|
|
30
34
|
|
|
@@ -79,7 +83,7 @@ interface Headers {
|
|
|
79
83
|
|
|
80
84
|
interface IDBDatabase {
|
|
81
85
|
/**
|
|
82
|
-
*
|
|
86
|
+
* 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.
|
|
83
87
|
*
|
|
84
88
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
|
|
85
89
|
*/
|
|
@@ -88,9 +92,7 @@ interface IDBDatabase {
|
|
|
88
92
|
|
|
89
93
|
interface IDBObjectStore {
|
|
90
94
|
/**
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
|
|
95
|
+
* The **`createIndex()`** method of the field/column defining a new data point for each database record to contain.
|
|
94
96
|
*
|
|
95
97
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
|
|
96
98
|
*/
|
|
@@ -118,17 +120,33 @@ interface StylePropertyMapReadOnly {
|
|
|
118
120
|
}
|
|
119
121
|
|
|
120
122
|
interface SubtleCrypto {
|
|
121
|
-
/**
|
|
123
|
+
/**
|
|
124
|
+
* The **`deriveKey()`** method of the SubtleCrypto interface can be used to derive a secret key from a master key.
|
|
125
|
+
*
|
|
126
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey)
|
|
127
|
+
*/
|
|
122
128
|
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
123
|
-
/**
|
|
129
|
+
/**
|
|
130
|
+
* The **`generateKey()`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).
|
|
131
|
+
*
|
|
132
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
|
|
133
|
+
*/
|
|
124
134
|
generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
|
|
125
135
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
126
136
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
127
137
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
|
|
128
|
-
/**
|
|
138
|
+
/**
|
|
139
|
+
* 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.
|
|
140
|
+
*
|
|
141
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey)
|
|
142
|
+
*/
|
|
129
143
|
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
130
144
|
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
131
|
-
/**
|
|
145
|
+
/**
|
|
146
|
+
* The **`unwrapKey()`** method of the SubtleCrypto interface 'unwraps' a key.
|
|
147
|
+
*
|
|
148
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey)
|
|
149
|
+
*/
|
|
132
150
|
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>;
|
|
133
151
|
}
|
|
134
152
|
|
|
@@ -147,18 +165,38 @@ interface URLSearchParams {
|
|
|
147
165
|
}
|
|
148
166
|
|
|
149
167
|
interface WEBGL_draw_buffers {
|
|
150
|
-
/**
|
|
168
|
+
/**
|
|
169
|
+
* 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.
|
|
170
|
+
*
|
|
171
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)
|
|
172
|
+
*/
|
|
151
173
|
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
|
|
152
174
|
}
|
|
153
175
|
|
|
154
176
|
interface WEBGL_multi_draw {
|
|
155
|
-
/**
|
|
177
|
+
/**
|
|
178
|
+
* The **`WEBGL_multi_draw.multiDrawArraysInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
179
|
+
*
|
|
180
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)
|
|
181
|
+
*/
|
|
156
182
|
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;
|
|
157
|
-
/**
|
|
183
|
+
/**
|
|
184
|
+
* The **`WEBGL_multi_draw.multiDrawArraysWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
185
|
+
*
|
|
186
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)
|
|
187
|
+
*/
|
|
158
188
|
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
|
|
159
|
-
/**
|
|
189
|
+
/**
|
|
190
|
+
* The **`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
191
|
+
*
|
|
192
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)
|
|
193
|
+
*/
|
|
160
194
|
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;
|
|
161
|
-
/**
|
|
195
|
+
/**
|
|
196
|
+
* The **`WEBGL_multi_draw.multiDrawElementsWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
197
|
+
*
|
|
198
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)
|
|
199
|
+
*/
|
|
162
200
|
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
|
|
163
201
|
}
|
|
164
202
|
|