typescript 5.8.0-dev.20250121 → 5.8.0-dev.20250123
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 +27 -4
- package/lib/lib.dom.d.ts +722 -123
- package/lib/lib.dom.iterable.d.ts +9 -7
- package/lib/lib.es2015.iterable.d.ts +69 -54
- package/lib/lib.es2020.bigint.d.ts +38 -6
- package/lib/lib.es2023.array.d.ts +22 -22
- package/lib/lib.es5.d.ts +49 -49
- package/lib/lib.esnext.d.ts +1 -0
- package/lib/lib.esnext.float16.d.ts +443 -0
- package/lib/lib.esnext.iterator.d.ts +1 -1
- package/lib/lib.webworker.d.ts +254 -47
- package/lib/lib.webworker.iterable.d.ts +6 -7
- package/lib/typescript.js +27 -4
- package/package.json +2 -2
package/lib/lib.webworker.d.ts
CHANGED
@@ -400,6 +400,26 @@ interface ImageDataSettings {
|
|
400
400
|
colorSpace?: PredefinedColorSpace;
|
401
401
|
}
|
402
402
|
|
403
|
+
interface ImageDecodeOptions {
|
404
|
+
completeFramesOnly?: boolean;
|
405
|
+
frameIndex?: number;
|
406
|
+
}
|
407
|
+
|
408
|
+
interface ImageDecodeResult {
|
409
|
+
complete: boolean;
|
410
|
+
image: VideoFrame;
|
411
|
+
}
|
412
|
+
|
413
|
+
interface ImageDecoderInit {
|
414
|
+
colorSpaceConversion?: ColorSpaceConversion;
|
415
|
+
data: ImageBufferSource;
|
416
|
+
desiredHeight?: number;
|
417
|
+
desiredWidth?: number;
|
418
|
+
preferAnimation?: boolean;
|
419
|
+
transfer?: ArrayBuffer[];
|
420
|
+
type: string;
|
421
|
+
}
|
422
|
+
|
403
423
|
interface ImageEncodeOptions {
|
404
424
|
quality?: number;
|
405
425
|
type?: string;
|
@@ -2214,16 +2234,23 @@ interface DOMMatrix extends DOMMatrixReadOnly {
|
|
2214
2234
|
m43: number;
|
2215
2235
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
|
2216
2236
|
m44: number;
|
2237
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/invertSelf) */
|
2217
2238
|
invertSelf(): DOMMatrix;
|
2239
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/multiplySelf) */
|
2218
2240
|
multiplySelf(other?: DOMMatrixInit): DOMMatrix;
|
2241
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/preMultiplySelf) */
|
2219
2242
|
preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;
|
2220
2243
|
rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
|
2221
2244
|
rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;
|
2245
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateSelf) */
|
2222
2246
|
rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
|
2223
2247
|
scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
|
2224
2248
|
scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
|
2249
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewXSelf) */
|
2225
2250
|
skewXSelf(sx?: number): DOMMatrix;
|
2251
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewYSelf) */
|
2226
2252
|
skewYSelf(sy?: number): DOMMatrix;
|
2253
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/translateSelf) */
|
2227
2254
|
translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;
|
2228
2255
|
}
|
2229
2256
|
|
@@ -2285,8 +2312,11 @@ interface DOMMatrixReadOnly {
|
|
2285
2312
|
readonly m44: number;
|
2286
2313
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) */
|
2287
2314
|
flipX(): DOMMatrix;
|
2315
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY) */
|
2288
2316
|
flipY(): DOMMatrix;
|
2317
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse) */
|
2289
2318
|
inverse(): DOMMatrix;
|
2319
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply) */
|
2290
2320
|
multiply(other?: DOMMatrixInit): DOMMatrix;
|
2291
2321
|
rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
|
2292
2322
|
rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
|
@@ -2298,9 +2328,13 @@ interface DOMMatrixReadOnly {
|
|
2298
2328
|
scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
|
2299
2329
|
skewX(sx?: number): DOMMatrix;
|
2300
2330
|
skewY(sy?: number): DOMMatrix;
|
2331
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array) */
|
2301
2332
|
toFloat32Array(): Float32Array;
|
2333
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array) */
|
2302
2334
|
toFloat64Array(): Float64Array;
|
2335
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON) */
|
2303
2336
|
toJSON(): any;
|
2337
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint) */
|
2304
2338
|
transformPoint(point?: DOMPointInit): DOMPoint;
|
2305
2339
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate) */
|
2306
2340
|
translate(tx?: number, ty?: number, tz?: number): DOMMatrix;
|
@@ -2343,6 +2377,7 @@ interface DOMPointReadOnly {
|
|
2343
2377
|
readonly y: number;
|
2344
2378
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z) */
|
2345
2379
|
readonly z: number;
|
2380
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform) */
|
2346
2381
|
matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
|
2347
2382
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */
|
2348
2383
|
toJSON(): any;
|
@@ -2357,11 +2392,17 @@ declare var DOMPointReadOnly: {
|
|
2357
2392
|
|
2358
2393
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad) */
|
2359
2394
|
interface DOMQuad {
|
2395
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1) */
|
2360
2396
|
readonly p1: DOMPoint;
|
2397
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2) */
|
2361
2398
|
readonly p2: DOMPoint;
|
2399
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3) */
|
2362
2400
|
readonly p3: DOMPoint;
|
2401
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4) */
|
2363
2402
|
readonly p4: DOMPoint;
|
2403
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds) */
|
2364
2404
|
getBounds(): DOMRect;
|
2405
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON) */
|
2365
2406
|
toJSON(): any;
|
2366
2407
|
}
|
2367
2408
|
|
@@ -2374,9 +2415,13 @@ declare var DOMQuad: {
|
|
2374
2415
|
|
2375
2416
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect) */
|
2376
2417
|
interface DOMRect extends DOMRectReadOnly {
|
2418
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/height) */
|
2377
2419
|
height: number;
|
2420
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/width) */
|
2378
2421
|
width: number;
|
2422
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/x) */
|
2379
2423
|
x: number;
|
2424
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/y) */
|
2380
2425
|
y: number;
|
2381
2426
|
}
|
2382
2427
|
|
@@ -2405,6 +2450,7 @@ interface DOMRectReadOnly {
|
|
2405
2450
|
readonly x: number;
|
2406
2451
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) */
|
2407
2452
|
readonly y: number;
|
2453
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON) */
|
2408
2454
|
toJSON(): any;
|
2409
2455
|
}
|
2410
2456
|
|
@@ -2458,7 +2504,7 @@ declare var DecompressionStream: {
|
|
2458
2504
|
new(format: CompressionFormat): DecompressionStream;
|
2459
2505
|
};
|
2460
2506
|
|
2461
|
-
interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
2507
|
+
interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap, MessageEventTargetEventMap {
|
2462
2508
|
"message": MessageEvent;
|
2463
2509
|
"messageerror": MessageEvent;
|
2464
2510
|
"rtctransform": RTCTransformEvent;
|
@@ -2469,17 +2515,13 @@ interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
|
2469
2515
|
*
|
2470
2516
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope)
|
2471
2517
|
*/
|
2472
|
-
interface DedicatedWorkerGlobalScope extends WorkerGlobalScope, AnimationFrameProvider {
|
2518
|
+
interface DedicatedWorkerGlobalScope extends WorkerGlobalScope, AnimationFrameProvider, MessageEventTarget<DedicatedWorkerGlobalScope> {
|
2473
2519
|
/**
|
2474
2520
|
* Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging.
|
2475
2521
|
*
|
2476
2522
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/name)
|
2477
2523
|
*/
|
2478
2524
|
readonly name: string;
|
2479
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */
|
2480
|
-
onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
2481
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */
|
2482
|
-
onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
2483
2525
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/rtctransform_event) */
|
2484
2526
|
onrtctransform: ((this: DedicatedWorkerGlobalScope, ev: RTCTransformEvent) => any) | null;
|
2485
2527
|
/**
|
@@ -2630,10 +2672,15 @@ declare var EncodedVideoChunk: {
|
|
2630
2672
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent)
|
2631
2673
|
*/
|
2632
2674
|
interface ErrorEvent extends Event {
|
2675
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */
|
2633
2676
|
readonly colno: number;
|
2677
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */
|
2634
2678
|
readonly error: any;
|
2679
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */
|
2635
2680
|
readonly filename: string;
|
2681
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */
|
2636
2682
|
readonly lineno: number;
|
2683
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */
|
2637
2684
|
readonly message: string;
|
2638
2685
|
}
|
2639
2686
|
|
@@ -3288,6 +3335,16 @@ declare var FormData: {
|
|
3288
3335
|
new(): FormData;
|
3289
3336
|
};
|
3290
3337
|
|
3338
|
+
/**
|
3339
|
+
* Available only in secure contexts.
|
3340
|
+
*
|
3341
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError)
|
3342
|
+
*/
|
3343
|
+
interface GPUError {
|
3344
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError/message) */
|
3345
|
+
readonly message: string;
|
3346
|
+
}
|
3347
|
+
|
3291
3348
|
interface GenericTransformStream {
|
3292
3349
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
|
3293
3350
|
readonly readable: ReadableStream;
|
@@ -4077,6 +4134,70 @@ declare var ImageData: {
|
|
4077
4134
|
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
|
4078
4135
|
};
|
4079
4136
|
|
4137
|
+
/**
|
4138
|
+
* Available only in secure contexts.
|
4139
|
+
*
|
4140
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder)
|
4141
|
+
*/
|
4142
|
+
interface ImageDecoder {
|
4143
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/complete) */
|
4144
|
+
readonly complete: boolean;
|
4145
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/completed) */
|
4146
|
+
readonly completed: Promise<undefined>;
|
4147
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/tracks) */
|
4148
|
+
readonly tracks: ImageTrackList;
|
4149
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/type) */
|
4150
|
+
readonly type: string;
|
4151
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/close) */
|
4152
|
+
close(): void;
|
4153
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/decode) */
|
4154
|
+
decode(options?: ImageDecodeOptions): Promise<ImageDecodeResult>;
|
4155
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/reset) */
|
4156
|
+
reset(): void;
|
4157
|
+
}
|
4158
|
+
|
4159
|
+
declare var ImageDecoder: {
|
4160
|
+
prototype: ImageDecoder;
|
4161
|
+
new(init: ImageDecoderInit): ImageDecoder;
|
4162
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/isTypeSupported_static) */
|
4163
|
+
isTypeSupported(type: string): Promise<boolean>;
|
4164
|
+
};
|
4165
|
+
|
4166
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack) */
|
4167
|
+
interface ImageTrack {
|
4168
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/animated) */
|
4169
|
+
readonly animated: boolean;
|
4170
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/frameCount) */
|
4171
|
+
readonly frameCount: number;
|
4172
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/repetitionCount) */
|
4173
|
+
readonly repetitionCount: number;
|
4174
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/selected) */
|
4175
|
+
selected: boolean;
|
4176
|
+
}
|
4177
|
+
|
4178
|
+
declare var ImageTrack: {
|
4179
|
+
prototype: ImageTrack;
|
4180
|
+
new(): ImageTrack;
|
4181
|
+
};
|
4182
|
+
|
4183
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList) */
|
4184
|
+
interface ImageTrackList {
|
4185
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/length) */
|
4186
|
+
readonly length: number;
|
4187
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/ready) */
|
4188
|
+
readonly ready: Promise<undefined>;
|
4189
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedIndex) */
|
4190
|
+
readonly selectedIndex: number;
|
4191
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedTrack) */
|
4192
|
+
readonly selectedTrack: ImageTrack | null;
|
4193
|
+
[index: number]: ImageTrack;
|
4194
|
+
}
|
4195
|
+
|
4196
|
+
declare var ImageTrackList: {
|
4197
|
+
prototype: ImageTrackList;
|
4198
|
+
new(): ImageTrackList;
|
4199
|
+
};
|
4200
|
+
|
4080
4201
|
interface ImportMeta {
|
4081
4202
|
url: string;
|
4082
4203
|
resolve(specifier: string): string;
|
@@ -4225,7 +4346,23 @@ declare var MessageEvent: {
|
|
4225
4346
|
new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;
|
4226
4347
|
};
|
4227
4348
|
|
4228
|
-
interface
|
4349
|
+
interface MessageEventTargetEventMap {
|
4350
|
+
"message": MessageEvent;
|
4351
|
+
"messageerror": MessageEvent;
|
4352
|
+
}
|
4353
|
+
|
4354
|
+
interface MessageEventTarget<T> {
|
4355
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */
|
4356
|
+
onmessage: ((this: T, ev: MessageEvent) => any) | null;
|
4357
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */
|
4358
|
+
onmessageerror: ((this: T, ev: MessageEvent) => any) | null;
|
4359
|
+
addEventListener<K extends keyof MessageEventTargetEventMap>(type: K, listener: (this: MessageEventTarget<T>, ev: MessageEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
4360
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
4361
|
+
removeEventListener<K extends keyof MessageEventTargetEventMap>(type: K, listener: (this: MessageEventTarget<T>, ev: MessageEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
4362
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
4363
|
+
}
|
4364
|
+
|
4365
|
+
interface MessagePortEventMap extends MessageEventTargetEventMap {
|
4229
4366
|
"message": MessageEvent;
|
4230
4367
|
"messageerror": MessageEvent;
|
4231
4368
|
}
|
@@ -4235,11 +4372,7 @@ interface MessagePortEventMap {
|
|
4235
4372
|
*
|
4236
4373
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort)
|
4237
4374
|
*/
|
4238
|
-
interface MessagePort extends EventTarget {
|
4239
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/message_event) */
|
4240
|
-
onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
|
4241
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/messageerror_event) */
|
4242
|
-
onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
|
4375
|
+
interface MessagePort extends EventTarget, MessageEventTarget<MessagePort> {
|
4243
4376
|
/**
|
4244
4377
|
* Disconnects the port, so that it is no longer active.
|
4245
4378
|
*
|
@@ -5003,6 +5136,69 @@ declare var PushSubscriptionOptions: {
|
|
5003
5136
|
new(): PushSubscriptionOptions;
|
5004
5137
|
};
|
5005
5138
|
|
5139
|
+
interface RTCDataChannelEventMap {
|
5140
|
+
"bufferedamountlow": Event;
|
5141
|
+
"close": Event;
|
5142
|
+
"closing": Event;
|
5143
|
+
"error": Event;
|
5144
|
+
"message": MessageEvent;
|
5145
|
+
"open": Event;
|
5146
|
+
}
|
5147
|
+
|
5148
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel) */
|
5149
|
+
interface RTCDataChannel extends EventTarget {
|
5150
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/binaryType) */
|
5151
|
+
binaryType: BinaryType;
|
5152
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmount) */
|
5153
|
+
readonly bufferedAmount: number;
|
5154
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmountLowThreshold) */
|
5155
|
+
bufferedAmountLowThreshold: number;
|
5156
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/id) */
|
5157
|
+
readonly id: number | null;
|
5158
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/label) */
|
5159
|
+
readonly label: string;
|
5160
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxPacketLifeTime) */
|
5161
|
+
readonly maxPacketLifeTime: number | null;
|
5162
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxRetransmits) */
|
5163
|
+
readonly maxRetransmits: number | null;
|
5164
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/negotiated) */
|
5165
|
+
readonly negotiated: boolean;
|
5166
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedamountlow_event) */
|
5167
|
+
onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null;
|
5168
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close_event) */
|
5169
|
+
onclose: ((this: RTCDataChannel, ev: Event) => any) | null;
|
5170
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/closing_event) */
|
5171
|
+
onclosing: ((this: RTCDataChannel, ev: Event) => any) | null;
|
5172
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/error_event) */
|
5173
|
+
onerror: ((this: RTCDataChannel, ev: Event) => any) | null;
|
5174
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/message_event) */
|
5175
|
+
onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;
|
5176
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/open_event) */
|
5177
|
+
onopen: ((this: RTCDataChannel, ev: Event) => any) | null;
|
5178
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/ordered) */
|
5179
|
+
readonly ordered: boolean;
|
5180
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/protocol) */
|
5181
|
+
readonly protocol: string;
|
5182
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/readyState) */
|
5183
|
+
readonly readyState: RTCDataChannelState;
|
5184
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close) */
|
5185
|
+
close(): void;
|
5186
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/send) */
|
5187
|
+
send(data: string): void;
|
5188
|
+
send(data: Blob): void;
|
5189
|
+
send(data: ArrayBuffer): void;
|
5190
|
+
send(data: ArrayBufferView): void;
|
5191
|
+
addEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
5192
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
5193
|
+
removeEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
5194
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
5195
|
+
}
|
5196
|
+
|
5197
|
+
declare var RTCDataChannel: {
|
5198
|
+
prototype: RTCDataChannel;
|
5199
|
+
new(): RTCDataChannel;
|
5200
|
+
};
|
5201
|
+
|
5006
5202
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame) */
|
5007
5203
|
interface RTCEncodedAudioFrame {
|
5008
5204
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data) */
|
@@ -5256,7 +5452,11 @@ interface Request extends Body {
|
|
5256
5452
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity)
|
5257
5453
|
*/
|
5258
5454
|
readonly integrity: string;
|
5259
|
-
/**
|
5455
|
+
/**
|
5456
|
+
* Returns a boolean indicating whether or not request can outlive the global in which it was created.
|
5457
|
+
*
|
5458
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive)
|
5459
|
+
*/
|
5260
5460
|
readonly keepalive: boolean;
|
5261
5461
|
/**
|
5262
5462
|
* Returns request's HTTP method, which is "GET" by default.
|
@@ -5646,7 +5846,7 @@ interface SubtleCrypto {
|
|
5646
5846
|
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
|
5647
5847
|
exportKey(format: KeyFormat, key: CryptoKey): Promise<ArrayBuffer | JsonWebKey>;
|
5648
5848
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
|
5649
|
-
generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
|
5849
|
+
generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
|
5650
5850
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
5651
5851
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
5652
5852
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
|
@@ -6892,7 +7092,7 @@ interface WebGL2RenderingContextBase {
|
|
6892
7092
|
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: number): void;
|
6893
7093
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clientWaitSync) */
|
6894
7094
|
clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
|
6895
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/
|
7095
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D) */
|
6896
7096
|
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
|
6897
7097
|
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;
|
6898
7098
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D) */
|
@@ -7314,11 +7514,11 @@ interface WebGL2RenderingContextBase {
|
|
7314
7514
|
}
|
7315
7515
|
|
7316
7516
|
interface WebGL2RenderingContextOverloads {
|
7317
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/
|
7517
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bufferData) */
|
7318
7518
|
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
|
7319
7519
|
bufferData(target: GLenum, srcData: AllowSharedBufferSource | null, usage: GLenum): void;
|
7320
7520
|
bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: number, length?: GLuint): void;
|
7321
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/
|
7521
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bufferSubData) */
|
7322
7522
|
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: AllowSharedBufferSource): void;
|
7323
7523
|
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: number, length?: GLuint): void;
|
7324
7524
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */
|
@@ -7359,7 +7559,7 @@ interface WebGL2RenderingContextOverloads {
|
|
7359
7559
|
uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
|
7360
7560
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
7361
7561
|
uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
|
7362
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/
|
7562
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
7363
7563
|
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
|
7364
7564
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
7365
7565
|
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
|
@@ -7773,12 +7973,14 @@ declare var WebGLRenderingContext: {
|
|
7773
7973
|
};
|
7774
7974
|
|
7775
7975
|
interface WebGLRenderingContextBase {
|
7776
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/
|
7976
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawingBufferColorSpace) */
|
7777
7977
|
drawingBufferColorSpace: PredefinedColorSpace;
|
7778
7978
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferHeight) */
|
7779
7979
|
readonly drawingBufferHeight: GLsizei;
|
7780
7980
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferWidth) */
|
7781
7981
|
readonly drawingBufferWidth: GLsizei;
|
7982
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/unpackColorSpace) */
|
7983
|
+
unpackColorSpace: PredefinedColorSpace;
|
7782
7984
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/activeTexture) */
|
7783
7985
|
activeTexture(texture: GLenum): void;
|
7784
7986
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/attachShader) */
|
@@ -7977,6 +8179,7 @@ interface WebGLRenderingContextBase {
|
|
7977
8179
|
isShader(shader: WebGLShader | null): GLboolean;
|
7978
8180
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isTexture) */
|
7979
8181
|
isTexture(texture: WebGLTexture | null): GLboolean;
|
8182
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/lineWidth) */
|
7980
8183
|
lineWidth(width: GLfloat): void;
|
7981
8184
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/linkProgram) */
|
7982
8185
|
linkProgram(program: WebGLProgram): void;
|
@@ -8713,28 +8916,28 @@ interface WindowOrWorkerGlobalScope {
|
|
8713
8916
|
atob(data: string): string;
|
8714
8917
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */
|
8715
8918
|
btoa(data: string): string;
|
8716
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */
|
8919
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearInterval) */
|
8717
8920
|
clearInterval(id: number | undefined): void;
|
8718
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */
|
8921
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout) */
|
8719
8922
|
clearTimeout(id: number | undefined): void;
|
8720
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */
|
8923
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) */
|
8721
8924
|
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
8722
8925
|
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
8723
8926
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */
|
8724
8927
|
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
8725
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */
|
8928
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */
|
8726
8929
|
queueMicrotask(callback: VoidFunction): void;
|
8727
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */
|
8930
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */
|
8728
8931
|
reportError(e: any): void;
|
8729
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */
|
8932
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */
|
8730
8933
|
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
8731
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */
|
8934
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */
|
8732
8935
|
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
8733
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */
|
8936
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/structuredClone) */
|
8734
8937
|
structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;
|
8735
8938
|
}
|
8736
8939
|
|
8737
|
-
interface WorkerEventMap extends AbstractWorkerEventMap {
|
8940
|
+
interface WorkerEventMap extends AbstractWorkerEventMap, MessageEventTargetEventMap {
|
8738
8941
|
"message": MessageEvent;
|
8739
8942
|
"messageerror": MessageEvent;
|
8740
8943
|
}
|
@@ -8744,11 +8947,7 @@ interface WorkerEventMap extends AbstractWorkerEventMap {
|
|
8744
8947
|
*
|
8745
8948
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker)
|
8746
8949
|
*/
|
8747
|
-
interface Worker extends EventTarget, AbstractWorker {
|
8748
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/message_event) */
|
8749
|
-
onmessage: ((this: Worker, ev: MessageEvent) => any) | null;
|
8750
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/messageerror_event) */
|
8751
|
-
onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;
|
8950
|
+
interface Worker extends EventTarget, AbstractWorker, MessageEventTarget<Worker> {
|
8752
8951
|
/**
|
8753
8952
|
* Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned.
|
8754
8953
|
*
|
@@ -8877,6 +9076,12 @@ interface WorkerNavigator extends NavigatorBadge, NavigatorConcurrentHardware, N
|
|
8877
9076
|
readonly mediaCapabilities: MediaCapabilities;
|
8878
9077
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/permissions) */
|
8879
9078
|
readonly permissions: Permissions;
|
9079
|
+
/**
|
9080
|
+
* Available only in secure contexts.
|
9081
|
+
*
|
9082
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/serviceWorker)
|
9083
|
+
*/
|
9084
|
+
readonly serviceWorker: ServiceWorkerContainer;
|
8880
9085
|
}
|
8881
9086
|
|
8882
9087
|
declare var WorkerNavigator: {
|
@@ -9434,10 +9639,6 @@ interface WebCodecsErrorCallback {
|
|
9434
9639
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/name)
|
9435
9640
|
*/
|
9436
9641
|
declare var name: string;
|
9437
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */
|
9438
|
-
declare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
9439
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */
|
9440
|
-
declare var onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
9441
9642
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/rtctransform_event) */
|
9442
9643
|
declare var onrtctransform: ((this: DedicatedWorkerGlobalScope, ev: RTCTransformEvent) => any) | null;
|
9443
9644
|
/**
|
@@ -9525,29 +9726,33 @@ declare var performance: Performance;
|
|
9525
9726
|
declare function atob(data: string): string;
|
9526
9727
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */
|
9527
9728
|
declare function btoa(data: string): string;
|
9528
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */
|
9729
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearInterval) */
|
9529
9730
|
declare function clearInterval(id: number | undefined): void;
|
9530
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */
|
9731
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout) */
|
9531
9732
|
declare function clearTimeout(id: number | undefined): void;
|
9532
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */
|
9733
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) */
|
9533
9734
|
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
9534
9735
|
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
9535
9736
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */
|
9536
9737
|
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
9537
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */
|
9738
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */
|
9538
9739
|
declare function queueMicrotask(callback: VoidFunction): void;
|
9539
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */
|
9740
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */
|
9540
9741
|
declare function reportError(e: any): void;
|
9541
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */
|
9742
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */
|
9542
9743
|
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
9543
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */
|
9744
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */
|
9544
9745
|
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
9545
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */
|
9746
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/structuredClone) */
|
9546
9747
|
declare function structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;
|
9547
9748
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */
|
9548
9749
|
declare function cancelAnimationFrame(handle: number): void;
|
9549
9750
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */
|
9550
9751
|
declare function requestAnimationFrame(callback: FrameRequestCallback): number;
|
9752
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */
|
9753
|
+
declare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
9754
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */
|
9755
|
+
declare var onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
9551
9756
|
declare function addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
9552
9757
|
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
9553
9758
|
declare function removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
@@ -9585,6 +9790,7 @@ type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
9585
9790
|
type HeadersInit = [string, string][] | Record<string, string> | Headers;
|
9586
9791
|
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
|
9587
9792
|
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
|
9793
|
+
type ImageBufferSource = AllowSharedBufferSource | ReadableStream;
|
9588
9794
|
type Int32List = Int32Array | GLint[];
|
9589
9795
|
type MessageEventSource = MessagePort | ServiceWorker;
|
9590
9796
|
type NamedCurve = string;
|
@@ -9599,7 +9805,7 @@ type ReportList = Report[];
|
|
9599
9805
|
type RequestInfo = Request | string;
|
9600
9806
|
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame;
|
9601
9807
|
type TimerHandler = string | Function;
|
9602
|
-
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | ArrayBuffer;
|
9808
|
+
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer;
|
9603
9809
|
type Uint32List = Uint32Array | GLuint[];
|
9604
9810
|
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
|
9605
9811
|
type AlphaOption = "discard" | "keep";
|
@@ -9653,11 +9859,12 @@ type NotificationDirection = "auto" | "ltr" | "rtl";
|
|
9653
9859
|
type NotificationPermission = "default" | "denied" | "granted";
|
9654
9860
|
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
|
9655
9861
|
type OpusBitstreamFormat = "ogg" | "opus";
|
9656
|
-
type PermissionName = "geolocation" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
|
9862
|
+
type PermissionName = "camera" | "geolocation" | "microphone" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
|
9657
9863
|
type PermissionState = "denied" | "granted" | "prompt";
|
9658
9864
|
type PredefinedColorSpace = "display-p3" | "srgb";
|
9659
9865
|
type PremultiplyAlpha = "default" | "none" | "premultiply";
|
9660
9866
|
type PushEncryptionKeyName = "auth" | "p256dh";
|
9867
|
+
type RTCDataChannelState = "closed" | "closing" | "connecting" | "open";
|
9661
9868
|
type RTCEncodedVideoFrameType = "delta" | "empty" | "key";
|
9662
9869
|
type ReadableStreamReaderMode = "byob";
|
9663
9870
|
type ReadableStreamType = "bytes";
|
@@ -20,11 +20,6 @@ and limitations under the License.
|
|
20
20
|
/// Worker Iterable APIs
|
21
21
|
/////////////////////////////
|
22
22
|
|
23
|
-
interface AbortSignal {
|
24
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */
|
25
|
-
any(signals: Iterable<AbortSignal>): AbortSignal;
|
26
|
-
}
|
27
|
-
|
28
23
|
interface CSSNumericArray {
|
29
24
|
[Symbol.iterator](): ArrayIterator<CSSNumericValue>;
|
30
25
|
entries(): ArrayIterator<[number, CSSNumericValue]>;
|
@@ -120,6 +115,10 @@ interface IDBObjectStore {
|
|
120
115
|
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
|
121
116
|
}
|
122
117
|
|
118
|
+
interface ImageTrackList {
|
119
|
+
[Symbol.iterator](): ArrayIterator<ImageTrack>;
|
120
|
+
}
|
121
|
+
|
123
122
|
interface MessageEvent<T = any> {
|
124
123
|
/** @deprecated */
|
125
124
|
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
|
@@ -140,7 +139,7 @@ interface SubtleCrypto {
|
|
140
139
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */
|
141
140
|
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
142
141
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
|
143
|
-
generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
|
142
|
+
generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
|
144
143
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
145
144
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
146
145
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
|
@@ -243,7 +242,7 @@ interface WebGL2RenderingContextOverloads {
|
|
243
242
|
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
244
243
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
245
244
|
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
246
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/
|
245
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
247
246
|
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
248
247
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
249
248
|
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|