@@ -683,6 +683,24 @@ interface KeyframeEffectOptions extends EffectTiming {
683
683
pseudoElement?: string | null;
684
684
}
685
685
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
+
686
704
interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
687
705
configuration?: MediaDecodingConfiguration;
688
706
}
@@ -1885,7 +1903,7 @@ interface AbortSignal extends EventTarget {
1885
1903
declare var AbortSignal: {
1886
1904
prototype: AbortSignal;
1887
1905
new(): AbortSignal;
1888
- // abort(): AbortSignal; - To be re-added in the future
1906
+ abort(reason?: any ): AbortSignal;
1889
1907
};
1890
1908
1891
1909
interface AbstractRange {
@@ -2946,6 +2964,7 @@ interface CSSStyleDeclaration {
2946
2964
scrollSnapAlign: string;
2947
2965
scrollSnapStop: string;
2948
2966
scrollSnapType: string;
2967
+ scrollbarGutter: string;
2949
2968
shapeImageThreshold: string;
2950
2969
shapeMargin: string;
2951
2970
shapeOutside: string;
@@ -3243,6 +3262,20 @@ declare var CacheStorage: {
3243
3262
new(): CacheStorage;
3244
3263
};
3245
3264
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
+
3246
3279
interface CanvasCompositing {
3247
3280
globalAlpha: number;
3248
3281
globalCompositeOperation: GlobalCompositeOperation;
@@ -5090,6 +5123,7 @@ declare var FileSystemDirectoryEntry: {
5090
5123
5091
5124
/** Available only in secure contexts. */
5092
5125
interface FileSystemDirectoryHandle extends FileSystemHandle {
5126
+ readonly kind: "directory";
5093
5127
getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
5094
5128
getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
5095
5129
removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
@@ -5135,6 +5169,7 @@ declare var FileSystemFileEntry: {
5135
5169
5136
5170
/** Available only in secure contexts. */
5137
5171
interface FileSystemFileHandle extends FileSystemHandle {
5172
+ readonly kind: "file";
5138
5173
getFile(): Promise<File>;
5139
5174
}
5140
5175
@@ -5456,6 +5491,7 @@ interface GlobalEventHandlersEventMap {
5456
5491
"select": Event;
5457
5492
"selectionchange": Event;
5458
5493
"selectstart": Event;
5494
+ "slotchange": Event;
5459
5495
"stalled": Event;
5460
5496
"submit": SubmitEvent;
5461
5497
"suspend": Event;
@@ -5690,6 +5726,7 @@ interface GlobalEventHandlers {
5690
5726
* @param ev The event.
5691
5727
*/
5692
5728
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5729
+ onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
5693
5730
/**
5694
5731
* Occurs when the seek operation ends.
5695
5732
* @param ev The event.
@@ -5707,6 +5744,7 @@ interface GlobalEventHandlers {
5707
5744
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5708
5745
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5709
5746
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5747
+ onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5710
5748
/**
5711
5749
* Occurs when the download has stopped.
5712
5750
* @param ev The event.
@@ -8896,6 +8934,29 @@ declare var Location: {
8896
8934
new(): Location;
8897
8935
};
8898
8936
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
+
8899
8960
interface MathMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
8900
8961
}
8901
8962
@@ -10222,6 +10283,7 @@ interface PerformanceEventTiming extends PerformanceEntry {
10222
10283
readonly processingEnd: DOMHighResTimeStamp;
10223
10284
readonly processingStart: DOMHighResTimeStamp;
10224
10285
readonly target: Node | null;
10286
+ toJSON(): any;
10225
10287
}
10226
10288
10227
10289
declare var PerformanceEventTiming: {
@@ -10944,6 +11006,7 @@ interface RTCRtpTransceiver {
10944
11006
readonly mid: string | null;
10945
11007
readonly receiver: RTCRtpReceiver;
10946
11008
readonly sender: RTCRtpSender;
11009
+ setCodecPreferences(codecs: RTCRtpCodecCapability[]): void;
10947
11010
stop(): void;
10948
11011
}
10949
11012
@@ -11158,6 +11221,7 @@ interface ResizeObserverEntry {
11158
11221
readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;
11159
11222
readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;
11160
11223
readonly contentRect: DOMRectReadOnly;
11224
+ readonly devicePixelContentBoxSize: ReadonlyArray<ResizeObserverSize>;
11161
11225
readonly target: Element;
11162
11226
}
11163
11227
@@ -13127,6 +13191,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
13127
13191
readonly host: Element;
13128
13192
readonly mode: ShadowRootMode;
13129
13193
onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
13194
+ readonly slotAssignment: SlotAssignmentMode;
13130
13195
/** Throws a "NotSupportedError" DOMException if context object is a shadow root. */
13131
13196
addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
13132
13197
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -16915,6 +16980,10 @@ interface IntersectionObserverCallback {
16915
16980
(entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
16916
16981
}
16917
16982
16983
+ interface LockGrantedCallback {
16984
+ (lock: Lock | null): any;
16985
+ }
16986
+
16918
16987
interface MediaSessionActionHandler {
16919
16988
(details: MediaSessionActionDetails): void;
16920
16989
}
@@ -17543,6 +17612,7 @@ declare var onresize: ((this: Window, ev: UIEvent) => any) | null;
17543
17612
* @param ev The event.
17544
17613
*/
17545
17614
declare var onscroll: ((this: Window, ev: Event) => any) | null;
17615
+ declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;
17546
17616
/**
17547
17617
* Occurs when the seek operation ends.
17548
17618
* @param ev The event.
@@ -17560,6 +17630,7 @@ declare var onseeking: ((this: Window, ev: Event) => any) | null;
17560
17630
declare var onselect: ((this: Window, ev: Event) => any) | null;
17561
17631
declare var onselectionchange: ((this: Window, ev: Event) => any) | null;
17562
17632
declare var onselectstart: ((this: Window, ev: Event) => any) | null;
17633
+ declare var onslotchange: ((this: Window, ev: Event) => any) | null;
17563
17634
/**
17564
17635
* Occurs when the download has stopped.
17565
17636
* @param ev The event.
@@ -17771,6 +17842,7 @@ type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
17771
17842
type KeyType = "private" | "public" | "secret";
17772
17843
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
17773
17844
type LineAlignSetting = "center" | "end" | "start";
17845
+ type LockMode = "exclusive" | "shared";
17774
17846
type MediaDecodingType = "file" | "media-source" | "webrtc";
17775
17847
type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
17776
17848
type MediaEncodingType = "record" | "webrtc";
0 commit comments