@@ -683,6 +683,24 @@ interface KeyframeEffectOptions extends EffectTiming {
683683 pseudoElement?: string | null;
684684}
685685
686+ interface LockInfo {
687+ clientId?: string;
688+ mode?: LockMode;
689+ name?: string;
690+ }
691+
692+ interface LockManagerSnapshot {
693+ held?: LockInfo[];
694+ pending?: LockInfo[];
695+ }
696+
697+ interface LockOptions {
698+ ifAvailable?: boolean;
699+ mode?: LockMode;
700+ signal?: AbortSignal;
701+ steal?: boolean;
702+ }
703+
686704interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
687705 configuration?: MediaDecodingConfiguration;
688706}
@@ -1885,7 +1903,7 @@ interface AbortSignal extends EventTarget {
18851903declare var AbortSignal: {
18861904 prototype: AbortSignal;
18871905 new(): AbortSignal;
1888- // abort(): AbortSignal; - To be re-added in the future
1906+ abort(reason?: any ): AbortSignal;
18891907};
18901908
18911909interface AbstractRange {
@@ -2946,6 +2964,7 @@ interface CSSStyleDeclaration {
29462964 scrollSnapAlign: string;
29472965 scrollSnapStop: string;
29482966 scrollSnapType: string;
2967+ scrollbarGutter: string;
29492968 shapeImageThreshold: string;
29502969 shapeMargin: string;
29512970 shapeOutside: string;
@@ -3243,6 +3262,20 @@ declare var CacheStorage: {
32433262 new(): CacheStorage;
32443263};
32453264
3265+ interface CanvasCaptureMediaStreamTrack extends MediaStreamTrack {
3266+ readonly canvas: HTMLCanvasElement;
3267+ requestFrame(): void;
3268+ addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
3269+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
3270+ removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
3271+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
3272+ }
3273+
3274+ declare var CanvasCaptureMediaStreamTrack: {
3275+ prototype: CanvasCaptureMediaStreamTrack;
3276+ new(): CanvasCaptureMediaStreamTrack;
3277+ };
3278+
32463279interface CanvasCompositing {
32473280 globalAlpha: number;
32483281 globalCompositeOperation: GlobalCompositeOperation;
@@ -5090,6 +5123,7 @@ declare var FileSystemDirectoryEntry: {
50905123
50915124/** Available only in secure contexts. */
50925125interface FileSystemDirectoryHandle extends FileSystemHandle {
5126+ readonly kind: "directory";
50935127 getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
50945128 getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
50955129 removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
@@ -5135,6 +5169,7 @@ declare var FileSystemFileEntry: {
51355169
51365170/** Available only in secure contexts. */
51375171interface FileSystemFileHandle extends FileSystemHandle {
5172+ readonly kind: "file";
51385173 getFile(): Promise<File>;
51395174}
51405175
@@ -5456,6 +5491,7 @@ interface GlobalEventHandlersEventMap {
54565491 "select": Event;
54575492 "selectionchange": Event;
54585493 "selectstart": Event;
5494+ "slotchange": Event;
54595495 "stalled": Event;
54605496 "submit": SubmitEvent;
54615497 "suspend": Event;
@@ -5690,6 +5726,7 @@ interface GlobalEventHandlers {
56905726 * @param ev The event.
56915727 */
56925728 onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5729+ onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
56935730 /**
56945731 * Occurs when the seek operation ends.
56955732 * @param ev The event.
@@ -5707,6 +5744,7 @@ interface GlobalEventHandlers {
57075744 onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
57085745 onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
57095746 onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5747+ onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
57105748 /**
57115749 * Occurs when the download has stopped.
57125750 * @param ev The event.
@@ -8896,6 +8934,29 @@ declare var Location: {
88968934 new(): Location;
88978935};
88988936
8937+ /** Available only in secure contexts. */
8938+ interface Lock {
8939+ readonly mode: LockMode;
8940+ readonly name: string;
8941+ }
8942+
8943+ declare var Lock: {
8944+ prototype: Lock;
8945+ new(): Lock;
8946+ };
8947+
8948+ /** Available only in secure contexts. */
8949+ interface LockManager {
8950+ query(): Promise<LockManagerSnapshot>;
8951+ request(name: string, callback: LockGrantedCallback): Promise<any>;
8952+ request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
8953+ }
8954+
8955+ declare var LockManager: {
8956+ prototype: LockManager;
8957+ new(): LockManager;
8958+ };
8959+
88998960interface MathMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
89008961}
89018962
@@ -10222,6 +10283,7 @@ interface PerformanceEventTiming extends PerformanceEntry {
1022210283 readonly processingEnd: DOMHighResTimeStamp;
1022310284 readonly processingStart: DOMHighResTimeStamp;
1022410285 readonly target: Node | null;
10286+ toJSON(): any;
1022510287}
1022610288
1022710289declare var PerformanceEventTiming: {
@@ -10944,6 +11006,7 @@ interface RTCRtpTransceiver {
1094411006 readonly mid: string | null;
1094511007 readonly receiver: RTCRtpReceiver;
1094611008 readonly sender: RTCRtpSender;
11009+ setCodecPreferences(codecs: RTCRtpCodecCapability[]): void;
1094711010 stop(): void;
1094811011}
1094911012
@@ -11158,6 +11221,7 @@ interface ResizeObserverEntry {
1115811221 readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;
1115911222 readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;
1116011223 readonly contentRect: DOMRectReadOnly;
11224+ readonly devicePixelContentBoxSize: ReadonlyArray<ResizeObserverSize>;
1116111225 readonly target: Element;
1116211226}
1116311227
@@ -13127,6 +13191,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
1312713191 readonly host: Element;
1312813192 readonly mode: ShadowRootMode;
1312913193 onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
13194+ readonly slotAssignment: SlotAssignmentMode;
1313013195 /** Throws a "NotSupportedError" DOMException if context object is a shadow root. */
1313113196 addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1313213197 addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -16915,6 +16980,10 @@ interface IntersectionObserverCallback {
1691516980 (entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
1691616981}
1691716982
16983+ interface LockGrantedCallback {
16984+ (lock: Lock | null): any;
16985+ }
16986+
1691816987interface MediaSessionActionHandler {
1691916988 (details: MediaSessionActionDetails): void;
1692016989}
@@ -17543,6 +17612,7 @@ declare var onresize: ((this: Window, ev: UIEvent) => any) | null;
1754317612 * @param ev The event.
1754417613 */
1754517614declare var onscroll: ((this: Window, ev: Event) => any) | null;
17615+ declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;
1754617616/**
1754717617 * Occurs when the seek operation ends.
1754817618 * @param ev The event.
@@ -17560,6 +17630,7 @@ declare var onseeking: ((this: Window, ev: Event) => any) | null;
1756017630declare var onselect: ((this: Window, ev: Event) => any) | null;
1756117631declare var onselectionchange: ((this: Window, ev: Event) => any) | null;
1756217632declare var onselectstart: ((this: Window, ev: Event) => any) | null;
17633+ declare var onslotchange: ((this: Window, ev: Event) => any) | null;
1756317634/**
1756417635 * Occurs when the download has stopped.
1756517636 * @param ev The event.
@@ -17771,6 +17842,7 @@ type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
1777117842type KeyType = "private" | "public" | "secret";
1777217843type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
1777317844type LineAlignSetting = "center" | "end" | "start";
17845+ type LockMode = "exclusive" | "shared";
1777417846type MediaDecodingType = "file" | "media-source" | "webrtc";
1777517847type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
1777617848type MediaEncodingType = "record" | "webrtc";
0 commit comments