@types/webworker 0.0.9 → 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 +3653 -1023
- package/iterable.d.ts +52 -14
- package/package.json +1 -1
- package/ts5.5/index.d.ts +3653 -1023
- package/ts5.5/iterable.d.ts +52 -14
- package/ts5.6/index.d.ts +3653 -1023
- package/ts5.6/iterable.d.ts +52 -14
package/ts5.5/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
|
|
|
@@ -71,7 +75,7 @@ interface Headers {
|
|
|
71
75
|
|
|
72
76
|
interface IDBDatabase {
|
|
73
77
|
/**
|
|
74
|
-
*
|
|
78
|
+
* 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.
|
|
75
79
|
*
|
|
76
80
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
|
|
77
81
|
*/
|
|
@@ -80,9 +84,7 @@ interface IDBDatabase {
|
|
|
80
84
|
|
|
81
85
|
interface IDBObjectStore {
|
|
82
86
|
/**
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
|
|
87
|
+
* The **`createIndex()`** method of the field/column defining a new data point for each database record to contain.
|
|
86
88
|
*
|
|
87
89
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
|
|
88
90
|
*/
|
|
@@ -106,17 +108,33 @@ interface StylePropertyMapReadOnly {
|
|
|
106
108
|
}
|
|
107
109
|
|
|
108
110
|
interface SubtleCrypto {
|
|
109
|
-
/**
|
|
111
|
+
/**
|
|
112
|
+
* The **`deriveKey()`** method of the SubtleCrypto interface can be used to derive a secret key from a master key.
|
|
113
|
+
*
|
|
114
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey)
|
|
115
|
+
*/
|
|
110
116
|
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
111
|
-
/**
|
|
117
|
+
/**
|
|
118
|
+
* The **`generateKey()`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).
|
|
119
|
+
*
|
|
120
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
|
|
121
|
+
*/
|
|
112
122
|
generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
|
|
113
123
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
114
124
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
115
125
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
|
|
116
|
-
/**
|
|
126
|
+
/**
|
|
127
|
+
* 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.
|
|
128
|
+
*
|
|
129
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey)
|
|
130
|
+
*/
|
|
117
131
|
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
118
132
|
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
119
|
-
/**
|
|
133
|
+
/**
|
|
134
|
+
* The **`unwrapKey()`** method of the SubtleCrypto interface 'unwraps' a key.
|
|
135
|
+
*
|
|
136
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey)
|
|
137
|
+
*/
|
|
120
138
|
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>;
|
|
121
139
|
}
|
|
122
140
|
|
|
@@ -131,18 +149,38 @@ interface URLSearchParams {
|
|
|
131
149
|
}
|
|
132
150
|
|
|
133
151
|
interface WEBGL_draw_buffers {
|
|
134
|
-
/**
|
|
152
|
+
/**
|
|
153
|
+
* 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.
|
|
154
|
+
*
|
|
155
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)
|
|
156
|
+
*/
|
|
135
157
|
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
|
|
136
158
|
}
|
|
137
159
|
|
|
138
160
|
interface WEBGL_multi_draw {
|
|
139
|
-
/**
|
|
161
|
+
/**
|
|
162
|
+
* The **`WEBGL_multi_draw.multiDrawArraysInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
163
|
+
*
|
|
164
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)
|
|
165
|
+
*/
|
|
140
166
|
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
|
|
141
|
-
/**
|
|
167
|
+
/**
|
|
168
|
+
* The **`WEBGL_multi_draw.multiDrawArraysWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
169
|
+
*
|
|
170
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)
|
|
171
|
+
*/
|
|
142
172
|
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
|
|
143
|
-
/**
|
|
173
|
+
/**
|
|
174
|
+
* The **`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
175
|
+
*
|
|
176
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)
|
|
177
|
+
*/
|
|
144
178
|
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
|
|
145
|
-
/**
|
|
179
|
+
/**
|
|
180
|
+
* The **`WEBGL_multi_draw.multiDrawElementsWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
181
|
+
*
|
|
182
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)
|
|
183
|
+
*/
|
|
146
184
|
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
|
|
147
185
|
}
|
|
148
186
|
|