@@ -2132,6 +2132,12 @@ interface SVGBoundingBoxOptions {
2132
2132
stroke?: boolean;
2133
2133
}
2134
2134
2135
+ interface SchedulerPostTaskOptions {
2136
+ delay?: number;
2137
+ priority?: TaskPriority;
2138
+ signal?: AbortSignal;
2139
+ }
2140
+
2135
2141
interface ScrollIntoViewOptions extends ScrollOptions {
2136
2142
block?: ScrollLogicalPosition;
2137
2143
inline?: ScrollLogicalPosition;
@@ -2265,6 +2271,18 @@ interface SubmitEventInit extends EventInit {
2265
2271
submitter?: HTMLElement | null;
2266
2272
}
2267
2273
2274
+ interface TaskControllerInit {
2275
+ priority?: TaskPriority;
2276
+ }
2277
+
2278
+ interface TaskPriorityChangeEventInit extends EventInit {
2279
+ previousPriority: TaskPriority;
2280
+ }
2281
+
2282
+ interface TaskSignalAnyInit {
2283
+ priority?: TaskPriority | TaskSignal;
2284
+ }
2285
+
2268
2286
interface TextDecodeOptions {
2269
2287
stream?: boolean;
2270
2288
}
@@ -3037,6 +3055,12 @@ interface Animation extends EventTarget {
3037
3055
onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
3038
3056
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/remove_event) */
3039
3057
onremove: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
3058
+ /**
3059
+ * The **`overallProgress`** read-only property of the Animation interface returns a number between `0` and `1` indicating the animation's overall progress towards its finished state.
3060
+ *
3061
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/overallProgress)
3062
+ */
3063
+ readonly overallProgress: number | null;
3040
3064
/**
3041
3065
* The read-only **`Animation.pending`** property of the Web Animations API indicates whether the animation is currently waiting for an asynchronous operation such as initiating playback or pausing a running animation.
3042
3066
*
@@ -10461,6 +10485,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
10461
10485
createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
10462
10486
createEvent(eventInterface: "StorageEvent"): StorageEvent;
10463
10487
createEvent(eventInterface: "SubmitEvent"): SubmitEvent;
10488
+ createEvent(eventInterface: "TaskPriorityChangeEvent"): TaskPriorityChangeEvent;
10464
10489
createEvent(eventInterface: "TextEvent"): TextEvent;
10465
10490
createEvent(eventInterface: "ToggleEvent"): ToggleEvent;
10466
10491
createEvent(eventInterface: "TouchEvent"): TouchEvent;
@@ -26680,9 +26705,17 @@ declare var Response: {
26680
26705
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement)
26681
26706
*/
26682
26707
interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
26683
- /** The **`rel`** property of the SVGAElement returns a string reflecting the value of the `rel` attribute of the SVG a element. */
26708
+ /**
26709
+ * The **`rel`** property of the SVGAElement returns a string reflecting the value of the `rel` attribute of the SVG a element.
26710
+ *
26711
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/rel)
26712
+ */
26684
26713
rel: string;
26685
- /** The **`relList`** read-only property of the SVGAElement returns a live DOMTokenList reflecting the space-separated string `<list-of-Link-Types>` values of the `rel` attribute of the SVG a element. */
26714
+ /**
26715
+ * The **`relList`** read-only property of the SVGAElement returns a live DOMTokenList reflecting the space-separated string `<list-of-Link-Types>` values of the `rel` attribute of the SVG a element.
26716
+ *
26717
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/relList)
26718
+ */
26686
26719
get relList(): DOMTokenList;
26687
26720
set relList(value: string);
26688
26721
/**
@@ -30431,6 +30464,31 @@ declare var SVGViewElement: {
30431
30464
new(): SVGViewElement;
30432
30465
};
30433
30466
30467
+ /**
30468
+ * The **`Scheduler`** interface of the Prioritized Task Scheduling API provides methods for scheduling prioritized tasks.
30469
+ *
30470
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler)
30471
+ */
30472
+ interface Scheduler {
30473
+ /**
30474
+ * The **`postTask()`** method of the Scheduler interface is used for adding tasks to be scheduled according to their priority.
30475
+ *
30476
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler/postTask)
30477
+ */
30478
+ postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise<any>;
30479
+ /**
30480
+ * 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).
30481
+ *
30482
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler/yield)
30483
+ */
30484
+ yield(): Promise<void>;
30485
+ }
30486
+
30487
+ declare var Scheduler: {
30488
+ prototype: Scheduler;
30489
+ new(): Scheduler;
30490
+ };
30491
+
30434
30492
/**
30435
30493
* The `Screen` interface represents a screen, usually the one on which the current window is being rendered, and is obtained using window.screen.
30436
30494
*
@@ -32096,6 +32154,79 @@ declare var SubtleCrypto: {
32096
32154
new(): SubtleCrypto;
32097
32155
};
32098
32156
32157
+ /**
32158
+ * 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.
32159
+ *
32160
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskController)
32161
+ */
32162
+ interface TaskController extends AbortController {
32163
+ /**
32164
+ * The **`setPriority()`** method of the TaskController interface can be called to set a new priority for this controller's `signal`.
32165
+ *
32166
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskController/setPriority)
32167
+ */
32168
+ setPriority(priority: TaskPriority): void;
32169
+ }
32170
+
32171
+ declare var TaskController: {
32172
+ prototype: TaskController;
32173
+ new(init?: TaskControllerInit): TaskController;
32174
+ };
32175
+
32176
+ /**
32177
+ * The **`TaskPriorityChangeEvent`** is the interface for the `prioritychange` event.
32178
+ *
32179
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskPriorityChangeEvent)
32180
+ */
32181
+ interface TaskPriorityChangeEvent extends Event {
32182
+ /**
32183
+ * 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.
32184
+ *
32185
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskPriorityChangeEvent/previousPriority)
32186
+ */
32187
+ readonly previousPriority: TaskPriority;
32188
+ }
32189
+
32190
+ declare var TaskPriorityChangeEvent: {
32191
+ prototype: TaskPriorityChangeEvent;
32192
+ new(type: string, priorityChangeEventInitDict: TaskPriorityChangeEventInit): TaskPriorityChangeEvent;
32193
+ };
32194
+
32195
+ interface TaskSignalEventMap extends AbortSignalEventMap {
32196
+ "prioritychange": TaskPriorityChangeEvent;
32197
+ }
32198
+
32199
+ /**
32200
+ * 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.
32201
+ *
32202
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskSignal)
32203
+ */
32204
+ interface TaskSignal extends AbortSignal {
32205
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskSignal/prioritychange_event) */
32206
+ onprioritychange: ((this: TaskSignal, ev: TaskPriorityChangeEvent) => any) | null;
32207
+ /**
32208
+ * The read-only **`priority`** property of the TaskSignal interface indicates the signal priority.
32209
+ *
32210
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskSignal/priority)
32211
+ */
32212
+ readonly priority: TaskPriority;
32213
+ addEventListener<K extends keyof TaskSignalEventMap>(type: K, listener: (this: TaskSignal, ev: TaskSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
32214
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
32215
+ removeEventListener<K extends keyof TaskSignalEventMap>(type: K, listener: (this: TaskSignal, ev: TaskSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
32216
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
32217
+ }
32218
+
32219
+ declare var TaskSignal: {
32220
+ prototype: TaskSignal;
32221
+ new(): TaskSignal;
32222
+ /**
32223
+ * The **`TaskSignal.any()`** static method takes an iterable of AbortSignal objects and returns a TaskSignal.
32224
+ *
32225
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskSignal/any_static)
32226
+ */
32227
+ any(signals: AbortSignal[], init?: TaskSignalAnyInit): TaskSignal;
32228
+ };
32229
+
32099
32230
/**
32100
32231
* The **`Text`** interface represents a text Node in a DOM tree.
32101
32232
*
@@ -37379,6 +37510,8 @@ interface WindowOrWorkerGlobalScope {
37379
37510
readonly origin: string;
37380
37511
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */
37381
37512
readonly performance: Performance;
37513
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scheduler) */
37514
+ readonly scheduler: Scheduler;
37382
37515
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */
37383
37516
atob(data: string): string;
37384
37517
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */
@@ -38611,6 +38744,10 @@ interface ResizeObserverCallback {
38611
38744
(entries: ResizeObserverEntry[], observer: ResizeObserver): void;
38612
38745
}
38613
38746
38747
+ interface SchedulerPostTaskCallback {
38748
+ (): any;
38749
+ }
38750
+
38614
38751
interface TransformerFlushCallback<O> {
38615
38752
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
38616
38753
}
@@ -39664,6 +39801,8 @@ declare var isSecureContext: boolean;
39664
39801
declare var origin: string;
39665
39802
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */
39666
39803
declare var performance: Performance;
39804
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scheduler) */
39805
+ declare var scheduler: Scheduler;
39667
39806
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */
39668
39807
declare function atob(data: string): string;
39669
39808
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */
@@ -39951,6 +40090,7 @@ type ShadowRootMode = "closed" | "open";
39951
40090
type SlotAssignmentMode = "manual" | "named";
39952
40091
type SpeechRecognitionErrorCode = "aborted" | "audio-capture" | "language-not-supported" | "network" | "no-speech" | "not-allowed" | "phrases-not-supported" | "service-not-allowed";
39953
40092
type SpeechSynthesisErrorCode = "audio-busy" | "audio-hardware" | "canceled" | "interrupted" | "invalid-argument" | "language-unavailable" | "network" | "not-allowed" | "synthesis-failed" | "synthesis-unavailable" | "text-too-long" | "voice-unavailable";
40093
+ type TaskPriority = "background" | "user-blocking" | "user-visible";
39954
40094
type TextTrackKind = "captions" | "chapters" | "descriptions" | "metadata" | "subtitles";
39955
40095
type TextTrackMode = "disabled" | "hidden" | "showing";
39956
40096
type TouchType = "direct" | "stylus";
0 commit comments