@types/serviceworker 0.0.155 → 0.0.157
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/asynciterable.d.ts +2 -23
- package/index.d.ts +348 -0
- package/iterable.d.ts +2 -318
- package/package.json +6 -1
- package/ts5.5/asynciterable.d.ts +3 -3
- package/ts5.6/asynciterable.d.ts +3 -3
- package/ts5.9/asynciterable.d.ts +23 -0
- package/ts5.9/index.d.ts +11727 -0
- package/ts5.9/iterable.d.ts +318 -0
package/iterable.d.ts
CHANGED
|
@@ -1,318 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/////////////////////////////
|
|
4
|
-
|
|
5
|
-
interface CSSNumericArray {
|
|
6
|
-
[Symbol.iterator](): ArrayIterator<CSSNumericValue>;
|
|
7
|
-
entries(): ArrayIterator<[number, CSSNumericValue]>;
|
|
8
|
-
keys(): ArrayIterator<number>;
|
|
9
|
-
values(): ArrayIterator<CSSNumericValue>;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
interface CSSTransformValue {
|
|
13
|
-
[Symbol.iterator](): ArrayIterator<CSSTransformComponent>;
|
|
14
|
-
entries(): ArrayIterator<[number, CSSTransformComponent]>;
|
|
15
|
-
keys(): ArrayIterator<number>;
|
|
16
|
-
values(): ArrayIterator<CSSTransformComponent>;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
interface CSSUnparsedValue {
|
|
20
|
-
[Symbol.iterator](): ArrayIterator<CSSUnparsedSegment>;
|
|
21
|
-
entries(): ArrayIterator<[number, CSSUnparsedSegment]>;
|
|
22
|
-
keys(): ArrayIterator<number>;
|
|
23
|
-
values(): ArrayIterator<CSSUnparsedSegment>;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
interface Cache {
|
|
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
|
-
*/
|
|
32
|
-
addAll(requests: Iterable<RequestInfo>): Promise<void>;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
interface CanvasPath {
|
|
36
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */
|
|
37
|
-
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
interface CanvasPathDrawingStyles {
|
|
41
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */
|
|
42
|
-
setLineDash(segments: Iterable<number>): void;
|
|
43
|
-
}
|
|
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
|
-
|
|
60
|
-
interface DOMStringList {
|
|
61
|
-
[Symbol.iterator](): ArrayIterator<string>;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
interface FileList {
|
|
65
|
-
[Symbol.iterator](): ArrayIterator<File>;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
interface FontFaceSet extends Set<FontFace> {
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
interface FormDataIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
72
|
-
[Symbol.iterator](): FormDataIterator<T>;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
interface FormData {
|
|
76
|
-
[Symbol.iterator](): FormDataIterator<[string, FormDataEntryValue]>;
|
|
77
|
-
/** Returns an array of key, value pairs for every entry in the list. */
|
|
78
|
-
entries(): FormDataIterator<[string, FormDataEntryValue]>;
|
|
79
|
-
/** Returns a list of keys in the list. */
|
|
80
|
-
keys(): FormDataIterator<string>;
|
|
81
|
-
/** Returns a list of values in the list. */
|
|
82
|
-
values(): FormDataIterator<FormDataEntryValue>;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
interface HeadersIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
86
|
-
[Symbol.iterator](): HeadersIterator<T>;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
interface Headers {
|
|
90
|
-
[Symbol.iterator](): HeadersIterator<[string, string]>;
|
|
91
|
-
/** Returns an iterator allowing to go through all key/value pairs contained in this object. */
|
|
92
|
-
entries(): HeadersIterator<[string, string]>;
|
|
93
|
-
/** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
|
|
94
|
-
keys(): HeadersIterator<string>;
|
|
95
|
-
/** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
|
|
96
|
-
values(): HeadersIterator<string>;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
interface IDBDatabase {
|
|
100
|
-
/**
|
|
101
|
-
* 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.
|
|
102
|
-
*
|
|
103
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
|
|
104
|
-
*/
|
|
105
|
-
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
interface IDBObjectStore {
|
|
109
|
-
/**
|
|
110
|
-
* The **`createIndex()`** method of the IDBObjectStore interface creates and returns a new IDBIndex object in the connected database.
|
|
111
|
-
*
|
|
112
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
|
|
113
|
-
*/
|
|
114
|
-
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
interface MessageEvent<T = any> {
|
|
118
|
-
/** @deprecated */
|
|
119
|
-
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
interface StylePropertyMapReadOnlyIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
123
|
-
[Symbol.iterator](): StylePropertyMapReadOnlyIterator<T>;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
interface StylePropertyMapReadOnly {
|
|
127
|
-
[Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
|
|
128
|
-
entries(): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
|
|
129
|
-
keys(): StylePropertyMapReadOnlyIterator<string>;
|
|
130
|
-
values(): StylePropertyMapReadOnlyIterator<Iterable<CSSStyleValue>>;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
interface SubtleCrypto {
|
|
134
|
-
/**
|
|
135
|
-
* The **`deriveKey()`** method of the SubtleCrypto interface can be used to derive a secret key from a master key.
|
|
136
|
-
*
|
|
137
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey)
|
|
138
|
-
*/
|
|
139
|
-
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
140
|
-
/**
|
|
141
|
-
* The **`generateKey()`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).
|
|
142
|
-
*
|
|
143
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
|
|
144
|
-
*/
|
|
145
|
-
generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
|
|
146
|
-
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
147
|
-
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
148
|
-
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
|
|
149
|
-
/**
|
|
150
|
-
* 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.
|
|
151
|
-
*
|
|
152
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey)
|
|
153
|
-
*/
|
|
154
|
-
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
155
|
-
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
156
|
-
/**
|
|
157
|
-
* The **`unwrapKey()`** method of the SubtleCrypto interface 'unwraps' a key.
|
|
158
|
-
*
|
|
159
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey)
|
|
160
|
-
*/
|
|
161
|
-
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>;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
interface URLSearchParamsIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
165
|
-
[Symbol.iterator](): URLSearchParamsIterator<T>;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
interface URLSearchParams {
|
|
169
|
-
[Symbol.iterator](): URLSearchParamsIterator<[string, string]>;
|
|
170
|
-
/** Returns an array of key, value pairs for every entry in the search params. */
|
|
171
|
-
entries(): URLSearchParamsIterator<[string, string]>;
|
|
172
|
-
/** Returns a list of keys in the search params. */
|
|
173
|
-
keys(): URLSearchParamsIterator<string>;
|
|
174
|
-
/** Returns a list of values in the search params. */
|
|
175
|
-
values(): URLSearchParamsIterator<string>;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
interface WEBGL_draw_buffers {
|
|
179
|
-
/**
|
|
180
|
-
* 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.
|
|
181
|
-
*
|
|
182
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)
|
|
183
|
-
*/
|
|
184
|
-
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
interface WEBGL_multi_draw {
|
|
188
|
-
/**
|
|
189
|
-
* The **`WEBGL_multi_draw.multiDrawArraysInstancedWEBGL()`** 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/multiDrawArraysInstancedWEBGL)
|
|
192
|
-
*/
|
|
193
|
-
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;
|
|
194
|
-
/**
|
|
195
|
-
* The **`WEBGL_multi_draw.multiDrawArraysWEBGL()`** 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/multiDrawArraysWEBGL)
|
|
198
|
-
*/
|
|
199
|
-
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
|
|
200
|
-
/**
|
|
201
|
-
* The **`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
202
|
-
*
|
|
203
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)
|
|
204
|
-
*/
|
|
205
|
-
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;
|
|
206
|
-
/**
|
|
207
|
-
* The **`WEBGL_multi_draw.multiDrawElementsWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
208
|
-
*
|
|
209
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)
|
|
210
|
-
*/
|
|
211
|
-
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
interface WebGL2RenderingContextBase {
|
|
215
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
|
216
|
-
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void;
|
|
217
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
|
218
|
-
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: number): void;
|
|
219
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
|
220
|
-
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: number): void;
|
|
221
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
|
|
222
|
-
drawBuffers(buffers: Iterable<GLenum>): void;
|
|
223
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
|
|
224
|
-
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
|
|
225
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
|
|
226
|
-
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): GLuint[] | null;
|
|
227
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
|
|
228
|
-
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
|
|
229
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
|
|
230
|
-
invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
|
|
231
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
|
|
232
|
-
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
|
|
233
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
|
234
|
-
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
235
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
|
236
|
-
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
237
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
|
238
|
-
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
239
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
|
240
|
-
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
241
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
242
|
-
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
243
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
244
|
-
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
245
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
246
|
-
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
247
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
248
|
-
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
249
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
250
|
-
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
251
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
252
|
-
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
253
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
|
|
254
|
-
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
|
|
255
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
|
|
256
|
-
vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
interface WebGL2RenderingContextOverloads {
|
|
260
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
261
|
-
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
262
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
263
|
-
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
264
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
265
|
-
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
266
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
267
|
-
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
268
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
269
|
-
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
270
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
271
|
-
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
272
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
273
|
-
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
274
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
275
|
-
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
276
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
277
|
-
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
278
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
279
|
-
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
280
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
281
|
-
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
interface WebGLRenderingContextBase {
|
|
285
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
|
|
286
|
-
vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
287
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
|
|
288
|
-
vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
289
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
|
|
290
|
-
vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
291
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
|
|
292
|
-
vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
interface WebGLRenderingContextOverloads {
|
|
296
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
297
|
-
uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
298
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
299
|
-
uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
300
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
301
|
-
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
302
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
303
|
-
uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
304
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
305
|
-
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
306
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
307
|
-
uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
308
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
309
|
-
uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
310
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
311
|
-
uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
312
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
313
|
-
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
|
|
314
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
315
|
-
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
|
|
316
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
317
|
-
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
|
|
318
|
-
}
|
|
1
|
+
// This file's contents are now included in the main types file.
|
|
2
|
+
// The file has been left for backward compatibility.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/serviceworker",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.157",
|
|
4
4
|
"description": "Types for the global scope of Service Workers",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"contributors": [],
|
|
@@ -20,6 +20,11 @@
|
|
|
20
20
|
"*": [
|
|
21
21
|
"ts5.6/*"
|
|
22
22
|
]
|
|
23
|
+
},
|
|
24
|
+
"<=5.9": {
|
|
25
|
+
"*": [
|
|
26
|
+
"ts5.9/*"
|
|
27
|
+
]
|
|
23
28
|
}
|
|
24
29
|
},
|
|
25
30
|
"scripts": {},
|
package/ts5.5/asynciterable.d.ts
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
/////////////////////////////
|
|
4
4
|
|
|
5
5
|
interface FileSystemDirectoryHandle {
|
|
6
|
-
[Symbol.asyncIterator](): AsyncIterableIterator<[string,
|
|
7
|
-
entries(): AsyncIterableIterator<[string,
|
|
6
|
+
[Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemDirectoryHandle | FileSystemFileHandle]>;
|
|
7
|
+
entries(): AsyncIterableIterator<[string, FileSystemDirectoryHandle | FileSystemFileHandle]>;
|
|
8
8
|
keys(): AsyncIterableIterator<string>;
|
|
9
|
-
values(): AsyncIterableIterator<
|
|
9
|
+
values(): AsyncIterableIterator<FileSystemDirectoryHandle | FileSystemFileHandle>;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
interface ReadableStream<R = any> {
|
package/ts5.6/asynciterable.d.ts
CHANGED
|
@@ -7,10 +7,10 @@ interface FileSystemDirectoryHandleAsyncIterator<T> extends AsyncIteratorObject<
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
interface FileSystemDirectoryHandle {
|
|
10
|
-
[Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string,
|
|
11
|
-
entries(): FileSystemDirectoryHandleAsyncIterator<[string,
|
|
10
|
+
[Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemDirectoryHandle | FileSystemFileHandle]>;
|
|
11
|
+
entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemDirectoryHandle | FileSystemFileHandle]>;
|
|
12
12
|
keys(): FileSystemDirectoryHandleAsyncIterator<string>;
|
|
13
|
-
values(): FileSystemDirectoryHandleAsyncIterator<
|
|
13
|
+
values(): FileSystemDirectoryHandleAsyncIterator<FileSystemDirectoryHandle | FileSystemFileHandle>;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
interface ReadableStreamAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/////////////////////////////
|
|
2
|
+
/// ServiceWorker Async Iterable APIs
|
|
3
|
+
/////////////////////////////
|
|
4
|
+
|
|
5
|
+
interface FileSystemDirectoryHandleAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
6
|
+
[Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<T>;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
interface FileSystemDirectoryHandle {
|
|
10
|
+
[Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemDirectoryHandle | FileSystemFileHandle]>;
|
|
11
|
+
entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemDirectoryHandle | FileSystemFileHandle]>;
|
|
12
|
+
keys(): FileSystemDirectoryHandleAsyncIterator<string>;
|
|
13
|
+
values(): FileSystemDirectoryHandleAsyncIterator<FileSystemDirectoryHandle | FileSystemFileHandle>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface ReadableStreamAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
17
|
+
[Symbol.asyncIterator](): ReadableStreamAsyncIterator<T>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface ReadableStream<R = any> {
|
|
21
|
+
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
|
|
22
|
+
values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
|
|
23
|
+
}
|