@types/serviceworker 0.0.145 → 0.0.147
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 +155 -0
- package/package.json +1 -1
- package/ts5.5/index.d.ts +155 -0
- package/ts5.6/index.d.ts +155 -0
package/README.md
CHANGED
|
@@ -28,4 +28,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
28
28
|
|
|
29
29
|
## Deploy Metadata
|
|
30
30
|
|
|
31
|
-
You can read what changed in version 0.0.
|
|
31
|
+
You can read what changed in version 0.0.147 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.147.
|
package/index.d.ts
CHANGED
|
@@ -271,6 +271,10 @@ interface FontFaceSetLoadEventInit extends EventInit {
|
|
|
271
271
|
fontfaces?: FontFace[];
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
+
interface GPUPipelineErrorInit {
|
|
275
|
+
reason: GPUPipelineErrorReason;
|
|
276
|
+
}
|
|
277
|
+
|
|
274
278
|
interface GetNotificationOptions {
|
|
275
279
|
tag?: string;
|
|
276
280
|
}
|
|
@@ -650,6 +654,12 @@ interface RsaPssParams extends Algorithm {
|
|
|
650
654
|
saltLength: number;
|
|
651
655
|
}
|
|
652
656
|
|
|
657
|
+
interface SchedulerPostTaskOptions {
|
|
658
|
+
delay?: number;
|
|
659
|
+
priority?: TaskPriority;
|
|
660
|
+
signal?: AbortSignal;
|
|
661
|
+
}
|
|
662
|
+
|
|
653
663
|
interface SecurityPolicyViolationEventInit extends EventInit {
|
|
654
664
|
blockedURI?: string;
|
|
655
665
|
columnNumber?: number;
|
|
@@ -698,6 +708,18 @@ interface StructuredSerializeOptions {
|
|
|
698
708
|
transfer?: Transferable[];
|
|
699
709
|
}
|
|
700
710
|
|
|
711
|
+
interface TaskControllerInit {
|
|
712
|
+
priority?: TaskPriority;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
interface TaskPriorityChangeEventInit extends EventInit {
|
|
716
|
+
previousPriority: TaskPriority;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
interface TaskSignalAnyInit {
|
|
720
|
+
priority?: TaskPriority | TaskSignal;
|
|
721
|
+
}
|
|
722
|
+
|
|
701
723
|
interface TextDecodeOptions {
|
|
702
724
|
stream?: boolean;
|
|
703
725
|
}
|
|
@@ -4113,6 +4135,31 @@ interface GPUError {
|
|
|
4113
4135
|
readonly message: string;
|
|
4114
4136
|
}
|
|
4115
4137
|
|
|
4138
|
+
declare var GPUError: {
|
|
4139
|
+
prototype: GPUError;
|
|
4140
|
+
new(): GPUError;
|
|
4141
|
+
};
|
|
4142
|
+
|
|
4143
|
+
/**
|
|
4144
|
+
* The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure.
|
|
4145
|
+
* Available only in secure contexts.
|
|
4146
|
+
*
|
|
4147
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError)
|
|
4148
|
+
*/
|
|
4149
|
+
interface GPUPipelineError extends DOMException {
|
|
4150
|
+
/**
|
|
4151
|
+
* The **`reason`** read-only property of the GPUPipelineError interface defines the reason the pipeline creation failed in a machine-readable way.
|
|
4152
|
+
*
|
|
4153
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError/reason)
|
|
4154
|
+
*/
|
|
4155
|
+
readonly reason: GPUPipelineErrorReason;
|
|
4156
|
+
}
|
|
4157
|
+
|
|
4158
|
+
declare var GPUPipelineError: {
|
|
4159
|
+
prototype: GPUPipelineError;
|
|
4160
|
+
new(message: string, options: GPUPipelineErrorInit): GPUPipelineError;
|
|
4161
|
+
};
|
|
4162
|
+
|
|
4116
4163
|
interface GenericTransformStream {
|
|
4117
4164
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
|
|
4118
4165
|
readonly readable: ReadableStream;
|
|
@@ -6769,6 +6816,31 @@ declare var Response: {
|
|
|
6769
6816
|
redirect(url: string | URL, status?: number): Response;
|
|
6770
6817
|
};
|
|
6771
6818
|
|
|
6819
|
+
/**
|
|
6820
|
+
* The **`Scheduler`** interface of the Prioritized Task Scheduling API provides methods for scheduling prioritized tasks.
|
|
6821
|
+
*
|
|
6822
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler)
|
|
6823
|
+
*/
|
|
6824
|
+
interface Scheduler {
|
|
6825
|
+
/**
|
|
6826
|
+
* The **`postTask()`** method of the Scheduler interface is used for adding tasks to be scheduled according to their priority.
|
|
6827
|
+
*
|
|
6828
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler/postTask)
|
|
6829
|
+
*/
|
|
6830
|
+
postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise<any>;
|
|
6831
|
+
/**
|
|
6832
|
+
* The **`yield()`** method of the Scheduler interface is used for yielding to the main thread during a task and continuing execution later, with the continuation scheduled as a prioritized task (see the Prioritized Task Scheduling API for more information).
|
|
6833
|
+
*
|
|
6834
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler/yield)
|
|
6835
|
+
*/
|
|
6836
|
+
yield(): Promise<void>;
|
|
6837
|
+
}
|
|
6838
|
+
|
|
6839
|
+
declare var Scheduler: {
|
|
6840
|
+
prototype: Scheduler;
|
|
6841
|
+
new(): Scheduler;
|
|
6842
|
+
};
|
|
6843
|
+
|
|
6772
6844
|
/**
|
|
6773
6845
|
* The **`SecurityPolicyViolationEvent`** interface inherits from Event, and represents the event object of a `securitypolicyviolation` event sent on an Element/securitypolicyviolation_event, Document/securitypolicyviolation_event, or WorkerGlobalScope/securitypolicyviolation_event when its Content Security Policy (CSP) is violated.
|
|
6774
6846
|
*
|
|
@@ -7302,6 +7374,79 @@ declare var SubtleCrypto: {
|
|
|
7302
7374
|
new(): SubtleCrypto;
|
|
7303
7375
|
};
|
|
7304
7376
|
|
|
7377
|
+
/**
|
|
7378
|
+
* The **`TaskController`** interface of the Prioritized Task Scheduling API represents a controller object that can be used to both abort and change the priority of one or more prioritized tasks.
|
|
7379
|
+
*
|
|
7380
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskController)
|
|
7381
|
+
*/
|
|
7382
|
+
interface TaskController extends AbortController {
|
|
7383
|
+
/**
|
|
7384
|
+
* The **`setPriority()`** method of the TaskController interface can be called to set a new priority for this controller's `signal`.
|
|
7385
|
+
*
|
|
7386
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskController/setPriority)
|
|
7387
|
+
*/
|
|
7388
|
+
setPriority(priority: TaskPriority): void;
|
|
7389
|
+
}
|
|
7390
|
+
|
|
7391
|
+
declare var TaskController: {
|
|
7392
|
+
prototype: TaskController;
|
|
7393
|
+
new(init?: TaskControllerInit): TaskController;
|
|
7394
|
+
};
|
|
7395
|
+
|
|
7396
|
+
/**
|
|
7397
|
+
* The **`TaskPriorityChangeEvent`** is the interface for the `prioritychange` event.
|
|
7398
|
+
*
|
|
7399
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskPriorityChangeEvent)
|
|
7400
|
+
*/
|
|
7401
|
+
interface TaskPriorityChangeEvent extends Event {
|
|
7402
|
+
/**
|
|
7403
|
+
* The **`previousPriority`** read-only property of the TaskPriorityChangeEvent interface returns the priority of the corresponding TaskSignal before it was changed and this `prioritychange` event was emitted.
|
|
7404
|
+
*
|
|
7405
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskPriorityChangeEvent/previousPriority)
|
|
7406
|
+
*/
|
|
7407
|
+
readonly previousPriority: TaskPriority;
|
|
7408
|
+
}
|
|
7409
|
+
|
|
7410
|
+
declare var TaskPriorityChangeEvent: {
|
|
7411
|
+
prototype: TaskPriorityChangeEvent;
|
|
7412
|
+
new(type: string, priorityChangeEventInitDict: TaskPriorityChangeEventInit): TaskPriorityChangeEvent;
|
|
7413
|
+
};
|
|
7414
|
+
|
|
7415
|
+
interface TaskSignalEventMap extends AbortSignalEventMap {
|
|
7416
|
+
"prioritychange": TaskPriorityChangeEvent;
|
|
7417
|
+
}
|
|
7418
|
+
|
|
7419
|
+
/**
|
|
7420
|
+
* The **`TaskSignal`** interface of the Prioritized Task Scheduling API represents a signal object that allows you to communicate with a prioritized task, and abort it or change the priority (if required) via a TaskController object.
|
|
7421
|
+
*
|
|
7422
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskSignal)
|
|
7423
|
+
*/
|
|
7424
|
+
interface TaskSignal extends AbortSignal {
|
|
7425
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskSignal/prioritychange_event) */
|
|
7426
|
+
onprioritychange: ((this: TaskSignal, ev: TaskPriorityChangeEvent) => any) | null;
|
|
7427
|
+
/**
|
|
7428
|
+
* The read-only **`priority`** property of the TaskSignal interface indicates the signal priority.
|
|
7429
|
+
*
|
|
7430
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskSignal/priority)
|
|
7431
|
+
*/
|
|
7432
|
+
readonly priority: TaskPriority;
|
|
7433
|
+
addEventListener<K extends keyof TaskSignalEventMap>(type: K, listener: (this: TaskSignal, ev: TaskSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
7434
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
7435
|
+
removeEventListener<K extends keyof TaskSignalEventMap>(type: K, listener: (this: TaskSignal, ev: TaskSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
7436
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
7437
|
+
}
|
|
7438
|
+
|
|
7439
|
+
declare var TaskSignal: {
|
|
7440
|
+
prototype: TaskSignal;
|
|
7441
|
+
new(): TaskSignal;
|
|
7442
|
+
/**
|
|
7443
|
+
* The **`TaskSignal.any()`** static method takes an iterable of AbortSignal objects and returns a TaskSignal.
|
|
7444
|
+
*
|
|
7445
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskSignal/any_static)
|
|
7446
|
+
*/
|
|
7447
|
+
any(signals: AbortSignal[], init?: TaskSignalAnyInit): TaskSignal;
|
|
7448
|
+
};
|
|
7449
|
+
|
|
7305
7450
|
/**
|
|
7306
7451
|
* The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, or `GBK`.
|
|
7307
7452
|
*
|
|
@@ -10604,6 +10749,8 @@ interface WindowOrWorkerGlobalScope {
|
|
|
10604
10749
|
readonly origin: string;
|
|
10605
10750
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */
|
|
10606
10751
|
readonly performance: Performance;
|
|
10752
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scheduler) */
|
|
10753
|
+
readonly scheduler: Scheduler;
|
|
10607
10754
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */
|
|
10608
10755
|
atob(data: string): string;
|
|
10609
10756
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */
|
|
@@ -11273,6 +11420,10 @@ interface ReportingObserverCallback {
|
|
|
11273
11420
|
(reports: Report[], observer: ReportingObserver): void;
|
|
11274
11421
|
}
|
|
11275
11422
|
|
|
11423
|
+
interface SchedulerPostTaskCallback {
|
|
11424
|
+
(): any;
|
|
11425
|
+
}
|
|
11426
|
+
|
|
11276
11427
|
interface TransformerFlushCallback<O> {
|
|
11277
11428
|
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
|
|
11278
11429
|
}
|
|
@@ -11435,6 +11586,8 @@ declare var isSecureContext: boolean;
|
|
|
11435
11586
|
declare var origin: string;
|
|
11436
11587
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */
|
|
11437
11588
|
declare var performance: Performance;
|
|
11589
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scheduler) */
|
|
11590
|
+
declare var scheduler: Scheduler;
|
|
11438
11591
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */
|
|
11439
11592
|
declare function atob(data: string): string;
|
|
11440
11593
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */
|
|
@@ -11540,6 +11693,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
11540
11693
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
11541
11694
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
11542
11695
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
11696
|
+
type GPUPipelineErrorReason = "internal" | "validation";
|
|
11543
11697
|
type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
|
|
11544
11698
|
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|
|
11545
11699
|
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
|
|
@@ -11577,6 +11731,7 @@ type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaquer
|
|
|
11577
11731
|
type SecurityPolicyViolationEventDisposition = "enforce" | "report";
|
|
11578
11732
|
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
|
|
11579
11733
|
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
|
|
11734
|
+
type TaskPriority = "background" | "user-blocking" | "user-visible";
|
|
11580
11735
|
type TransferFunction = "hlg" | "pq" | "srgb";
|
|
11581
11736
|
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
|
11582
11737
|
type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -271,6 +271,10 @@ interface FontFaceSetLoadEventInit extends EventInit {
|
|
|
271
271
|
fontfaces?: FontFace[];
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
+
interface GPUPipelineErrorInit {
|
|
275
|
+
reason: GPUPipelineErrorReason;
|
|
276
|
+
}
|
|
277
|
+
|
|
274
278
|
interface GetNotificationOptions {
|
|
275
279
|
tag?: string;
|
|
276
280
|
}
|
|
@@ -650,6 +654,12 @@ interface RsaPssParams extends Algorithm {
|
|
|
650
654
|
saltLength: number;
|
|
651
655
|
}
|
|
652
656
|
|
|
657
|
+
interface SchedulerPostTaskOptions {
|
|
658
|
+
delay?: number;
|
|
659
|
+
priority?: TaskPriority;
|
|
660
|
+
signal?: AbortSignal;
|
|
661
|
+
}
|
|
662
|
+
|
|
653
663
|
interface SecurityPolicyViolationEventInit extends EventInit {
|
|
654
664
|
blockedURI?: string;
|
|
655
665
|
columnNumber?: number;
|
|
@@ -698,6 +708,18 @@ interface StructuredSerializeOptions {
|
|
|
698
708
|
transfer?: Transferable[];
|
|
699
709
|
}
|
|
700
710
|
|
|
711
|
+
interface TaskControllerInit {
|
|
712
|
+
priority?: TaskPriority;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
interface TaskPriorityChangeEventInit extends EventInit {
|
|
716
|
+
previousPriority: TaskPriority;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
interface TaskSignalAnyInit {
|
|
720
|
+
priority?: TaskPriority | TaskSignal;
|
|
721
|
+
}
|
|
722
|
+
|
|
701
723
|
interface TextDecodeOptions {
|
|
702
724
|
stream?: boolean;
|
|
703
725
|
}
|
|
@@ -4113,6 +4135,31 @@ interface GPUError {
|
|
|
4113
4135
|
readonly message: string;
|
|
4114
4136
|
}
|
|
4115
4137
|
|
|
4138
|
+
declare var GPUError: {
|
|
4139
|
+
prototype: GPUError;
|
|
4140
|
+
new(): GPUError;
|
|
4141
|
+
};
|
|
4142
|
+
|
|
4143
|
+
/**
|
|
4144
|
+
* The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure.
|
|
4145
|
+
* Available only in secure contexts.
|
|
4146
|
+
*
|
|
4147
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError)
|
|
4148
|
+
*/
|
|
4149
|
+
interface GPUPipelineError extends DOMException {
|
|
4150
|
+
/**
|
|
4151
|
+
* The **`reason`** read-only property of the GPUPipelineError interface defines the reason the pipeline creation failed in a machine-readable way.
|
|
4152
|
+
*
|
|
4153
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError/reason)
|
|
4154
|
+
*/
|
|
4155
|
+
readonly reason: GPUPipelineErrorReason;
|
|
4156
|
+
}
|
|
4157
|
+
|
|
4158
|
+
declare var GPUPipelineError: {
|
|
4159
|
+
prototype: GPUPipelineError;
|
|
4160
|
+
new(message: string, options: GPUPipelineErrorInit): GPUPipelineError;
|
|
4161
|
+
};
|
|
4162
|
+
|
|
4116
4163
|
interface GenericTransformStream {
|
|
4117
4164
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
|
|
4118
4165
|
readonly readable: ReadableStream;
|
|
@@ -6769,6 +6816,31 @@ declare var Response: {
|
|
|
6769
6816
|
redirect(url: string | URL, status?: number): Response;
|
|
6770
6817
|
};
|
|
6771
6818
|
|
|
6819
|
+
/**
|
|
6820
|
+
* The **`Scheduler`** interface of the Prioritized Task Scheduling API provides methods for scheduling prioritized tasks.
|
|
6821
|
+
*
|
|
6822
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler)
|
|
6823
|
+
*/
|
|
6824
|
+
interface Scheduler {
|
|
6825
|
+
/**
|
|
6826
|
+
* The **`postTask()`** method of the Scheduler interface is used for adding tasks to be scheduled according to their priority.
|
|
6827
|
+
*
|
|
6828
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler/postTask)
|
|
6829
|
+
*/
|
|
6830
|
+
postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise<any>;
|
|
6831
|
+
/**
|
|
6832
|
+
* The **`yield()`** method of the Scheduler interface is used for yielding to the main thread during a task and continuing execution later, with the continuation scheduled as a prioritized task (see the Prioritized Task Scheduling API for more information).
|
|
6833
|
+
*
|
|
6834
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler/yield)
|
|
6835
|
+
*/
|
|
6836
|
+
yield(): Promise<void>;
|
|
6837
|
+
}
|
|
6838
|
+
|
|
6839
|
+
declare var Scheduler: {
|
|
6840
|
+
prototype: Scheduler;
|
|
6841
|
+
new(): Scheduler;
|
|
6842
|
+
};
|
|
6843
|
+
|
|
6772
6844
|
/**
|
|
6773
6845
|
* The **`SecurityPolicyViolationEvent`** interface inherits from Event, and represents the event object of a `securitypolicyviolation` event sent on an Element/securitypolicyviolation_event, Document/securitypolicyviolation_event, or WorkerGlobalScope/securitypolicyviolation_event when its Content Security Policy (CSP) is violated.
|
|
6774
6846
|
*
|
|
@@ -7302,6 +7374,79 @@ declare var SubtleCrypto: {
|
|
|
7302
7374
|
new(): SubtleCrypto;
|
|
7303
7375
|
};
|
|
7304
7376
|
|
|
7377
|
+
/**
|
|
7378
|
+
* The **`TaskController`** interface of the Prioritized Task Scheduling API represents a controller object that can be used to both abort and change the priority of one or more prioritized tasks.
|
|
7379
|
+
*
|
|
7380
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskController)
|
|
7381
|
+
*/
|
|
7382
|
+
interface TaskController extends AbortController {
|
|
7383
|
+
/**
|
|
7384
|
+
* The **`setPriority()`** method of the TaskController interface can be called to set a new priority for this controller's `signal`.
|
|
7385
|
+
*
|
|
7386
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskController/setPriority)
|
|
7387
|
+
*/
|
|
7388
|
+
setPriority(priority: TaskPriority): void;
|
|
7389
|
+
}
|
|
7390
|
+
|
|
7391
|
+
declare var TaskController: {
|
|
7392
|
+
prototype: TaskController;
|
|
7393
|
+
new(init?: TaskControllerInit): TaskController;
|
|
7394
|
+
};
|
|
7395
|
+
|
|
7396
|
+
/**
|
|
7397
|
+
* The **`TaskPriorityChangeEvent`** is the interface for the `prioritychange` event.
|
|
7398
|
+
*
|
|
7399
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskPriorityChangeEvent)
|
|
7400
|
+
*/
|
|
7401
|
+
interface TaskPriorityChangeEvent extends Event {
|
|
7402
|
+
/**
|
|
7403
|
+
* The **`previousPriority`** read-only property of the TaskPriorityChangeEvent interface returns the priority of the corresponding TaskSignal before it was changed and this `prioritychange` event was emitted.
|
|
7404
|
+
*
|
|
7405
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskPriorityChangeEvent/previousPriority)
|
|
7406
|
+
*/
|
|
7407
|
+
readonly previousPriority: TaskPriority;
|
|
7408
|
+
}
|
|
7409
|
+
|
|
7410
|
+
declare var TaskPriorityChangeEvent: {
|
|
7411
|
+
prototype: TaskPriorityChangeEvent;
|
|
7412
|
+
new(type: string, priorityChangeEventInitDict: TaskPriorityChangeEventInit): TaskPriorityChangeEvent;
|
|
7413
|
+
};
|
|
7414
|
+
|
|
7415
|
+
interface TaskSignalEventMap extends AbortSignalEventMap {
|
|
7416
|
+
"prioritychange": TaskPriorityChangeEvent;
|
|
7417
|
+
}
|
|
7418
|
+
|
|
7419
|
+
/**
|
|
7420
|
+
* The **`TaskSignal`** interface of the Prioritized Task Scheduling API represents a signal object that allows you to communicate with a prioritized task, and abort it or change the priority (if required) via a TaskController object.
|
|
7421
|
+
*
|
|
7422
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskSignal)
|
|
7423
|
+
*/
|
|
7424
|
+
interface TaskSignal extends AbortSignal {
|
|
7425
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskSignal/prioritychange_event) */
|
|
7426
|
+
onprioritychange: ((this: TaskSignal, ev: TaskPriorityChangeEvent) => any) | null;
|
|
7427
|
+
/**
|
|
7428
|
+
* The read-only **`priority`** property of the TaskSignal interface indicates the signal priority.
|
|
7429
|
+
*
|
|
7430
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskSignal/priority)
|
|
7431
|
+
*/
|
|
7432
|
+
readonly priority: TaskPriority;
|
|
7433
|
+
addEventListener<K extends keyof TaskSignalEventMap>(type: K, listener: (this: TaskSignal, ev: TaskSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
7434
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
7435
|
+
removeEventListener<K extends keyof TaskSignalEventMap>(type: K, listener: (this: TaskSignal, ev: TaskSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
7436
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
7437
|
+
}
|
|
7438
|
+
|
|
7439
|
+
declare var TaskSignal: {
|
|
7440
|
+
prototype: TaskSignal;
|
|
7441
|
+
new(): TaskSignal;
|
|
7442
|
+
/**
|
|
7443
|
+
* The **`TaskSignal.any()`** static method takes an iterable of AbortSignal objects and returns a TaskSignal.
|
|
7444
|
+
*
|
|
7445
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskSignal/any_static)
|
|
7446
|
+
*/
|
|
7447
|
+
any(signals: AbortSignal[], init?: TaskSignalAnyInit): TaskSignal;
|
|
7448
|
+
};
|
|
7449
|
+
|
|
7305
7450
|
/**
|
|
7306
7451
|
* The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, or `GBK`.
|
|
7307
7452
|
*
|
|
@@ -10604,6 +10749,8 @@ interface WindowOrWorkerGlobalScope {
|
|
|
10604
10749
|
readonly origin: string;
|
|
10605
10750
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */
|
|
10606
10751
|
readonly performance: Performance;
|
|
10752
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scheduler) */
|
|
10753
|
+
readonly scheduler: Scheduler;
|
|
10607
10754
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */
|
|
10608
10755
|
atob(data: string): string;
|
|
10609
10756
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */
|
|
@@ -11273,6 +11420,10 @@ interface ReportingObserverCallback {
|
|
|
11273
11420
|
(reports: Report[], observer: ReportingObserver): void;
|
|
11274
11421
|
}
|
|
11275
11422
|
|
|
11423
|
+
interface SchedulerPostTaskCallback {
|
|
11424
|
+
(): any;
|
|
11425
|
+
}
|
|
11426
|
+
|
|
11276
11427
|
interface TransformerFlushCallback<O> {
|
|
11277
11428
|
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
|
|
11278
11429
|
}
|
|
@@ -11435,6 +11586,8 @@ declare var isSecureContext: boolean;
|
|
|
11435
11586
|
declare var origin: string;
|
|
11436
11587
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */
|
|
11437
11588
|
declare var performance: Performance;
|
|
11589
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scheduler) */
|
|
11590
|
+
declare var scheduler: Scheduler;
|
|
11438
11591
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */
|
|
11439
11592
|
declare function atob(data: string): string;
|
|
11440
11593
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */
|
|
@@ -11540,6 +11693,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
11540
11693
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
11541
11694
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
11542
11695
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
11696
|
+
type GPUPipelineErrorReason = "internal" | "validation";
|
|
11543
11697
|
type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
|
|
11544
11698
|
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|
|
11545
11699
|
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
|
|
@@ -11577,6 +11731,7 @@ type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaquer
|
|
|
11577
11731
|
type SecurityPolicyViolationEventDisposition = "enforce" | "report";
|
|
11578
11732
|
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
|
|
11579
11733
|
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
|
|
11734
|
+
type TaskPriority = "background" | "user-blocking" | "user-visible";
|
|
11580
11735
|
type TransferFunction = "hlg" | "pq" | "srgb";
|
|
11581
11736
|
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
|
11582
11737
|
type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -271,6 +271,10 @@ interface FontFaceSetLoadEventInit extends EventInit {
|
|
|
271
271
|
fontfaces?: FontFace[];
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
+
interface GPUPipelineErrorInit {
|
|
275
|
+
reason: GPUPipelineErrorReason;
|
|
276
|
+
}
|
|
277
|
+
|
|
274
278
|
interface GetNotificationOptions {
|
|
275
279
|
tag?: string;
|
|
276
280
|
}
|
|
@@ -650,6 +654,12 @@ interface RsaPssParams extends Algorithm {
|
|
|
650
654
|
saltLength: number;
|
|
651
655
|
}
|
|
652
656
|
|
|
657
|
+
interface SchedulerPostTaskOptions {
|
|
658
|
+
delay?: number;
|
|
659
|
+
priority?: TaskPriority;
|
|
660
|
+
signal?: AbortSignal;
|
|
661
|
+
}
|
|
662
|
+
|
|
653
663
|
interface SecurityPolicyViolationEventInit extends EventInit {
|
|
654
664
|
blockedURI?: string;
|
|
655
665
|
columnNumber?: number;
|
|
@@ -698,6 +708,18 @@ interface StructuredSerializeOptions {
|
|
|
698
708
|
transfer?: Transferable[];
|
|
699
709
|
}
|
|
700
710
|
|
|
711
|
+
interface TaskControllerInit {
|
|
712
|
+
priority?: TaskPriority;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
interface TaskPriorityChangeEventInit extends EventInit {
|
|
716
|
+
previousPriority: TaskPriority;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
interface TaskSignalAnyInit {
|
|
720
|
+
priority?: TaskPriority | TaskSignal;
|
|
721
|
+
}
|
|
722
|
+
|
|
701
723
|
interface TextDecodeOptions {
|
|
702
724
|
stream?: boolean;
|
|
703
725
|
}
|
|
@@ -4113,6 +4135,31 @@ interface GPUError {
|
|
|
4113
4135
|
readonly message: string;
|
|
4114
4136
|
}
|
|
4115
4137
|
|
|
4138
|
+
declare var GPUError: {
|
|
4139
|
+
prototype: GPUError;
|
|
4140
|
+
new(): GPUError;
|
|
4141
|
+
};
|
|
4142
|
+
|
|
4143
|
+
/**
|
|
4144
|
+
* The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure.
|
|
4145
|
+
* Available only in secure contexts.
|
|
4146
|
+
*
|
|
4147
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError)
|
|
4148
|
+
*/
|
|
4149
|
+
interface GPUPipelineError extends DOMException {
|
|
4150
|
+
/**
|
|
4151
|
+
* The **`reason`** read-only property of the GPUPipelineError interface defines the reason the pipeline creation failed in a machine-readable way.
|
|
4152
|
+
*
|
|
4153
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError/reason)
|
|
4154
|
+
*/
|
|
4155
|
+
readonly reason: GPUPipelineErrorReason;
|
|
4156
|
+
}
|
|
4157
|
+
|
|
4158
|
+
declare var GPUPipelineError: {
|
|
4159
|
+
prototype: GPUPipelineError;
|
|
4160
|
+
new(message: string, options: GPUPipelineErrorInit): GPUPipelineError;
|
|
4161
|
+
};
|
|
4162
|
+
|
|
4116
4163
|
interface GenericTransformStream {
|
|
4117
4164
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
|
|
4118
4165
|
readonly readable: ReadableStream;
|
|
@@ -6769,6 +6816,31 @@ declare var Response: {
|
|
|
6769
6816
|
redirect(url: string | URL, status?: number): Response;
|
|
6770
6817
|
};
|
|
6771
6818
|
|
|
6819
|
+
/**
|
|
6820
|
+
* The **`Scheduler`** interface of the Prioritized Task Scheduling API provides methods for scheduling prioritized tasks.
|
|
6821
|
+
*
|
|
6822
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler)
|
|
6823
|
+
*/
|
|
6824
|
+
interface Scheduler {
|
|
6825
|
+
/**
|
|
6826
|
+
* The **`postTask()`** method of the Scheduler interface is used for adding tasks to be scheduled according to their priority.
|
|
6827
|
+
*
|
|
6828
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler/postTask)
|
|
6829
|
+
*/
|
|
6830
|
+
postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise<any>;
|
|
6831
|
+
/**
|
|
6832
|
+
* The **`yield()`** method of the Scheduler interface is used for yielding to the main thread during a task and continuing execution later, with the continuation scheduled as a prioritized task (see the Prioritized Task Scheduling API for more information).
|
|
6833
|
+
*
|
|
6834
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler/yield)
|
|
6835
|
+
*/
|
|
6836
|
+
yield(): Promise<void>;
|
|
6837
|
+
}
|
|
6838
|
+
|
|
6839
|
+
declare var Scheduler: {
|
|
6840
|
+
prototype: Scheduler;
|
|
6841
|
+
new(): Scheduler;
|
|
6842
|
+
};
|
|
6843
|
+
|
|
6772
6844
|
/**
|
|
6773
6845
|
* The **`SecurityPolicyViolationEvent`** interface inherits from Event, and represents the event object of a `securitypolicyviolation` event sent on an Element/securitypolicyviolation_event, Document/securitypolicyviolation_event, or WorkerGlobalScope/securitypolicyviolation_event when its Content Security Policy (CSP) is violated.
|
|
6774
6846
|
*
|
|
@@ -7302,6 +7374,79 @@ declare var SubtleCrypto: {
|
|
|
7302
7374
|
new(): SubtleCrypto;
|
|
7303
7375
|
};
|
|
7304
7376
|
|
|
7377
|
+
/**
|
|
7378
|
+
* The **`TaskController`** interface of the Prioritized Task Scheduling API represents a controller object that can be used to both abort and change the priority of one or more prioritized tasks.
|
|
7379
|
+
*
|
|
7380
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskController)
|
|
7381
|
+
*/
|
|
7382
|
+
interface TaskController extends AbortController {
|
|
7383
|
+
/**
|
|
7384
|
+
* The **`setPriority()`** method of the TaskController interface can be called to set a new priority for this controller's `signal`.
|
|
7385
|
+
*
|
|
7386
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskController/setPriority)
|
|
7387
|
+
*/
|
|
7388
|
+
setPriority(priority: TaskPriority): void;
|
|
7389
|
+
}
|
|
7390
|
+
|
|
7391
|
+
declare var TaskController: {
|
|
7392
|
+
prototype: TaskController;
|
|
7393
|
+
new(init?: TaskControllerInit): TaskController;
|
|
7394
|
+
};
|
|
7395
|
+
|
|
7396
|
+
/**
|
|
7397
|
+
* The **`TaskPriorityChangeEvent`** is the interface for the `prioritychange` event.
|
|
7398
|
+
*
|
|
7399
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskPriorityChangeEvent)
|
|
7400
|
+
*/
|
|
7401
|
+
interface TaskPriorityChangeEvent extends Event {
|
|
7402
|
+
/**
|
|
7403
|
+
* The **`previousPriority`** read-only property of the TaskPriorityChangeEvent interface returns the priority of the corresponding TaskSignal before it was changed and this `prioritychange` event was emitted.
|
|
7404
|
+
*
|
|
7405
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskPriorityChangeEvent/previousPriority)
|
|
7406
|
+
*/
|
|
7407
|
+
readonly previousPriority: TaskPriority;
|
|
7408
|
+
}
|
|
7409
|
+
|
|
7410
|
+
declare var TaskPriorityChangeEvent: {
|
|
7411
|
+
prototype: TaskPriorityChangeEvent;
|
|
7412
|
+
new(type: string, priorityChangeEventInitDict: TaskPriorityChangeEventInit): TaskPriorityChangeEvent;
|
|
7413
|
+
};
|
|
7414
|
+
|
|
7415
|
+
interface TaskSignalEventMap extends AbortSignalEventMap {
|
|
7416
|
+
"prioritychange": TaskPriorityChangeEvent;
|
|
7417
|
+
}
|
|
7418
|
+
|
|
7419
|
+
/**
|
|
7420
|
+
* The **`TaskSignal`** interface of the Prioritized Task Scheduling API represents a signal object that allows you to communicate with a prioritized task, and abort it or change the priority (if required) via a TaskController object.
|
|
7421
|
+
*
|
|
7422
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskSignal)
|
|
7423
|
+
*/
|
|
7424
|
+
interface TaskSignal extends AbortSignal {
|
|
7425
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskSignal/prioritychange_event) */
|
|
7426
|
+
onprioritychange: ((this: TaskSignal, ev: TaskPriorityChangeEvent) => any) | null;
|
|
7427
|
+
/**
|
|
7428
|
+
* The read-only **`priority`** property of the TaskSignal interface indicates the signal priority.
|
|
7429
|
+
*
|
|
7430
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskSignal/priority)
|
|
7431
|
+
*/
|
|
7432
|
+
readonly priority: TaskPriority;
|
|
7433
|
+
addEventListener<K extends keyof TaskSignalEventMap>(type: K, listener: (this: TaskSignal, ev: TaskSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
7434
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
7435
|
+
removeEventListener<K extends keyof TaskSignalEventMap>(type: K, listener: (this: TaskSignal, ev: TaskSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
7436
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
7437
|
+
}
|
|
7438
|
+
|
|
7439
|
+
declare var TaskSignal: {
|
|
7440
|
+
prototype: TaskSignal;
|
|
7441
|
+
new(): TaskSignal;
|
|
7442
|
+
/**
|
|
7443
|
+
* The **`TaskSignal.any()`** static method takes an iterable of AbortSignal objects and returns a TaskSignal.
|
|
7444
|
+
*
|
|
7445
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskSignal/any_static)
|
|
7446
|
+
*/
|
|
7447
|
+
any(signals: AbortSignal[], init?: TaskSignalAnyInit): TaskSignal;
|
|
7448
|
+
};
|
|
7449
|
+
|
|
7305
7450
|
/**
|
|
7306
7451
|
* The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, or `GBK`.
|
|
7307
7452
|
*
|
|
@@ -10604,6 +10749,8 @@ interface WindowOrWorkerGlobalScope {
|
|
|
10604
10749
|
readonly origin: string;
|
|
10605
10750
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */
|
|
10606
10751
|
readonly performance: Performance;
|
|
10752
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scheduler) */
|
|
10753
|
+
readonly scheduler: Scheduler;
|
|
10607
10754
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */
|
|
10608
10755
|
atob(data: string): string;
|
|
10609
10756
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */
|
|
@@ -11273,6 +11420,10 @@ interface ReportingObserverCallback {
|
|
|
11273
11420
|
(reports: Report[], observer: ReportingObserver): void;
|
|
11274
11421
|
}
|
|
11275
11422
|
|
|
11423
|
+
interface SchedulerPostTaskCallback {
|
|
11424
|
+
(): any;
|
|
11425
|
+
}
|
|
11426
|
+
|
|
11276
11427
|
interface TransformerFlushCallback<O> {
|
|
11277
11428
|
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
|
|
11278
11429
|
}
|
|
@@ -11435,6 +11586,8 @@ declare var isSecureContext: boolean;
|
|
|
11435
11586
|
declare var origin: string;
|
|
11436
11587
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */
|
|
11437
11588
|
declare var performance: Performance;
|
|
11589
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scheduler) */
|
|
11590
|
+
declare var scheduler: Scheduler;
|
|
11438
11591
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */
|
|
11439
11592
|
declare function atob(data: string): string;
|
|
11440
11593
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */
|
|
@@ -11540,6 +11693,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
11540
11693
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
11541
11694
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
11542
11695
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
11696
|
+
type GPUPipelineErrorReason = "internal" | "validation";
|
|
11543
11697
|
type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
|
|
11544
11698
|
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|
|
11545
11699
|
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
|
|
@@ -11577,6 +11731,7 @@ type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaquer
|
|
|
11577
11731
|
type SecurityPolicyViolationEventDisposition = "enforce" | "report";
|
|
11578
11732
|
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
|
|
11579
11733
|
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
|
|
11734
|
+
type TaskPriority = "background" | "user-blocking" | "user-visible";
|
|
11580
11735
|
type TransferFunction = "hlg" | "pq" | "srgb";
|
|
11581
11736
|
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
|
11582
11737
|
type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
|