@@ -777,6 +777,7 @@ interface MediaStreamAudioSourceOptions {
777777interface MediaStreamConstraints {
778778 audio?: boolean | MediaTrackConstraints;
779779 peerIdentity?: string;
780+ preferCurrentTab?: boolean;
780781 video?: boolean | MediaTrackConstraints;
781782}
782783
@@ -1094,10 +1095,6 @@ interface PositionOptions {
10941095 timeout?: number;
10951096}
10961097
1097- interface PostMessageOptions {
1098- transfer?: any[];
1099- }
1100-
11011098interface ProgressEventInit extends EventInit {
11021099 lengthComputable?: boolean;
11031100 loaded?: number;
@@ -1664,6 +1661,10 @@ interface StreamPipeOptions {
16641661 signal?: AbortSignal;
16651662}
16661663
1664+ interface StructuredSerializeOptions {
1665+ transfer?: any[];
1666+ }
1667+
16671668interface SubmitEventInit extends EventInit {
16681669 submitter?: HTMLElement | null;
16691670}
@@ -1791,7 +1792,7 @@ interface WheelEventInit extends MouseEventInit {
17911792 deltaZ?: number;
17921793}
17931794
1794- interface WindowPostMessageOptions extends PostMessageOptions {
1795+ interface WindowPostMessageOptions extends StructuredSerializeOptions {
17951796 targetOrigin?: string;
17961797}
17971798
@@ -5914,9 +5915,13 @@ interface GlobalEventHandlers {
59145915 * @param ev The event.
59155916 */
59165917 onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5918+ /** @deprecated This is a legacy alias of `onanimationend`. */
59175919 onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5920+ /** @deprecated This is a legacy alias of `onanimationiteration`. */
59185921 onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5922+ /** @deprecated This is a legacy alias of `onanimationstart`. */
59195923 onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5924+ /** @deprecated This is a legacy alias of `ontransitionend`. */
59205925 onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
59215926 onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
59225927 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 {
1015010155 * Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
1015110156 */
1015210157 postMessage(message: any, transfer: Transferable[]): void;
10153- postMessage(message: any, options?: PostMessageOptions ): void;
10158+ postMessage(message: any, options?: StructuredSerializeOptions ): void;
1015410159 /**
1015510160 * Begins dispatching messages received on the port.
1015610161 */
@@ -13978,7 +13983,7 @@ interface ServiceWorker extends EventTarget, AbstractWorker {
1397813983 readonly scriptURL: string;
1397913984 readonly state: ServiceWorkerState;
1398013985 postMessage(message: any, transfer: Transferable[]): void;
13981- postMessage(message: any, options?: PostMessageOptions ): void;
13986+ postMessage(message: any, options?: StructuredSerializeOptions ): void;
1398213987 addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1398313988 addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1398413989 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 {
1741517420 * 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.
1741617421 */
1741717422 postMessage(message: any, transfer: Transferable[]): void;
17418- postMessage(message: any, options?: PostMessageOptions ): void;
17423+ postMessage(message: any, options?: StructuredSerializeOptions ): void;
1741917424 /**
1742017425 * Aborts worker's associated global environment.
1742117426 */
@@ -18655,9 +18660,13 @@ declare var onvolumechange: ((this: Window, ev: Event) => any) | null;
1865518660 * @param ev The event.
1865618661 */
1865718662declare var onwaiting: ((this: Window, ev: Event) => any) | null;
18663+ /** @deprecated This is a legacy alias of `onanimationend`. */
1865818664declare var onwebkitanimationend: ((this: Window, ev: Event) => any) | null;
18665+ /** @deprecated This is a legacy alias of `onanimationiteration`. */
1865918666declare var onwebkitanimationiteration: ((this: Window, ev: Event) => any) | null;
18667+ /** @deprecated This is a legacy alias of `onanimationstart`. */
1866018668declare var onwebkitanimationstart: ((this: Window, ev: Event) => any) | null;
18669+ /** @deprecated This is a legacy alias of `ontransitionend`. */
1866118670declare var onwebkittransitionend: ((this: Window, ev: Event) => any) | null;
1866218671declare var onwheel: ((this: Window, ev: WheelEvent) => any) | null;
1866318672declare var onafterprint: ((this: Window, ev: Event) => any) | null;
@@ -18841,7 +18850,7 @@ type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
1884118850type OverSampleType = "2x" | "4x" | "none";
1884218851type PanningModelType = "HRTF" | "equalpower";
1884318852type 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";
1884518854type PermissionState = "denied" | "granted" | "prompt";
1884618855type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";
1884718856type PositionAlignSetting = "auto" | "center" | "line-left" | "line-right";
0 commit comments