From 204948bdd1f071a0a0d15538d69f3f29f091e1e3 Mon Sep 17 00:00:00 2001 From: orta <49038+orta@users.noreply.github.com> Date: Thu, 25 Sep 2025 08:11:18 +0000 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=A4=96=20Update=20core=20dependencies?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- baselines/audioworklet.generated.d.ts | 89 +++++++-- baselines/dom.generated.d.ts | 190 ++++++++++++++++--- baselines/serviceworker.generated.d.ts | 108 ++++++++--- baselines/sharedworker.generated.d.ts | 108 ++++++++--- baselines/ts5.5/audioworklet.generated.d.ts | 89 +++++++-- baselines/ts5.5/dom.generated.d.ts | 190 ++++++++++++++++--- baselines/ts5.5/serviceworker.generated.d.ts | 108 ++++++++--- baselines/ts5.5/sharedworker.generated.d.ts | 108 ++++++++--- baselines/ts5.5/webworker.generated.d.ts | 108 ++++++++--- baselines/ts5.6/audioworklet.generated.d.ts | 89 +++++++-- baselines/ts5.6/dom.generated.d.ts | 190 ++++++++++++++++--- baselines/ts5.6/serviceworker.generated.d.ts | 108 ++++++++--- baselines/ts5.6/sharedworker.generated.d.ts | 108 ++++++++--- baselines/ts5.6/webworker.generated.d.ts | 108 ++++++++--- baselines/webworker.generated.d.ts | 108 ++++++++--- inputfiles/mdn | 2 +- package-lock.json | 24 +-- 17 files changed, 1486 insertions(+), 349 deletions(-) diff --git a/baselines/audioworklet.generated.d.ts b/baselines/audioworklet.generated.d.ts index 9da97fb24..cc3f9c65a 100644 --- a/baselines/audioworklet.generated.d.ts +++ b/baselines/audioworklet.generated.d.ts @@ -30,6 +30,10 @@ interface EventListenerOptions { capture?: boolean; } +interface ExceptionOptions { + traceStack?: boolean; +} + interface MessageEventInit extends EventInit { data?: T; lastEventId?: string; @@ -125,6 +129,10 @@ interface StructuredSerializeOptions { transfer?: Transferable[]; } +interface TagType { + parameters: ValueType[]; +} + interface TextDecodeOptions { stream?: boolean; } @@ -178,6 +186,11 @@ interface UnderlyingSource { type?: ReadableStreamType; } +interface WebAssemblyCompileOptions { + builtins?: string[]; + importedStringConstants?: string | null; +} + /** * The **`AbortController`** interface represents a controller object that allows you to abort one or more Web requests as and when desired. * @@ -1540,6 +1553,37 @@ declare namespace WebAssembly { (message?: string): CompileError; }; + /** + * The **`WebAssembly.Exception`** object represents a runtime exception thrown from WebAssembly to JavaScript, or thrown from JavaScript to a WebAssembly exception handler. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception) + */ + interface Exception { + /** + * The read-only **`stack`** property of an object instance of type `WebAssembly.Exception` _may_ contain a stack trace. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/stack) + */ + readonly stack: string | undefined; + /** + * The **`getArg()`** prototype method of the `Exception` object can be used to get the value of a specified item in the exception's data arguments. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg) + */ + getArg(index: number): any; + /** + * The **`is()`** prototype method of the `Exception` object can be used to test if the `Exception` matches a given tag. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/is) + */ + is(exceptionTag: Tag): boolean; + } + + var Exception: { + prototype: Exception; + new(exceptionTag: Tag, payload: any[], options?: ExceptionOptions): Exception; + }; + /** * A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances. * @@ -1600,7 +1644,7 @@ declare namespace WebAssembly { * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow) */ - grow(delta: number): number; + grow(delta: AddressValue): AddressValue; } var Memory: { @@ -1618,7 +1662,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource): Module; + new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; /** * The **`WebAssembly.Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -1659,25 +1703,25 @@ declare namespace WebAssembly { * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length) */ - readonly length: number; + readonly length: AddressValue; /** * The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get) */ - get(index: number): any; + get(index: AddressValue): any; /** * The **`grow()`** prototype method of the `WebAssembly.Table` object increases the size of the `Table` instance by a specified number of elements, filled with the provided value. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow) */ - grow(delta: number, value?: any): number; + grow(delta: AddressValue, value?: any): AddressValue; /** * The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set) */ - set(index: number, value?: any): void; + set(index: AddressValue, value?: any): void; } var Table: { @@ -1685,14 +1729,28 @@ declare namespace WebAssembly { new(descriptor: TableDescriptor, value?: any): Table; }; + /** + * The **`WebAssembly.Tag`** object defines a _type_ of a WebAssembly exception that can be thrown to/from WebAssembly code. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag) + */ + interface Tag { + } + + var Tag: { + prototype: Tag; + new(type: TagType): Tag; + }; + interface GlobalDescriptor { mutable?: boolean; value: T; } interface MemoryDescriptor { - initial: number; - maximum?: number; + address?: AddressType; + initial: AddressValue; + maximum?: AddressValue; shared?: boolean; } @@ -1708,9 +1766,10 @@ declare namespace WebAssembly { } interface TableDescriptor { + address?: AddressType; element: TableKind; - initial: number; - maximum?: number; + initial: AddressValue; + maximum?: AddressValue; } interface ValueTypeMap { @@ -1728,7 +1787,7 @@ declare namespace WebAssembly { module: Module; } - type ImportExportKind = "function" | "global" | "memory" | "table"; + type ImportExportKind = "function" | "global" | "memory" | "table" | "tag"; type TableKind = "anyfunc" | "externref"; type ExportValue = Function | Global | Memory | Table; type Exports = Record; @@ -1737,12 +1796,12 @@ declare namespace WebAssembly { type ModuleImports = Record; type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource): Promise; + function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports): Promise; + function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource): boolean; + function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -1943,6 +2002,7 @@ declare var sampleRate: number; * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope/registerProcessor) */ declare function registerProcessor(name: string, processorCtor: AudioWorkletProcessorConstructor): void; +type AddressValue = any; type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView; type BufferSource = ArrayBufferView | ArrayBuffer; type DOMHighResTimeStamp = number; @@ -1952,6 +2012,7 @@ type ReadableStreamController = ReadableStreamDefaultController | Readable type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableStreamReadDoneResult; type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type Transferable = MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; +type AddressType = "i32" | "i64"; type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; type ReadableStreamReaderMode = "byob"; type ReadableStreamType = "bytes"; diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 7bb124e0c..414dedfb5 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -357,6 +357,11 @@ interface CloseEventInit extends EventInit { wasClean?: boolean; } +interface CommandEventInit extends EventInit { + command?: string; + source?: Element | null; +} + interface CompositionEventInit extends UIEventInit { data?: string; } @@ -689,6 +694,10 @@ interface EventSourceInit { withCredentials?: boolean; } +interface ExceptionOptions { + traceStack?: boolean; +} + interface FilePropertyBag extends BlobPropertyBag { lastModified?: number; } @@ -1103,6 +1112,7 @@ interface MediaRecorderOptions { interface MediaSessionActionDetails { action: MediaSessionAction; + enterPictureInPictureReason?: MediaSessionEnterPictureInPictureReason; fastSeek?: boolean; seekOffset?: number; seekTime?: number; @@ -2272,6 +2282,10 @@ interface SubmitEventInit extends EventInit { submitter?: HTMLElement | null; } +interface TagType { + parameters: ValueType[]; +} + interface TaskControllerInit { priority?: TaskPriority; } @@ -2570,6 +2584,11 @@ interface WaveShaperOptions extends AudioNodeOptions { oversample?: OverSampleType; } +interface WebAssemblyCompileOptions { + builtins?: string[]; + importedStringConstants?: string | null; +} + interface WebGLContextAttributes { alpha?: boolean; antialias?: boolean; @@ -3269,6 +3288,7 @@ interface AnimationTimeline { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime) */ readonly currentTime: CSSNumberish | null; + /** The **`duration`** read-only property of the Web Animations API's AnimationTimeline interface returns the maximum value for this timeline or `null`. */ readonly duration: CSSNumberish | null; } @@ -8395,6 +8415,31 @@ declare var CloseEvent: { new(type: string, eventInitDict?: CloseEventInit): CloseEvent; }; +/** + * The **`CommandEvent`** interface represents an event notifying the user when a HTMLButtonElement element with valid HTMLButtonElement.commandForElement and HTMLButtonElement.command attributes is about to invoke an interactive element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CommandEvent) + */ +interface CommandEvent extends Event { + /** + * The **`command`** read-only property of the CommandEvent interface returns a string containing the value of the HTMLButtonElement.command property at the time the event was dispatched. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CommandEvent/command) + */ + readonly command: string; + /** + * The **`source`** read-only property of the CommandEvent interface returns an EventTarget representing the control that invoked the given command. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CommandEvent/source) + */ + readonly source: Element | null; +} + +declare var CommandEvent: { + prototype: CommandEvent; + new(type: string, eventInitDict?: CommandEventInit): CommandEvent; +}; + /** * The **`Comment`** interface represents textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. * @@ -10462,6 +10507,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve createEvent(eventInterface: "BlobEvent"): BlobEvent; createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent; createEvent(eventInterface: "CloseEvent"): CloseEvent; + createEvent(eventInterface: "CommandEvent"): CommandEvent; createEvent(eventInterface: "CompositionEvent"): CompositionEvent; createEvent(eventInterface: "ContentVisibilityAutoStateChangeEvent"): ContentVisibilityAutoStateChangeEvent; createEvent(eventInterface: "CookieChangeEvent"): CookieChangeEvent; @@ -13601,6 +13647,18 @@ declare var HTMLBodyElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement) */ interface HTMLButtonElement extends HTMLElement, PopoverTargetAttributes { + /** + * The **`command`** property of the HTMLButtonElement interface gets and sets the action to be performed on an element being controlled by this button. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/command) + */ + command: string; + /** + * The **`commandForElement`** property of the HTMLButtonElement interface gets and sets the element to control via a button. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/commandForElement) + */ + commandForElement: Element | null; /** * The **`HTMLButtonElement.disabled`** property indicates whether the control is disabled, meaning that it does not accept any clicks. * @@ -14087,7 +14145,7 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit */ innerText: string; /** - * The **`lang`** property of the HTMLElement interface indicates the base language of an element's attribute values and text content, in the form of a MISSING: RFC(5646, 'BCP 47 language identifier tag')]. + * The **`lang`** property of the HTMLElement interface indicates the base language of an element's attribute values and text content, in the form of a BCP 47 language tag. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang) */ @@ -16747,7 +16805,7 @@ interface HTMLScriptElement extends HTMLElement { */ src: string; /** - * The **`text`** property of the HTMLScriptElement interface is a string that reflects the text content inside the script element. + * The **`text`** property of the HTMLScriptElement interface represents the inline text content of the script element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/text) */ @@ -18388,6 +18446,7 @@ interface IDBDatabase extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames) */ readonly objectStoreNames: DOMStringList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */ onabort: ((this: IDBDatabase, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */ onclose: ((this: IDBDatabase, ev: Event) => any) | null; @@ -23028,6 +23087,8 @@ interface ParentNode extends Node { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/append) */ append(...nodes: (Node | string)[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/moveBefore) */ + moveBefore(node: Node, child: Node | null): void; /** * Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes. * @@ -23555,6 +23616,12 @@ interface PerformanceEventTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/cancelable) */ readonly cancelable: boolean; + /** + * The read-only **`interactionId`** property returns an ID that uniquely identifies a user interaction which triggered a series of associated events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/interactionId) + */ + readonly interactionId: number; /** * The read-only **`processingEnd`** property returns the time the last event handler finished executing. * @@ -24699,6 +24766,12 @@ declare var PushManager: { readonly supportedContentEncodings: ReadonlyArray; }; +/** Available only in secure contexts. */ +interface PushManagerAttribute { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */ + readonly pushManager: PushManager; +} + /** * The `PushSubscription` interface of the Push API provides a subscription's URL endpoint along with the public key and secrets that should be used for encrypting push messages to this subscription. * Available only in secure contexts. @@ -29083,6 +29156,7 @@ interface SVGMarkerElement extends SVGElement, SVGFitToViewBox { readonly SVG_MARKER_ORIENT_UNKNOWN: 0; readonly SVG_MARKER_ORIENT_AUTO: 1; readonly SVG_MARKER_ORIENT_ANGLE: 2; + readonly SVG_MARKER_ORIENT_AUTO_START_REVERSE: 3; addEventListener(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -29098,6 +29172,7 @@ declare var SVGMarkerElement: { readonly SVG_MARKER_ORIENT_UNKNOWN: 0; readonly SVG_MARKER_ORIENT_AUTO: 1; readonly SVG_MARKER_ORIENT_ANGLE: 2; + readonly SVG_MARKER_ORIENT_AUTO_START_REVERSE: 3; }; /** @@ -29742,7 +29817,7 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/getElementById) */ - getElementById(elementId: string): Element; + getElementById(elementId: string): Element | null; getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf; getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf; /** @@ -29917,6 +29992,11 @@ declare var SVGStringList: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement) */ interface SVGStyleElement extends SVGElement, LinkStyle { + /** + * The **`SVGStyleElement.disabled`** property can be used to get and set whether the stylesheet is disabled (`true`) or not (`false`). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/disabled) + */ disabled: boolean; /** * The **`SVGStyleElement.media`** property is a media query string corresponding to the `media` attribute of the given SVG style element. @@ -30567,7 +30647,13 @@ interface ScreenOrientation extends EventTarget { */ readonly type: OrientationType; /** - * The **`unlock()`** method of the ScreenOrientation interface unlocks the orientation of the containing document from its default orientation. + * The **`lock()`** method of the ScreenOrientation interface locks the orientation of the containing document to the specified orientation. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/lock) + */ + lock(orientation: OrientationLockType): Promise; + /** + * The **`unlock()`** method of the ScreenOrientation interface unlocks the orientation of the containing document, effectively locking it to the default screen orientation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/unlock) */ @@ -31006,7 +31092,7 @@ interface ServiceWorkerRegistrationEventMap { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration) */ -interface ServiceWorkerRegistration extends EventTarget { +interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute { /** * The **`active`** read-only property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is `activating` or `activated`. * @@ -31033,12 +31119,6 @@ interface ServiceWorkerRegistration extends EventTarget { readonly navigationPreload: NavigationPreloadManager; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */ onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null; - /** - * The **`pushManager`** read-only property of the ServiceWorkerRegistration interface returns a reference to the PushManager interface for managing push subscriptions; this includes support for subscribing, getting an active subscription, and accessing push permission status. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) - */ - readonly pushManager: PushManager; /** * The **`scope`** read-only property of the ServiceWorkerRegistration interface returns a string representing a URL that defines a service worker's registration scope; that is, the range of URLs a service worker can control. * @@ -36961,7 +37041,7 @@ interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandler * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window) */ -interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage { +interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, PushManagerAttribute, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage { /** * @deprecated This is a legacy alias of `navigator`. * @@ -38287,6 +38367,37 @@ declare namespace WebAssembly { (message?: string): CompileError; }; + /** + * The **`WebAssembly.Exception`** object represents a runtime exception thrown from WebAssembly to JavaScript, or thrown from JavaScript to a WebAssembly exception handler. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception) + */ + interface Exception { + /** + * The read-only **`stack`** property of an object instance of type `WebAssembly.Exception` _may_ contain a stack trace. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/stack) + */ + readonly stack: string | undefined; + /** + * The **`getArg()`** prototype method of the `Exception` object can be used to get the value of a specified item in the exception's data arguments. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg) + */ + getArg(index: number): any; + /** + * The **`is()`** prototype method of the `Exception` object can be used to test if the `Exception` matches a given tag. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/is) + */ + is(exceptionTag: Tag): boolean; + } + + var Exception: { + prototype: Exception; + new(exceptionTag: Tag, payload: any[], options?: ExceptionOptions): Exception; + }; + /** * A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances. * @@ -38347,7 +38458,7 @@ declare namespace WebAssembly { * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow) */ - grow(delta: number): number; + grow(delta: AddressValue): AddressValue; } var Memory: { @@ -38365,7 +38476,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource): Module; + new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; /** * The **`WebAssembly.Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -38406,25 +38517,25 @@ declare namespace WebAssembly { * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length) */ - readonly length: number; + readonly length: AddressValue; /** * The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get) */ - get(index: number): any; + get(index: AddressValue): any; /** * The **`grow()`** prototype method of the `WebAssembly.Table` object increases the size of the `Table` instance by a specified number of elements, filled with the provided value. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow) */ - grow(delta: number, value?: any): number; + grow(delta: AddressValue, value?: any): AddressValue; /** * The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set) */ - set(index: number, value?: any): void; + set(index: AddressValue, value?: any): void; } var Table: { @@ -38432,14 +38543,28 @@ declare namespace WebAssembly { new(descriptor: TableDescriptor, value?: any): Table; }; + /** + * The **`WebAssembly.Tag`** object defines a _type_ of a WebAssembly exception that can be thrown to/from WebAssembly code. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag) + */ + interface Tag { + } + + var Tag: { + prototype: Tag; + new(type: TagType): Tag; + }; + interface GlobalDescriptor { mutable?: boolean; value: T; } interface MemoryDescriptor { - initial: number; - maximum?: number; + address?: AddressType; + initial: AddressValue; + maximum?: AddressValue; shared?: boolean; } @@ -38455,9 +38580,10 @@ declare namespace WebAssembly { } interface TableDescriptor { + address?: AddressType; element: TableKind; - initial: number; - maximum?: number; + initial: AddressValue; + maximum?: AddressValue; } interface ValueTypeMap { @@ -38475,7 +38601,7 @@ declare namespace WebAssembly { module: Module; } - type ImportExportKind = "function" | "global" | "memory" | "table"; + type ImportExportKind = "function" | "global" | "memory" | "table" | "tag"; type TableKind = "anyfunc" | "externref"; type ExportValue = Function | Global | Memory | Table; type Exports = Record; @@ -38484,16 +38610,16 @@ declare namespace WebAssembly { type ModuleImports = Record; type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource): Promise; + function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ - function compileStreaming(source: Response | PromiseLike): Promise; + function compileStreaming(source: Response | PromiseLike, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports): Promise; + function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */ - function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports): Promise; + function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource): boolean; + function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -39735,6 +39861,8 @@ declare var onwebkitanimationstart: ((this: Window, ev: Event) => any) | null; declare var onwebkittransitionend: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/wheel_event) */ declare var onwheel: ((this: Window, ev: WheelEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */ +declare var pushManager: PushManager; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/afterprint_event) */ declare var onafterprint: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeprint_event) */ @@ -39830,6 +39958,7 @@ declare function addEventListener(type: K, liste declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; declare function removeEventListener(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void; declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +type AddressValue = any; type AlgorithmIdentifier = Algorithm | string; type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView; type AutoFill = AutoFillBase | `${OptionalPrefixToken}${OptionalPrefixToken}${AutoFillField}${OptionalPostfixToken}`; @@ -39909,6 +40038,7 @@ type Uint32List = Uint32Array | GLuint[]; type VibratePattern = number | number[]; type WindowProxy = Window; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; +type AddressType = "i32" | "i64"; type AlignSetting = "center" | "end" | "left" | "right" | "start"; type AlphaOption = "discard" | "keep"; type AnimationPlayState = "finished" | "idle" | "paused" | "running"; @@ -40008,6 +40138,7 @@ type MediaKeySessionType = "persistent-license" | "temporary"; type MediaKeyStatus = "expired" | "internal-error" | "output-downscaled" | "output-restricted" | "released" | "status-pending" | "usable" | "usable-in-future"; type MediaKeysRequirement = "not-allowed" | "optional" | "required"; type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop"; +type MediaSessionEnterPictureInPictureReason = "contentoccluded" | "other" | "useraction"; type MediaSessionPlaybackState = "none" | "paused" | "playing"; type MediaStreamTrackState = "ended" | "live"; type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload"; @@ -40016,6 +40147,7 @@ type NotificationDirection = "auto" | "ltr" | "rtl"; type NotificationPermission = "default" | "denied" | "granted"; type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu"; type OpusBitstreamFormat = "ogg" | "opus"; +type OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary"; type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary"; type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle"; type OverSampleType = "2x" | "4x" | "none"; @@ -40033,7 +40165,7 @@ type PublicKeyCredentialType = "public-key"; type PushEncryptionKeyName = "auth" | "p256dh"; type RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat"; type RTCDataChannelState = "closed" | "closing" | "connecting" | "open"; -type RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution"; +type RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-framerate-and-resolution" | "maintain-resolution"; type RTCDtlsRole = "client" | "server" | "unknown"; type RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new"; type RTCEncodedVideoFrameType = "delta" | "empty" | "key"; diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index df04625cc..3b57f34a7 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -208,6 +208,10 @@ interface EventSourceInit { withCredentials?: boolean; } +interface ExceptionOptions { + traceStack?: boolean; +} + interface ExtendableCookieChangeEventInit extends ExtendableEventInit { changed?: CookieList; deleted?: CookieList; @@ -705,6 +709,10 @@ interface StructuredSerializeOptions { transfer?: Transferable[]; } +interface TagType { + parameters: ValueType[]; +} + interface TaskControllerInit { priority?: TaskPriority; } @@ -816,6 +824,11 @@ interface VideoConfiguration { width: number; } +interface WebAssemblyCompileOptions { + builtins?: string[]; + importedStringConstants?: string | null; +} + interface WebGLContextAttributes { alpha?: boolean; antialias?: boolean; @@ -4337,6 +4350,7 @@ interface IDBDatabase extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames) */ readonly objectStoreNames: DOMStringList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */ onabort: ((this: IDBDatabase, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */ onclose: ((this: IDBDatabase, ev: Event) => any) | null; @@ -6240,6 +6254,12 @@ declare var PushManager: { readonly supportedContentEncodings: ReadonlyArray; }; +/** Available only in secure contexts. */ +interface PushManagerAttribute { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */ + readonly pushManager: PushManager; +} + /** * The **`PushMessageData`** interface of the Push API provides methods which let you retrieve the push data sent by a server in various formats. * Available only in secure contexts. @@ -7109,7 +7129,7 @@ interface ServiceWorkerRegistrationEventMap { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration) */ -interface ServiceWorkerRegistration extends EventTarget { +interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute { /** * The **`active`** read-only property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is `activating` or `activated`. * @@ -7136,12 +7156,6 @@ interface ServiceWorkerRegistration extends EventTarget { readonly navigationPreload: NavigationPreloadManager; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */ onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null; - /** - * The **`pushManager`** read-only property of the ServiceWorkerRegistration interface returns a reference to the PushManager interface for managing push subscriptions; this includes support for subscribing, getting an active subscription, and accessing push permission status. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) - */ - readonly pushManager: PushManager; /** * The **`scope`** read-only property of the ServiceWorkerRegistration interface returns a string representing a URL that defines a service worker's registration scope; that is, the range of URLs a service worker can control. * @@ -11048,6 +11062,37 @@ declare namespace WebAssembly { (message?: string): CompileError; }; + /** + * The **`WebAssembly.Exception`** object represents a runtime exception thrown from WebAssembly to JavaScript, or thrown from JavaScript to a WebAssembly exception handler. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception) + */ + interface Exception { + /** + * The read-only **`stack`** property of an object instance of type `WebAssembly.Exception` _may_ contain a stack trace. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/stack) + */ + readonly stack: string | undefined; + /** + * The **`getArg()`** prototype method of the `Exception` object can be used to get the value of a specified item in the exception's data arguments. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg) + */ + getArg(index: number): any; + /** + * The **`is()`** prototype method of the `Exception` object can be used to test if the `Exception` matches a given tag. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/is) + */ + is(exceptionTag: Tag): boolean; + } + + var Exception: { + prototype: Exception; + new(exceptionTag: Tag, payload: any[], options?: ExceptionOptions): Exception; + }; + /** * A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances. * @@ -11108,7 +11153,7 @@ declare namespace WebAssembly { * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow) */ - grow(delta: number): number; + grow(delta: AddressValue): AddressValue; } var Memory: { @@ -11126,7 +11171,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource): Module; + new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; /** * The **`WebAssembly.Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -11167,25 +11212,25 @@ declare namespace WebAssembly { * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length) */ - readonly length: number; + readonly length: AddressValue; /** * The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get) */ - get(index: number): any; + get(index: AddressValue): any; /** * The **`grow()`** prototype method of the `WebAssembly.Table` object increases the size of the `Table` instance by a specified number of elements, filled with the provided value. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow) */ - grow(delta: number, value?: any): number; + grow(delta: AddressValue, value?: any): AddressValue; /** * The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set) */ - set(index: number, value?: any): void; + set(index: AddressValue, value?: any): void; } var Table: { @@ -11193,14 +11238,28 @@ declare namespace WebAssembly { new(descriptor: TableDescriptor, value?: any): Table; }; + /** + * The **`WebAssembly.Tag`** object defines a _type_ of a WebAssembly exception that can be thrown to/from WebAssembly code. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag) + */ + interface Tag { + } + + var Tag: { + prototype: Tag; + new(type: TagType): Tag; + }; + interface GlobalDescriptor { mutable?: boolean; value: T; } interface MemoryDescriptor { - initial: number; - maximum?: number; + address?: AddressType; + initial: AddressValue; + maximum?: AddressValue; shared?: boolean; } @@ -11216,9 +11275,10 @@ declare namespace WebAssembly { } interface TableDescriptor { + address?: AddressType; element: TableKind; - initial: number; - maximum?: number; + initial: AddressValue; + maximum?: AddressValue; } interface ValueTypeMap { @@ -11236,7 +11296,7 @@ declare namespace WebAssembly { module: Module; } - type ImportExportKind = "function" | "global" | "memory" | "table"; + type ImportExportKind = "function" | "global" | "memory" | "table" | "tag"; type TableKind = "anyfunc" | "externref"; type ExportValue = Function | Global | Memory | Table; type Exports = Record; @@ -11245,16 +11305,16 @@ declare namespace WebAssembly { type ModuleImports = Record; type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource): Promise; + function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ - function compileStreaming(source: Response | PromiseLike): Promise; + function compileStreaming(source: Response | PromiseLike, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports): Promise; + function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */ - function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports): Promise; + function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource): boolean; + function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -11598,6 +11658,7 @@ declare function addEventListener(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +type AddressValue = any; type AlgorithmIdentifier = Algorithm | string; type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView; type BigInteger = Uint8Array; @@ -11651,6 +11712,7 @@ type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; +type AddressType = "i32" | "i64"; type BinaryType = "arraybuffer" | "blob"; type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum"; type CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time"; diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index f33bbf925..c4ba6dcd3 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -176,6 +176,10 @@ interface EventSourceInit { withCredentials?: boolean; } +interface ExceptionOptions { + traceStack?: boolean; +} + interface FilePropertyBag extends BlobPropertyBag { lastModified?: number; } @@ -635,6 +639,10 @@ interface StructuredSerializeOptions { transfer?: Transferable[]; } +interface TagType { + parameters: ValueType[]; +} + interface TaskControllerInit { priority?: TaskPriority; } @@ -746,6 +754,11 @@ interface VideoConfiguration { width: number; } +interface WebAssemblyCompileOptions { + builtins?: string[]; + importedStringConstants?: string | null; +} + interface WebGLContextAttributes { alpha?: boolean; antialias?: boolean; @@ -4020,6 +4033,7 @@ interface IDBDatabase extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames) */ readonly objectStoreNames: DOMStringList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */ onabort: ((this: IDBDatabase, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */ onclose: ((this: IDBDatabase, ev: Event) => any) | null; @@ -5878,6 +5892,12 @@ declare var PushManager: { readonly supportedContentEncodings: ReadonlyArray; }; +/** Available only in secure contexts. */ +interface PushManagerAttribute { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */ + readonly pushManager: PushManager; +} + /** * The `PushSubscription` interface of the Push API provides a subscription's URL endpoint along with the public key and secrets that should be used for encrypting push messages to this subscription. * Available only in secure contexts. @@ -6611,7 +6631,7 @@ interface ServiceWorkerRegistrationEventMap { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration) */ -interface ServiceWorkerRegistration extends EventTarget { +interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute { /** * The **`active`** read-only property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is `activating` or `activated`. * @@ -6632,12 +6652,6 @@ interface ServiceWorkerRegistration extends EventTarget { readonly navigationPreload: NavigationPreloadManager; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */ onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null; - /** - * The **`pushManager`** read-only property of the ServiceWorkerRegistration interface returns a reference to the PushManager interface for managing push subscriptions; this includes support for subscribing, getting an active subscription, and accessing push permission status. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) - */ - readonly pushManager: PushManager; /** * The **`scope`** read-only property of the ServiceWorkerRegistration interface returns a string representing a URL that defines a service worker's registration scope; that is, the range of URLs a service worker can control. * @@ -10774,6 +10788,37 @@ declare namespace WebAssembly { (message?: string): CompileError; }; + /** + * The **`WebAssembly.Exception`** object represents a runtime exception thrown from WebAssembly to JavaScript, or thrown from JavaScript to a WebAssembly exception handler. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception) + */ + interface Exception { + /** + * The read-only **`stack`** property of an object instance of type `WebAssembly.Exception` _may_ contain a stack trace. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/stack) + */ + readonly stack: string | undefined; + /** + * The **`getArg()`** prototype method of the `Exception` object can be used to get the value of a specified item in the exception's data arguments. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg) + */ + getArg(index: number): any; + /** + * The **`is()`** prototype method of the `Exception` object can be used to test if the `Exception` matches a given tag. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/is) + */ + is(exceptionTag: Tag): boolean; + } + + var Exception: { + prototype: Exception; + new(exceptionTag: Tag, payload: any[], options?: ExceptionOptions): Exception; + }; + /** * A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances. * @@ -10834,7 +10879,7 @@ declare namespace WebAssembly { * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow) */ - grow(delta: number): number; + grow(delta: AddressValue): AddressValue; } var Memory: { @@ -10852,7 +10897,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource): Module; + new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; /** * The **`WebAssembly.Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -10893,25 +10938,25 @@ declare namespace WebAssembly { * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length) */ - readonly length: number; + readonly length: AddressValue; /** * The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get) */ - get(index: number): any; + get(index: AddressValue): any; /** * The **`grow()`** prototype method of the `WebAssembly.Table` object increases the size of the `Table` instance by a specified number of elements, filled with the provided value. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow) */ - grow(delta: number, value?: any): number; + grow(delta: AddressValue, value?: any): AddressValue; /** * The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set) */ - set(index: number, value?: any): void; + set(index: AddressValue, value?: any): void; } var Table: { @@ -10919,14 +10964,28 @@ declare namespace WebAssembly { new(descriptor: TableDescriptor, value?: any): Table; }; + /** + * The **`WebAssembly.Tag`** object defines a _type_ of a WebAssembly exception that can be thrown to/from WebAssembly code. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag) + */ + interface Tag { + } + + var Tag: { + prototype: Tag; + new(type: TagType): Tag; + }; + interface GlobalDescriptor { mutable?: boolean; value: T; } interface MemoryDescriptor { - initial: number; - maximum?: number; + address?: AddressType; + initial: AddressValue; + maximum?: AddressValue; shared?: boolean; } @@ -10942,9 +11001,10 @@ declare namespace WebAssembly { } interface TableDescriptor { + address?: AddressType; element: TableKind; - initial: number; - maximum?: number; + initial: AddressValue; + maximum?: AddressValue; } interface ValueTypeMap { @@ -10962,7 +11022,7 @@ declare namespace WebAssembly { module: Module; } - type ImportExportKind = "function" | "global" | "memory" | "table"; + type ImportExportKind = "function" | "global" | "memory" | "table" | "tag"; type TableKind = "anyfunc" | "externref"; type ExportValue = Function | Global | Memory | Table; type Exports = Record; @@ -10971,16 +11031,16 @@ declare namespace WebAssembly { type ModuleImports = Record; type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource): Promise; + function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ - function compileStreaming(source: Response | PromiseLike): Promise; + function compileStreaming(source: Response | PromiseLike, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports): Promise; + function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */ - function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports): Promise; + function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource): boolean; + function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -11288,6 +11348,7 @@ declare function addEventListener(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +type AddressValue = any; type AlgorithmIdentifier = Algorithm | string; type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView; type BigInteger = Uint8Array; @@ -11339,6 +11400,7 @@ type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; +type AddressType = "i32" | "i64"; type BinaryType = "arraybuffer" | "blob"; type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum"; type CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time"; diff --git a/baselines/ts5.5/audioworklet.generated.d.ts b/baselines/ts5.5/audioworklet.generated.d.ts index 2b853ce56..de47eb8ed 100644 --- a/baselines/ts5.5/audioworklet.generated.d.ts +++ b/baselines/ts5.5/audioworklet.generated.d.ts @@ -30,6 +30,10 @@ interface EventListenerOptions { capture?: boolean; } +interface ExceptionOptions { + traceStack?: boolean; +} + interface MessageEventInit extends EventInit { data?: T; lastEventId?: string; @@ -125,6 +129,10 @@ interface StructuredSerializeOptions { transfer?: Transferable[]; } +interface TagType { + parameters: ValueType[]; +} + interface TextDecodeOptions { stream?: boolean; } @@ -178,6 +186,11 @@ interface UnderlyingSource { type?: ReadableStreamType; } +interface WebAssemblyCompileOptions { + builtins?: string[]; + importedStringConstants?: string | null; +} + /** * The **`AbortController`** interface represents a controller object that allows you to abort one or more Web requests as and when desired. * @@ -1540,6 +1553,37 @@ declare namespace WebAssembly { (message?: string): CompileError; }; + /** + * The **`WebAssembly.Exception`** object represents a runtime exception thrown from WebAssembly to JavaScript, or thrown from JavaScript to a WebAssembly exception handler. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception) + */ + interface Exception { + /** + * The read-only **`stack`** property of an object instance of type `WebAssembly.Exception` _may_ contain a stack trace. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/stack) + */ + readonly stack: string | undefined; + /** + * The **`getArg()`** prototype method of the `Exception` object can be used to get the value of a specified item in the exception's data arguments. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg) + */ + getArg(index: number): any; + /** + * The **`is()`** prototype method of the `Exception` object can be used to test if the `Exception` matches a given tag. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/is) + */ + is(exceptionTag: Tag): boolean; + } + + var Exception: { + prototype: Exception; + new(exceptionTag: Tag, payload: any[], options?: ExceptionOptions): Exception; + }; + /** * A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances. * @@ -1600,7 +1644,7 @@ declare namespace WebAssembly { * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow) */ - grow(delta: number): number; + grow(delta: AddressValue): AddressValue; } var Memory: { @@ -1618,7 +1662,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource): Module; + new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; /** * The **`WebAssembly.Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -1659,25 +1703,25 @@ declare namespace WebAssembly { * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length) */ - readonly length: number; + readonly length: AddressValue; /** * The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get) */ - get(index: number): any; + get(index: AddressValue): any; /** * The **`grow()`** prototype method of the `WebAssembly.Table` object increases the size of the `Table` instance by a specified number of elements, filled with the provided value. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow) */ - grow(delta: number, value?: any): number; + grow(delta: AddressValue, value?: any): AddressValue; /** * The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set) */ - set(index: number, value?: any): void; + set(index: AddressValue, value?: any): void; } var Table: { @@ -1685,14 +1729,28 @@ declare namespace WebAssembly { new(descriptor: TableDescriptor, value?: any): Table; }; + /** + * The **`WebAssembly.Tag`** object defines a _type_ of a WebAssembly exception that can be thrown to/from WebAssembly code. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag) + */ + interface Tag { + } + + var Tag: { + prototype: Tag; + new(type: TagType): Tag; + }; + interface GlobalDescriptor { mutable?: boolean; value: T; } interface MemoryDescriptor { - initial: number; - maximum?: number; + address?: AddressType; + initial: AddressValue; + maximum?: AddressValue; shared?: boolean; } @@ -1708,9 +1766,10 @@ declare namespace WebAssembly { } interface TableDescriptor { + address?: AddressType; element: TableKind; - initial: number; - maximum?: number; + initial: AddressValue; + maximum?: AddressValue; } interface ValueTypeMap { @@ -1728,7 +1787,7 @@ declare namespace WebAssembly { module: Module; } - type ImportExportKind = "function" | "global" | "memory" | "table"; + type ImportExportKind = "function" | "global" | "memory" | "table" | "tag"; type TableKind = "anyfunc" | "externref"; type ExportValue = Function | Global | Memory | Table; type Exports = Record; @@ -1737,12 +1796,12 @@ declare namespace WebAssembly { type ModuleImports = Record; type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource): Promise; + function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports): Promise; + function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource): boolean; + function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -1943,6 +2002,7 @@ declare var sampleRate: number; * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope/registerProcessor) */ declare function registerProcessor(name: string, processorCtor: AudioWorkletProcessorConstructor): void; +type AddressValue = any; type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView; type BufferSource = ArrayBufferView | ArrayBuffer; type DOMHighResTimeStamp = number; @@ -1952,6 +2012,7 @@ type ReadableStreamController = ReadableStreamDefaultController | Readable type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableStreamReadDoneResult; type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type Transferable = MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; +type AddressType = "i32" | "i64"; type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; type ReadableStreamReaderMode = "byob"; type ReadableStreamType = "bytes"; diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index c8c421f5b..2b6dc2a72 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -357,6 +357,11 @@ interface CloseEventInit extends EventInit { wasClean?: boolean; } +interface CommandEventInit extends EventInit { + command?: string; + source?: Element | null; +} + interface CompositionEventInit extends UIEventInit { data?: string; } @@ -689,6 +694,10 @@ interface EventSourceInit { withCredentials?: boolean; } +interface ExceptionOptions { + traceStack?: boolean; +} + interface FilePropertyBag extends BlobPropertyBag { lastModified?: number; } @@ -1103,6 +1112,7 @@ interface MediaRecorderOptions { interface MediaSessionActionDetails { action: MediaSessionAction; + enterPictureInPictureReason?: MediaSessionEnterPictureInPictureReason; fastSeek?: boolean; seekOffset?: number; seekTime?: number; @@ -2272,6 +2282,10 @@ interface SubmitEventInit extends EventInit { submitter?: HTMLElement | null; } +interface TagType { + parameters: ValueType[]; +} + interface TaskControllerInit { priority?: TaskPriority; } @@ -2570,6 +2584,11 @@ interface WaveShaperOptions extends AudioNodeOptions { oversample?: OverSampleType; } +interface WebAssemblyCompileOptions { + builtins?: string[]; + importedStringConstants?: string | null; +} + interface WebGLContextAttributes { alpha?: boolean; antialias?: boolean; @@ -3269,6 +3288,7 @@ interface AnimationTimeline { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime) */ readonly currentTime: CSSNumberish | null; + /** The **`duration`** read-only property of the Web Animations API's AnimationTimeline interface returns the maximum value for this timeline or `null`. */ readonly duration: CSSNumberish | null; } @@ -8387,6 +8407,31 @@ declare var CloseEvent: { new(type: string, eventInitDict?: CloseEventInit): CloseEvent; }; +/** + * The **`CommandEvent`** interface represents an event notifying the user when a HTMLButtonElement element with valid HTMLButtonElement.commandForElement and HTMLButtonElement.command attributes is about to invoke an interactive element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CommandEvent) + */ +interface CommandEvent extends Event { + /** + * The **`command`** read-only property of the CommandEvent interface returns a string containing the value of the HTMLButtonElement.command property at the time the event was dispatched. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CommandEvent/command) + */ + readonly command: string; + /** + * The **`source`** read-only property of the CommandEvent interface returns an EventTarget representing the control that invoked the given command. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CommandEvent/source) + */ + readonly source: Element | null; +} + +declare var CommandEvent: { + prototype: CommandEvent; + new(type: string, eventInitDict?: CommandEventInit): CommandEvent; +}; + /** * The **`Comment`** interface represents textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. * @@ -10454,6 +10499,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve createEvent(eventInterface: "BlobEvent"): BlobEvent; createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent; createEvent(eventInterface: "CloseEvent"): CloseEvent; + createEvent(eventInterface: "CommandEvent"): CommandEvent; createEvent(eventInterface: "CompositionEvent"): CompositionEvent; createEvent(eventInterface: "ContentVisibilityAutoStateChangeEvent"): ContentVisibilityAutoStateChangeEvent; createEvent(eventInterface: "CookieChangeEvent"): CookieChangeEvent; @@ -13588,6 +13634,18 @@ declare var HTMLBodyElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement) */ interface HTMLButtonElement extends HTMLElement, PopoverTargetAttributes { + /** + * The **`command`** property of the HTMLButtonElement interface gets and sets the action to be performed on an element being controlled by this button. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/command) + */ + command: string; + /** + * The **`commandForElement`** property of the HTMLButtonElement interface gets and sets the element to control via a button. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/commandForElement) + */ + commandForElement: Element | null; /** * The **`HTMLButtonElement.disabled`** property indicates whether the control is disabled, meaning that it does not accept any clicks. * @@ -14074,7 +14132,7 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit */ innerText: string; /** - * The **`lang`** property of the HTMLElement interface indicates the base language of an element's attribute values and text content, in the form of a MISSING: RFC(5646, 'BCP 47 language identifier tag')]. + * The **`lang`** property of the HTMLElement interface indicates the base language of an element's attribute values and text content, in the form of a BCP 47 language tag. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang) */ @@ -16727,7 +16785,7 @@ interface HTMLScriptElement extends HTMLElement { */ src: string; /** - * The **`text`** property of the HTMLScriptElement interface is a string that reflects the text content inside the script element. + * The **`text`** property of the HTMLScriptElement interface represents the inline text content of the script element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/text) */ @@ -18367,6 +18425,7 @@ interface IDBDatabase extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames) */ readonly objectStoreNames: DOMStringList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */ onabort: ((this: IDBDatabase, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */ onclose: ((this: IDBDatabase, ev: Event) => any) | null; @@ -23007,6 +23066,8 @@ interface ParentNode extends Node { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/append) */ append(...nodes: (Node | string)[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/moveBefore) */ + moveBefore(node: Node, child: Node | null): void; /** * Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes. * @@ -23534,6 +23595,12 @@ interface PerformanceEventTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/cancelable) */ readonly cancelable: boolean; + /** + * The read-only **`interactionId`** property returns an ID that uniquely identifies a user interaction which triggered a series of associated events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/interactionId) + */ + readonly interactionId: number; /** * The read-only **`processingEnd`** property returns the time the last event handler finished executing. * @@ -24678,6 +24745,12 @@ declare var PushManager: { readonly supportedContentEncodings: ReadonlyArray; }; +/** Available only in secure contexts. */ +interface PushManagerAttribute { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */ + readonly pushManager: PushManager; +} + /** * The `PushSubscription` interface of the Push API provides a subscription's URL endpoint along with the public key and secrets that should be used for encrypting push messages to this subscription. * Available only in secure contexts. @@ -29061,6 +29134,7 @@ interface SVGMarkerElement extends SVGElement, SVGFitToViewBox { readonly SVG_MARKER_ORIENT_UNKNOWN: 0; readonly SVG_MARKER_ORIENT_AUTO: 1; readonly SVG_MARKER_ORIENT_ANGLE: 2; + readonly SVG_MARKER_ORIENT_AUTO_START_REVERSE: 3; addEventListener(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -29076,6 +29150,7 @@ declare var SVGMarkerElement: { readonly SVG_MARKER_ORIENT_UNKNOWN: 0; readonly SVG_MARKER_ORIENT_AUTO: 1; readonly SVG_MARKER_ORIENT_ANGLE: 2; + readonly SVG_MARKER_ORIENT_AUTO_START_REVERSE: 3; }; /** @@ -29720,7 +29795,7 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/getElementById) */ - getElementById(elementId: string): Element; + getElementById(elementId: string): Element | null; getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf; getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf; /** @@ -29895,6 +29970,11 @@ declare var SVGStringList: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement) */ interface SVGStyleElement extends SVGElement, LinkStyle { + /** + * The **`SVGStyleElement.disabled`** property can be used to get and set whether the stylesheet is disabled (`true`) or not (`false`). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/disabled) + */ disabled: boolean; /** * The **`SVGStyleElement.media`** property is a media query string corresponding to the `media` attribute of the given SVG style element. @@ -30545,7 +30625,13 @@ interface ScreenOrientation extends EventTarget { */ readonly type: OrientationType; /** - * The **`unlock()`** method of the ScreenOrientation interface unlocks the orientation of the containing document from its default orientation. + * The **`lock()`** method of the ScreenOrientation interface locks the orientation of the containing document to the specified orientation. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/lock) + */ + lock(orientation: OrientationLockType): Promise; + /** + * The **`unlock()`** method of the ScreenOrientation interface unlocks the orientation of the containing document, effectively locking it to the default screen orientation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/unlock) */ @@ -30984,7 +31070,7 @@ interface ServiceWorkerRegistrationEventMap { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration) */ -interface ServiceWorkerRegistration extends EventTarget { +interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute { /** * The **`active`** read-only property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is `activating` or `activated`. * @@ -31011,12 +31097,6 @@ interface ServiceWorkerRegistration extends EventTarget { readonly navigationPreload: NavigationPreloadManager; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */ onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null; - /** - * The **`pushManager`** read-only property of the ServiceWorkerRegistration interface returns a reference to the PushManager interface for managing push subscriptions; this includes support for subscribing, getting an active subscription, and accessing push permission status. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) - */ - readonly pushManager: PushManager; /** * The **`scope`** read-only property of the ServiceWorkerRegistration interface returns a string representing a URL that defines a service worker's registration scope; that is, the range of URLs a service worker can control. * @@ -36938,7 +37018,7 @@ interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandler * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window) */ -interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage { +interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, PushManagerAttribute, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage { /** * @deprecated This is a legacy alias of `navigator`. * @@ -38264,6 +38344,37 @@ declare namespace WebAssembly { (message?: string): CompileError; }; + /** + * The **`WebAssembly.Exception`** object represents a runtime exception thrown from WebAssembly to JavaScript, or thrown from JavaScript to a WebAssembly exception handler. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception) + */ + interface Exception { + /** + * The read-only **`stack`** property of an object instance of type `WebAssembly.Exception` _may_ contain a stack trace. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/stack) + */ + readonly stack: string | undefined; + /** + * The **`getArg()`** prototype method of the `Exception` object can be used to get the value of a specified item in the exception's data arguments. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg) + */ + getArg(index: number): any; + /** + * The **`is()`** prototype method of the `Exception` object can be used to test if the `Exception` matches a given tag. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/is) + */ + is(exceptionTag: Tag): boolean; + } + + var Exception: { + prototype: Exception; + new(exceptionTag: Tag, payload: any[], options?: ExceptionOptions): Exception; + }; + /** * A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances. * @@ -38324,7 +38435,7 @@ declare namespace WebAssembly { * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow) */ - grow(delta: number): number; + grow(delta: AddressValue): AddressValue; } var Memory: { @@ -38342,7 +38453,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource): Module; + new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; /** * The **`WebAssembly.Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -38383,25 +38494,25 @@ declare namespace WebAssembly { * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length) */ - readonly length: number; + readonly length: AddressValue; /** * The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get) */ - get(index: number): any; + get(index: AddressValue): any; /** * The **`grow()`** prototype method of the `WebAssembly.Table` object increases the size of the `Table` instance by a specified number of elements, filled with the provided value. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow) */ - grow(delta: number, value?: any): number; + grow(delta: AddressValue, value?: any): AddressValue; /** * The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set) */ - set(index: number, value?: any): void; + set(index: AddressValue, value?: any): void; } var Table: { @@ -38409,14 +38520,28 @@ declare namespace WebAssembly { new(descriptor: TableDescriptor, value?: any): Table; }; + /** + * The **`WebAssembly.Tag`** object defines a _type_ of a WebAssembly exception that can be thrown to/from WebAssembly code. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag) + */ + interface Tag { + } + + var Tag: { + prototype: Tag; + new(type: TagType): Tag; + }; + interface GlobalDescriptor { mutable?: boolean; value: T; } interface MemoryDescriptor { - initial: number; - maximum?: number; + address?: AddressType; + initial: AddressValue; + maximum?: AddressValue; shared?: boolean; } @@ -38432,9 +38557,10 @@ declare namespace WebAssembly { } interface TableDescriptor { + address?: AddressType; element: TableKind; - initial: number; - maximum?: number; + initial: AddressValue; + maximum?: AddressValue; } interface ValueTypeMap { @@ -38452,7 +38578,7 @@ declare namespace WebAssembly { module: Module; } - type ImportExportKind = "function" | "global" | "memory" | "table"; + type ImportExportKind = "function" | "global" | "memory" | "table" | "tag"; type TableKind = "anyfunc" | "externref"; type ExportValue = Function | Global | Memory | Table; type Exports = Record; @@ -38461,16 +38587,16 @@ declare namespace WebAssembly { type ModuleImports = Record; type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource): Promise; + function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ - function compileStreaming(source: Response | PromiseLike): Promise; + function compileStreaming(source: Response | PromiseLike, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports): Promise; + function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */ - function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports): Promise; + function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource): boolean; + function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -39712,6 +39838,8 @@ declare var onwebkitanimationstart: ((this: Window, ev: Event) => any) | null; declare var onwebkittransitionend: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/wheel_event) */ declare var onwheel: ((this: Window, ev: WheelEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */ +declare var pushManager: PushManager; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/afterprint_event) */ declare var onafterprint: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeprint_event) */ @@ -39807,6 +39935,7 @@ declare function addEventListener(type: K, liste declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; declare function removeEventListener(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void; declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +type AddressValue = any; type AlgorithmIdentifier = Algorithm | string; type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView; type AutoFill = AutoFillBase | `${OptionalPrefixToken}${OptionalPrefixToken}${AutoFillField}${OptionalPostfixToken}`; @@ -39886,6 +40015,7 @@ type Uint32List = Uint32Array | GLuint[]; type VibratePattern = number | number[]; type WindowProxy = Window; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; +type AddressType = "i32" | "i64"; type AlignSetting = "center" | "end" | "left" | "right" | "start"; type AlphaOption = "discard" | "keep"; type AnimationPlayState = "finished" | "idle" | "paused" | "running"; @@ -39985,6 +40115,7 @@ type MediaKeySessionType = "persistent-license" | "temporary"; type MediaKeyStatus = "expired" | "internal-error" | "output-downscaled" | "output-restricted" | "released" | "status-pending" | "usable" | "usable-in-future"; type MediaKeysRequirement = "not-allowed" | "optional" | "required"; type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop"; +type MediaSessionEnterPictureInPictureReason = "contentoccluded" | "other" | "useraction"; type MediaSessionPlaybackState = "none" | "paused" | "playing"; type MediaStreamTrackState = "ended" | "live"; type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload"; @@ -39993,6 +40124,7 @@ type NotificationDirection = "auto" | "ltr" | "rtl"; type NotificationPermission = "default" | "denied" | "granted"; type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu"; type OpusBitstreamFormat = "ogg" | "opus"; +type OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary"; type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary"; type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle"; type OverSampleType = "2x" | "4x" | "none"; @@ -40010,7 +40142,7 @@ type PublicKeyCredentialType = "public-key"; type PushEncryptionKeyName = "auth" | "p256dh"; type RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat"; type RTCDataChannelState = "closed" | "closing" | "connecting" | "open"; -type RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution"; +type RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-framerate-and-resolution" | "maintain-resolution"; type RTCDtlsRole = "client" | "server" | "unknown"; type RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new"; type RTCEncodedVideoFrameType = "delta" | "empty" | "key"; diff --git a/baselines/ts5.5/serviceworker.generated.d.ts b/baselines/ts5.5/serviceworker.generated.d.ts index 72e9bdb2a..e6176810e 100644 --- a/baselines/ts5.5/serviceworker.generated.d.ts +++ b/baselines/ts5.5/serviceworker.generated.d.ts @@ -208,6 +208,10 @@ interface EventSourceInit { withCredentials?: boolean; } +interface ExceptionOptions { + traceStack?: boolean; +} + interface ExtendableCookieChangeEventInit extends ExtendableEventInit { changed?: CookieList; deleted?: CookieList; @@ -705,6 +709,10 @@ interface StructuredSerializeOptions { transfer?: Transferable[]; } +interface TagType { + parameters: ValueType[]; +} + interface TaskControllerInit { priority?: TaskPriority; } @@ -816,6 +824,11 @@ interface VideoConfiguration { width: number; } +interface WebAssemblyCompileOptions { + builtins?: string[]; + importedStringConstants?: string | null; +} + interface WebGLContextAttributes { alpha?: boolean; antialias?: boolean; @@ -4337,6 +4350,7 @@ interface IDBDatabase extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames) */ readonly objectStoreNames: DOMStringList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */ onabort: ((this: IDBDatabase, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */ onclose: ((this: IDBDatabase, ev: Event) => any) | null; @@ -6240,6 +6254,12 @@ declare var PushManager: { readonly supportedContentEncodings: ReadonlyArray; }; +/** Available only in secure contexts. */ +interface PushManagerAttribute { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */ + readonly pushManager: PushManager; +} + /** * The **`PushMessageData`** interface of the Push API provides methods which let you retrieve the push data sent by a server in various formats. * Available only in secure contexts. @@ -7109,7 +7129,7 @@ interface ServiceWorkerRegistrationEventMap { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration) */ -interface ServiceWorkerRegistration extends EventTarget { +interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute { /** * The **`active`** read-only property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is `activating` or `activated`. * @@ -7136,12 +7156,6 @@ interface ServiceWorkerRegistration extends EventTarget { readonly navigationPreload: NavigationPreloadManager; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */ onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null; - /** - * The **`pushManager`** read-only property of the ServiceWorkerRegistration interface returns a reference to the PushManager interface for managing push subscriptions; this includes support for subscribing, getting an active subscription, and accessing push permission status. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) - */ - readonly pushManager: PushManager; /** * The **`scope`** read-only property of the ServiceWorkerRegistration interface returns a string representing a URL that defines a service worker's registration scope; that is, the range of URLs a service worker can control. * @@ -11048,6 +11062,37 @@ declare namespace WebAssembly { (message?: string): CompileError; }; + /** + * The **`WebAssembly.Exception`** object represents a runtime exception thrown from WebAssembly to JavaScript, or thrown from JavaScript to a WebAssembly exception handler. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception) + */ + interface Exception { + /** + * The read-only **`stack`** property of an object instance of type `WebAssembly.Exception` _may_ contain a stack trace. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/stack) + */ + readonly stack: string | undefined; + /** + * The **`getArg()`** prototype method of the `Exception` object can be used to get the value of a specified item in the exception's data arguments. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg) + */ + getArg(index: number): any; + /** + * The **`is()`** prototype method of the `Exception` object can be used to test if the `Exception` matches a given tag. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/is) + */ + is(exceptionTag: Tag): boolean; + } + + var Exception: { + prototype: Exception; + new(exceptionTag: Tag, payload: any[], options?: ExceptionOptions): Exception; + }; + /** * A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances. * @@ -11108,7 +11153,7 @@ declare namespace WebAssembly { * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow) */ - grow(delta: number): number; + grow(delta: AddressValue): AddressValue; } var Memory: { @@ -11126,7 +11171,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource): Module; + new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; /** * The **`WebAssembly.Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -11167,25 +11212,25 @@ declare namespace WebAssembly { * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length) */ - readonly length: number; + readonly length: AddressValue; /** * The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get) */ - get(index: number): any; + get(index: AddressValue): any; /** * The **`grow()`** prototype method of the `WebAssembly.Table` object increases the size of the `Table` instance by a specified number of elements, filled with the provided value. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow) */ - grow(delta: number, value?: any): number; + grow(delta: AddressValue, value?: any): AddressValue; /** * The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set) */ - set(index: number, value?: any): void; + set(index: AddressValue, value?: any): void; } var Table: { @@ -11193,14 +11238,28 @@ declare namespace WebAssembly { new(descriptor: TableDescriptor, value?: any): Table; }; + /** + * The **`WebAssembly.Tag`** object defines a _type_ of a WebAssembly exception that can be thrown to/from WebAssembly code. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag) + */ + interface Tag { + } + + var Tag: { + prototype: Tag; + new(type: TagType): Tag; + }; + interface GlobalDescriptor { mutable?: boolean; value: T; } interface MemoryDescriptor { - initial: number; - maximum?: number; + address?: AddressType; + initial: AddressValue; + maximum?: AddressValue; shared?: boolean; } @@ -11216,9 +11275,10 @@ declare namespace WebAssembly { } interface TableDescriptor { + address?: AddressType; element: TableKind; - initial: number; - maximum?: number; + initial: AddressValue; + maximum?: AddressValue; } interface ValueTypeMap { @@ -11236,7 +11296,7 @@ declare namespace WebAssembly { module: Module; } - type ImportExportKind = "function" | "global" | "memory" | "table"; + type ImportExportKind = "function" | "global" | "memory" | "table" | "tag"; type TableKind = "anyfunc" | "externref"; type ExportValue = Function | Global | Memory | Table; type Exports = Record; @@ -11245,16 +11305,16 @@ declare namespace WebAssembly { type ModuleImports = Record; type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource): Promise; + function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ - function compileStreaming(source: Response | PromiseLike): Promise; + function compileStreaming(source: Response | PromiseLike, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports): Promise; + function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */ - function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports): Promise; + function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource): boolean; + function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -11598,6 +11658,7 @@ declare function addEventListener(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +type AddressValue = any; type AlgorithmIdentifier = Algorithm | string; type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView; type BigInteger = Uint8Array; @@ -11651,6 +11712,7 @@ type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; +type AddressType = "i32" | "i64"; type BinaryType = "arraybuffer" | "blob"; type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum"; type CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time"; diff --git a/baselines/ts5.5/sharedworker.generated.d.ts b/baselines/ts5.5/sharedworker.generated.d.ts index 9a1f96ea3..d14b6a727 100644 --- a/baselines/ts5.5/sharedworker.generated.d.ts +++ b/baselines/ts5.5/sharedworker.generated.d.ts @@ -176,6 +176,10 @@ interface EventSourceInit { withCredentials?: boolean; } +interface ExceptionOptions { + traceStack?: boolean; +} + interface FilePropertyBag extends BlobPropertyBag { lastModified?: number; } @@ -635,6 +639,10 @@ interface StructuredSerializeOptions { transfer?: Transferable[]; } +interface TagType { + parameters: ValueType[]; +} + interface TaskControllerInit { priority?: TaskPriority; } @@ -746,6 +754,11 @@ interface VideoConfiguration { width: number; } +interface WebAssemblyCompileOptions { + builtins?: string[]; + importedStringConstants?: string | null; +} + interface WebGLContextAttributes { alpha?: boolean; antialias?: boolean; @@ -4020,6 +4033,7 @@ interface IDBDatabase extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames) */ readonly objectStoreNames: DOMStringList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */ onabort: ((this: IDBDatabase, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */ onclose: ((this: IDBDatabase, ev: Event) => any) | null; @@ -5878,6 +5892,12 @@ declare var PushManager: { readonly supportedContentEncodings: ReadonlyArray; }; +/** Available only in secure contexts. */ +interface PushManagerAttribute { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */ + readonly pushManager: PushManager; +} + /** * The `PushSubscription` interface of the Push API provides a subscription's URL endpoint along with the public key and secrets that should be used for encrypting push messages to this subscription. * Available only in secure contexts. @@ -6611,7 +6631,7 @@ interface ServiceWorkerRegistrationEventMap { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration) */ -interface ServiceWorkerRegistration extends EventTarget { +interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute { /** * The **`active`** read-only property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is `activating` or `activated`. * @@ -6632,12 +6652,6 @@ interface ServiceWorkerRegistration extends EventTarget { readonly navigationPreload: NavigationPreloadManager; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */ onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null; - /** - * The **`pushManager`** read-only property of the ServiceWorkerRegistration interface returns a reference to the PushManager interface for managing push subscriptions; this includes support for subscribing, getting an active subscription, and accessing push permission status. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) - */ - readonly pushManager: PushManager; /** * The **`scope`** read-only property of the ServiceWorkerRegistration interface returns a string representing a URL that defines a service worker's registration scope; that is, the range of URLs a service worker can control. * @@ -10774,6 +10788,37 @@ declare namespace WebAssembly { (message?: string): CompileError; }; + /** + * The **`WebAssembly.Exception`** object represents a runtime exception thrown from WebAssembly to JavaScript, or thrown from JavaScript to a WebAssembly exception handler. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception) + */ + interface Exception { + /** + * The read-only **`stack`** property of an object instance of type `WebAssembly.Exception` _may_ contain a stack trace. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/stack) + */ + readonly stack: string | undefined; + /** + * The **`getArg()`** prototype method of the `Exception` object can be used to get the value of a specified item in the exception's data arguments. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg) + */ + getArg(index: number): any; + /** + * The **`is()`** prototype method of the `Exception` object can be used to test if the `Exception` matches a given tag. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/is) + */ + is(exceptionTag: Tag): boolean; + } + + var Exception: { + prototype: Exception; + new(exceptionTag: Tag, payload: any[], options?: ExceptionOptions): Exception; + }; + /** * A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances. * @@ -10834,7 +10879,7 @@ declare namespace WebAssembly { * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow) */ - grow(delta: number): number; + grow(delta: AddressValue): AddressValue; } var Memory: { @@ -10852,7 +10897,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource): Module; + new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; /** * The **`WebAssembly.Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -10893,25 +10938,25 @@ declare namespace WebAssembly { * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length) */ - readonly length: number; + readonly length: AddressValue; /** * The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get) */ - get(index: number): any; + get(index: AddressValue): any; /** * The **`grow()`** prototype method of the `WebAssembly.Table` object increases the size of the `Table` instance by a specified number of elements, filled with the provided value. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow) */ - grow(delta: number, value?: any): number; + grow(delta: AddressValue, value?: any): AddressValue; /** * The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set) */ - set(index: number, value?: any): void; + set(index: AddressValue, value?: any): void; } var Table: { @@ -10919,14 +10964,28 @@ declare namespace WebAssembly { new(descriptor: TableDescriptor, value?: any): Table; }; + /** + * The **`WebAssembly.Tag`** object defines a _type_ of a WebAssembly exception that can be thrown to/from WebAssembly code. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag) + */ + interface Tag { + } + + var Tag: { + prototype: Tag; + new(type: TagType): Tag; + }; + interface GlobalDescriptor { mutable?: boolean; value: T; } interface MemoryDescriptor { - initial: number; - maximum?: number; + address?: AddressType; + initial: AddressValue; + maximum?: AddressValue; shared?: boolean; } @@ -10942,9 +11001,10 @@ declare namespace WebAssembly { } interface TableDescriptor { + address?: AddressType; element: TableKind; - initial: number; - maximum?: number; + initial: AddressValue; + maximum?: AddressValue; } interface ValueTypeMap { @@ -10962,7 +11022,7 @@ declare namespace WebAssembly { module: Module; } - type ImportExportKind = "function" | "global" | "memory" | "table"; + type ImportExportKind = "function" | "global" | "memory" | "table" | "tag"; type TableKind = "anyfunc" | "externref"; type ExportValue = Function | Global | Memory | Table; type Exports = Record; @@ -10971,16 +11031,16 @@ declare namespace WebAssembly { type ModuleImports = Record; type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource): Promise; + function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ - function compileStreaming(source: Response | PromiseLike): Promise; + function compileStreaming(source: Response | PromiseLike, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports): Promise; + function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */ - function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports): Promise; + function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource): boolean; + function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -11288,6 +11348,7 @@ declare function addEventListener(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +type AddressValue = any; type AlgorithmIdentifier = Algorithm | string; type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView; type BigInteger = Uint8Array; @@ -11339,6 +11400,7 @@ type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; +type AddressType = "i32" | "i64"; type BinaryType = "arraybuffer" | "blob"; type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum"; type CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time"; diff --git a/baselines/ts5.5/webworker.generated.d.ts b/baselines/ts5.5/webworker.generated.d.ts index ace6d6066..fb90674d0 100644 --- a/baselines/ts5.5/webworker.generated.d.ts +++ b/baselines/ts5.5/webworker.generated.d.ts @@ -288,6 +288,10 @@ interface EventSourceInit { withCredentials?: boolean; } +interface ExceptionOptions { + traceStack?: boolean; +} + interface ExtendableCookieChangeEventInit extends ExtendableEventInit { changed?: CookieList; deleted?: CookieList; @@ -849,6 +853,10 @@ interface StructuredSerializeOptions { transfer?: Transferable[]; } +interface TagType { + parameters: ValueType[]; +} + interface TaskControllerInit { priority?: TaskPriority; } @@ -1054,6 +1062,11 @@ interface VideoFrameInit { visibleRect?: DOMRectInit; } +interface WebAssemblyCompileOptions { + builtins?: string[]; + importedStringConstants?: string | null; +} + interface WebGLContextAttributes { alpha?: boolean; antialias?: boolean; @@ -5029,6 +5042,7 @@ interface IDBDatabase extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames) */ readonly objectStoreNames: DOMStringList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */ onabort: ((this: IDBDatabase, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */ onclose: ((this: IDBDatabase, ev: Event) => any) | null; @@ -7101,6 +7115,12 @@ declare var PushManager: { readonly supportedContentEncodings: ReadonlyArray; }; +/** Available only in secure contexts. */ +interface PushManagerAttribute { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */ + readonly pushManager: PushManager; +} + /** * The **`PushMessageData`** interface of the Push API provides methods which let you retrieve the push data sent by a server in various formats. * Available only in secure contexts. @@ -8211,7 +8231,7 @@ interface ServiceWorkerRegistrationEventMap { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration) */ -interface ServiceWorkerRegistration extends EventTarget { +interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute { /** * The **`active`** read-only property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is `activating` or `activated`. * @@ -8238,12 +8258,6 @@ interface ServiceWorkerRegistration extends EventTarget { readonly navigationPreload: NavigationPreloadManager; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */ onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null; - /** - * The **`pushManager`** read-only property of the ServiceWorkerRegistration interface returns a reference to the PushManager interface for managing push subscriptions; this includes support for subscribing, getting an active subscription, and accessing push permission status. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) - */ - readonly pushManager: PushManager; /** * The **`scope`** read-only property of the ServiceWorkerRegistration interface returns a string representing a URL that defines a service worker's registration scope; that is, the range of URLs a service worker can control. * @@ -12702,6 +12716,37 @@ declare namespace WebAssembly { (message?: string): CompileError; }; + /** + * The **`WebAssembly.Exception`** object represents a runtime exception thrown from WebAssembly to JavaScript, or thrown from JavaScript to a WebAssembly exception handler. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception) + */ + interface Exception { + /** + * The read-only **`stack`** property of an object instance of type `WebAssembly.Exception` _may_ contain a stack trace. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/stack) + */ + readonly stack: string | undefined; + /** + * The **`getArg()`** prototype method of the `Exception` object can be used to get the value of a specified item in the exception's data arguments. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg) + */ + getArg(index: number): any; + /** + * The **`is()`** prototype method of the `Exception` object can be used to test if the `Exception` matches a given tag. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/is) + */ + is(exceptionTag: Tag): boolean; + } + + var Exception: { + prototype: Exception; + new(exceptionTag: Tag, payload: any[], options?: ExceptionOptions): Exception; + }; + /** * A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances. * @@ -12762,7 +12807,7 @@ declare namespace WebAssembly { * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow) */ - grow(delta: number): number; + grow(delta: AddressValue): AddressValue; } var Memory: { @@ -12780,7 +12825,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource): Module; + new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; /** * The **`WebAssembly.Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -12821,25 +12866,25 @@ declare namespace WebAssembly { * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length) */ - readonly length: number; + readonly length: AddressValue; /** * The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get) */ - get(index: number): any; + get(index: AddressValue): any; /** * The **`grow()`** prototype method of the `WebAssembly.Table` object increases the size of the `Table` instance by a specified number of elements, filled with the provided value. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow) */ - grow(delta: number, value?: any): number; + grow(delta: AddressValue, value?: any): AddressValue; /** * The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set) */ - set(index: number, value?: any): void; + set(index: AddressValue, value?: any): void; } var Table: { @@ -12847,14 +12892,28 @@ declare namespace WebAssembly { new(descriptor: TableDescriptor, value?: any): Table; }; + /** + * The **`WebAssembly.Tag`** object defines a _type_ of a WebAssembly exception that can be thrown to/from WebAssembly code. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag) + */ + interface Tag { + } + + var Tag: { + prototype: Tag; + new(type: TagType): Tag; + }; + interface GlobalDescriptor { mutable?: boolean; value: T; } interface MemoryDescriptor { - initial: number; - maximum?: number; + address?: AddressType; + initial: AddressValue; + maximum?: AddressValue; shared?: boolean; } @@ -12870,9 +12929,10 @@ declare namespace WebAssembly { } interface TableDescriptor { + address?: AddressType; element: TableKind; - initial: number; - maximum?: number; + initial: AddressValue; + maximum?: AddressValue; } interface ValueTypeMap { @@ -12890,7 +12950,7 @@ declare namespace WebAssembly { module: Module; } - type ImportExportKind = "function" | "global" | "memory" | "table"; + type ImportExportKind = "function" | "global" | "memory" | "table" | "tag"; type TableKind = "anyfunc" | "externref"; type ExportValue = Function | Global | Memory | Table; type Exports = Record; @@ -12899,16 +12959,16 @@ declare namespace WebAssembly { type ModuleImports = Record; type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource): Promise; + function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ - function compileStreaming(source: Response | PromiseLike): Promise; + function compileStreaming(source: Response | PromiseLike, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports): Promise; + function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */ - function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports): Promise; + function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource): boolean; + function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -13255,6 +13315,7 @@ declare function addEventListener(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +type AddressValue = any; type AlgorithmIdentifier = Algorithm | string; type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView; type BigInteger = Uint8Array; @@ -13309,6 +13370,7 @@ type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHan type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; +type AddressType = "i32" | "i64"; type AlphaOption = "discard" | "keep"; type AudioSampleFormat = "f32" | "f32-planar" | "s16" | "s16-planar" | "s32" | "s32-planar" | "u8" | "u8-planar"; type AvcBitstreamFormat = "annexb" | "avc"; diff --git a/baselines/ts5.6/audioworklet.generated.d.ts b/baselines/ts5.6/audioworklet.generated.d.ts index 2b853ce56..de47eb8ed 100644 --- a/baselines/ts5.6/audioworklet.generated.d.ts +++ b/baselines/ts5.6/audioworklet.generated.d.ts @@ -30,6 +30,10 @@ interface EventListenerOptions { capture?: boolean; } +interface ExceptionOptions { + traceStack?: boolean; +} + interface MessageEventInit extends EventInit { data?: T; lastEventId?: string; @@ -125,6 +129,10 @@ interface StructuredSerializeOptions { transfer?: Transferable[]; } +interface TagType { + parameters: ValueType[]; +} + interface TextDecodeOptions { stream?: boolean; } @@ -178,6 +186,11 @@ interface UnderlyingSource { type?: ReadableStreamType; } +interface WebAssemblyCompileOptions { + builtins?: string[]; + importedStringConstants?: string | null; +} + /** * The **`AbortController`** interface represents a controller object that allows you to abort one or more Web requests as and when desired. * @@ -1540,6 +1553,37 @@ declare namespace WebAssembly { (message?: string): CompileError; }; + /** + * The **`WebAssembly.Exception`** object represents a runtime exception thrown from WebAssembly to JavaScript, or thrown from JavaScript to a WebAssembly exception handler. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception) + */ + interface Exception { + /** + * The read-only **`stack`** property of an object instance of type `WebAssembly.Exception` _may_ contain a stack trace. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/stack) + */ + readonly stack: string | undefined; + /** + * The **`getArg()`** prototype method of the `Exception` object can be used to get the value of a specified item in the exception's data arguments. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg) + */ + getArg(index: number): any; + /** + * The **`is()`** prototype method of the `Exception` object can be used to test if the `Exception` matches a given tag. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/is) + */ + is(exceptionTag: Tag): boolean; + } + + var Exception: { + prototype: Exception; + new(exceptionTag: Tag, payload: any[], options?: ExceptionOptions): Exception; + }; + /** * A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances. * @@ -1600,7 +1644,7 @@ declare namespace WebAssembly { * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow) */ - grow(delta: number): number; + grow(delta: AddressValue): AddressValue; } var Memory: { @@ -1618,7 +1662,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource): Module; + new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; /** * The **`WebAssembly.Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -1659,25 +1703,25 @@ declare namespace WebAssembly { * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length) */ - readonly length: number; + readonly length: AddressValue; /** * The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get) */ - get(index: number): any; + get(index: AddressValue): any; /** * The **`grow()`** prototype method of the `WebAssembly.Table` object increases the size of the `Table` instance by a specified number of elements, filled with the provided value. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow) */ - grow(delta: number, value?: any): number; + grow(delta: AddressValue, value?: any): AddressValue; /** * The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set) */ - set(index: number, value?: any): void; + set(index: AddressValue, value?: any): void; } var Table: { @@ -1685,14 +1729,28 @@ declare namespace WebAssembly { new(descriptor: TableDescriptor, value?: any): Table; }; + /** + * The **`WebAssembly.Tag`** object defines a _type_ of a WebAssembly exception that can be thrown to/from WebAssembly code. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag) + */ + interface Tag { + } + + var Tag: { + prototype: Tag; + new(type: TagType): Tag; + }; + interface GlobalDescriptor { mutable?: boolean; value: T; } interface MemoryDescriptor { - initial: number; - maximum?: number; + address?: AddressType; + initial: AddressValue; + maximum?: AddressValue; shared?: boolean; } @@ -1708,9 +1766,10 @@ declare namespace WebAssembly { } interface TableDescriptor { + address?: AddressType; element: TableKind; - initial: number; - maximum?: number; + initial: AddressValue; + maximum?: AddressValue; } interface ValueTypeMap { @@ -1728,7 +1787,7 @@ declare namespace WebAssembly { module: Module; } - type ImportExportKind = "function" | "global" | "memory" | "table"; + type ImportExportKind = "function" | "global" | "memory" | "table" | "tag"; type TableKind = "anyfunc" | "externref"; type ExportValue = Function | Global | Memory | Table; type Exports = Record; @@ -1737,12 +1796,12 @@ declare namespace WebAssembly { type ModuleImports = Record; type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource): Promise; + function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports): Promise; + function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource): boolean; + function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -1943,6 +2002,7 @@ declare var sampleRate: number; * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope/registerProcessor) */ declare function registerProcessor(name: string, processorCtor: AudioWorkletProcessorConstructor): void; +type AddressValue = any; type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView; type BufferSource = ArrayBufferView | ArrayBuffer; type DOMHighResTimeStamp = number; @@ -1952,6 +2012,7 @@ type ReadableStreamController = ReadableStreamDefaultController | Readable type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableStreamReadDoneResult; type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type Transferable = MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; +type AddressType = "i32" | "i64"; type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; type ReadableStreamReaderMode = "byob"; type ReadableStreamType = "bytes"; diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index 98a5f56f0..d8de1aa00 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -357,6 +357,11 @@ interface CloseEventInit extends EventInit { wasClean?: boolean; } +interface CommandEventInit extends EventInit { + command?: string; + source?: Element | null; +} + interface CompositionEventInit extends UIEventInit { data?: string; } @@ -689,6 +694,10 @@ interface EventSourceInit { withCredentials?: boolean; } +interface ExceptionOptions { + traceStack?: boolean; +} + interface FilePropertyBag extends BlobPropertyBag { lastModified?: number; } @@ -1103,6 +1112,7 @@ interface MediaRecorderOptions { interface MediaSessionActionDetails { action: MediaSessionAction; + enterPictureInPictureReason?: MediaSessionEnterPictureInPictureReason; fastSeek?: boolean; seekOffset?: number; seekTime?: number; @@ -2272,6 +2282,10 @@ interface SubmitEventInit extends EventInit { submitter?: HTMLElement | null; } +interface TagType { + parameters: ValueType[]; +} + interface TaskControllerInit { priority?: TaskPriority; } @@ -2570,6 +2584,11 @@ interface WaveShaperOptions extends AudioNodeOptions { oversample?: OverSampleType; } +interface WebAssemblyCompileOptions { + builtins?: string[]; + importedStringConstants?: string | null; +} + interface WebGLContextAttributes { alpha?: boolean; antialias?: boolean; @@ -3269,6 +3288,7 @@ interface AnimationTimeline { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime) */ readonly currentTime: CSSNumberish | null; + /** The **`duration`** read-only property of the Web Animations API's AnimationTimeline interface returns the maximum value for this timeline or `null`. */ readonly duration: CSSNumberish | null; } @@ -8395,6 +8415,31 @@ declare var CloseEvent: { new(type: string, eventInitDict?: CloseEventInit): CloseEvent; }; +/** + * The **`CommandEvent`** interface represents an event notifying the user when a HTMLButtonElement element with valid HTMLButtonElement.commandForElement and HTMLButtonElement.command attributes is about to invoke an interactive element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CommandEvent) + */ +interface CommandEvent extends Event { + /** + * The **`command`** read-only property of the CommandEvent interface returns a string containing the value of the HTMLButtonElement.command property at the time the event was dispatched. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CommandEvent/command) + */ + readonly command: string; + /** + * The **`source`** read-only property of the CommandEvent interface returns an EventTarget representing the control that invoked the given command. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CommandEvent/source) + */ + readonly source: Element | null; +} + +declare var CommandEvent: { + prototype: CommandEvent; + new(type: string, eventInitDict?: CommandEventInit): CommandEvent; +}; + /** * The **`Comment`** interface represents textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. * @@ -10462,6 +10507,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve createEvent(eventInterface: "BlobEvent"): BlobEvent; createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent; createEvent(eventInterface: "CloseEvent"): CloseEvent; + createEvent(eventInterface: "CommandEvent"): CommandEvent; createEvent(eventInterface: "CompositionEvent"): CompositionEvent; createEvent(eventInterface: "ContentVisibilityAutoStateChangeEvent"): ContentVisibilityAutoStateChangeEvent; createEvent(eventInterface: "CookieChangeEvent"): CookieChangeEvent; @@ -13601,6 +13647,18 @@ declare var HTMLBodyElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement) */ interface HTMLButtonElement extends HTMLElement, PopoverTargetAttributes { + /** + * The **`command`** property of the HTMLButtonElement interface gets and sets the action to be performed on an element being controlled by this button. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/command) + */ + command: string; + /** + * The **`commandForElement`** property of the HTMLButtonElement interface gets and sets the element to control via a button. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/commandForElement) + */ + commandForElement: Element | null; /** * The **`HTMLButtonElement.disabled`** property indicates whether the control is disabled, meaning that it does not accept any clicks. * @@ -14087,7 +14145,7 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit */ innerText: string; /** - * The **`lang`** property of the HTMLElement interface indicates the base language of an element's attribute values and text content, in the form of a MISSING: RFC(5646, 'BCP 47 language identifier tag')]. + * The **`lang`** property of the HTMLElement interface indicates the base language of an element's attribute values and text content, in the form of a BCP 47 language tag. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang) */ @@ -16747,7 +16805,7 @@ interface HTMLScriptElement extends HTMLElement { */ src: string; /** - * The **`text`** property of the HTMLScriptElement interface is a string that reflects the text content inside the script element. + * The **`text`** property of the HTMLScriptElement interface represents the inline text content of the script element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/text) */ @@ -18388,6 +18446,7 @@ interface IDBDatabase extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames) */ readonly objectStoreNames: DOMStringList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */ onabort: ((this: IDBDatabase, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */ onclose: ((this: IDBDatabase, ev: Event) => any) | null; @@ -23028,6 +23087,8 @@ interface ParentNode extends Node { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/append) */ append(...nodes: (Node | string)[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/moveBefore) */ + moveBefore(node: Node, child: Node | null): void; /** * Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes. * @@ -23555,6 +23616,12 @@ interface PerformanceEventTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/cancelable) */ readonly cancelable: boolean; + /** + * The read-only **`interactionId`** property returns an ID that uniquely identifies a user interaction which triggered a series of associated events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/interactionId) + */ + readonly interactionId: number; /** * The read-only **`processingEnd`** property returns the time the last event handler finished executing. * @@ -24699,6 +24766,12 @@ declare var PushManager: { readonly supportedContentEncodings: ReadonlyArray; }; +/** Available only in secure contexts. */ +interface PushManagerAttribute { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */ + readonly pushManager: PushManager; +} + /** * The `PushSubscription` interface of the Push API provides a subscription's URL endpoint along with the public key and secrets that should be used for encrypting push messages to this subscription. * Available only in secure contexts. @@ -29083,6 +29156,7 @@ interface SVGMarkerElement extends SVGElement, SVGFitToViewBox { readonly SVG_MARKER_ORIENT_UNKNOWN: 0; readonly SVG_MARKER_ORIENT_AUTO: 1; readonly SVG_MARKER_ORIENT_ANGLE: 2; + readonly SVG_MARKER_ORIENT_AUTO_START_REVERSE: 3; addEventListener(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -29098,6 +29172,7 @@ declare var SVGMarkerElement: { readonly SVG_MARKER_ORIENT_UNKNOWN: 0; readonly SVG_MARKER_ORIENT_AUTO: 1; readonly SVG_MARKER_ORIENT_ANGLE: 2; + readonly SVG_MARKER_ORIENT_AUTO_START_REVERSE: 3; }; /** @@ -29742,7 +29817,7 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/getElementById) */ - getElementById(elementId: string): Element; + getElementById(elementId: string): Element | null; getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf; getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf; /** @@ -29917,6 +29992,11 @@ declare var SVGStringList: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement) */ interface SVGStyleElement extends SVGElement, LinkStyle { + /** + * The **`SVGStyleElement.disabled`** property can be used to get and set whether the stylesheet is disabled (`true`) or not (`false`). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/disabled) + */ disabled: boolean; /** * The **`SVGStyleElement.media`** property is a media query string corresponding to the `media` attribute of the given SVG style element. @@ -30567,7 +30647,13 @@ interface ScreenOrientation extends EventTarget { */ readonly type: OrientationType; /** - * The **`unlock()`** method of the ScreenOrientation interface unlocks the orientation of the containing document from its default orientation. + * The **`lock()`** method of the ScreenOrientation interface locks the orientation of the containing document to the specified orientation. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/lock) + */ + lock(orientation: OrientationLockType): Promise; + /** + * The **`unlock()`** method of the ScreenOrientation interface unlocks the orientation of the containing document, effectively locking it to the default screen orientation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/unlock) */ @@ -31006,7 +31092,7 @@ interface ServiceWorkerRegistrationEventMap { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration) */ -interface ServiceWorkerRegistration extends EventTarget { +interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute { /** * The **`active`** read-only property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is `activating` or `activated`. * @@ -31033,12 +31119,6 @@ interface ServiceWorkerRegistration extends EventTarget { readonly navigationPreload: NavigationPreloadManager; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */ onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null; - /** - * The **`pushManager`** read-only property of the ServiceWorkerRegistration interface returns a reference to the PushManager interface for managing push subscriptions; this includes support for subscribing, getting an active subscription, and accessing push permission status. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) - */ - readonly pushManager: PushManager; /** * The **`scope`** read-only property of the ServiceWorkerRegistration interface returns a string representing a URL that defines a service worker's registration scope; that is, the range of URLs a service worker can control. * @@ -36961,7 +37041,7 @@ interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandler * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window) */ -interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage { +interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, PushManagerAttribute, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage { /** * @deprecated This is a legacy alias of `navigator`. * @@ -38287,6 +38367,37 @@ declare namespace WebAssembly { (message?: string): CompileError; }; + /** + * The **`WebAssembly.Exception`** object represents a runtime exception thrown from WebAssembly to JavaScript, or thrown from JavaScript to a WebAssembly exception handler. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception) + */ + interface Exception { + /** + * The read-only **`stack`** property of an object instance of type `WebAssembly.Exception` _may_ contain a stack trace. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/stack) + */ + readonly stack: string | undefined; + /** + * The **`getArg()`** prototype method of the `Exception` object can be used to get the value of a specified item in the exception's data arguments. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg) + */ + getArg(index: number): any; + /** + * The **`is()`** prototype method of the `Exception` object can be used to test if the `Exception` matches a given tag. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/is) + */ + is(exceptionTag: Tag): boolean; + } + + var Exception: { + prototype: Exception; + new(exceptionTag: Tag, payload: any[], options?: ExceptionOptions): Exception; + }; + /** * A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances. * @@ -38347,7 +38458,7 @@ declare namespace WebAssembly { * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow) */ - grow(delta: number): number; + grow(delta: AddressValue): AddressValue; } var Memory: { @@ -38365,7 +38476,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource): Module; + new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; /** * The **`WebAssembly.Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -38406,25 +38517,25 @@ declare namespace WebAssembly { * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length) */ - readonly length: number; + readonly length: AddressValue; /** * The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get) */ - get(index: number): any; + get(index: AddressValue): any; /** * The **`grow()`** prototype method of the `WebAssembly.Table` object increases the size of the `Table` instance by a specified number of elements, filled with the provided value. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow) */ - grow(delta: number, value?: any): number; + grow(delta: AddressValue, value?: any): AddressValue; /** * The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set) */ - set(index: number, value?: any): void; + set(index: AddressValue, value?: any): void; } var Table: { @@ -38432,14 +38543,28 @@ declare namespace WebAssembly { new(descriptor: TableDescriptor, value?: any): Table; }; + /** + * The **`WebAssembly.Tag`** object defines a _type_ of a WebAssembly exception that can be thrown to/from WebAssembly code. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag) + */ + interface Tag { + } + + var Tag: { + prototype: Tag; + new(type: TagType): Tag; + }; + interface GlobalDescriptor { mutable?: boolean; value: T; } interface MemoryDescriptor { - initial: number; - maximum?: number; + address?: AddressType; + initial: AddressValue; + maximum?: AddressValue; shared?: boolean; } @@ -38455,9 +38580,10 @@ declare namespace WebAssembly { } interface TableDescriptor { + address?: AddressType; element: TableKind; - initial: number; - maximum?: number; + initial: AddressValue; + maximum?: AddressValue; } interface ValueTypeMap { @@ -38475,7 +38601,7 @@ declare namespace WebAssembly { module: Module; } - type ImportExportKind = "function" | "global" | "memory" | "table"; + type ImportExportKind = "function" | "global" | "memory" | "table" | "tag"; type TableKind = "anyfunc" | "externref"; type ExportValue = Function | Global | Memory | Table; type Exports = Record; @@ -38484,16 +38610,16 @@ declare namespace WebAssembly { type ModuleImports = Record; type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource): Promise; + function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ - function compileStreaming(source: Response | PromiseLike): Promise; + function compileStreaming(source: Response | PromiseLike, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports): Promise; + function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */ - function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports): Promise; + function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource): boolean; + function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -39735,6 +39861,8 @@ declare var onwebkitanimationstart: ((this: Window, ev: Event) => any) | null; declare var onwebkittransitionend: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/wheel_event) */ declare var onwheel: ((this: Window, ev: WheelEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */ +declare var pushManager: PushManager; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/afterprint_event) */ declare var onafterprint: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeprint_event) */ @@ -39830,6 +39958,7 @@ declare function addEventListener(type: K, liste declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; declare function removeEventListener(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void; declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +type AddressValue = any; type AlgorithmIdentifier = Algorithm | string; type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView; type AutoFill = AutoFillBase | `${OptionalPrefixToken}${OptionalPrefixToken}${AutoFillField}${OptionalPostfixToken}`; @@ -39909,6 +40038,7 @@ type Uint32List = Uint32Array | GLuint[]; type VibratePattern = number | number[]; type WindowProxy = Window; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; +type AddressType = "i32" | "i64"; type AlignSetting = "center" | "end" | "left" | "right" | "start"; type AlphaOption = "discard" | "keep"; type AnimationPlayState = "finished" | "idle" | "paused" | "running"; @@ -40008,6 +40138,7 @@ type MediaKeySessionType = "persistent-license" | "temporary"; type MediaKeyStatus = "expired" | "internal-error" | "output-downscaled" | "output-restricted" | "released" | "status-pending" | "usable" | "usable-in-future"; type MediaKeysRequirement = "not-allowed" | "optional" | "required"; type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop"; +type MediaSessionEnterPictureInPictureReason = "contentoccluded" | "other" | "useraction"; type MediaSessionPlaybackState = "none" | "paused" | "playing"; type MediaStreamTrackState = "ended" | "live"; type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload"; @@ -40016,6 +40147,7 @@ type NotificationDirection = "auto" | "ltr" | "rtl"; type NotificationPermission = "default" | "denied" | "granted"; type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu"; type OpusBitstreamFormat = "ogg" | "opus"; +type OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary"; type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary"; type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle"; type OverSampleType = "2x" | "4x" | "none"; @@ -40033,7 +40165,7 @@ type PublicKeyCredentialType = "public-key"; type PushEncryptionKeyName = "auth" | "p256dh"; type RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat"; type RTCDataChannelState = "closed" | "closing" | "connecting" | "open"; -type RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution"; +type RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-framerate-and-resolution" | "maintain-resolution"; type RTCDtlsRole = "client" | "server" | "unknown"; type RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new"; type RTCEncodedVideoFrameType = "delta" | "empty" | "key"; diff --git a/baselines/ts5.6/serviceworker.generated.d.ts b/baselines/ts5.6/serviceworker.generated.d.ts index 72e9bdb2a..e6176810e 100644 --- a/baselines/ts5.6/serviceworker.generated.d.ts +++ b/baselines/ts5.6/serviceworker.generated.d.ts @@ -208,6 +208,10 @@ interface EventSourceInit { withCredentials?: boolean; } +interface ExceptionOptions { + traceStack?: boolean; +} + interface ExtendableCookieChangeEventInit extends ExtendableEventInit { changed?: CookieList; deleted?: CookieList; @@ -705,6 +709,10 @@ interface StructuredSerializeOptions { transfer?: Transferable[]; } +interface TagType { + parameters: ValueType[]; +} + interface TaskControllerInit { priority?: TaskPriority; } @@ -816,6 +824,11 @@ interface VideoConfiguration { width: number; } +interface WebAssemblyCompileOptions { + builtins?: string[]; + importedStringConstants?: string | null; +} + interface WebGLContextAttributes { alpha?: boolean; antialias?: boolean; @@ -4337,6 +4350,7 @@ interface IDBDatabase extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames) */ readonly objectStoreNames: DOMStringList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */ onabort: ((this: IDBDatabase, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */ onclose: ((this: IDBDatabase, ev: Event) => any) | null; @@ -6240,6 +6254,12 @@ declare var PushManager: { readonly supportedContentEncodings: ReadonlyArray; }; +/** Available only in secure contexts. */ +interface PushManagerAttribute { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */ + readonly pushManager: PushManager; +} + /** * The **`PushMessageData`** interface of the Push API provides methods which let you retrieve the push data sent by a server in various formats. * Available only in secure contexts. @@ -7109,7 +7129,7 @@ interface ServiceWorkerRegistrationEventMap { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration) */ -interface ServiceWorkerRegistration extends EventTarget { +interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute { /** * The **`active`** read-only property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is `activating` or `activated`. * @@ -7136,12 +7156,6 @@ interface ServiceWorkerRegistration extends EventTarget { readonly navigationPreload: NavigationPreloadManager; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */ onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null; - /** - * The **`pushManager`** read-only property of the ServiceWorkerRegistration interface returns a reference to the PushManager interface for managing push subscriptions; this includes support for subscribing, getting an active subscription, and accessing push permission status. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) - */ - readonly pushManager: PushManager; /** * The **`scope`** read-only property of the ServiceWorkerRegistration interface returns a string representing a URL that defines a service worker's registration scope; that is, the range of URLs a service worker can control. * @@ -11048,6 +11062,37 @@ declare namespace WebAssembly { (message?: string): CompileError; }; + /** + * The **`WebAssembly.Exception`** object represents a runtime exception thrown from WebAssembly to JavaScript, or thrown from JavaScript to a WebAssembly exception handler. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception) + */ + interface Exception { + /** + * The read-only **`stack`** property of an object instance of type `WebAssembly.Exception` _may_ contain a stack trace. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/stack) + */ + readonly stack: string | undefined; + /** + * The **`getArg()`** prototype method of the `Exception` object can be used to get the value of a specified item in the exception's data arguments. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg) + */ + getArg(index: number): any; + /** + * The **`is()`** prototype method of the `Exception` object can be used to test if the `Exception` matches a given tag. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/is) + */ + is(exceptionTag: Tag): boolean; + } + + var Exception: { + prototype: Exception; + new(exceptionTag: Tag, payload: any[], options?: ExceptionOptions): Exception; + }; + /** * A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances. * @@ -11108,7 +11153,7 @@ declare namespace WebAssembly { * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow) */ - grow(delta: number): number; + grow(delta: AddressValue): AddressValue; } var Memory: { @@ -11126,7 +11171,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource): Module; + new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; /** * The **`WebAssembly.Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -11167,25 +11212,25 @@ declare namespace WebAssembly { * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length) */ - readonly length: number; + readonly length: AddressValue; /** * The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get) */ - get(index: number): any; + get(index: AddressValue): any; /** * The **`grow()`** prototype method of the `WebAssembly.Table` object increases the size of the `Table` instance by a specified number of elements, filled with the provided value. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow) */ - grow(delta: number, value?: any): number; + grow(delta: AddressValue, value?: any): AddressValue; /** * The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set) */ - set(index: number, value?: any): void; + set(index: AddressValue, value?: any): void; } var Table: { @@ -11193,14 +11238,28 @@ declare namespace WebAssembly { new(descriptor: TableDescriptor, value?: any): Table; }; + /** + * The **`WebAssembly.Tag`** object defines a _type_ of a WebAssembly exception that can be thrown to/from WebAssembly code. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag) + */ + interface Tag { + } + + var Tag: { + prototype: Tag; + new(type: TagType): Tag; + }; + interface GlobalDescriptor { mutable?: boolean; value: T; } interface MemoryDescriptor { - initial: number; - maximum?: number; + address?: AddressType; + initial: AddressValue; + maximum?: AddressValue; shared?: boolean; } @@ -11216,9 +11275,10 @@ declare namespace WebAssembly { } interface TableDescriptor { + address?: AddressType; element: TableKind; - initial: number; - maximum?: number; + initial: AddressValue; + maximum?: AddressValue; } interface ValueTypeMap { @@ -11236,7 +11296,7 @@ declare namespace WebAssembly { module: Module; } - type ImportExportKind = "function" | "global" | "memory" | "table"; + type ImportExportKind = "function" | "global" | "memory" | "table" | "tag"; type TableKind = "anyfunc" | "externref"; type ExportValue = Function | Global | Memory | Table; type Exports = Record; @@ -11245,16 +11305,16 @@ declare namespace WebAssembly { type ModuleImports = Record; type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource): Promise; + function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ - function compileStreaming(source: Response | PromiseLike): Promise; + function compileStreaming(source: Response | PromiseLike, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports): Promise; + function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */ - function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports): Promise; + function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource): boolean; + function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -11598,6 +11658,7 @@ declare function addEventListener(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +type AddressValue = any; type AlgorithmIdentifier = Algorithm | string; type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView; type BigInteger = Uint8Array; @@ -11651,6 +11712,7 @@ type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; +type AddressType = "i32" | "i64"; type BinaryType = "arraybuffer" | "blob"; type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum"; type CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time"; diff --git a/baselines/ts5.6/sharedworker.generated.d.ts b/baselines/ts5.6/sharedworker.generated.d.ts index 9a1f96ea3..d14b6a727 100644 --- a/baselines/ts5.6/sharedworker.generated.d.ts +++ b/baselines/ts5.6/sharedworker.generated.d.ts @@ -176,6 +176,10 @@ interface EventSourceInit { withCredentials?: boolean; } +interface ExceptionOptions { + traceStack?: boolean; +} + interface FilePropertyBag extends BlobPropertyBag { lastModified?: number; } @@ -635,6 +639,10 @@ interface StructuredSerializeOptions { transfer?: Transferable[]; } +interface TagType { + parameters: ValueType[]; +} + interface TaskControllerInit { priority?: TaskPriority; } @@ -746,6 +754,11 @@ interface VideoConfiguration { width: number; } +interface WebAssemblyCompileOptions { + builtins?: string[]; + importedStringConstants?: string | null; +} + interface WebGLContextAttributes { alpha?: boolean; antialias?: boolean; @@ -4020,6 +4033,7 @@ interface IDBDatabase extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames) */ readonly objectStoreNames: DOMStringList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */ onabort: ((this: IDBDatabase, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */ onclose: ((this: IDBDatabase, ev: Event) => any) | null; @@ -5878,6 +5892,12 @@ declare var PushManager: { readonly supportedContentEncodings: ReadonlyArray; }; +/** Available only in secure contexts. */ +interface PushManagerAttribute { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */ + readonly pushManager: PushManager; +} + /** * The `PushSubscription` interface of the Push API provides a subscription's URL endpoint along with the public key and secrets that should be used for encrypting push messages to this subscription. * Available only in secure contexts. @@ -6611,7 +6631,7 @@ interface ServiceWorkerRegistrationEventMap { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration) */ -interface ServiceWorkerRegistration extends EventTarget { +interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute { /** * The **`active`** read-only property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is `activating` or `activated`. * @@ -6632,12 +6652,6 @@ interface ServiceWorkerRegistration extends EventTarget { readonly navigationPreload: NavigationPreloadManager; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */ onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null; - /** - * The **`pushManager`** read-only property of the ServiceWorkerRegistration interface returns a reference to the PushManager interface for managing push subscriptions; this includes support for subscribing, getting an active subscription, and accessing push permission status. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) - */ - readonly pushManager: PushManager; /** * The **`scope`** read-only property of the ServiceWorkerRegistration interface returns a string representing a URL that defines a service worker's registration scope; that is, the range of URLs a service worker can control. * @@ -10774,6 +10788,37 @@ declare namespace WebAssembly { (message?: string): CompileError; }; + /** + * The **`WebAssembly.Exception`** object represents a runtime exception thrown from WebAssembly to JavaScript, or thrown from JavaScript to a WebAssembly exception handler. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception) + */ + interface Exception { + /** + * The read-only **`stack`** property of an object instance of type `WebAssembly.Exception` _may_ contain a stack trace. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/stack) + */ + readonly stack: string | undefined; + /** + * The **`getArg()`** prototype method of the `Exception` object can be used to get the value of a specified item in the exception's data arguments. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg) + */ + getArg(index: number): any; + /** + * The **`is()`** prototype method of the `Exception` object can be used to test if the `Exception` matches a given tag. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/is) + */ + is(exceptionTag: Tag): boolean; + } + + var Exception: { + prototype: Exception; + new(exceptionTag: Tag, payload: any[], options?: ExceptionOptions): Exception; + }; + /** * A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances. * @@ -10834,7 +10879,7 @@ declare namespace WebAssembly { * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow) */ - grow(delta: number): number; + grow(delta: AddressValue): AddressValue; } var Memory: { @@ -10852,7 +10897,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource): Module; + new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; /** * The **`WebAssembly.Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -10893,25 +10938,25 @@ declare namespace WebAssembly { * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length) */ - readonly length: number; + readonly length: AddressValue; /** * The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get) */ - get(index: number): any; + get(index: AddressValue): any; /** * The **`grow()`** prototype method of the `WebAssembly.Table` object increases the size of the `Table` instance by a specified number of elements, filled with the provided value. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow) */ - grow(delta: number, value?: any): number; + grow(delta: AddressValue, value?: any): AddressValue; /** * The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set) */ - set(index: number, value?: any): void; + set(index: AddressValue, value?: any): void; } var Table: { @@ -10919,14 +10964,28 @@ declare namespace WebAssembly { new(descriptor: TableDescriptor, value?: any): Table; }; + /** + * The **`WebAssembly.Tag`** object defines a _type_ of a WebAssembly exception that can be thrown to/from WebAssembly code. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag) + */ + interface Tag { + } + + var Tag: { + prototype: Tag; + new(type: TagType): Tag; + }; + interface GlobalDescriptor { mutable?: boolean; value: T; } interface MemoryDescriptor { - initial: number; - maximum?: number; + address?: AddressType; + initial: AddressValue; + maximum?: AddressValue; shared?: boolean; } @@ -10942,9 +11001,10 @@ declare namespace WebAssembly { } interface TableDescriptor { + address?: AddressType; element: TableKind; - initial: number; - maximum?: number; + initial: AddressValue; + maximum?: AddressValue; } interface ValueTypeMap { @@ -10962,7 +11022,7 @@ declare namespace WebAssembly { module: Module; } - type ImportExportKind = "function" | "global" | "memory" | "table"; + type ImportExportKind = "function" | "global" | "memory" | "table" | "tag"; type TableKind = "anyfunc" | "externref"; type ExportValue = Function | Global | Memory | Table; type Exports = Record; @@ -10971,16 +11031,16 @@ declare namespace WebAssembly { type ModuleImports = Record; type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource): Promise; + function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ - function compileStreaming(source: Response | PromiseLike): Promise; + function compileStreaming(source: Response | PromiseLike, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports): Promise; + function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */ - function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports): Promise; + function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource): boolean; + function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -11288,6 +11348,7 @@ declare function addEventListener(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +type AddressValue = any; type AlgorithmIdentifier = Algorithm | string; type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView; type BigInteger = Uint8Array; @@ -11339,6 +11400,7 @@ type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; +type AddressType = "i32" | "i64"; type BinaryType = "arraybuffer" | "blob"; type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum"; type CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time"; diff --git a/baselines/ts5.6/webworker.generated.d.ts b/baselines/ts5.6/webworker.generated.d.ts index ace6d6066..fb90674d0 100644 --- a/baselines/ts5.6/webworker.generated.d.ts +++ b/baselines/ts5.6/webworker.generated.d.ts @@ -288,6 +288,10 @@ interface EventSourceInit { withCredentials?: boolean; } +interface ExceptionOptions { + traceStack?: boolean; +} + interface ExtendableCookieChangeEventInit extends ExtendableEventInit { changed?: CookieList; deleted?: CookieList; @@ -849,6 +853,10 @@ interface StructuredSerializeOptions { transfer?: Transferable[]; } +interface TagType { + parameters: ValueType[]; +} + interface TaskControllerInit { priority?: TaskPriority; } @@ -1054,6 +1062,11 @@ interface VideoFrameInit { visibleRect?: DOMRectInit; } +interface WebAssemblyCompileOptions { + builtins?: string[]; + importedStringConstants?: string | null; +} + interface WebGLContextAttributes { alpha?: boolean; antialias?: boolean; @@ -5029,6 +5042,7 @@ interface IDBDatabase extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames) */ readonly objectStoreNames: DOMStringList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */ onabort: ((this: IDBDatabase, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */ onclose: ((this: IDBDatabase, ev: Event) => any) | null; @@ -7101,6 +7115,12 @@ declare var PushManager: { readonly supportedContentEncodings: ReadonlyArray; }; +/** Available only in secure contexts. */ +interface PushManagerAttribute { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */ + readonly pushManager: PushManager; +} + /** * The **`PushMessageData`** interface of the Push API provides methods which let you retrieve the push data sent by a server in various formats. * Available only in secure contexts. @@ -8211,7 +8231,7 @@ interface ServiceWorkerRegistrationEventMap { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration) */ -interface ServiceWorkerRegistration extends EventTarget { +interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute { /** * The **`active`** read-only property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is `activating` or `activated`. * @@ -8238,12 +8258,6 @@ interface ServiceWorkerRegistration extends EventTarget { readonly navigationPreload: NavigationPreloadManager; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */ onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null; - /** - * The **`pushManager`** read-only property of the ServiceWorkerRegistration interface returns a reference to the PushManager interface for managing push subscriptions; this includes support for subscribing, getting an active subscription, and accessing push permission status. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) - */ - readonly pushManager: PushManager; /** * The **`scope`** read-only property of the ServiceWorkerRegistration interface returns a string representing a URL that defines a service worker's registration scope; that is, the range of URLs a service worker can control. * @@ -12702,6 +12716,37 @@ declare namespace WebAssembly { (message?: string): CompileError; }; + /** + * The **`WebAssembly.Exception`** object represents a runtime exception thrown from WebAssembly to JavaScript, or thrown from JavaScript to a WebAssembly exception handler. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception) + */ + interface Exception { + /** + * The read-only **`stack`** property of an object instance of type `WebAssembly.Exception` _may_ contain a stack trace. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/stack) + */ + readonly stack: string | undefined; + /** + * The **`getArg()`** prototype method of the `Exception` object can be used to get the value of a specified item in the exception's data arguments. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg) + */ + getArg(index: number): any; + /** + * The **`is()`** prototype method of the `Exception` object can be used to test if the `Exception` matches a given tag. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/is) + */ + is(exceptionTag: Tag): boolean; + } + + var Exception: { + prototype: Exception; + new(exceptionTag: Tag, payload: any[], options?: ExceptionOptions): Exception; + }; + /** * A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances. * @@ -12762,7 +12807,7 @@ declare namespace WebAssembly { * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow) */ - grow(delta: number): number; + grow(delta: AddressValue): AddressValue; } var Memory: { @@ -12780,7 +12825,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource): Module; + new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; /** * The **`WebAssembly.Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -12821,25 +12866,25 @@ declare namespace WebAssembly { * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length) */ - readonly length: number; + readonly length: AddressValue; /** * The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get) */ - get(index: number): any; + get(index: AddressValue): any; /** * The **`grow()`** prototype method of the `WebAssembly.Table` object increases the size of the `Table` instance by a specified number of elements, filled with the provided value. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow) */ - grow(delta: number, value?: any): number; + grow(delta: AddressValue, value?: any): AddressValue; /** * The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set) */ - set(index: number, value?: any): void; + set(index: AddressValue, value?: any): void; } var Table: { @@ -12847,14 +12892,28 @@ declare namespace WebAssembly { new(descriptor: TableDescriptor, value?: any): Table; }; + /** + * The **`WebAssembly.Tag`** object defines a _type_ of a WebAssembly exception that can be thrown to/from WebAssembly code. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag) + */ + interface Tag { + } + + var Tag: { + prototype: Tag; + new(type: TagType): Tag; + }; + interface GlobalDescriptor { mutable?: boolean; value: T; } interface MemoryDescriptor { - initial: number; - maximum?: number; + address?: AddressType; + initial: AddressValue; + maximum?: AddressValue; shared?: boolean; } @@ -12870,9 +12929,10 @@ declare namespace WebAssembly { } interface TableDescriptor { + address?: AddressType; element: TableKind; - initial: number; - maximum?: number; + initial: AddressValue; + maximum?: AddressValue; } interface ValueTypeMap { @@ -12890,7 +12950,7 @@ declare namespace WebAssembly { module: Module; } - type ImportExportKind = "function" | "global" | "memory" | "table"; + type ImportExportKind = "function" | "global" | "memory" | "table" | "tag"; type TableKind = "anyfunc" | "externref"; type ExportValue = Function | Global | Memory | Table; type Exports = Record; @@ -12899,16 +12959,16 @@ declare namespace WebAssembly { type ModuleImports = Record; type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource): Promise; + function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ - function compileStreaming(source: Response | PromiseLike): Promise; + function compileStreaming(source: Response | PromiseLike, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports): Promise; + function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */ - function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports): Promise; + function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource): boolean; + function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -13255,6 +13315,7 @@ declare function addEventListener(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +type AddressValue = any; type AlgorithmIdentifier = Algorithm | string; type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView; type BigInteger = Uint8Array; @@ -13309,6 +13370,7 @@ type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHan type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; +type AddressType = "i32" | "i64"; type AlphaOption = "discard" | "keep"; type AudioSampleFormat = "f32" | "f32-planar" | "s16" | "s16-planar" | "s32" | "s32-planar" | "u8" | "u8-planar"; type AvcBitstreamFormat = "annexb" | "avc"; diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index 3943e0e49..2476b0521 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -288,6 +288,10 @@ interface EventSourceInit { withCredentials?: boolean; } +interface ExceptionOptions { + traceStack?: boolean; +} + interface ExtendableCookieChangeEventInit extends ExtendableEventInit { changed?: CookieList; deleted?: CookieList; @@ -849,6 +853,10 @@ interface StructuredSerializeOptions { transfer?: Transferable[]; } +interface TagType { + parameters: ValueType[]; +} + interface TaskControllerInit { priority?: TaskPriority; } @@ -1054,6 +1062,11 @@ interface VideoFrameInit { visibleRect?: DOMRectInit; } +interface WebAssemblyCompileOptions { + builtins?: string[]; + importedStringConstants?: string | null; +} + interface WebGLContextAttributes { alpha?: boolean; antialias?: boolean; @@ -5029,6 +5042,7 @@ interface IDBDatabase extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames) */ readonly objectStoreNames: DOMStringList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */ onabort: ((this: IDBDatabase, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */ onclose: ((this: IDBDatabase, ev: Event) => any) | null; @@ -7101,6 +7115,12 @@ declare var PushManager: { readonly supportedContentEncodings: ReadonlyArray; }; +/** Available only in secure contexts. */ +interface PushManagerAttribute { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */ + readonly pushManager: PushManager; +} + /** * The **`PushMessageData`** interface of the Push API provides methods which let you retrieve the push data sent by a server in various formats. * Available only in secure contexts. @@ -8211,7 +8231,7 @@ interface ServiceWorkerRegistrationEventMap { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration) */ -interface ServiceWorkerRegistration extends EventTarget { +interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute { /** * The **`active`** read-only property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is `activating` or `activated`. * @@ -8238,12 +8258,6 @@ interface ServiceWorkerRegistration extends EventTarget { readonly navigationPreload: NavigationPreloadManager; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */ onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null; - /** - * The **`pushManager`** read-only property of the ServiceWorkerRegistration interface returns a reference to the PushManager interface for managing push subscriptions; this includes support for subscribing, getting an active subscription, and accessing push permission status. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) - */ - readonly pushManager: PushManager; /** * The **`scope`** read-only property of the ServiceWorkerRegistration interface returns a string representing a URL that defines a service worker's registration scope; that is, the range of URLs a service worker can control. * @@ -12702,6 +12716,37 @@ declare namespace WebAssembly { (message?: string): CompileError; }; + /** + * The **`WebAssembly.Exception`** object represents a runtime exception thrown from WebAssembly to JavaScript, or thrown from JavaScript to a WebAssembly exception handler. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception) + */ + interface Exception { + /** + * The read-only **`stack`** property of an object instance of type `WebAssembly.Exception` _may_ contain a stack trace. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/stack) + */ + readonly stack: string | undefined; + /** + * The **`getArg()`** prototype method of the `Exception` object can be used to get the value of a specified item in the exception's data arguments. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg) + */ + getArg(index: number): any; + /** + * The **`is()`** prototype method of the `Exception` object can be used to test if the `Exception` matches a given tag. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/is) + */ + is(exceptionTag: Tag): boolean; + } + + var Exception: { + prototype: Exception; + new(exceptionTag: Tag, payload: any[], options?: ExceptionOptions): Exception; + }; + /** * A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances. * @@ -12762,7 +12807,7 @@ declare namespace WebAssembly { * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow) */ - grow(delta: number): number; + grow(delta: AddressValue): AddressValue; } var Memory: { @@ -12780,7 +12825,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource): Module; + new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; /** * The **`WebAssembly.Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -12821,25 +12866,25 @@ declare namespace WebAssembly { * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length) */ - readonly length: number; + readonly length: AddressValue; /** * The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get) */ - get(index: number): any; + get(index: AddressValue): any; /** * The **`grow()`** prototype method of the `WebAssembly.Table` object increases the size of the `Table` instance by a specified number of elements, filled with the provided value. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow) */ - grow(delta: number, value?: any): number; + grow(delta: AddressValue, value?: any): AddressValue; /** * The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value. * * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set) */ - set(index: number, value?: any): void; + set(index: AddressValue, value?: any): void; } var Table: { @@ -12847,14 +12892,28 @@ declare namespace WebAssembly { new(descriptor: TableDescriptor, value?: any): Table; }; + /** + * The **`WebAssembly.Tag`** object defines a _type_ of a WebAssembly exception that can be thrown to/from WebAssembly code. + * + * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag) + */ + interface Tag { + } + + var Tag: { + prototype: Tag; + new(type: TagType): Tag; + }; + interface GlobalDescriptor { mutable?: boolean; value: T; } interface MemoryDescriptor { - initial: number; - maximum?: number; + address?: AddressType; + initial: AddressValue; + maximum?: AddressValue; shared?: boolean; } @@ -12870,9 +12929,10 @@ declare namespace WebAssembly { } interface TableDescriptor { + address?: AddressType; element: TableKind; - initial: number; - maximum?: number; + initial: AddressValue; + maximum?: AddressValue; } interface ValueTypeMap { @@ -12890,7 +12950,7 @@ declare namespace WebAssembly { module: Module; } - type ImportExportKind = "function" | "global" | "memory" | "table"; + type ImportExportKind = "function" | "global" | "memory" | "table" | "tag"; type TableKind = "anyfunc" | "externref"; type ExportValue = Function | Global | Memory | Table; type Exports = Record; @@ -12899,16 +12959,16 @@ declare namespace WebAssembly { type ModuleImports = Record; type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource): Promise; + function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ - function compileStreaming(source: Response | PromiseLike): Promise; + function compileStreaming(source: Response | PromiseLike, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports): Promise; + function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */ - function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports): Promise; + function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource): boolean; + function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -13255,6 +13315,7 @@ declare function addEventListener(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +type AddressValue = any; type AlgorithmIdentifier = Algorithm | string; type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView; type BigInteger = Uint8Array; @@ -13309,6 +13370,7 @@ type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHan type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; +type AddressType = "i32" | "i64"; type AlphaOption = "discard" | "keep"; type AudioSampleFormat = "f32" | "f32-planar" | "s16" | "s16-planar" | "s32" | "s32-planar" | "u8" | "u8-planar"; type AvcBitstreamFormat = "annexb" | "avc"; diff --git a/inputfiles/mdn b/inputfiles/mdn index c148812e0..377c7d317 160000 --- a/inputfiles/mdn +++ b/inputfiles/mdn @@ -1 +1 @@ -Subproject commit c148812e0874220770cab62c16f33f48ceb98e99 +Subproject commit 377c7d317e7ffd477bc8b1273f0e215978b76dd1 diff --git a/package-lock.json b/package-lock.json index 2ad91452a..c7bbd4359 100644 --- a/package-lock.json +++ b/package-lock.json @@ -396,9 +396,9 @@ } }, "node_modules/@mdn/browser-compat-data": { - "version": "7.1.5", - "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-7.1.5.tgz", - "integrity": "sha512-j7XpHbvSU3GOtXawlGq6TIETj0wgcE9o7FXu88ragQE/ak8/OsqOxn+wZ2v/2QUe8vrVhb9OJes+gHgyGEOYEQ==", + "version": "7.1.7", + "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-7.1.7.tgz", + "integrity": "sha512-bpWZ7hidvjrwNWcMngZ8nTMTxn8WhnQntsGqEYgPr1vjy66kfwfDVizwXg6PvsgoANZ7nhuRBmvzjpCMk4ITDw==", "dev": true, "license": "CC0-1.0" }, @@ -1038,9 +1038,9 @@ } }, "node_modules/@webref/css": { - "version": "6.23.10", - "resolved": "https://registry.npmjs.org/@webref/css/-/css-6.23.10.tgz", - "integrity": "sha512-Z7QjoTKpoNEs2A3t+yKE8KB9YXwnSvJfDCux+Fkn1h5U2V3wSj5Xlc4j2AJ8k5E+Vrq8h9ZP3QHly29xnva6RQ==", + "version": "6.23.11", + "resolved": "https://registry.npmjs.org/@webref/css/-/css-6.23.11.tgz", + "integrity": "sha512-RyRWiSjmSyrs+n2Qv5SVg45fay8YF76PZ3YxDmF8HndC4K9D5NQuR2AfTeqspiwJdOsfTKBDAZD0vPw4Rxpu7g==", "dev": true, "license": "MIT", "peerDependencies": { @@ -1048,9 +1048,9 @@ } }, "node_modules/@webref/elements": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/@webref/elements/-/elements-2.5.0.tgz", - "integrity": "sha512-8sOq8RgoQukYeuKi/lf1ioSrD2dla+0fnEWIr6PGp1Dc6sUHTL0AOc2LqcmAmjuICgaShSk6u72y0Uu4B5bF6Q==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@webref/elements/-/elements-2.5.1.tgz", + "integrity": "sha512-AGAuITJeKPAUAM4KqMh47KOl71Js8Nqs6IMUrS7KCbaQFrtBMRC6zAz/JbfZtcV+FaYqEXg3T0S343VEgXY/wQ==", "dev": true, "license": "MIT" }, @@ -1062,9 +1062,9 @@ "license": "MIT" }, "node_modules/@webref/idl": { - "version": "3.67.1", - "resolved": "https://registry.npmjs.org/@webref/idl/-/idl-3.67.1.tgz", - "integrity": "sha512-wukUWJNjk5pom+8MbgdRg4wlxYiK5kJdnD+P6P+vd/n8tyWkOTUnkIeR6b8cEMDIFByDyVgNkwtju4ndKppKgg==", + "version": "3.68.0", + "resolved": "https://registry.npmjs.org/@webref/idl/-/idl-3.68.0.tgz", + "integrity": "sha512-YbYiRRCTBOXRHiKvCasjQHKXgj2j/d8RAJbVFeABB66bg7pjQQTrRMxKjApLp2seYRKUeqNwTYrOM248PuVbjw==", "dev": true, "license": "MIT", "peerDependencies": { From da041178c85cac11a08e8168929cbe901d8868b7 Mon Sep 17 00:00:00 2001 From: Bashamega Date: Thu, 25 Sep 2025 13:53:49 +0300 Subject: [PATCH 2/4] Fix build --- baselines/audioworklet.generated.d.ts | 22 +++++++++---------- baselines/dom.generated.d.ts | 23 ++++++++++---------- baselines/serviceworker.generated.d.ts | 22 +++++++++---------- baselines/sharedworker.generated.d.ts | 22 +++++++++---------- baselines/ts5.5/audioworklet.generated.d.ts | 22 +++++++++---------- baselines/ts5.5/dom.generated.d.ts | 23 ++++++++++---------- baselines/ts5.5/serviceworker.generated.d.ts | 22 +++++++++---------- baselines/ts5.5/sharedworker.generated.d.ts | 22 +++++++++---------- baselines/ts5.5/webworker.generated.d.ts | 22 +++++++++---------- baselines/ts5.6/audioworklet.generated.d.ts | 22 +++++++++---------- baselines/ts5.6/dom.generated.d.ts | 23 ++++++++++---------- baselines/ts5.6/serviceworker.generated.d.ts | 22 +++++++++---------- baselines/ts5.6/sharedworker.generated.d.ts | 22 +++++++++---------- baselines/ts5.6/webworker.generated.d.ts | 22 +++++++++---------- baselines/webworker.generated.d.ts | 22 +++++++++---------- inputfiles/addedTypes.jsonc | 12 ---------- inputfiles/overridingTypes.jsonc | 7 +----- src/build/bcd/keep-alive.ts | 1 - 18 files changed, 166 insertions(+), 187 deletions(-) diff --git a/baselines/audioworklet.generated.d.ts b/baselines/audioworklet.generated.d.ts index cc3f9c65a..8e279273f 100644 --- a/baselines/audioworklet.generated.d.ts +++ b/baselines/audioworklet.generated.d.ts @@ -186,6 +186,16 @@ interface UnderlyingSource { type?: ReadableStreamType; } +interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; +} + interface WebAssemblyCompileOptions { builtins?: string[]; importedStringConstants?: string | null; @@ -1772,16 +1782,6 @@ declare namespace WebAssembly { maximum?: AddressValue; } - interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; - } - interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -1794,7 +1794,6 @@ declare namespace WebAssembly { type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; - type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ @@ -2012,6 +2011,7 @@ type ReadableStreamController = ReadableStreamDefaultController | Readable type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableStreamReadDoneResult; type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type Transferable = MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; +type ValueType = keyof ValueTypeMap; type AddressType = "i32" | "i64"; type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; type ReadableStreamReaderMode = "byob"; diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 414dedfb5..42eca3a81 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -2453,6 +2453,16 @@ interface ValidityStateFlags { valueMissing?: boolean; } +interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; +} + interface VideoColorSpaceInit { fullRange?: boolean | null; matrix?: VideoMatrixCoefficients | null; @@ -6351,7 +6361,6 @@ interface CSSStyleProperties extends CSSStyleDeclaration { counterReset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-set) */ counterSet: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) */ cssFloat: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */ cursor: string; @@ -38586,16 +38595,6 @@ declare namespace WebAssembly { maximum?: AddressValue; } - interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; - } - interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -38608,7 +38607,6 @@ declare namespace WebAssembly { type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; - type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ @@ -40035,6 +40033,7 @@ type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; +type ValueType = keyof ValueTypeMap; type VibratePattern = number | number[]; type WindowProxy = Window; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index 3b57f34a7..cfa1498ad 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -811,6 +811,16 @@ interface UnderlyingSource { type?: ReadableStreamType; } +interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; +} + interface VideoConfiguration { bitrate: number; colorGamut?: ColorGamut; @@ -11281,16 +11291,6 @@ declare namespace WebAssembly { maximum?: AddressValue; } - interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; - } - interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -11303,7 +11303,6 @@ declare namespace WebAssembly { type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; - type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ @@ -11711,6 +11710,7 @@ type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; +type ValueType = keyof ValueTypeMap; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; type AddressType = "i32" | "i64"; type BinaryType = "arraybuffer" | "blob"; diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index c4ba6dcd3..2adcaf1a6 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -741,6 +741,16 @@ interface UnderlyingSource { type?: ReadableStreamType; } +interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; +} + interface VideoConfiguration { bitrate: number; colorGamut?: ColorGamut; @@ -11007,16 +11017,6 @@ declare namespace WebAssembly { maximum?: AddressValue; } - interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; - } - interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -11029,7 +11029,6 @@ declare namespace WebAssembly { type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; - type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ @@ -11399,6 +11398,7 @@ type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; +type ValueType = keyof ValueTypeMap; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; type AddressType = "i32" | "i64"; type BinaryType = "arraybuffer" | "blob"; diff --git a/baselines/ts5.5/audioworklet.generated.d.ts b/baselines/ts5.5/audioworklet.generated.d.ts index de47eb8ed..d649435bb 100644 --- a/baselines/ts5.5/audioworklet.generated.d.ts +++ b/baselines/ts5.5/audioworklet.generated.d.ts @@ -186,6 +186,16 @@ interface UnderlyingSource { type?: ReadableStreamType; } +interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; +} + interface WebAssemblyCompileOptions { builtins?: string[]; importedStringConstants?: string | null; @@ -1772,16 +1782,6 @@ declare namespace WebAssembly { maximum?: AddressValue; } - interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; - } - interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -1794,7 +1794,6 @@ declare namespace WebAssembly { type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; - type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ @@ -2012,6 +2011,7 @@ type ReadableStreamController = ReadableStreamDefaultController | Readable type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableStreamReadDoneResult; type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type Transferable = MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; +type ValueType = keyof ValueTypeMap; type AddressType = "i32" | "i64"; type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; type ReadableStreamReaderMode = "byob"; diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index 2b6dc2a72..d02987fda 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -2453,6 +2453,16 @@ interface ValidityStateFlags { valueMissing?: boolean; } +interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; +} + interface VideoColorSpaceInit { fullRange?: boolean | null; matrix?: VideoMatrixCoefficients | null; @@ -6344,7 +6354,6 @@ interface CSSStyleProperties extends CSSStyleDeclaration { counterReset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-set) */ counterSet: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) */ cssFloat: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */ cursor: string; @@ -38563,16 +38572,6 @@ declare namespace WebAssembly { maximum?: AddressValue; } - interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; - } - interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -38585,7 +38584,6 @@ declare namespace WebAssembly { type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; - type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ @@ -40012,6 +40010,7 @@ type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; +type ValueType = keyof ValueTypeMap; type VibratePattern = number | number[]; type WindowProxy = Window; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; diff --git a/baselines/ts5.5/serviceworker.generated.d.ts b/baselines/ts5.5/serviceworker.generated.d.ts index e6176810e..16fbdf10e 100644 --- a/baselines/ts5.5/serviceworker.generated.d.ts +++ b/baselines/ts5.5/serviceworker.generated.d.ts @@ -811,6 +811,16 @@ interface UnderlyingSource { type?: ReadableStreamType; } +interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; +} + interface VideoConfiguration { bitrate: number; colorGamut?: ColorGamut; @@ -11281,16 +11291,6 @@ declare namespace WebAssembly { maximum?: AddressValue; } - interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; - } - interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -11303,7 +11303,6 @@ declare namespace WebAssembly { type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; - type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ @@ -11711,6 +11710,7 @@ type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; +type ValueType = keyof ValueTypeMap; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; type AddressType = "i32" | "i64"; type BinaryType = "arraybuffer" | "blob"; diff --git a/baselines/ts5.5/sharedworker.generated.d.ts b/baselines/ts5.5/sharedworker.generated.d.ts index d14b6a727..16bfa4119 100644 --- a/baselines/ts5.5/sharedworker.generated.d.ts +++ b/baselines/ts5.5/sharedworker.generated.d.ts @@ -741,6 +741,16 @@ interface UnderlyingSource { type?: ReadableStreamType; } +interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; +} + interface VideoConfiguration { bitrate: number; colorGamut?: ColorGamut; @@ -11007,16 +11017,6 @@ declare namespace WebAssembly { maximum?: AddressValue; } - interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; - } - interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -11029,7 +11029,6 @@ declare namespace WebAssembly { type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; - type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ @@ -11399,6 +11398,7 @@ type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; +type ValueType = keyof ValueTypeMap; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; type AddressType = "i32" | "i64"; type BinaryType = "arraybuffer" | "blob"; diff --git a/baselines/ts5.5/webworker.generated.d.ts b/baselines/ts5.5/webworker.generated.d.ts index fb90674d0..b32bc42b1 100644 --- a/baselines/ts5.5/webworker.generated.d.ts +++ b/baselines/ts5.5/webworker.generated.d.ts @@ -955,6 +955,16 @@ interface UnderlyingSource { type?: ReadableStreamType; } +interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; +} + interface VideoColorSpaceInit { fullRange?: boolean | null; matrix?: VideoMatrixCoefficients | null; @@ -12935,16 +12945,6 @@ declare namespace WebAssembly { maximum?: AddressValue; } - interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; - } - interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -12957,7 +12957,6 @@ declare namespace WebAssembly { type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; - type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ @@ -13369,6 +13368,7 @@ type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; +type ValueType = keyof ValueTypeMap; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; type AddressType = "i32" | "i64"; type AlphaOption = "discard" | "keep"; diff --git a/baselines/ts5.6/audioworklet.generated.d.ts b/baselines/ts5.6/audioworklet.generated.d.ts index de47eb8ed..d649435bb 100644 --- a/baselines/ts5.6/audioworklet.generated.d.ts +++ b/baselines/ts5.6/audioworklet.generated.d.ts @@ -186,6 +186,16 @@ interface UnderlyingSource { type?: ReadableStreamType; } +interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; +} + interface WebAssemblyCompileOptions { builtins?: string[]; importedStringConstants?: string | null; @@ -1772,16 +1782,6 @@ declare namespace WebAssembly { maximum?: AddressValue; } - interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; - } - interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -1794,7 +1794,6 @@ declare namespace WebAssembly { type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; - type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ @@ -2012,6 +2011,7 @@ type ReadableStreamController = ReadableStreamDefaultController | Readable type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableStreamReadDoneResult; type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type Transferable = MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; +type ValueType = keyof ValueTypeMap; type AddressType = "i32" | "i64"; type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; type ReadableStreamReaderMode = "byob"; diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index d8de1aa00..dc6d57fdc 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -2453,6 +2453,16 @@ interface ValidityStateFlags { valueMissing?: boolean; } +interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; +} + interface VideoColorSpaceInit { fullRange?: boolean | null; matrix?: VideoMatrixCoefficients | null; @@ -6351,7 +6361,6 @@ interface CSSStyleProperties extends CSSStyleDeclaration { counterReset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-set) */ counterSet: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) */ cssFloat: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */ cursor: string; @@ -38586,16 +38595,6 @@ declare namespace WebAssembly { maximum?: AddressValue; } - interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; - } - interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -38608,7 +38607,6 @@ declare namespace WebAssembly { type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; - type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ @@ -40035,6 +40033,7 @@ type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; +type ValueType = keyof ValueTypeMap; type VibratePattern = number | number[]; type WindowProxy = Window; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; diff --git a/baselines/ts5.6/serviceworker.generated.d.ts b/baselines/ts5.6/serviceworker.generated.d.ts index e6176810e..16fbdf10e 100644 --- a/baselines/ts5.6/serviceworker.generated.d.ts +++ b/baselines/ts5.6/serviceworker.generated.d.ts @@ -811,6 +811,16 @@ interface UnderlyingSource { type?: ReadableStreamType; } +interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; +} + interface VideoConfiguration { bitrate: number; colorGamut?: ColorGamut; @@ -11281,16 +11291,6 @@ declare namespace WebAssembly { maximum?: AddressValue; } - interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; - } - interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -11303,7 +11303,6 @@ declare namespace WebAssembly { type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; - type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ @@ -11711,6 +11710,7 @@ type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; +type ValueType = keyof ValueTypeMap; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; type AddressType = "i32" | "i64"; type BinaryType = "arraybuffer" | "blob"; diff --git a/baselines/ts5.6/sharedworker.generated.d.ts b/baselines/ts5.6/sharedworker.generated.d.ts index d14b6a727..16bfa4119 100644 --- a/baselines/ts5.6/sharedworker.generated.d.ts +++ b/baselines/ts5.6/sharedworker.generated.d.ts @@ -741,6 +741,16 @@ interface UnderlyingSource { type?: ReadableStreamType; } +interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; +} + interface VideoConfiguration { bitrate: number; colorGamut?: ColorGamut; @@ -11007,16 +11017,6 @@ declare namespace WebAssembly { maximum?: AddressValue; } - interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; - } - interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -11029,7 +11029,6 @@ declare namespace WebAssembly { type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; - type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ @@ -11399,6 +11398,7 @@ type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; +type ValueType = keyof ValueTypeMap; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; type AddressType = "i32" | "i64"; type BinaryType = "arraybuffer" | "blob"; diff --git a/baselines/ts5.6/webworker.generated.d.ts b/baselines/ts5.6/webworker.generated.d.ts index fb90674d0..b32bc42b1 100644 --- a/baselines/ts5.6/webworker.generated.d.ts +++ b/baselines/ts5.6/webworker.generated.d.ts @@ -955,6 +955,16 @@ interface UnderlyingSource { type?: ReadableStreamType; } +interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; +} + interface VideoColorSpaceInit { fullRange?: boolean | null; matrix?: VideoMatrixCoefficients | null; @@ -12935,16 +12945,6 @@ declare namespace WebAssembly { maximum?: AddressValue; } - interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; - } - interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -12957,7 +12957,6 @@ declare namespace WebAssembly { type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; - type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ @@ -13369,6 +13368,7 @@ type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; +type ValueType = keyof ValueTypeMap; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; type AddressType = "i32" | "i64"; type AlphaOption = "discard" | "keep"; diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index 2476b0521..72c5572a8 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -955,6 +955,16 @@ interface UnderlyingSource { type?: ReadableStreamType; } +interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; +} + interface VideoColorSpaceInit { fullRange?: boolean | null; matrix?: VideoMatrixCoefficients | null; @@ -12935,16 +12945,6 @@ declare namespace WebAssembly { maximum?: AddressValue; } - interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; - } - interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -12957,7 +12957,6 @@ declare namespace WebAssembly { type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; - type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ @@ -13369,6 +13368,7 @@ type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; +type ValueType = keyof ValueTypeMap; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; type AddressType = "i32" | "i64"; type AlphaOption = "discard" | "keep"; diff --git a/inputfiles/addedTypes.jsonc b/inputfiles/addedTypes.jsonc index ad7a7458c..4a4361c51 100644 --- a/inputfiles/addedTypes.jsonc +++ b/inputfiles/addedTypes.jsonc @@ -657,16 +657,6 @@ ] } }, - "SVGStyleElement": { - "properties": { - "property": { - "disabled": { - "name": "disabled", - "type": "boolean" - } - } - } - }, "LinkError": { "name": "LinkError", "extends": "Error", @@ -986,7 +976,6 @@ }, "ValueTypeMap": { "name": "ValueTypeMap", - "legacyNamespace": "WebAssembly", "exposed":"Window Worker Worklet", "members": { "member": { @@ -1065,7 +1054,6 @@ }, { "name": "ValueType", - "legacyNamespace": "WebAssembly", "overrideType": "keyof ValueTypeMap" }, { diff --git a/inputfiles/overridingTypes.jsonc b/inputfiles/overridingTypes.jsonc index 036bb65c0..e61aece14 100644 --- a/inputfiles/overridingTypes.jsonc +++ b/inputfiles/overridingTypes.jsonc @@ -3305,12 +3305,7 @@ // The split was pushed by Mozilla and thus still has multiple supports for the direction. "properties": { "property": { - "cssFloat": { - // CSS Fonts Level 4 now puts this in CSSStyleProperties but only Safari supports it as of 2025-06 - // https://github.com/w3c/csswg-drafts/pull/9686 - "exposed": "Window", - "mdnUrl": "https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat" - }, + "webkitLineClamp": { // The corresponding standardized property is not supported by anyone as of 2024-10. "deprecated": false diff --git a/src/build/bcd/keep-alive.ts b/src/build/bcd/keep-alive.ts index 0df2bc72f..0cd0b8fb2 100644 --- a/src/build/bcd/keep-alive.ts +++ b/src/build/bcd/keep-alive.ts @@ -26,7 +26,6 @@ export const forceKeepAlive: Record = { IDBDatabase: [ // BCD unexpectedly is removing valid event data // https://github.com/mdn/browser-compat-data/issues/15345 - "onabort", "onerror", ], ShadowRoot: [ From c25d39660bba8702241a11df6954789aa46b9d25 Mon Sep 17 00:00:00 2001 From: Bashamega Date: Fri, 26 Sep 2025 12:59:07 +0300 Subject: [PATCH 3/4] Move to wasm --- baselines/audioworklet.generated.d.ts | 34 +++++++++++--------- baselines/dom.generated.d.ts | 34 +++++++++++--------- baselines/serviceworker.generated.d.ts | 34 +++++++++++--------- baselines/sharedworker.generated.d.ts | 34 +++++++++++--------- baselines/ts5.5/audioworklet.generated.d.ts | 34 +++++++++++--------- baselines/ts5.5/dom.generated.d.ts | 34 +++++++++++--------- baselines/ts5.5/serviceworker.generated.d.ts | 34 +++++++++++--------- baselines/ts5.5/sharedworker.generated.d.ts | 34 +++++++++++--------- baselines/ts5.5/webworker.generated.d.ts | 34 +++++++++++--------- baselines/ts5.6/audioworklet.generated.d.ts | 34 +++++++++++--------- baselines/ts5.6/dom.generated.d.ts | 34 +++++++++++--------- baselines/ts5.6/serviceworker.generated.d.ts | 34 +++++++++++--------- baselines/ts5.6/sharedworker.generated.d.ts | 34 +++++++++++--------- baselines/ts5.6/webworker.generated.d.ts | 34 +++++++++++--------- baselines/webworker.generated.d.ts | 34 +++++++++++--------- inputfiles/addedTypes.jsonc | 2 ++ inputfiles/patches/wasm.kdl | 1 + src/build/patches.ts | 5 +++ 18 files changed, 293 insertions(+), 225 deletions(-) create mode 100644 inputfiles/patches/wasm.kdl diff --git a/baselines/audioworklet.generated.d.ts b/baselines/audioworklet.generated.d.ts index 8e279273f..018e45155 100644 --- a/baselines/audioworklet.generated.d.ts +++ b/baselines/audioworklet.generated.d.ts @@ -129,10 +129,6 @@ interface StructuredSerializeOptions { transfer?: Transferable[]; } -interface TagType { - parameters: ValueType[]; -} - interface TextDecodeOptions { stream?: boolean; } @@ -186,16 +182,6 @@ interface UnderlyingSource { type?: ReadableStreamType; } -interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; -} - interface WebAssemblyCompileOptions { builtins?: string[]; importedStringConstants?: string | null; @@ -1752,6 +1738,14 @@ declare namespace WebAssembly { new(type: TagType): Tag; }; + interface TagType { + } + + var TagType: { + prototype: TagType; + new(): TagType; + }; + interface GlobalDescriptor { mutable?: boolean; value: T; @@ -1782,6 +1776,16 @@ declare namespace WebAssembly { maximum?: AddressValue; } + interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; + } + interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -1794,6 +1798,7 @@ declare namespace WebAssembly { type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; + type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ @@ -2011,7 +2016,6 @@ type ReadableStreamController = ReadableStreamDefaultController | Readable type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableStreamReadDoneResult; type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type Transferable = MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; -type ValueType = keyof ValueTypeMap; type AddressType = "i32" | "i64"; type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; type ReadableStreamReaderMode = "byob"; diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 42eca3a81..33eb3a566 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -2282,10 +2282,6 @@ interface SubmitEventInit extends EventInit { submitter?: HTMLElement | null; } -interface TagType { - parameters: ValueType[]; -} - interface TaskControllerInit { priority?: TaskPriority; } @@ -2453,16 +2449,6 @@ interface ValidityStateFlags { valueMissing?: boolean; } -interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; -} - interface VideoColorSpaceInit { fullRange?: boolean | null; matrix?: VideoMatrixCoefficients | null; @@ -38565,6 +38551,14 @@ declare namespace WebAssembly { new(type: TagType): Tag; }; + interface TagType { + } + + var TagType: { + prototype: TagType; + new(): TagType; + }; + interface GlobalDescriptor { mutable?: boolean; value: T; @@ -38595,6 +38589,16 @@ declare namespace WebAssembly { maximum?: AddressValue; } + interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; + } + interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -38607,6 +38611,7 @@ declare namespace WebAssembly { type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; + type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ @@ -40033,7 +40038,6 @@ type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; -type ValueType = keyof ValueTypeMap; type VibratePattern = number | number[]; type WindowProxy = Window; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index cfa1498ad..723c638e0 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -709,10 +709,6 @@ interface StructuredSerializeOptions { transfer?: Transferable[]; } -interface TagType { - parameters: ValueType[]; -} - interface TaskControllerInit { priority?: TaskPriority; } @@ -811,16 +807,6 @@ interface UnderlyingSource { type?: ReadableStreamType; } -interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; -} - interface VideoConfiguration { bitrate: number; colorGamut?: ColorGamut; @@ -11261,6 +11247,14 @@ declare namespace WebAssembly { new(type: TagType): Tag; }; + interface TagType { + } + + var TagType: { + prototype: TagType; + new(): TagType; + }; + interface GlobalDescriptor { mutable?: boolean; value: T; @@ -11291,6 +11285,16 @@ declare namespace WebAssembly { maximum?: AddressValue; } + interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; + } + interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -11303,6 +11307,7 @@ declare namespace WebAssembly { type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; + type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ @@ -11710,7 +11715,6 @@ type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; -type ValueType = keyof ValueTypeMap; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; type AddressType = "i32" | "i64"; type BinaryType = "arraybuffer" | "blob"; diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index 2adcaf1a6..90b6c1c20 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -639,10 +639,6 @@ interface StructuredSerializeOptions { transfer?: Transferable[]; } -interface TagType { - parameters: ValueType[]; -} - interface TaskControllerInit { priority?: TaskPriority; } @@ -741,16 +737,6 @@ interface UnderlyingSource { type?: ReadableStreamType; } -interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; -} - interface VideoConfiguration { bitrate: number; colorGamut?: ColorGamut; @@ -10987,6 +10973,14 @@ declare namespace WebAssembly { new(type: TagType): Tag; }; + interface TagType { + } + + var TagType: { + prototype: TagType; + new(): TagType; + }; + interface GlobalDescriptor { mutable?: boolean; value: T; @@ -11017,6 +11011,16 @@ declare namespace WebAssembly { maximum?: AddressValue; } + interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; + } + interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -11029,6 +11033,7 @@ declare namespace WebAssembly { type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; + type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ @@ -11398,7 +11403,6 @@ type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; -type ValueType = keyof ValueTypeMap; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; type AddressType = "i32" | "i64"; type BinaryType = "arraybuffer" | "blob"; diff --git a/baselines/ts5.5/audioworklet.generated.d.ts b/baselines/ts5.5/audioworklet.generated.d.ts index d649435bb..1897855b5 100644 --- a/baselines/ts5.5/audioworklet.generated.d.ts +++ b/baselines/ts5.5/audioworklet.generated.d.ts @@ -129,10 +129,6 @@ interface StructuredSerializeOptions { transfer?: Transferable[]; } -interface TagType { - parameters: ValueType[]; -} - interface TextDecodeOptions { stream?: boolean; } @@ -186,16 +182,6 @@ interface UnderlyingSource { type?: ReadableStreamType; } -interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; -} - interface WebAssemblyCompileOptions { builtins?: string[]; importedStringConstants?: string | null; @@ -1752,6 +1738,14 @@ declare namespace WebAssembly { new(type: TagType): Tag; }; + interface TagType { + } + + var TagType: { + prototype: TagType; + new(): TagType; + }; + interface GlobalDescriptor { mutable?: boolean; value: T; @@ -1782,6 +1776,16 @@ declare namespace WebAssembly { maximum?: AddressValue; } + interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; + } + interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -1794,6 +1798,7 @@ declare namespace WebAssembly { type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; + type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ @@ -2011,7 +2016,6 @@ type ReadableStreamController = ReadableStreamDefaultController | Readable type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableStreamReadDoneResult; type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type Transferable = MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; -type ValueType = keyof ValueTypeMap; type AddressType = "i32" | "i64"; type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; type ReadableStreamReaderMode = "byob"; diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index d02987fda..8834d56f7 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -2282,10 +2282,6 @@ interface SubmitEventInit extends EventInit { submitter?: HTMLElement | null; } -interface TagType { - parameters: ValueType[]; -} - interface TaskControllerInit { priority?: TaskPriority; } @@ -2453,16 +2449,6 @@ interface ValidityStateFlags { valueMissing?: boolean; } -interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; -} - interface VideoColorSpaceInit { fullRange?: boolean | null; matrix?: VideoMatrixCoefficients | null; @@ -38542,6 +38528,14 @@ declare namespace WebAssembly { new(type: TagType): Tag; }; + interface TagType { + } + + var TagType: { + prototype: TagType; + new(): TagType; + }; + interface GlobalDescriptor { mutable?: boolean; value: T; @@ -38572,6 +38566,16 @@ declare namespace WebAssembly { maximum?: AddressValue; } + interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; + } + interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -38584,6 +38588,7 @@ declare namespace WebAssembly { type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; + type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ @@ -40010,7 +40015,6 @@ type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; -type ValueType = keyof ValueTypeMap; type VibratePattern = number | number[]; type WindowProxy = Window; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; diff --git a/baselines/ts5.5/serviceworker.generated.d.ts b/baselines/ts5.5/serviceworker.generated.d.ts index 16fbdf10e..edb5e1af7 100644 --- a/baselines/ts5.5/serviceworker.generated.d.ts +++ b/baselines/ts5.5/serviceworker.generated.d.ts @@ -709,10 +709,6 @@ interface StructuredSerializeOptions { transfer?: Transferable[]; } -interface TagType { - parameters: ValueType[]; -} - interface TaskControllerInit { priority?: TaskPriority; } @@ -811,16 +807,6 @@ interface UnderlyingSource { type?: ReadableStreamType; } -interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; -} - interface VideoConfiguration { bitrate: number; colorGamut?: ColorGamut; @@ -11261,6 +11247,14 @@ declare namespace WebAssembly { new(type: TagType): Tag; }; + interface TagType { + } + + var TagType: { + prototype: TagType; + new(): TagType; + }; + interface GlobalDescriptor { mutable?: boolean; value: T; @@ -11291,6 +11285,16 @@ declare namespace WebAssembly { maximum?: AddressValue; } + interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; + } + interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -11303,6 +11307,7 @@ declare namespace WebAssembly { type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; + type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ @@ -11710,7 +11715,6 @@ type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; -type ValueType = keyof ValueTypeMap; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; type AddressType = "i32" | "i64"; type BinaryType = "arraybuffer" | "blob"; diff --git a/baselines/ts5.5/sharedworker.generated.d.ts b/baselines/ts5.5/sharedworker.generated.d.ts index 16bfa4119..fe5bc548c 100644 --- a/baselines/ts5.5/sharedworker.generated.d.ts +++ b/baselines/ts5.5/sharedworker.generated.d.ts @@ -639,10 +639,6 @@ interface StructuredSerializeOptions { transfer?: Transferable[]; } -interface TagType { - parameters: ValueType[]; -} - interface TaskControllerInit { priority?: TaskPriority; } @@ -741,16 +737,6 @@ interface UnderlyingSource { type?: ReadableStreamType; } -interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; -} - interface VideoConfiguration { bitrate: number; colorGamut?: ColorGamut; @@ -10987,6 +10973,14 @@ declare namespace WebAssembly { new(type: TagType): Tag; }; + interface TagType { + } + + var TagType: { + prototype: TagType; + new(): TagType; + }; + interface GlobalDescriptor { mutable?: boolean; value: T; @@ -11017,6 +11011,16 @@ declare namespace WebAssembly { maximum?: AddressValue; } + interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; + } + interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -11029,6 +11033,7 @@ declare namespace WebAssembly { type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; + type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ @@ -11398,7 +11403,6 @@ type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; -type ValueType = keyof ValueTypeMap; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; type AddressType = "i32" | "i64"; type BinaryType = "arraybuffer" | "blob"; diff --git a/baselines/ts5.5/webworker.generated.d.ts b/baselines/ts5.5/webworker.generated.d.ts index b32bc42b1..2a74d4658 100644 --- a/baselines/ts5.5/webworker.generated.d.ts +++ b/baselines/ts5.5/webworker.generated.d.ts @@ -853,10 +853,6 @@ interface StructuredSerializeOptions { transfer?: Transferable[]; } -interface TagType { - parameters: ValueType[]; -} - interface TaskControllerInit { priority?: TaskPriority; } @@ -955,16 +951,6 @@ interface UnderlyingSource { type?: ReadableStreamType; } -interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; -} - interface VideoColorSpaceInit { fullRange?: boolean | null; matrix?: VideoMatrixCoefficients | null; @@ -12915,6 +12901,14 @@ declare namespace WebAssembly { new(type: TagType): Tag; }; + interface TagType { + } + + var TagType: { + prototype: TagType; + new(): TagType; + }; + interface GlobalDescriptor { mutable?: boolean; value: T; @@ -12945,6 +12939,16 @@ declare namespace WebAssembly { maximum?: AddressValue; } + interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; + } + interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -12957,6 +12961,7 @@ declare namespace WebAssembly { type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; + type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ @@ -13368,7 +13373,6 @@ type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; -type ValueType = keyof ValueTypeMap; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; type AddressType = "i32" | "i64"; type AlphaOption = "discard" | "keep"; diff --git a/baselines/ts5.6/audioworklet.generated.d.ts b/baselines/ts5.6/audioworklet.generated.d.ts index d649435bb..1897855b5 100644 --- a/baselines/ts5.6/audioworklet.generated.d.ts +++ b/baselines/ts5.6/audioworklet.generated.d.ts @@ -129,10 +129,6 @@ interface StructuredSerializeOptions { transfer?: Transferable[]; } -interface TagType { - parameters: ValueType[]; -} - interface TextDecodeOptions { stream?: boolean; } @@ -186,16 +182,6 @@ interface UnderlyingSource { type?: ReadableStreamType; } -interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; -} - interface WebAssemblyCompileOptions { builtins?: string[]; importedStringConstants?: string | null; @@ -1752,6 +1738,14 @@ declare namespace WebAssembly { new(type: TagType): Tag; }; + interface TagType { + } + + var TagType: { + prototype: TagType; + new(): TagType; + }; + interface GlobalDescriptor { mutable?: boolean; value: T; @@ -1782,6 +1776,16 @@ declare namespace WebAssembly { maximum?: AddressValue; } + interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; + } + interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -1794,6 +1798,7 @@ declare namespace WebAssembly { type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; + type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ @@ -2011,7 +2016,6 @@ type ReadableStreamController = ReadableStreamDefaultController | Readable type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableStreamReadDoneResult; type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type Transferable = MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; -type ValueType = keyof ValueTypeMap; type AddressType = "i32" | "i64"; type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; type ReadableStreamReaderMode = "byob"; diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index dc6d57fdc..545ef10b0 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -2282,10 +2282,6 @@ interface SubmitEventInit extends EventInit { submitter?: HTMLElement | null; } -interface TagType { - parameters: ValueType[]; -} - interface TaskControllerInit { priority?: TaskPriority; } @@ -2453,16 +2449,6 @@ interface ValidityStateFlags { valueMissing?: boolean; } -interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; -} - interface VideoColorSpaceInit { fullRange?: boolean | null; matrix?: VideoMatrixCoefficients | null; @@ -38565,6 +38551,14 @@ declare namespace WebAssembly { new(type: TagType): Tag; }; + interface TagType { + } + + var TagType: { + prototype: TagType; + new(): TagType; + }; + interface GlobalDescriptor { mutable?: boolean; value: T; @@ -38595,6 +38589,16 @@ declare namespace WebAssembly { maximum?: AddressValue; } + interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; + } + interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -38607,6 +38611,7 @@ declare namespace WebAssembly { type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; + type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ @@ -40033,7 +40038,6 @@ type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; -type ValueType = keyof ValueTypeMap; type VibratePattern = number | number[]; type WindowProxy = Window; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; diff --git a/baselines/ts5.6/serviceworker.generated.d.ts b/baselines/ts5.6/serviceworker.generated.d.ts index 16fbdf10e..edb5e1af7 100644 --- a/baselines/ts5.6/serviceworker.generated.d.ts +++ b/baselines/ts5.6/serviceworker.generated.d.ts @@ -709,10 +709,6 @@ interface StructuredSerializeOptions { transfer?: Transferable[]; } -interface TagType { - parameters: ValueType[]; -} - interface TaskControllerInit { priority?: TaskPriority; } @@ -811,16 +807,6 @@ interface UnderlyingSource { type?: ReadableStreamType; } -interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; -} - interface VideoConfiguration { bitrate: number; colorGamut?: ColorGamut; @@ -11261,6 +11247,14 @@ declare namespace WebAssembly { new(type: TagType): Tag; }; + interface TagType { + } + + var TagType: { + prototype: TagType; + new(): TagType; + }; + interface GlobalDescriptor { mutable?: boolean; value: T; @@ -11291,6 +11285,16 @@ declare namespace WebAssembly { maximum?: AddressValue; } + interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; + } + interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -11303,6 +11307,7 @@ declare namespace WebAssembly { type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; + type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ @@ -11710,7 +11715,6 @@ type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; -type ValueType = keyof ValueTypeMap; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; type AddressType = "i32" | "i64"; type BinaryType = "arraybuffer" | "blob"; diff --git a/baselines/ts5.6/sharedworker.generated.d.ts b/baselines/ts5.6/sharedworker.generated.d.ts index 16bfa4119..fe5bc548c 100644 --- a/baselines/ts5.6/sharedworker.generated.d.ts +++ b/baselines/ts5.6/sharedworker.generated.d.ts @@ -639,10 +639,6 @@ interface StructuredSerializeOptions { transfer?: Transferable[]; } -interface TagType { - parameters: ValueType[]; -} - interface TaskControllerInit { priority?: TaskPriority; } @@ -741,16 +737,6 @@ interface UnderlyingSource { type?: ReadableStreamType; } -interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; -} - interface VideoConfiguration { bitrate: number; colorGamut?: ColorGamut; @@ -10987,6 +10973,14 @@ declare namespace WebAssembly { new(type: TagType): Tag; }; + interface TagType { + } + + var TagType: { + prototype: TagType; + new(): TagType; + }; + interface GlobalDescriptor { mutable?: boolean; value: T; @@ -11017,6 +11011,16 @@ declare namespace WebAssembly { maximum?: AddressValue; } + interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; + } + interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -11029,6 +11033,7 @@ declare namespace WebAssembly { type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; + type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ @@ -11398,7 +11403,6 @@ type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; -type ValueType = keyof ValueTypeMap; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; type AddressType = "i32" | "i64"; type BinaryType = "arraybuffer" | "blob"; diff --git a/baselines/ts5.6/webworker.generated.d.ts b/baselines/ts5.6/webworker.generated.d.ts index b32bc42b1..2a74d4658 100644 --- a/baselines/ts5.6/webworker.generated.d.ts +++ b/baselines/ts5.6/webworker.generated.d.ts @@ -853,10 +853,6 @@ interface StructuredSerializeOptions { transfer?: Transferable[]; } -interface TagType { - parameters: ValueType[]; -} - interface TaskControllerInit { priority?: TaskPriority; } @@ -955,16 +951,6 @@ interface UnderlyingSource { type?: ReadableStreamType; } -interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; -} - interface VideoColorSpaceInit { fullRange?: boolean | null; matrix?: VideoMatrixCoefficients | null; @@ -12915,6 +12901,14 @@ declare namespace WebAssembly { new(type: TagType): Tag; }; + interface TagType { + } + + var TagType: { + prototype: TagType; + new(): TagType; + }; + interface GlobalDescriptor { mutable?: boolean; value: T; @@ -12945,6 +12939,16 @@ declare namespace WebAssembly { maximum?: AddressValue; } + interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; + } + interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -12957,6 +12961,7 @@ declare namespace WebAssembly { type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; + type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ @@ -13368,7 +13373,6 @@ type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; -type ValueType = keyof ValueTypeMap; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; type AddressType = "i32" | "i64"; type AlphaOption = "discard" | "keep"; diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index 72c5572a8..e708882cc 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -853,10 +853,6 @@ interface StructuredSerializeOptions { transfer?: Transferable[]; } -interface TagType { - parameters: ValueType[]; -} - interface TaskControllerInit { priority?: TaskPriority; } @@ -955,16 +951,6 @@ interface UnderlyingSource { type?: ReadableStreamType; } -interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; -} - interface VideoColorSpaceInit { fullRange?: boolean | null; matrix?: VideoMatrixCoefficients | null; @@ -12915,6 +12901,14 @@ declare namespace WebAssembly { new(type: TagType): Tag; }; + interface TagType { + } + + var TagType: { + prototype: TagType; + new(): TagType; + }; + interface GlobalDescriptor { mutable?: boolean; value: T; @@ -12945,6 +12939,16 @@ declare namespace WebAssembly { maximum?: AddressValue; } + interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; + } + interface WebAssemblyInstantiatedSource { instance: Instance; module: Module; @@ -12957,6 +12961,7 @@ declare namespace WebAssembly { type ImportValue = ExportValue | number; type Imports = Record; type ModuleImports = Record; + type ValueType = keyof ValueTypeMap; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ @@ -13368,7 +13373,6 @@ type TimerHandler = string | Function; type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; -type ValueType = keyof ValueTypeMap; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; type AddressType = "i32" | "i64"; type AlphaOption = "discard" | "keep"; diff --git a/inputfiles/addedTypes.jsonc b/inputfiles/addedTypes.jsonc index 4a4361c51..692b17c4f 100644 --- a/inputfiles/addedTypes.jsonc +++ b/inputfiles/addedTypes.jsonc @@ -976,6 +976,7 @@ }, "ValueTypeMap": { "name": "ValueTypeMap", + "legacyNamespace": "WebAssembly", "exposed":"Window Worker Worklet", "members": { "member": { @@ -1054,6 +1055,7 @@ }, { "name": "ValueType", + "legacyNamespace": "WebAssembly", "overrideType": "keyof ValueTypeMap" }, { diff --git a/inputfiles/patches/wasm.kdl b/inputfiles/patches/wasm.kdl new file mode 100644 index 000000000..d3cd544f1 --- /dev/null +++ b/inputfiles/patches/wasm.kdl @@ -0,0 +1 @@ +interface TagType legacyNamespace=WebAssembly diff --git a/src/build/patches.ts b/src/build/patches.ts index f7e932847..b55583405 100644 --- a/src/build/patches.ts +++ b/src/build/patches.ts @@ -175,6 +175,11 @@ function handleMixinandInterfaces( "boolean", node.properties?.noInterfaceObject, ), + ...optionalMember( + "legacyNamespace", + "string", + node.properties?.legacyNamespace, + ), }; return { name, From 1ab702c06df6c429a3094d1e11f817eaa211f2a2 Mon Sep 17 00:00:00 2001 From: Bashamega Date: Fri, 26 Sep 2025 13:03:17 +0300 Subject: [PATCH 4/4] - --- inputfiles/overridingTypes.jsonc | 1 - 1 file changed, 1 deletion(-) diff --git a/inputfiles/overridingTypes.jsonc b/inputfiles/overridingTypes.jsonc index e61aece14..c8b9ea19a 100644 --- a/inputfiles/overridingTypes.jsonc +++ b/inputfiles/overridingTypes.jsonc @@ -3305,7 +3305,6 @@ // The split was pushed by Mozilla and thus still has multiple supports for the direction. "properties": { "property": { - "webkitLineClamp": { // The corresponding standardized property is not supported by anyone as of 2024-10. "deprecated": false