@@ -2132,6 +2132,12 @@ interface SVGBoundingBoxOptions {
21322132 stroke?: boolean;
21332133}
21342134
2135+ interface SchedulerPostTaskOptions {
2136+ delay?: number;
2137+ priority?: TaskPriority;
2138+ signal?: AbortSignal;
2139+ }
2140+
21352141interface ScrollIntoViewOptions extends ScrollOptions {
21362142 block?: ScrollLogicalPosition;
21372143 inline?: ScrollLogicalPosition;
@@ -2265,6 +2271,18 @@ interface SubmitEventInit extends EventInit {
22652271 submitter?: HTMLElement | null;
22662272}
22672273
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+
22682286interface TextDecodeOptions {
22692287 stream?: boolean;
22702288}
@@ -3037,6 +3055,12 @@ interface Animation extends EventTarget {
30373055 onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
30383056 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/remove_event) */
30393057 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;
30403064 /**
30413065 * 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.
30423066 *
@@ -10461,6 +10485,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
1046110485 createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
1046210486 createEvent(eventInterface: "StorageEvent"): StorageEvent;
1046310487 createEvent(eventInterface: "SubmitEvent"): SubmitEvent;
10488+ createEvent(eventInterface: "TaskPriorityChangeEvent"): TaskPriorityChangeEvent;
1046410489 createEvent(eventInterface: "TextEvent"): TextEvent;
1046510490 createEvent(eventInterface: "ToggleEvent"): ToggleEvent;
1046610491 createEvent(eventInterface: "TouchEvent"): TouchEvent;
@@ -26680,9 +26705,17 @@ declare var Response: {
2668026705 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement)
2668126706 */
2668226707interface 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+ */
2668426713 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+ */
2668626719 get relList(): DOMTokenList;
2668726720 set relList(value: string);
2668826721 /**
@@ -30431,6 +30464,31 @@ declare var SVGViewElement: {
3043130464 new(): SVGViewElement;
3043230465};
3043330466
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+
3043430492/**
3043530493 * The `Screen` interface represents a screen, usually the one on which the current window is being rendered, and is obtained using window.screen.
3043630494 *
@@ -32096,6 +32154,79 @@ declare var SubtleCrypto: {
3209632154 new(): SubtleCrypto;
3209732155};
3209832156
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+
3209932230/**
3210032231 * The **`Text`** interface represents a text Node in a DOM tree.
3210132232 *
@@ -37379,6 +37510,8 @@ interface WindowOrWorkerGlobalScope {
3737937510 readonly origin: string;
3738037511 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */
3738137512 readonly performance: Performance;
37513+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scheduler) */
37514+ readonly scheduler: Scheduler;
3738237515 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */
3738337516 atob(data: string): string;
3738437517 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */
@@ -38611,6 +38744,10 @@ interface ResizeObserverCallback {
3861138744 (entries: ResizeObserverEntry[], observer: ResizeObserver): void;
3861238745}
3861338746
38747+ interface SchedulerPostTaskCallback {
38748+ (): any;
38749+ }
38750+
3861438751interface TransformerFlushCallback<O> {
3861538752 (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
3861638753}
@@ -39664,6 +39801,8 @@ declare var isSecureContext: boolean;
3966439801declare var origin: string;
3966539802/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */
3966639803declare var performance: Performance;
39804+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scheduler) */
39805+ declare var scheduler: Scheduler;
3966739806/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */
3966839807declare function atob(data: string): string;
3966939808/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */
@@ -39951,6 +40090,7 @@ type ShadowRootMode = "closed" | "open";
3995140090type SlotAssignmentMode = "manual" | "named";
3995240091type SpeechRecognitionErrorCode = "aborted" | "audio-capture" | "language-not-supported" | "network" | "no-speech" | "not-allowed" | "phrases-not-supported" | "service-not-allowed";
3995340092type 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";
3995440094type TextTrackKind = "captions" | "chapters" | "descriptions" | "metadata" | "subtitles";
3995540095type TextTrackMode = "disabled" | "hidden" | "showing";
3995640096type TouchType = "direct" | "stylus";
0 commit comments