@@ -777,6 +777,7 @@ interface MediaStreamAudioSourceOptions {
777
777
interface MediaStreamConstraints {
778
778
audio?: boolean | MediaTrackConstraints;
779
779
peerIdentity?: string;
780
+ preferCurrentTab?: boolean;
780
781
video?: boolean | MediaTrackConstraints;
781
782
}
782
783
@@ -1094,10 +1095,6 @@ interface PositionOptions {
1094
1095
timeout?: number;
1095
1096
}
1096
1097
1097
- interface PostMessageOptions {
1098
- transfer?: any[];
1099
- }
1100
-
1101
1098
interface ProgressEventInit extends EventInit {
1102
1099
lengthComputable?: boolean;
1103
1100
loaded?: number;
@@ -1664,6 +1661,10 @@ interface StreamPipeOptions {
1664
1661
signal?: AbortSignal;
1665
1662
}
1666
1663
1664
+ interface StructuredSerializeOptions {
1665
+ transfer?: any[];
1666
+ }
1667
+
1667
1668
interface SubmitEventInit extends EventInit {
1668
1669
submitter?: HTMLElement | null;
1669
1670
}
@@ -1791,7 +1792,7 @@ interface WheelEventInit extends MouseEventInit {
1791
1792
deltaZ?: number;
1792
1793
}
1793
1794
1794
- interface WindowPostMessageOptions extends PostMessageOptions {
1795
+ interface WindowPostMessageOptions extends StructuredSerializeOptions {
1795
1796
targetOrigin?: string;
1796
1797
}
1797
1798
@@ -5914,9 +5915,13 @@ interface GlobalEventHandlers {
5914
5915
* @param ev The event.
5915
5916
*/
5916
5917
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5918
+ /** @deprecated This is a legacy alias of `onanimationend`. */
5917
5919
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5920
+ /** @deprecated This is a legacy alias of `onanimationiteration`. */
5918
5921
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5922
+ /** @deprecated This is a legacy alias of `onanimationstart`. */
5919
5923
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5924
+ /** @deprecated This is a legacy alias of `ontransitionend`. */
5920
5925
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5921
5926
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
5922
5927
addEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -10150,7 +10155,7 @@ interface MessagePort extends EventTarget {
10150
10155
* Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
10151
10156
*/
10152
10157
postMessage(message: any, transfer: Transferable[]): void;
10153
- postMessage(message: any, options?: PostMessageOptions ): void;
10158
+ postMessage(message: any, options?: StructuredSerializeOptions ): void;
10154
10159
/**
10155
10160
* Begins dispatching messages received on the port.
10156
10161
*/
@@ -13978,7 +13983,7 @@ interface ServiceWorker extends EventTarget, AbstractWorker {
13978
13983
readonly scriptURL: string;
13979
13984
readonly state: ServiceWorkerState;
13980
13985
postMessage(message: any, transfer: Transferable[]): void;
13981
- postMessage(message: any, options?: PostMessageOptions ): void;
13986
+ postMessage(message: any, options?: StructuredSerializeOptions ): void;
13982
13987
addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
13983
13988
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
13984
13989
removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -17415,7 +17420,7 @@ interface Worker extends EventTarget, AbstractWorker {
17415
17420
* Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned.
17416
17421
*/
17417
17422
postMessage(message: any, transfer: Transferable[]): void;
17418
- postMessage(message: any, options?: PostMessageOptions ): void;
17423
+ postMessage(message: any, options?: StructuredSerializeOptions ): void;
17419
17424
/**
17420
17425
* Aborts worker's associated global environment.
17421
17426
*/
@@ -18655,9 +18660,13 @@ declare var onvolumechange: ((this: Window, ev: Event) => any) | null;
18655
18660
* @param ev The event.
18656
18661
*/
18657
18662
declare var onwaiting: ((this: Window, ev: Event) => any) | null;
18663
+ /** @deprecated This is a legacy alias of `onanimationend`. */
18658
18664
declare var onwebkitanimationend: ((this: Window, ev: Event) => any) | null;
18665
+ /** @deprecated This is a legacy alias of `onanimationiteration`. */
18659
18666
declare var onwebkitanimationiteration: ((this: Window, ev: Event) => any) | null;
18667
+ /** @deprecated This is a legacy alias of `onanimationstart`. */
18660
18668
declare var onwebkitanimationstart: ((this: Window, ev: Event) => any) | null;
18669
+ /** @deprecated This is a legacy alias of `ontransitionend`. */
18661
18670
declare var onwebkittransitionend: ((this: Window, ev: Event) => any) | null;
18662
18671
declare var onwheel: ((this: Window, ev: WheelEvent) => any) | null;
18663
18672
declare var onafterprint: ((this: Window, ev: Event) => any) | null;
@@ -18841,7 +18850,7 @@ type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
18841
18850
type OverSampleType = "2x" | "4x" | "none";
18842
18851
type PanningModelType = "HRTF" | "equalpower";
18843
18852
type PaymentComplete = "fail" | "success" | "unknown";
18844
- type PermissionName = "gamepad" | " geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock";
18853
+ type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock";
18845
18854
type PermissionState = "denied" | "granted" | "prompt";
18846
18855
type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";
18847
18856
type PositionAlignSetting = "auto" | "center" | "line-left" | "line-right";
0 commit comments