@types/webworker 0.0.10 → 0.0.12
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 +3673 -1018
- package/iterable.d.ts +67 -14
- package/package.json +1 -1
- package/ts5.5/index.d.ts +3673 -1018
- package/ts5.5/iterable.d.ts +67 -14
- package/ts5.6/index.d.ts +3673 -1018
- package/ts5.6/iterable.d.ts +67 -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
|
|
|
@@ -38,6 +42,21 @@ interface CanvasPathDrawingStyles {
|
|
|
38
42
|
setLineDash(segments: Iterable<number>): void;
|
|
39
43
|
}
|
|
40
44
|
|
|
45
|
+
interface CookieStoreManager {
|
|
46
|
+
/**
|
|
47
|
+
* The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
|
|
48
|
+
*
|
|
49
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
|
|
50
|
+
*/
|
|
51
|
+
subscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
|
|
54
|
+
*
|
|
55
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
|
|
56
|
+
*/
|
|
57
|
+
unsubscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
|
|
58
|
+
}
|
|
59
|
+
|
|
41
60
|
interface DOMStringList {
|
|
42
61
|
[Symbol.iterator](): IterableIterator<string>;
|
|
43
62
|
}
|
|
@@ -71,7 +90,7 @@ interface Headers {
|
|
|
71
90
|
|
|
72
91
|
interface IDBDatabase {
|
|
73
92
|
/**
|
|
74
|
-
*
|
|
93
|
+
* 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
94
|
*
|
|
76
95
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
|
|
77
96
|
*/
|
|
@@ -80,9 +99,7 @@ interface IDBDatabase {
|
|
|
80
99
|
|
|
81
100
|
interface IDBObjectStore {
|
|
82
101
|
/**
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
|
|
102
|
+
* The **`createIndex()`** method of the field/column defining a new data point for each database record to contain.
|
|
86
103
|
*
|
|
87
104
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
|
|
88
105
|
*/
|
|
@@ -106,17 +123,33 @@ interface StylePropertyMapReadOnly {
|
|
|
106
123
|
}
|
|
107
124
|
|
|
108
125
|
interface SubtleCrypto {
|
|
109
|
-
/**
|
|
126
|
+
/**
|
|
127
|
+
* The **`deriveKey()`** method of the SubtleCrypto interface can be used to derive a secret key from a master key.
|
|
128
|
+
*
|
|
129
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey)
|
|
130
|
+
*/
|
|
110
131
|
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
111
|
-
/**
|
|
132
|
+
/**
|
|
133
|
+
* The **`generateKey()`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).
|
|
134
|
+
*
|
|
135
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
|
|
136
|
+
*/
|
|
112
137
|
generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
|
|
113
138
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
114
139
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
115
140
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
|
|
116
|
-
/**
|
|
141
|
+
/**
|
|
142
|
+
* 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.
|
|
143
|
+
*
|
|
144
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey)
|
|
145
|
+
*/
|
|
117
146
|
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
118
147
|
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
119
|
-
/**
|
|
148
|
+
/**
|
|
149
|
+
* The **`unwrapKey()`** method of the SubtleCrypto interface 'unwraps' a key.
|
|
150
|
+
*
|
|
151
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey)
|
|
152
|
+
*/
|
|
120
153
|
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
154
|
}
|
|
122
155
|
|
|
@@ -131,18 +164,38 @@ interface URLSearchParams {
|
|
|
131
164
|
}
|
|
132
165
|
|
|
133
166
|
interface WEBGL_draw_buffers {
|
|
134
|
-
/**
|
|
167
|
+
/**
|
|
168
|
+
* 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.
|
|
169
|
+
*
|
|
170
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)
|
|
171
|
+
*/
|
|
135
172
|
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
|
|
136
173
|
}
|
|
137
174
|
|
|
138
175
|
interface WEBGL_multi_draw {
|
|
139
|
-
/**
|
|
176
|
+
/**
|
|
177
|
+
* The **`WEBGL_multi_draw.multiDrawArraysInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
178
|
+
*
|
|
179
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)
|
|
180
|
+
*/
|
|
140
181
|
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
|
-
/**
|
|
182
|
+
/**
|
|
183
|
+
* The **`WEBGL_multi_draw.multiDrawArraysWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
184
|
+
*
|
|
185
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)
|
|
186
|
+
*/
|
|
142
187
|
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
|
|
143
|
-
/**
|
|
188
|
+
/**
|
|
189
|
+
* The **`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
190
|
+
*
|
|
191
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)
|
|
192
|
+
*/
|
|
144
193
|
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
|
-
/**
|
|
194
|
+
/**
|
|
195
|
+
* The **`WEBGL_multi_draw.multiDrawElementsWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
196
|
+
*
|
|
197
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)
|
|
198
|
+
*/
|
|
146
199
|
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
|
|
147
200
|
}
|
|
148
201
|
|