diff --git a/README.md b/README.md index bb55a1e3..18f37ad5 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ and add `@rescript/webapi` to your `rescript.json`: ## Usage ```rescript -let location = WebAPI.Window.current->WebAPI.Window.location +let location = WebAPI.DOM.window->WebAPI.Window.location let href = location.href location->WebAPI.Location.reload ``` diff --git a/docs/content/docs/api-surface.mdx b/docs/content/docs/api-surface.mdx index 3dc6ee15..75c225d5 100644 --- a/docs/content/docs/api-surface.mdx +++ b/docs/content/docs/api-surface.mdx @@ -13,12 +13,12 @@ add the package to `rescript.json`: } ``` -Use `WebAPI.Window.current` for the browser `window`. Interface-specific methods live on +Use `WebAPI.DOM.window` for the browser `window`. Interface-specific methods live on public modules such as `WebAPI.Window`, `WebAPI.Location`, `WebAPI.Document`, `WebAPI.Element`, `WebAPI.Request`, and `WebAPI.Response`. ```ReScript -let location = WebAPI.Window.current->WebAPI.Window.location +let location = WebAPI.DOM.window->WebAPI.Window.location let href = location.href location->WebAPI.Location.reload @@ -32,7 +32,7 @@ helper modules. ```ReScript let req: WebAPI.Request.t = WebAPI.Request.fromURL("https://example.com") let headers = WebAPI.Headers.make() -let document = WebAPI.Window.current->WebAPI.Window.document +let document = WebAPI.DOM.window->WebAPI.Window.document let element = document->WebAPI.Document.createElement("button") ``` @@ -243,7 +243,7 @@ let redirect = WebAPI.Response.redirect(~url="/login", ~status=302) DOM values are operated on through public interface modules. ```ReScript -let document = WebAPI.Window.current->WebAPI.Window.document +let document = WebAPI.DOM.window->WebAPI.Window.document let maybeButton = document ->WebAPI.Document.querySelector("button") @@ -271,7 +271,7 @@ let node = element->WebAPI.Element.asNode `Window.visualViewport` returns a nullable `WebAPI.VisualViewport.t`. ```ReScript -let maybeViewport = WebAPI.Window.current +let maybeViewport = WebAPI.DOM.window ->WebAPI.Window.visualViewport ->Null.toOption diff --git a/docs/content/docs/index.mdx b/docs/content/docs/index.mdx index 5e4d0c56..19242735 100644 --- a/docs/content/docs/index.mdx +++ b/docs/content/docs/index.mdx @@ -51,7 +51,7 @@ export const rescriptJson = ` After installing the package , you can use bindings for the various Web APIs as defined in [MDN](https://developer.mozilla.org/en-US/docs/Web/API). export const rescriptSample = ` -let location = WebAPI.Window.current->WebAPI.Window.location +let location = WebAPI.DOM.window->WebAPI.Window.location // Access properties using \`.\` let href = location.href diff --git a/rescript.json b/rescript.json index 965cdcf7..1cbd32f0 100644 --- a/rescript.json +++ b/rescript.json @@ -214,6 +214,7 @@ "AbortController", "AbortSignal", "Event", + "EventType", "EventTarget", "ExtendableEvent" ] diff --git a/src/Base/BaseCSSFontLoading.res b/src/Base/BaseCSSFontLoading.res index f5c6eabf..4a17fe35 100644 --- a/src/Base/BaseCSSFontLoading.res +++ b/src/Base/BaseCSSFontLoading.res @@ -13,7 +13,6 @@ type fontFaceSetLoadStatus = */ @editor.completeFrom(BaseCSSFontLoading.FontFaceSet) type rec fontFaceSet = private { - ...BaseEvent.eventTarget, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) */ diff --git a/src/Base/BaseEncryptedMediaExtensions.res b/src/Base/BaseEncryptedMediaExtensions.res index 7ba05fa4..43dc1f3a 100644 --- a/src/Base/BaseEncryptedMediaExtensions.res +++ b/src/Base/BaseEncryptedMediaExtensions.res @@ -61,7 +61,7 @@ This WebApiEncryptedMediaExtensions API interface represents a context for mess */ @editor.completeFrom(BaseEncryptedMediaExtensions.MediaKeySession) type mediaKeySession = private { - ...BaseEvent.eventTarget, + ...DOM.eventTarget, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaKeySession/sessionId) */ diff --git a/src/Base/BaseEvent.res b/src/Base/BaseEvent.res deleted file mode 100644 index 8b811ed5..00000000 --- a/src/Base/BaseEvent.res +++ /dev/null @@ -1,6 +0,0 @@ -/** -EventTarget is a WebApiDOM interface implemented by objects that can receive events and may have listeners for them. -[See EventTarget on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget) -*/ -@editor.completeFrom(BaseEvent.EventTarget) -type eventTarget = private {} diff --git a/src/Base/DOM.res b/src/Base/DOM.res index 23f5e80f..b41c47c0 100644 --- a/src/Base/DOM.res +++ b/src/Base/DOM.res @@ -27,7 +27,9 @@ type domStringList = { length: int, } -type window +@editor.completeFrom(Window) +type window = private {} +external window: window = "window" type shadowRootMode = | @as("closed") Closed @@ -344,12 +346,135 @@ type barProp = { visible: bool, } +/** +EventTarget is a WebApiDOM interface implemented by objects that can receive events and may have listeners for them. +[See EventTarget on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget) +*/ +@editor.completeFrom(EventTarget) +type eventTarget = private {} + +/** +An event which takes place in the DOM. +[See WebApiEvent on MDN](https://developer.mozilla.org/docs/Web/API/Event) +*/ +@editor.completeFrom(Event) +type event = private { + /** +Returns the type of event, e.g. "click", "hashchange", or "submit". +[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/type) +*/ + @as("type") + type_: EventType.t, + /** +Returns the object to which event is dispatched (its target). +[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/target) +*/ + target: Null.t, + /** +Returns the object whose event listener's callback is currently being invoked. +[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/currentTarget) +*/ + currentTarget: Null.t, + /** +Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. +[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/eventPhase) +*/ + eventPhase: int, + /** +Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. +[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/bubbles) +*/ + bubbles: bool, + /** +Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. +[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/cancelable) +*/ + cancelable: bool, + /** +Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. +[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented) +*/ + defaultPrevented: bool, + /** +Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. +[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/composed) +*/ + composed: bool, + /** +Returns true if event was dispatched by the user agent, and false otherwise. +[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) +*/ + isTrusted: bool, + /** +Returns the event's timestamp as the number of milliseconds measured relative to the time origin. +[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/timeStamp) +*/ + timeStamp: float, +} + +type eventInit = { + mutable bubbles?: bool, + mutable cancelable?: bool, + mutable composed?: bool, +} + +/** +The ExtendableEvent interface extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. +[See ExtendableEvent on MDN](https://developer.mozilla.org/docs/Web/API/ExtendableEvent) +*/ +@editor.completeFrom(ExtendableEvent) +type extendableEvent = private { + ...event, +} + +/** +A controller object that allows you to abort one or more WebApiDOM requests as and when desired. +[See AbortController on MDN](https://developer.mozilla.org/docs/Web/API/AbortController) +*/ +@editor.completeFrom(AbortController) +type rec abortController = private { + /** +Returns the AbortSignal object associated with this object. +[Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbortController/signal) +*/ + signal: abortSignal, +} +/** +A signal object that allows you to communicate with a WebApiDOM request (such as a WebApiFetch) and abort it if required via an AbortController object. +[See AbortSignal on MDN](https://developer.mozilla.org/docs/Web/API/AbortSignal) +*/ +@editor.completeFrom(AbortSignal) and abortSignal = private { + ...eventTarget, + /** +Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. +[Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted) +*/ + aborted: bool, + /** +[Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) +*/ + reason: JSON.t, +} + +module EventListener = { + type t<'event> = 'event => unit + + type options = {mutable capture?: bool} + + type addEventListenerOptions = { + ...options, + mutable passive?: bool, + mutable once?: bool, + mutable signal?: abortSignal, + } +} + /** [See ScreenOrientation on MDN](https://developer.mozilla.org/docs/Web/API/ScreenOrientation) */ @editor.completeFrom(ScreenOrientation) type screenOrientation = private { - ...BaseEvent.eventTarget, + ...eventTarget, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/type) */ @@ -2310,7 +2435,7 @@ TODO: mark as private once mutating fields of private records is allowed */ @editor.completeFrom(Node) type rec node = { - ...BaseEvent.eventTarget, + ...eventTarget, /** Returns the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeType) @@ -2922,7 +3047,7 @@ A generic collection (array-like object similar to arguments) of elements (in do A collection of HTML form control elements. [See HTMLFormControlsCollection on MDN](https://developer.mozilla.org/docs/Web/API/HTMLFormControlsCollection) */ -@editor.completeFrom(DOM.HTMLFormControlsCollection) and htmlFormControlsCollection = private { +@editor.completeFrom(HTMLFormControlsCollection) and htmlFormControlsCollection = private { // Base properties from HTMLCollection /** Sets or retrieves the number of objects in a collection. @@ -6972,7 +7097,7 @@ Stores information on a media query applied to a document, and handles sending n */ @editor.completeFrom(MediaQueryList) type mediaQueryList = private { - ...BaseEvent.eventTarget, + ...eventTarget, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaQueryList/media) */ @@ -7045,7 +7170,7 @@ type timeRanges = private { */ @editor.completeFrom(TextTrackList) type textTrackList = private { - ...BaseEvent.eventTarget, + ...eventTarget, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/TextTrackList/length) */ diff --git a/src/Canvas/CanvasTypes.res b/src/Canvas/CanvasTypes.res index 22f5d77e..532085e1 100644 --- a/src/Canvas/CanvasTypes.res +++ b/src/Canvas/CanvasTypes.res @@ -122,7 +122,7 @@ TODO: mark as private once mutating fields of private records is allowed */ @editor.completeFrom(OffscreenCanvas) type offscreenCanvas = { - ...EventTypes.eventTarget, + ...DOM.eventTarget, /** These attributes return the dimensions of the OffscreenCanvas object's bitmap. diff --git a/src/ChannelMessaging/ChannelMessagingTypes.res b/src/ChannelMessaging/ChannelMessagingTypes.res index 1e3b5eeb..d6e05525 100644 --- a/src/ChannelMessaging/ChannelMessagingTypes.res +++ b/src/ChannelMessaging/ChannelMessagingTypes.res @@ -6,7 +6,7 @@ This Channel Messaging API interface represents one of the two ports of a Messag */ @editor.completeFrom(MessagePort) type messagePort = private { - ...EventTypes.eventTarget, + ...DOM.eventTarget, } type structuredSerializeOptions = {mutable transfer?: array>} diff --git a/src/Clipboard/ClipboardTypes.res b/src/Clipboard/ClipboardTypes.res index bc20a0a7..ccc74792 100644 --- a/src/Clipboard/ClipboardTypes.res +++ b/src/Clipboard/ClipboardTypes.res @@ -25,7 +25,7 @@ type clipboardItem = private { */ @editor.completeFrom(WebApiClipboard) type clipboard = private { - ...EventTypes.eventTarget, + ...DOM.eventTarget, } type clipboardItemOptions = {mutable presentationStyle?: presentationStyle} diff --git a/src/CredentialManagement/CredentialManagementTypes.res b/src/CredentialManagement/CredentialManagementTypes.res index 5fa16f2c..f83244c8 100644 --- a/src/CredentialManagement/CredentialManagementTypes.res +++ b/src/CredentialManagement/CredentialManagementTypes.res @@ -91,7 +91,7 @@ type publicKeyCredentialRequestOptions = { type credentialRequestOptions = { mutable mediation?: credentialMediationRequirement, - mutable signal?: EventTypes.abortSignal, + mutable signal?: DOM.abortSignal, mutable publicKey?: publicKeyCredentialRequestOptions, } @@ -133,6 +133,6 @@ type publicKeyCredentialCreationOptions = { } type credentialCreationOptions = { - mutable signal?: EventTypes.abortSignal, + mutable signal?: DOM.abortSignal, mutable publicKey?: publicKeyCredentialCreationOptions, } diff --git a/src/DOM/Document.res b/src/DOM/Document.res index abe9d20a..36e91159 100644 --- a/src/DOM/Document.res +++ b/src/DOM/Document.res @@ -301,7 +301,7 @@ external createAttributeNS: ( [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/createEvent) */ @send -external createEvent: (DomTypes.document, string) => EventTypes.event = "createEvent" +external createEvent: (DomTypes.document, string) => DOM.event = "createEvent" /** Returns an empty range object that has both of its boundary points positioned at the beginning of the document. diff --git a/src/DOM/DomGlobal.res b/src/DOM/DomGlobal.res index d6e7cf28..ff508451 100644 --- a/src/DOM/DomGlobal.res +++ b/src/DOM/DomGlobal.res @@ -294,76 +294,6 @@ external requestAnimationFrame: (float => unit) => int = "requestAnimationFrame" */ external cancelAnimationFrame: int => unit = "cancelAnimationFrame" -/** -Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. - -The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. - -When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. - -When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. - -When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. - -If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. - -The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. -[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) -*/ -external addEventListener: ( - EventTypes.eventType, - EventTypes.eventListener<'event>, - ~options: EventTypes.addEventListenerOptions=?, -) => unit = "addEventListener" - -/** -Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. - -The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. - -When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. - -When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. - -When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. - -If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. - -The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. -[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) -*/ -external addEventListenerWithCapture: ( - EventTypes.eventType, - EventTypes.eventListener<'event>, - @as(json`true`) _, -) => unit = "addEventListener" - -/** -Removes the event listener in target's event listener list with the same type, callback, and options. -[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) -*/ -external removeEventListener: ( - EventTypes.eventType, - EventTypes.eventListener<'event>, - ~options: EventTypes.eventListenerOptions=?, -) => unit = "removeEventListener" - -/** -Removes the event listener in target's event listener list with the same type, callback, and options. -[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) -*/ -external removeEventListenerUseCapture: ( - EventTypes.eventType, - EventTypes.eventListener<'event>, - @as(json`true`) _, -) => unit = "removeEventListener" - -/** -Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. -[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) -*/ -external dispatchEvent: EventTypes.event => bool = "dispatchEvent" - /** Closes the window. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/close) diff --git a/src/DOM/DomTypes.res b/src/DOM/DomTypes.res index 12ffacd8..51afe864 100644 --- a/src/DOM/DomTypes.res +++ b/src/DOM/DomTypes.res @@ -1,8 +1,6 @@ @@warning("-30") type domStringList = DOM.domStringList -type eventTarget = EventTypes.eventTarget -type eventType = EventTypes.eventType type file = FileTypes.file type blob = FileTypes.blob type fileSystemEntry = FileAndDirectoryEntriesTypes.fileSystemEntry @@ -336,7 +334,7 @@ type barProp = { */ @editor.completeFrom(ScreenOrientation) type screenOrientation = private { - ...eventTarget, + ...DOM.eventTarget, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/type) */ @@ -1806,7 +1804,7 @@ The CanvasRenderingContext2D interface, part of the WebApiCanvas API, provides t type canvasRenderingContext2D type rec animation = { - ...eventTarget, + ...DOM.eventTarget, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Animation/id) */ diff --git a/src/Event/AbortController.res b/src/Event/AbortController.res index b02abe30..ef8737b1 100644 --- a/src/Event/AbortController.res +++ b/src/Event/AbortController.res @@ -1,12 +1,9 @@ -/** -[Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbortController) -*/ @new -external make: unit => EventTypes.abortController = "AbortController" +external make: unit => DOM.abortController = "AbortController" /** Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbortController/abort) */ @send -external abort: (EventTypes.abortController, ~reason: JSON.t=?) => unit = "abort" +external abort: (DOM.abortController, ~reason: JSON.t=?) => unit = "abort" diff --git a/src/Event/AbortSignal.res b/src/Event/AbortSignal.res index 00b170b9..398f8694 100644 --- a/src/Event/AbortSignal.res +++ b/src/Event/AbortSignal.res @@ -1,25 +1,25 @@ -include EventTarget.Impl({type t = EventTypes.abortSignal}) +include EventTarget.Impl({type t = DOM.abortSignal}) /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */ @scope("AbortSignal") -external abort: (~reason: JSON.t=?) => EventTypes.abortSignal = "abort" +external abort: (~reason: JSON.t=?) => DOM.abortSignal = "abort" /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */ @scope("AbortSignal") -external timeout: int => EventTypes.abortSignal = "timeout" +external timeout: int => DOM.abortSignal = "timeout" /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */ @scope("AbortSignal") -external any: array => EventTypes.abortSignal = "any" +external any: array => DOM.abortSignal = "any" /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted) */ @send -external throwIfAborted: EventTypes.abortSignal => unit = "throwIfAborted" +external throwIfAborted: DOM.abortSignal => unit = "throwIfAborted" diff --git a/src/Event/Event.res b/src/Event/Event.res index 3be950e6..55734b50 100644 --- a/src/Event/Event.res +++ b/src/Event/Event.res @@ -1,23 +1,53 @@ -/** -[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event) -*/ +type eventInit = DOM.eventInit = { + mutable bubbles?: bool, + mutable cancelable?: bool, + mutable composed?: bool, +} + @new -external make: (~type_: string, ~eventInitDict: EventTypes.eventInit=?) => EventTypes.event = - "Event" +external make: (~type_: string, ~eventInitDict: eventInit=?) => DOM.event = "Event" + +@get +external type_: DOM.event => EventType.t = "type" + +@get +external target: DOM.event => Null.t = "target" + +@get +external currentTarget: DOM.event => Null.t = "currentTarget" + +@get +external eventPhase: DOM.event => int = "eventPhase" + +@get +external bubbles: DOM.event => bool = "bubbles" + +@get +external cancelable: DOM.event => bool = "cancelable" + +@get +external defaultPrevented: DOM.event => bool = "defaultPrevented" + +@get +external composed: DOM.event => bool = "composed" + +@get +external isTrusted: DOM.event => bool = "isTrusted" + +@get +external timeStamp: DOM.event => float = "timeStamp" module Impl = ( T: { type t }, ) => { - external asEvent: T.t => EventTypes.event = "%identity" - /** Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/composedPath) */ @send - external composedPath: T.t => array = "composedPath" + external composedPath: T.t => array = "composedPath" /** If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled. @@ -41,4 +71,4 @@ When dispatched in a tree, invoking this method prevents event from reaching any external stopPropagation: T.t => unit = "stopPropagation" } -include Impl({type t = EventTypes.event}) +include Impl({type t = DOM.event}) diff --git a/src/Event/EventTarget.res b/src/Event/EventTarget.res index c2f697cf..b54a51bf 100644 --- a/src/Event/EventTarget.res +++ b/src/Event/EventTarget.res @@ -1,15 +1,12 @@ -/** -[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget) -*/ @new -external make: unit => EventTypes.eventTarget = "EventTarget" +external make: unit => DOM.eventTarget = "EventTarget" module Impl = ( T: { type t }, ) => { - external asEventTarget: T.t => EventTypes.eventTarget = "%identity" + external asEventTarget: T.t => DOM.eventTarget = "%identity" /** Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. @@ -30,9 +27,9 @@ The event listener is appended to target's event listener list and is not append @send external addEventListener: ( T.t, - EventTypes.eventType, - EventTypes.eventListener<'event>, - ~options: EventTypes.addEventListenerOptions=?, + EventType.t, + DOM.EventListener.t<'event>, + ~options: DOM.EventListener.addEventListenerOptions=?, ) => unit = "addEventListener" /** @@ -54,8 +51,8 @@ The event listener is appended to target's event listener list and is not append @send external addEventListenerWithCapture: ( T.t, - EventTypes.eventType, - EventTypes.eventListener<'event>, + EventType.t, + DOM.EventListener.t<'event>, @as(json`true`) _, ) => unit = "addEventListener" @@ -66,9 +63,9 @@ Removes the event listener in target's event listener list with the same type, c @send external removeEventListener: ( T.t, - EventTypes.eventType, - EventTypes.eventListener<'event>, - ~options: EventTypes.eventListenerOptions=?, + EventType.t, + DOM.EventListener.t<'event>, + ~options: DOM.EventListener.options=?, ) => unit = "removeEventListener" /** @@ -78,8 +75,8 @@ Removes the event listener in target's event listener list with the same type, c @send external removeEventListenerUseCapture: ( T.t, - EventTypes.eventType, - EventTypes.eventListener<'event>, + EventType.t, + DOM.EventListener.t<'event>, @as(json`true`) _, ) => unit = "removeEventListener" @@ -88,7 +85,7 @@ Dispatches a synthetic event event to target and returns true if either event's [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) */ @send - external dispatchEvent: (T.t, EventTypes.event) => bool = "dispatchEvent" + external dispatchEvent: (T.t, DOM.event) => bool = "dispatchEvent" } -include Impl({type t = EventTypes.eventTarget}) +include Impl({type t = DOM.eventTarget}) diff --git a/src/Event/EventType.res b/src/Event/EventType.res new file mode 100644 index 00000000..5ce21173 --- /dev/null +++ b/src/Event/EventType.res @@ -0,0 +1,108 @@ +@unboxed +type t = + | @as("abort") Abort + | @as("activate") Activate + | @as("auxclick") Auxclick + | @as("beforeinput") Beforeinput + | @as("beforetoggle") Beforetoggle + | @as("blur") Blur + | @as("cancel") Cancel + | @as("canplay") Canplay + | @as("canplaythrough") Canplaythrough + | @as("change") Change + | @as("click") Click + | @as("close") Close + | @as("contextlost") Contextlost + | @as("contextmenu") Contextmenu + | @as("contextrestored") Contextrestored + | @as("copy") Copy + | @as("cuechange") Cuechange + | @as("cut") Cut + | @as("dblclick") Dblclick + | @as("DOMContentLoaded") DOMContentLoaded + | @as("drag") Drag + | @as("dragend") Dragend + | @as("dragenter") Dragenter + | @as("dragleave") Dragleave + | @as("dragover") Dragover + | @as("dragstart") Dragstart + | @as("drop") Drop + | @as("durationchange") Durationchange + | @as("emptied") Emptied + | @as("ended") Ended + | @as("error") Error + | @as("focus") Focus + | @as("formdata") Formdata + | @as("input") Input + | @as("install") Install + | @as("invalid") Invalid + | @as("keydown") Keydown + | @as("keypress") Keypress + | @as("keyup") Keyup + | @as("load") Load + | @as("loadeddata") Loadeddata + | @as("loadedmetadata") Loadedmetadata + | @as("loadstart") Loadstart + | @as("message") Message + | @as("messageerror") MessageError + | @as("mousedown") Mousedown + | @as("mouseenter") Mouseenter + | @as("mouseleave") Mouseleave + | @as("mousemove") Mousemove + | @as("mouseout") Mouseout + | @as("mouseover") Mouseover + | @as("mouseup") Mouseup + | @as("notificationclick") NotificationClick + | @as("paste") Paste + | @as("pause") Pause + | @as("play") Play + | @as("playing") Playing + | @as("progress") Progress + | @as("ratechange") Ratechange + | @as("reset") Reset + | @as("resize") Resize + | @as("scroll") Scroll + | @as("scrollend") Scrollend + | @as("securitypolicyviolation") Securitypolicyviolation + | @as("seeked") Seeked + | @as("seeking") Seeking + | @as("select") Select + | @as("slotchange") Slotchange + | @as("stalled") Stalled + | @as("submit") Submit + | @as("suspend") Suspend + | @as("timeupdate") Timeupdate + | @as("toggle") Toggle + | @as("volumechange") Volumechange + | @as("waiting") Waiting + | @as("webkitanimationend") Webkitanimationend + | @as("webkitanimationiteration") Webkitanimationiteration + | @as("webkitanimationstart") Webkitanimationstart + | @as("webkittransitionend") Webkittransitionend + | @as("wheel") Wheel + | @as("animationstart") Animationstart + | @as("animationiteration") Animationiteration + | @as("animationend") Animationend + | @as("animationcancel") Animationcancel + | @as("transitionrun") Transitionrun + | @as("transitionstart") Transitionstart + | @as("transitionend") Transitionend + | @as("transitioncancel") Transitioncancel + | @as("pointerover") Pointerover + | @as("pointerenter") Pointerenter + | @as("pointerdown") Pointerdown + | @as("pointermove") Pointermove + | @as("pointerup") Pointerup + | @as("pointercancel") Pointercancel + | @as("pointerout") Pointerout + | @as("pointerleave") Pointerleave + | @as("push") Push + | @as("gotpointercapture") Gotpointercapture + | @as("lostpointercapture") Lostpointercapture + | @as("selectstart") Selectstart + | @as("selectionchange") Selectionchange + | @as("touchstart") Touchstart + | @as("touchend") Touchend + | @as("touchmove") Touchmove + | @as("touchcancel") Touchcancel + | Custom(string) diff --git a/src/Event/EventTypes.res b/src/Event/EventTypes.res deleted file mode 100644 index 502d2c0c..00000000 --- a/src/Event/EventTypes.res +++ /dev/null @@ -1,232 +0,0 @@ -@@warning("-30") - -@unboxed -type eventType = - | @as("abort") Abort - | @as("activate") Activate - | @as("auxclick") Auxclick - | @as("beforeinput") Beforeinput - | @as("beforetoggle") Beforetoggle - | @as("blur") Blur - | @as("cancel") Cancel - | @as("canplay") Canplay - | @as("canplaythrough") Canplaythrough - | @as("change") Change - | @as("click") Click - | @as("close") Close - | @as("contextlost") Contextlost - | @as("contextmenu") Contextmenu - | @as("contextrestored") Contextrestored - | @as("copy") Copy - | @as("cuechange") Cuechange - | @as("cut") Cut - | @as("dblclick") Dblclick - | @as("DOMContentLoaded") DOMContentLoaded - | @as("drag") Drag - | @as("dragend") Dragend - | @as("dragenter") Dragenter - | @as("dragleave") Dragleave - | @as("dragover") Dragover - | @as("dragstart") Dragstart - | @as("drop") Drop - | @as("durationchange") Durationchange - | @as("emptied") Emptied - | @as("ended") Ended - | @as("error") Error - | @as("focus") Focus - | @as("formdata") Formdata - | @as("input") Input - | @as("install") Install - | @as("invalid") Invalid - | @as("keydown") Keydown - | @as("keypress") Keypress - | @as("keyup") Keyup - | @as("load") Load - | @as("loadeddata") Loadeddata - | @as("loadedmetadata") Loadedmetadata - | @as("loadstart") Loadstart - | @as("message") Message - | @as("messageerror") MessageError - | @as("mousedown") Mousedown - | @as("mouseenter") Mouseenter - | @as("mouseleave") Mouseleave - | @as("mousemove") Mousemove - | @as("mouseout") Mouseout - | @as("mouseover") Mouseover - | @as("mouseup") Mouseup - | @as("notificationclick") NotificationClick - | @as("paste") Paste - | @as("pause") Pause - | @as("play") Play - | @as("playing") Playing - | @as("progress") Progress - | @as("ratechange") Ratechange - | @as("reset") Reset - | @as("resize") Resize - | @as("scroll") Scroll - | @as("scrollend") Scrollend - | @as("securitypolicyviolation") Securitypolicyviolation - | @as("seeked") Seeked - | @as("seeking") Seeking - | @as("select") Select - | @as("slotchange") Slotchange - | @as("stalled") Stalled - | @as("submit") Submit - | @as("suspend") Suspend - | @as("timeupdate") Timeupdate - | @as("toggle") Toggle - | @as("volumechange") Volumechange - | @as("waiting") Waiting - | @as("webkitanimationend") Webkitanimationend - | @as("webkitanimationiteration") Webkitanimationiteration - | @as("webkitanimationstart") Webkitanimationstart - | @as("webkittransitionend") Webkittransitionend - | @as("wheel") Wheel - | @as("animationstart") Animationstart - | @as("animationiteration") Animationiteration - | @as("animationend") Animationend - | @as("animationcancel") Animationcancel - | @as("transitionrun") Transitionrun - | @as("transitionstart") Transitionstart - | @as("transitionend") Transitionend - | @as("transitioncancel") Transitioncancel - | @as("pointerover") Pointerover - | @as("pointerenter") Pointerenter - | @as("pointerdown") Pointerdown - | @as("pointermove") Pointermove - | @as("pointerup") Pointerup - | @as("pointercancel") Pointercancel - | @as("pointerout") Pointerout - | @as("pointerleave") Pointerleave - | @as("push") Push - | @as("gotpointercapture") Gotpointercapture - | @as("lostpointercapture") Lostpointercapture - | @as("selectstart") Selectstart - | @as("selectionchange") Selectionchange - | @as("touchstart") Touchstart - | @as("touchend") Touchend - | @as("touchmove") Touchmove - | @as("touchcancel") Touchcancel - | Custom(string) - -type eventListener<'event> = 'event => unit - -/** -EventTarget is a WebApiDOM interface implemented by objects that can receive events and may have listeners for them. -[See EventTarget on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget) -*/ -@editor.completeFrom(EventTarget) -type eventTarget = BaseEvent.eventTarget = private {...BaseEvent.eventTarget} - -/** -An event which takes place in the DOM. -[See WebApiEvent on MDN](https://developer.mozilla.org/docs/Web/API/Event) -*/ -@editor.completeFrom(WebApiEvent) -type event = private { - /** - Returns the type of event, e.g. "click", "hashchange", or "submit". - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/type) - */ - @as("type") - type_: eventType, - /** - Returns the object to which event is dispatched (its target). - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/target) - */ - target: Null.t, - /** - Returns the object whose event listener's callback is currently being invoked. - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/currentTarget) - */ - currentTarget: Null.t, - /** - Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/eventPhase) - */ - eventPhase: int, - /** - Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/bubbles) - */ - bubbles: bool, - /** - Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/cancelable) - */ - cancelable: bool, - /** - Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented) - */ - defaultPrevented: bool, - /** - Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/composed) - */ - composed: bool, - /** - Returns true if event was dispatched by the user agent, and false otherwise. - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) - */ - isTrusted: bool, - /** - Returns the event's timestamp as the number of milliseconds measured relative to the time origin. - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event/timeStamp) - */ - timeStamp: float, -} - -/** -A controller object that allows you to abort one or more WebApiDOM requests as and when desired. -[See AbortController on MDN](https://developer.mozilla.org/docs/Web/API/AbortController) -*/ -@editor.completeFrom(AbortController) -type rec abortController = private { - /** - Returns the AbortSignal object associated with this object. - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbortController/signal) - */ - signal: abortSignal, -} - -/** -A signal object that allows you to communicate with a WebApiDOM request (such as a WebApiFetch) and abort it if required via an AbortController object. -[See AbortSignal on MDN](https://developer.mozilla.org/docs/Web/API/AbortSignal) -*/ -@editor.completeFrom(AbortSignal) and abortSignal = private { - ...eventTarget, - /** - Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted) - */ - aborted: bool, - /** - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) - */ - reason: JSON.t, -} - -type eventListenerOptions = {mutable capture?: bool} - -type addEventListenerOptions = { - ...eventListenerOptions, - mutable passive?: bool, - mutable once?: bool, - mutable signal?: abortSignal, -} - -type eventInit = { - mutable bubbles?: bool, - mutable cancelable?: bool, - mutable composed?: bool, -} - -/** -The ExtendableEvent interface extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. -[See ExtendableEvent on MDN](https://developer.mozilla.org/docs/Web/API/ExtendableEvent) - */ -@editor.completeFrom(ExtendableEvent) -type extendableEvent = private { - ...event, -} diff --git a/src/Event/ExtendableEvent.res b/src/Event/ExtendableEvent.res index b9321c29..62d8f963 100644 --- a/src/Event/ExtendableEvent.res +++ b/src/Event/ExtendableEvent.res @@ -3,12 +3,10 @@ module Impl = ( type t }, ) => { - external asExtendableEvent: T.t => EventTypes.extendableEvent = "%identity" - include Event.Impl({type t = T.t}) @send external waitUntil: (T.t, promise<'a>) => unit = "waitUntil" } -include Impl({type t = EventTypes.extendableEvent}) +include Impl({type t = DOM.extendableEvent}) diff --git a/src/Fetch/FetchTypes.res b/src/Fetch/FetchTypes.res index 45a499ff..b5c0e63e 100644 --- a/src/Fetch/FetchTypes.res +++ b/src/Fetch/FetchTypes.res @@ -145,7 +145,7 @@ type request = private { Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/signal) */ - signal: EventTypes.abortSignal, + signal: DOM.abortSignal, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Request/body) */ @@ -267,7 +267,7 @@ type requestInit = { /** An AbortSignal to set request's signal. */ - mutable signal?: Null.t, + mutable signal?: Null.t, mutable priority?: requestPriority, /** Can only be null. Used to disassociate request from any Window. diff --git a/src/File/FileTypes.res b/src/File/FileTypes.res index c8635d3b..17f8d09e 100644 --- a/src/File/FileTypes.res +++ b/src/File/FileTypes.res @@ -63,7 +63,7 @@ type writableStreamDefaultController = private { /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal) */ - signal: EventTypes.abortSignal, + signal: DOM.abortSignal, } /** @@ -200,7 +200,7 @@ The signal option can be set to an AbortSignal to allow aborting an ongoing pipe mutable preventClose?: bool, mutable preventAbort?: bool, mutable preventCancel?: bool, - mutable signal?: EventTypes.abortSignal, + mutable signal?: DOM.abortSignal, } type filePropertyBag = { diff --git a/src/IndexedDB/IndexedDbTypes.res b/src/IndexedDB/IndexedDbTypes.res index 6aeca46f..62045d01 100644 --- a/src/IndexedDB/IndexedDbTypes.res +++ b/src/IndexedDB/IndexedDbTypes.res @@ -33,7 +33,7 @@ This WebApiIndexedDB API interface provides a connection to a database; you can */ @editor.completeFrom(IDBDatabase) type idbDatabase = private { - ...EventTypes.eventTarget, + ...DOM.eventTarget, /** Returns the name of the database. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/IDBDatabase/name) @@ -56,7 +56,7 @@ type idbDatabase = private { */ @editor.completeFrom(IDBTransaction) type idbTransaction = private { - ...EventTypes.eventTarget, + ...DOM.eventTarget, /** Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStoreNames) @@ -88,7 +88,7 @@ The request object does not initially contain any information about the result o [See IDBRequest on MDN](https://developer.mozilla.org/docs/Web/API/IDBRequest) */ type idbRequest<'t> = { - ...EventTypes.eventTarget, + ...DOM.eventTarget, /** When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/IDBRequest/result) diff --git a/src/MediaCaptureAndStreams/MediaCaptureAndStreamsTypes.res b/src/MediaCaptureAndStreams/MediaCaptureAndStreamsTypes.res index fc98e8d0..2fd4269a 100644 --- a/src/MediaCaptureAndStreams/MediaCaptureAndStreamsTypes.res +++ b/src/MediaCaptureAndStreams/MediaCaptureAndStreamsTypes.res @@ -15,7 +15,7 @@ Provides access to connected media input devices like cameras and microphones, a */ @editor.completeFrom(MediaDevices) type mediaDevices = private { - ...EventTypes.eventTarget, + ...DOM.eventTarget, } /** @@ -48,7 +48,7 @@ A stream of media content. A stream consists of several tracks such as video or */ @editor.completeFrom(MediaStream) type mediaStream = private { - ...EventTypes.eventTarget, + ...DOM.eventTarget, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaStream/id) */ @@ -66,7 +66,7 @@ TODO: mark as private once mutating fields of private records is allowed */ @editor.completeFrom(MediaStreamTrack) type mediaStreamTrack = { - ...EventTypes.eventTarget, + ...DOM.eventTarget, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/kind) */ diff --git a/src/Notification/NotificationTypes.res b/src/Notification/NotificationTypes.res index 3f63104a..8e5c32a1 100644 --- a/src/Notification/NotificationTypes.res +++ b/src/Notification/NotificationTypes.res @@ -16,7 +16,7 @@ This Notifications API interface is used to configure and display desktop notifi */ @editor.completeFrom(WebApiNotification) type notification = private { - ...EventTypes.eventTarget, + ...DOM.eventTarget, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Notification/permission_static) */ @@ -64,7 +64,7 @@ type notification = private { } /** - An array of actions to display in the notification, for which the default is an empty array. + An array of actions to display in the notification, for which the default is an empty array. [Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/showNotification#actions) */ type notificationAction = { @@ -95,7 +95,7 @@ type getNotificationOptions = {mutable tag?: string} type notificationPermissionCallback = notificationPermission => unit type notificationEvent = { - ...EventTypes.extendableEvent, + ...DOM.extendableEvent, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/NotificationEvent/action) */ diff --git a/src/Performance/PerformanceTypes.res b/src/Performance/PerformanceTypes.res index f47cf514..405d7f2a 100644 --- a/src/Performance/PerformanceTypes.res +++ b/src/Performance/PerformanceTypes.res @@ -11,7 +11,7 @@ Provides access to performance-related information for the current page. It's pa */ @editor.completeFrom(WebApiPerformance) type performance = private { - ...EventTypes.eventTarget, + ...DOM.eventTarget, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Performance/timeOrigin) */ diff --git a/src/Permissions/PermissionsTypes.res b/src/Permissions/PermissionsTypes.res index 84c3c4a3..fe50f244 100644 --- a/src/Permissions/PermissionsTypes.res +++ b/src/Permissions/PermissionsTypes.res @@ -24,7 +24,7 @@ type permissions = private {} [See PermissionStatus on MDN](https://developer.mozilla.org/docs/Web/API/PermissionStatus) */ type permissionStatus = { - ...EventTypes.eventTarget, + ...DOM.eventTarget, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/PermissionStatus/state) */ diff --git a/src/PictureInPicture/PictureInPictureTypes.res b/src/PictureInPicture/PictureInPictureTypes.res index ff556ae9..3b3138da 100644 --- a/src/PictureInPicture/PictureInPictureTypes.res +++ b/src/PictureInPicture/PictureInPictureTypes.res @@ -4,7 +4,7 @@ [See PictureInPictureWindow on MDN](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow) */ type pictureInPictureWindow = { - ...EventTypes.eventTarget, + ...DOM.eventTarget, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/width) */ diff --git a/src/Push/PushTypes.res b/src/Push/PushTypes.res index 33b1228d..290e8b8f 100644 --- a/src/Push/PushTypes.res +++ b/src/Push/PushTypes.res @@ -80,7 +80,7 @@ type pushMessageData @editor.completeFrom(PushEvent) type pushEvent = private { - ...EventTypes.extendableEvent, + ...DOM.extendableEvent, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/PushEvent/data) */ diff --git a/src/RemotePlayback/RemotePlaybackTypes.res b/src/RemotePlayback/RemotePlaybackTypes.res index 975cc56d..c850d3d8 100644 --- a/src/RemotePlayback/RemotePlaybackTypes.res +++ b/src/RemotePlayback/RemotePlaybackTypes.res @@ -10,7 +10,7 @@ type remotePlaybackState = */ @editor.completeFrom(WebApiRemotePlayback) type remotePlayback = private { - ...EventTypes.eventTarget, + ...DOM.eventTarget, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/RemotePlayback/state) */ diff --git a/src/ScreenWakeLock/ScreenWakeLockTypes.res b/src/ScreenWakeLock/ScreenWakeLockTypes.res index 5d23df6c..db1d781c 100644 --- a/src/ScreenWakeLock/ScreenWakeLockTypes.res +++ b/src/ScreenWakeLock/ScreenWakeLockTypes.res @@ -13,7 +13,7 @@ type wakeLock = private {} */ @editor.completeFrom(WakeLockSentinel) type wakeLockSentinel = private { - ...EventTypes.eventTarget, + ...DOM.eventTarget, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/released) */ diff --git a/src/ServiceWorker/ServiceWorkerTypes.res b/src/ServiceWorker/ServiceWorkerTypes.res index d7415b57..24561355 100644 --- a/src/ServiceWorker/ServiceWorkerTypes.res +++ b/src/ServiceWorker/ServiceWorkerTypes.res @@ -23,7 +23,7 @@ This WebApiServiceWorker API interface provides a reference to a service worker. */ @editor.completeFrom(WebApiServiceWorker) type serviceWorker = private { - ...EventTypes.eventTarget, + ...DOM.eventTarget, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ServiceWorker/scriptURL) */ @@ -46,7 +46,7 @@ This WebApiServiceWorker API interface represents the service worker registratio */ @editor.completeFrom(ServiceWorkerRegistration) type serviceWorkerRegistration = private { - ...EventTypes.eventTarget, + ...DOM.eventTarget, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/installing) */ @@ -83,7 +83,7 @@ The ServiceWorkerContainer interface of the WebApiServiceWorker API provides */ @editor.completeFrom(ServiceWorkerContainer) type serviceWorkerContainer = private { - ...EventTypes.eventTarget, + ...DOM.eventTarget, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller) */ diff --git a/src/UIEvents/UiEventsTypes.res b/src/UIEvents/UiEventsTypes.res index 44347325..325cf351 100644 --- a/src/UIEvents/UiEventsTypes.res +++ b/src/UIEvents/UiEventsTypes.res @@ -10,7 +10,7 @@ Simple user interface events. */ @editor.completeFrom(UIEvent) type uiEvent = private { - ...EventTypes.event, + ...DOM.event, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/UIEvent/view) */ @@ -44,7 +44,7 @@ type focusEvent = private { /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FocusEvent/relatedTarget) */ - relatedTarget: Null.t, + relatedTarget: Null.t, } /** @@ -248,7 +248,7 @@ type mouseEvent = private { /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MouseEvent/relatedTarget) */ - relatedTarget: Null.t, + relatedTarget: Null.t, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MouseEvent/pageX) */ @@ -321,7 +321,7 @@ type touch = private { /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Touch/target) */ - target: EventTypes.eventTarget, + target: DOM.eventTarget, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Touch/screenX) */ @@ -471,7 +471,7 @@ type pointerEvent = private { } type uiEventInit = { - ...EventTypes.eventInit, + ...Event.eventInit, mutable view?: Null.t, mutable detail?: int, mutable which?: int, @@ -503,14 +503,14 @@ type mouseEventInit = { mutable clientY?: int, mutable button?: int, mutable buttons?: int, - mutable relatedTarget?: Null.t, + mutable relatedTarget?: Null.t, mutable movementX?: float, mutable movementY?: float, } type focusEventInit = { ...uiEventInit, - mutable relatedTarget?: Null.t, + mutable relatedTarget?: Null.t, } type compositionEventInit = { @@ -548,7 +548,7 @@ type inputEventInit = { type touchInit = { mutable identifier: int, - mutable target: EventTypes.eventTarget, + mutable target: DOM.eventTarget, mutable clientX?: float, mutable clientY?: float, mutable screenX?: float, diff --git a/src/VisualViewport/VisualViewportTypes.res b/src/VisualViewport/VisualViewportTypes.res index dd1df336..24e00867 100644 --- a/src/VisualViewport/VisualViewportTypes.res +++ b/src/VisualViewport/VisualViewportTypes.res @@ -4,7 +4,7 @@ [See WebApiVisualViewport on MDN](https://developer.mozilla.org/docs/Web/API/VisualViewport) */ type visualViewport = { - ...EventTypes.eventTarget, + ...DOM.eventTarget, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/VisualViewport/offsetLeft) */ diff --git a/src/WebAudio/WebAudioTypes.res b/src/WebAudio/WebAudioTypes.res index c65d1be1..0ebc622a 100644 --- a/src/WebAudio/WebAudioTypes.res +++ b/src/WebAudio/WebAudioTypes.res @@ -80,7 +80,7 @@ The Web Audio API events that occur when a ScriptProcessorNode input buffer is r */ @editor.completeFrom(AudioProcessingEvent) type audioProcessingEvent = private { - ...EventTypes.event, + ...DOM.event, } /** @@ -89,7 +89,7 @@ The Web Audio API OfflineAudioCompletionEvent interface represents events that o */ @editor.completeFrom(OfflineAudioCompletionEvent) type offlineAudioCompletionEvent = private { - ...EventTypes.event, + ...DOM.event, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/OfflineAudioCompletionEvent/renderedBuffer) */ @@ -109,7 +109,7 @@ TODO: mark as private once mutating fields of private records is allowed */ @editor.completeFrom(AudioNode) type rec audioNode = { - ...EventTypes.eventTarget, + ...DOM.eventTarget, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AudioNode/context) */ @@ -178,7 +178,7 @@ and audioDestinationNode = { [See BaseAudioContext on MDN](https://developer.mozilla.org/docs/Web/API/BaseAudioContext) */ @editor.completeFrom(BaseAudioContext) and baseAudioContext = private { - ...EventTypes.eventTarget, + ...DOM.eventTarget, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/destination) */ @@ -1136,14 +1136,14 @@ type audioBufferOptions = { } type audioProcessingEventInit = { - ...EventTypes.eventInit, + ...Event.eventInit, mutable playbackTime: float, mutable inputBuffer: audioBuffer, mutable outputBuffer: audioBuffer, } type offlineAudioCompletionEventInit = { - ...EventTypes.eventInit, + ...Event.eventInit, mutable renderedBuffer: audioBuffer, } diff --git a/src/WebLocks/WebLocksTypes.res b/src/WebLocks/WebLocksTypes.res index 266a4910..2815c01f 100644 --- a/src/WebLocks/WebLocksTypes.res +++ b/src/WebLocks/WebLocksTypes.res @@ -39,7 +39,7 @@ type lockOptions = { mutable mode?: lockMode, mutable ifAvailable?: bool, mutable steal?: bool, - mutable signal?: EventTypes.abortSignal, + mutable signal?: DOM.abortSignal, } type lockGrantedCallback = lock => promise diff --git a/src/WebMIDI/WebMidiTypes.res b/src/WebMIDI/WebMidiTypes.res index 0ccb3c06..fa4af480 100644 --- a/src/WebMIDI/WebMidiTypes.res +++ b/src/WebMIDI/WebMidiTypes.res @@ -14,7 +14,7 @@ type midiOutputMap = {} [See MIDIAccess on MDN](https://developer.mozilla.org/docs/Web/API/MIDIAccess) */ type midiAccess = { - ...EventTypes.eventTarget, + ...DOM.eventTarget, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MIDIAccess/inputs) */ diff --git a/src/WebSockets/MessageEvent.res b/src/WebSockets/MessageEvent.res index 480b3b93..53d5eacb 100644 --- a/src/WebSockets/MessageEvent.res +++ b/src/WebSockets/MessageEvent.res @@ -1,5 +1,5 @@ -type event = EventTypes.event -type eventTarget = EventTypes.eventTarget +type event = DOM.event +type eventTarget = DOM.eventTarget type messageEventSource = WebSocketsTypes.messageEventSource type messageEvent<'t> = WebSocketsTypes.messageEvent<'t> diff --git a/src/WebSockets/WebSocketsTypes.res b/src/WebSockets/WebSocketsTypes.res index f3574108..bfac3975 100644 --- a/src/WebSockets/WebSocketsTypes.res +++ b/src/WebSockets/WebSocketsTypes.res @@ -13,7 +13,7 @@ TODO: mark as private once mutating fields of private records is allowed */ @editor.completeFrom(WebSocket) type webSocket = { - ...EventTypes.eventTarget, + ...DOM.eventTarget, /** Returns the WebApiURL that was used to establish the WebSocket connection. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/WebSocket/url) @@ -56,7 +56,7 @@ A CloseEvent is sent to clients using WebApiWebSockets when the connection is cl */ @editor.completeFrom(CloseEvent) type closeEvent = private { - ...EventTypes.event, + ...DOM.event, /** Returns true if the connection closed cleanly; false otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean) @@ -79,7 +79,7 @@ A message received by a target object. [See MessageEvent on MDN](https://developer.mozilla.org/docs/Web/API/MessageEvent) */ type messageEvent<'t> = { - ...EventTypes.event, + ...DOM.event, /** Returns the data of the message. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MessageEvent/data) @@ -108,14 +108,14 @@ type messageEvent<'t> = { } type closeEventInit = { - ...EventTypes.eventInit, + ...Event.eventInit, mutable wasClean?: bool, mutable code?: int, mutable reason?: string, } type messageEventInit<'t> = { - ...EventTypes.eventInit, + ...Event.eventInit, mutable data?: 't, mutable origin?: string, mutable lastEventId?: string, diff --git a/src/WebSpeech/WebSpeechTypes.res b/src/WebSpeech/WebSpeechTypes.res index d4028d8a..f1b8534c 100644 --- a/src/WebSpeech/WebSpeechTypes.res +++ b/src/WebSpeech/WebSpeechTypes.res @@ -6,7 +6,7 @@ This Web Speech API interface is the controller interface for the speech service */ @editor.completeFrom(SpeechSynthesis) type speechSynthesis = private { - ...EventTypes.eventTarget, + ...DOM.eventTarget, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/pending) */ @@ -55,7 +55,7 @@ TODO: mark as private once mutating fields of private records is allowed */ @editor.completeFrom(SpeechSynthesisUtterance) type speechSynthesisUtterance = { - ...EventTypes.eventTarget, + ...DOM.eventTarget, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/text) */ diff --git a/src/WebStorage/WebStorageTypes.res b/src/WebStorage/WebStorageTypes.res index 1b210cf2..4f779c83 100644 --- a/src/WebStorage/WebStorageTypes.res +++ b/src/WebStorage/WebStorageTypes.res @@ -19,7 +19,7 @@ A StorageEvent is sent to a window when a storage area it has access to is chang */ @editor.completeFrom(StorageEvent) type storageEvent = private { - ...EventTypes.event, + ...DOM.event, /** Returns the key of the storage item being changed. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StorageEvent/key) @@ -48,7 +48,7 @@ type storageEvent = private { } type storageEventInit = { - ...EventTypes.eventInit, + ...Event.eventInit, mutable key?: Null.t, mutable oldValue?: Null.t, mutable newValue?: Null.t, diff --git a/src/WebVTT/WebVttTypes.res b/src/WebVTT/WebVttTypes.res index c0416343..831bb0d0 100644 --- a/src/WebVTT/WebVttTypes.res +++ b/src/WebVTT/WebVttTypes.res @@ -31,7 +31,7 @@ TODO: mark as private once mutating fields of private records is allowed */ @editor.completeFrom(TextTrack) type rec textTrackCue = { - ...EventTypes.eventTarget, + ...DOM.eventTarget, /** Returns the TextTrack object to which this text track cue belongs, if any, or null otherwise. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/TextTrackCue/track) @@ -73,7 +73,7 @@ This interface also inherits properties from EventTarget. TODO: mark as private once mutating fields of private records is allowed */ @editor.completeFrom(TextTrack) and textTrack = { - ...EventTypes.eventTarget, + ...DOM.eventTarget, /** Returns the text track kind string. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/TextTrack/kind) diff --git a/src/WebWorkers/WebWorkersTypes.res b/src/WebWorkers/WebWorkersTypes.res index 78068fa7..daf78021 100644 --- a/src/WebWorkers/WebWorkersTypes.res +++ b/src/WebWorkers/WebWorkersTypes.res @@ -28,13 +28,13 @@ type sharedWorker /** The WorkerGlobalScope interface of the Web Workers API is an interface representing the scope of any worker. Workers have no browsing context; this scope contains the information usually conveyed by Window objects — -in this case event handlers, the console or the associated WorkerNavigator object. +in this case event handlers, the console or the associated WorkerNavigator object. Each WorkerGlobalScope has its own event loop. [See WorkerGlobalScope on MDN](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope) */ @editor.completeFrom(WorkerGlobalScope) type workerGlobalScope = private { - ...EventTypes.eventTarget, + ...DOM.eventTarget, /** [Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/caches) */ @@ -58,10 +58,10 @@ type workerOptions = { } /** -The `SharedWorkerGlobalScope` object (the `SharedWorker` global scope) is -accessible through the self keyword. Some additional global functions, -namespaces objects, and constructors, not typically associated with the worker -global scope, but available on it, are listed in the JavaScript Reference. See +The `SharedWorkerGlobalScope` object (the `SharedWorker` global scope) is +accessible through the self keyword. Some additional global functions, +namespaces objects, and constructors, not typically associated with the worker +global scope, but available on it, are listed in the JavaScript Reference. See the complete list of functions available to workers. */ @editor.completeFrom(SharedWorkerGlobalScope) diff --git a/tests/DOMAPI/AddEventListener__test.res b/tests/DOMAPI/AddEventListener__test.res index ef052991..7daa3b0b 100644 --- a/tests/DOMAPI/AddEventListener__test.res +++ b/tests/DOMAPI/AddEventListener__test.res @@ -3,7 +3,7 @@ let h2 = DomGlobal.document->Document.querySelector("h2")->Null.toOption switch (button, h2) { | (Some(button), Some(h2)) => - button->Element.addEventListener(EventTypes.Click, (e: UiEventsTypes.mouseEvent) => { + button->Element.addEventListener(EventType.Click, (e: UiEventsTypes.mouseEvent) => { Console.log(`Button clicked, ${Int.toString(e.button)}`) switch h2.textContent { | Null => h2.textContent = Value("1") diff --git a/tests/DOMAPI/EventTarget__test.res b/tests/DOMAPI/EventTarget__test.res new file mode 100644 index 00000000..ba5e6e50 --- /dev/null +++ b/tests/DOMAPI/EventTarget__test.res @@ -0,0 +1,15 @@ +let acceptsDOMEventTarget = (_target: DOM.eventTarget) => () +let acceptsEventTargetLeaf = (_target: DOM.eventTarget) => () + +let _ = (target: DOM.eventTarget) => { + acceptsEventTargetLeaf(target) +} + +let _ = (target: DOM.eventTarget) => { + acceptsDOMEventTarget(target) +} + +let el = switch Document.make()->Document.getElementById("foo") { +| Null => () +| Value(el) => el->Element.addEventListener(Click, () => ()) +} diff --git a/tests/DOMAPI/EventType__test.res b/tests/DOMAPI/EventType__test.res new file mode 100644 index 00000000..a20b570c --- /dev/null +++ b/tests/DOMAPI/EventType__test.res @@ -0,0 +1,5 @@ +let click: EventType.t = Click + +let custom: EventType.t = Custom("custom-event") + +let _ = (click, custom) diff --git a/tests/DOMAPI/Event__test.res b/tests/DOMAPI/Event__test.res new file mode 100644 index 00000000..a0a6cbba --- /dev/null +++ b/tests/DOMAPI/Event__test.res @@ -0,0 +1,28 @@ +let acceptsDOMEvent = (_event: DOM.event) => () +let acceptsEvent = (_event: DOM.event) => () + +let _ = (event: DOM.event) => { + acceptsEvent(event) +} + +let _ = (event: DOM.event) => { + acceptsDOMEvent(event) +} + +let handleClick = (event: DOM.event) => { + event->Event.preventDefault + switch event->Event.target { + | Value(target) => Console.log(target) + | Null => Console.log("No target found") + } +} + +let target: DOM.eventTarget = {} + +let fn = (target: DOM.eventTarget) => + target->EventTarget.addEventListener(Click, () => Console.log("Click 1")) + +let x = fn(target) + +// Testing out global event listeners +DOM.window->Window.addEventListener(Click, () => Console.log("Click 2")) diff --git a/tests/DOMAPI/Location__test.res b/tests/DOMAPI/Location__test.res index c89545b7..cd8079e7 100644 --- a/tests/DOMAPI/Location__test.res +++ b/tests/DOMAPI/Location__test.res @@ -1,4 +1,5 @@ -let location = DomGlobal.document.location +let window = DOM.window +let location = window->Window.location // Access properties using `.` let href = location.href diff --git a/tests/Fetch__test.res b/tests/Fetch__test.res index 9428890f..8bed2be8 100644 --- a/tests/Fetch__test.res +++ b/tests/Fetch__test.res @@ -26,8 +26,8 @@ let response3 = await Fetch.fetchWithRequest( }, ) -DomGlobal.removeEventListener( - EventTypes.Mousedown, +DOM.window->Window.removeEventListener( + EventType.Mousedown, MouseEvent.preventDefault, ~options={capture: false}, ) diff --git a/tests/ServiceWorkerAPI/ServiceWorker__test.res b/tests/ServiceWorkerAPI/ServiceWorker__test.res index c0fbdb60..e6083688 100644 --- a/tests/ServiceWorkerAPI/ServiceWorker__test.res +++ b/tests/ServiceWorkerAPI/ServiceWorker__test.res @@ -1,6 +1,6 @@ let self = ServiceWorkerScope.current -self->ServiceWorkerScope.addEventListener(EventTypes.Push, (event: PushEvent.t) => { +self->ServiceWorkerScope.addEventListener(EventType.Push, (event: PushEvent.t) => { Console.log("received push event") // Extract data @@ -32,7 +32,7 @@ self->ServiceWorkerScope.addEventListener(EventTypes.Push, (event: PushEvent.t) ->Promise.ignore }) -self->ServiceWorkerScope.addEventListener(EventTypes.NotificationClick, ( +self->ServiceWorkerScope.addEventListener(EventType.NotificationClick, ( event: Notification.notificationEvent, ) => { Console.log(`notification clicked: ${event.action}`) diff --git a/tests/VisualViewport__test.res b/tests/VisualViewport__test.res index a823f286..b6941d82 100644 --- a/tests/VisualViewport__test.res +++ b/tests/VisualViewport__test.res @@ -1 +1 @@ -let maybeViewport: Null.t = Window.current->Window.visualViewport +let maybeViewport: Null.t = DOM.window->Window.visualViewport diff --git a/tools/TypeScript-DOM-lib-generator/baselines/dom.generated.d.ts b/tools/TypeScript-DOM-lib-generator/baselines/dom.generated.d.ts index 51e1f81a..093970e9 100644 --- a/tools/TypeScript-DOM-lib-generator/baselines/dom.generated.d.ts +++ b/tools/TypeScript-DOM-lib-generator/baselines/dom.generated.d.ts @@ -3,2369 +3,2372 @@ ///////////////////////////// interface AddEventListenerOptions extends EventListenerOptions { - once?: boolean; - passive?: boolean; - signal?: AbortSignal; + once?: boolean; + passive?: boolean; + signal?: AbortSignal; } interface AddressErrors { - addressLine?: string; - city?: string; - country?: string; - dependentLocality?: string; - organization?: string; - phone?: string; - postalCode?: string; - recipient?: string; - region?: string; - sortingCode?: string; + addressLine?: string; + city?: string; + country?: string; + dependentLocality?: string; + organization?: string; + phone?: string; + postalCode?: string; + recipient?: string; + region?: string; + sortingCode?: string; } interface AesCbcParams extends Algorithm { - iv: BufferSource; + iv: BufferSource; } interface AesCtrParams extends Algorithm { - counter: BufferSource; - length: number; + counter: BufferSource; + length: number; } interface AesDerivedKeyParams extends Algorithm { - length: number; + length: number; } interface AesGcmParams extends Algorithm { - additionalData?: BufferSource; - iv: BufferSource; - tagLength?: number; + additionalData?: BufferSource; + iv: BufferSource; + tagLength?: number; } interface AesKeyAlgorithm extends KeyAlgorithm { - length: number; + length: number; } interface AesKeyGenParams extends Algorithm { - length: number; + length: number; } interface Algorithm { - name: string; + name: string; } interface AnalyserOptions extends AudioNodeOptions { - fftSize?: number; - maxDecibels?: number; - minDecibels?: number; - smoothingTimeConstant?: number; + fftSize?: number; + maxDecibels?: number; + minDecibels?: number; + smoothingTimeConstant?: number; } interface AnimationEventInit extends EventInit { - animationName?: string; - elapsedTime?: number; - pseudoElement?: string; + animationName?: string; + elapsedTime?: number; + pseudoElement?: string; } interface AnimationPlaybackEventInit extends EventInit { - currentTime?: CSSNumberish | null; - timelineTime?: CSSNumberish | null; + currentTime?: CSSNumberish | null; + timelineTime?: CSSNumberish | null; } interface AssignedNodesOptions { - flatten?: boolean; + flatten?: boolean; } interface AudioBufferOptions { - length: number; - numberOfChannels?: number; - sampleRate: number; + length: number; + numberOfChannels?: number; + sampleRate: number; } interface AudioBufferSourceOptions { - buffer?: AudioBuffer | null; - detune?: number; - loop?: boolean; - loopEnd?: number; - loopStart?: number; - playbackRate?: number; + buffer?: AudioBuffer | null; + detune?: number; + loop?: boolean; + loopEnd?: number; + loopStart?: number; + playbackRate?: number; } interface AudioConfiguration { - bitrate?: number; - channels?: string; - contentType: string; - samplerate?: number; - spatialRendering?: boolean; + bitrate?: number; + channels?: string; + contentType: string; + samplerate?: number; + spatialRendering?: boolean; } interface AudioContextOptions { - latencyHint?: AudioContextLatencyCategory | number; - sampleRate?: number; + latencyHint?: AudioContextLatencyCategory | number; + sampleRate?: number; } interface AudioDataCopyToOptions { - format?: AudioSampleFormat; - frameCount?: number; - frameOffset?: number; - planeIndex: number; + format?: AudioSampleFormat; + frameCount?: number; + frameOffset?: number; + planeIndex: number; } interface AudioDataInit { - data: BufferSource; - format: AudioSampleFormat; - numberOfChannels: number; - numberOfFrames: number; - sampleRate: number; - timestamp: number; - transfer?: ArrayBuffer[]; + data: BufferSource; + format: AudioSampleFormat; + numberOfChannels: number; + numberOfFrames: number; + sampleRate: number; + timestamp: number; + transfer?: ArrayBuffer[]; } interface AudioDecoderConfig { - codec: string; - description?: BufferSource; - numberOfChannels: number; - sampleRate: number; + codec: string; + description?: BufferSource; + numberOfChannels: number; + sampleRate: number; } interface AudioDecoderInit { - error: WebCodecsErrorCallback; - output: AudioDataOutputCallback; + error: WebCodecsErrorCallback; + output: AudioDataOutputCallback; } interface AudioDecoderSupport { - config?: AudioDecoderConfig; - supported?: boolean; + config?: AudioDecoderConfig; + supported?: boolean; } interface AudioEncoderConfig { - bitrate?: number; - bitrateMode?: BitrateMode; - codec: string; - numberOfChannels: number; - opus?: OpusEncoderConfig; - sampleRate: number; + bitrate?: number; + bitrateMode?: BitrateMode; + codec: string; + numberOfChannels: number; + opus?: OpusEncoderConfig; + sampleRate: number; } interface AudioEncoderInit { - error: WebCodecsErrorCallback; - output: EncodedAudioChunkOutputCallback; + error: WebCodecsErrorCallback; + output: EncodedAudioChunkOutputCallback; } interface AudioEncoderSupport { - config?: AudioEncoderConfig; - supported?: boolean; + config?: AudioEncoderConfig; + supported?: boolean; } interface AudioNodeOptions { - channelCount?: number; - channelCountMode?: ChannelCountMode; - channelInterpretation?: ChannelInterpretation; + channelCount?: number; + channelCountMode?: ChannelCountMode; + channelInterpretation?: ChannelInterpretation; } interface AudioProcessingEventInit extends EventInit { - inputBuffer: AudioBuffer; - outputBuffer: AudioBuffer; - playbackTime: number; + inputBuffer: AudioBuffer; + outputBuffer: AudioBuffer; + playbackTime: number; } interface AudioTimestamp { - contextTime?: number; - performanceTime?: DOMHighResTimeStamp; + contextTime?: number; + performanceTime?: DOMHighResTimeStamp; } interface AudioWorkletNodeOptions extends AudioNodeOptions { - numberOfInputs?: number; - numberOfOutputs?: number; - outputChannelCount?: number[]; - parameterData?: Record; - processorOptions?: any; + numberOfInputs?: number; + numberOfOutputs?: number; + outputChannelCount?: number[]; + parameterData?: Record; + processorOptions?: any; } interface AuthenticationExtensionsClientInputs { - appid?: string; - credProps?: boolean; - hmacCreateSecret?: boolean; - minPinLength?: boolean; - prf?: AuthenticationExtensionsPRFInputs; + appid?: string; + credProps?: boolean; + hmacCreateSecret?: boolean; + minPinLength?: boolean; + prf?: AuthenticationExtensionsPRFInputs; } -interface AuthenticationExtensionsClientInputsJSON { -} +interface AuthenticationExtensionsClientInputsJSON {} interface AuthenticationExtensionsClientOutputs { - appid?: boolean; - credProps?: CredentialPropertiesOutput; - hmacCreateSecret?: boolean; - prf?: AuthenticationExtensionsPRFOutputs; + appid?: boolean; + credProps?: CredentialPropertiesOutput; + hmacCreateSecret?: boolean; + prf?: AuthenticationExtensionsPRFOutputs; } interface AuthenticationExtensionsPRFInputs { - eval?: AuthenticationExtensionsPRFValues; - evalByCredential?: Record; + eval?: AuthenticationExtensionsPRFValues; + evalByCredential?: Record; } interface AuthenticationExtensionsPRFOutputs { - enabled?: boolean; - results?: AuthenticationExtensionsPRFValues; + enabled?: boolean; + results?: AuthenticationExtensionsPRFValues; } interface AuthenticationExtensionsPRFValues { - first: BufferSource; - second?: BufferSource; + first: BufferSource; + second?: BufferSource; } interface AuthenticatorSelectionCriteria { - authenticatorAttachment?: AuthenticatorAttachment; - requireResidentKey?: boolean; - residentKey?: ResidentKeyRequirement; - userVerification?: UserVerificationRequirement; + authenticatorAttachment?: AuthenticatorAttachment; + requireResidentKey?: boolean; + residentKey?: ResidentKeyRequirement; + userVerification?: UserVerificationRequirement; } interface AvcEncoderConfig { - format?: AvcBitstreamFormat; + format?: AvcBitstreamFormat; } interface BiquadFilterOptions extends AudioNodeOptions { - Q?: number; - detune?: number; - frequency?: number; - gain?: number; - type?: BiquadFilterType; + Q?: number; + detune?: number; + frequency?: number; + gain?: number; + type?: BiquadFilterType; } interface BlobEventInit { - data: Blob; - timecode?: DOMHighResTimeStamp; + data: Blob; + timecode?: DOMHighResTimeStamp; } interface BlobPropertyBag { - endings?: EndingType; - type?: string; + endings?: EndingType; + type?: string; } interface CSSMatrixComponentOptions { - is2D?: boolean; + is2D?: boolean; } interface CSSNumericType { - angle?: number; - flex?: number; - frequency?: number; - length?: number; - percent?: number; - percentHint?: CSSNumericBaseType; - resolution?: number; - time?: number; + angle?: number; + flex?: number; + frequency?: number; + length?: number; + percent?: number; + percentHint?: CSSNumericBaseType; + resolution?: number; + time?: number; } interface CSSStyleSheetInit { - baseURL?: string; - disabled?: boolean; - media?: MediaList | string; + baseURL?: string; + disabled?: boolean; + media?: MediaList | string; } interface CacheQueryOptions { - ignoreMethod?: boolean; - ignoreSearch?: boolean; - ignoreVary?: boolean; + ignoreMethod?: boolean; + ignoreSearch?: boolean; + ignoreVary?: boolean; } interface CanvasRenderingContext2DSettings { - alpha?: boolean; - colorSpace?: PredefinedColorSpace; - desynchronized?: boolean; - willReadFrequently?: boolean; + alpha?: boolean; + colorSpace?: PredefinedColorSpace; + desynchronized?: boolean; + willReadFrequently?: boolean; } interface CaretPositionFromPointOptions { - shadowRoots?: ShadowRoot[]; + shadowRoots?: ShadowRoot[]; } interface ChannelMergerOptions extends AudioNodeOptions { - numberOfInputs?: number; + numberOfInputs?: number; } interface ChannelSplitterOptions extends AudioNodeOptions { - numberOfOutputs?: number; + numberOfOutputs?: number; } interface CheckVisibilityOptions { - checkOpacity?: boolean; - checkVisibilityCSS?: boolean; - contentVisibilityAuto?: boolean; - opacityProperty?: boolean; - visibilityProperty?: boolean; + checkOpacity?: boolean; + checkVisibilityCSS?: boolean; + contentVisibilityAuto?: boolean; + opacityProperty?: boolean; + visibilityProperty?: boolean; } interface ClientQueryOptions { - includeUncontrolled?: boolean; - type?: ClientTypes; + includeUncontrolled?: boolean; + type?: ClientTypes; } interface ClipboardEventInit extends EventInit { - clipboardData?: DataTransfer | null; + clipboardData?: DataTransfer | null; } interface ClipboardItemOptions { - presentationStyle?: PresentationStyle; + presentationStyle?: PresentationStyle; } interface CloseEventInit extends EventInit { - code?: number; - reason?: string; - wasClean?: boolean; + code?: number; + reason?: string; + wasClean?: boolean; } interface CompositionEventInit extends UIEventInit { - data?: string; + data?: string; } interface ComputedEffectTiming extends EffectTiming { - activeDuration?: CSSNumberish; - currentIteration?: number | null; - endTime?: CSSNumberish; - localTime?: CSSNumberish | null; - progress?: number | null; - startTime?: CSSNumberish; + activeDuration?: CSSNumberish; + currentIteration?: number | null; + endTime?: CSSNumberish; + localTime?: CSSNumberish | null; + progress?: number | null; + startTime?: CSSNumberish; } interface ComputedKeyframe { - composite: CompositeOperationOrAuto; - computedOffset: number; - easing: string; - offset: number | null; - [property: string]: string | number | null | undefined; + composite: CompositeOperationOrAuto; + computedOffset: number; + easing: string; + offset: number | null; + [property: string]: string | number | null | undefined; } interface ConstantSourceOptions { - offset?: number; + offset?: number; } interface ConstrainBooleanParameters { - exact?: boolean; - ideal?: boolean; + exact?: boolean; + ideal?: boolean; } interface ConstrainDOMStringParameters { - exact?: string | string[]; - ideal?: string | string[]; + exact?: string | string[]; + ideal?: string | string[]; } interface ConstrainDoubleRange extends DoubleRange { - exact?: number; - ideal?: number; + exact?: number; + ideal?: number; } interface ConstrainULongRange extends ULongRange { - exact?: number; - ideal?: number; + exact?: number; + ideal?: number; } interface ContentVisibilityAutoStateChangeEventInit extends EventInit { - skipped?: boolean; + skipped?: boolean; } interface ConvolverOptions extends AudioNodeOptions { - buffer?: AudioBuffer | null; - disableNormalization?: boolean; + buffer?: AudioBuffer | null; + disableNormalization?: boolean; } interface CredentialCreationOptions { - publicKey?: PublicKeyCredentialCreationOptions; - signal?: AbortSignal; + publicKey?: PublicKeyCredentialCreationOptions; + signal?: AbortSignal; } interface CredentialPropertiesOutput { - rk?: boolean; + rk?: boolean; } interface CredentialRequestOptions { - mediation?: CredentialMediationRequirement; - publicKey?: PublicKeyCredentialRequestOptions; - signal?: AbortSignal; + mediation?: CredentialMediationRequirement; + publicKey?: PublicKeyCredentialRequestOptions; + signal?: AbortSignal; } interface CryptoKeyPair { - privateKey: CryptoKey; - publicKey: CryptoKey; + privateKey: CryptoKey; + publicKey: CryptoKey; } interface CustomEventInit extends EventInit { - detail?: T; + detail?: T; } interface DOMMatrix2DInit { - a?: number; - b?: number; - c?: number; - d?: number; - e?: number; - f?: number; - m11?: number; - m12?: number; - m21?: number; - m22?: number; - m41?: number; - m42?: number; + a?: number; + b?: number; + c?: number; + d?: number; + e?: number; + f?: number; + m11?: number; + m12?: number; + m21?: number; + m22?: number; + m41?: number; + m42?: number; } interface DOMMatrixInit extends DOMMatrix2DInit { - is2D?: boolean; - m13?: number; - m14?: number; - m23?: number; - m24?: number; - m31?: number; - m32?: number; - m33?: number; - m34?: number; - m43?: number; - m44?: number; + is2D?: boolean; + m13?: number; + m14?: number; + m23?: number; + m24?: number; + m31?: number; + m32?: number; + m33?: number; + m34?: number; + m43?: number; + m44?: number; } interface DOMPointInit { - w?: number; - x?: number; - y?: number; - z?: number; + w?: number; + x?: number; + y?: number; + z?: number; } interface DOMQuadInit { - p1?: DOMPointInit; - p2?: DOMPointInit; - p3?: DOMPointInit; - p4?: DOMPointInit; + p1?: DOMPointInit; + p2?: DOMPointInit; + p3?: DOMPointInit; + p4?: DOMPointInit; } interface DOMRectInit { - height?: number; - width?: number; - x?: number; - y?: number; + height?: number; + width?: number; + x?: number; + y?: number; } interface DelayOptions extends AudioNodeOptions { - delayTime?: number; - maxDelayTime?: number; + delayTime?: number; + maxDelayTime?: number; } interface DeviceMotionEventAccelerationInit { - x?: number | null; - y?: number | null; - z?: number | null; + x?: number | null; + y?: number | null; + z?: number | null; } interface DeviceMotionEventInit extends EventInit { - acceleration?: DeviceMotionEventAccelerationInit; - accelerationIncludingGravity?: DeviceMotionEventAccelerationInit; - interval?: number; - rotationRate?: DeviceMotionEventRotationRateInit; + acceleration?: DeviceMotionEventAccelerationInit; + accelerationIncludingGravity?: DeviceMotionEventAccelerationInit; + interval?: number; + rotationRate?: DeviceMotionEventRotationRateInit; } interface DeviceMotionEventRotationRateInit { - alpha?: number | null; - beta?: number | null; - gamma?: number | null; + alpha?: number | null; + beta?: number | null; + gamma?: number | null; } interface DeviceOrientationEventInit extends EventInit { - absolute?: boolean; - alpha?: number | null; - beta?: number | null; - gamma?: number | null; + absolute?: boolean; + alpha?: number | null; + beta?: number | null; + gamma?: number | null; } interface DisplayMediaStreamOptions { - audio?: boolean | MediaTrackConstraints; - video?: boolean | MediaTrackConstraints; + audio?: boolean | MediaTrackConstraints; + video?: boolean | MediaTrackConstraints; } interface DocumentTimelineOptions { - originTime?: DOMHighResTimeStamp; + originTime?: DOMHighResTimeStamp; } interface DoubleRange { - max?: number; - min?: number; + max?: number; + min?: number; } interface DragEventInit extends MouseEventInit { - dataTransfer?: DataTransfer | null; + dataTransfer?: DataTransfer | null; } interface DynamicsCompressorOptions extends AudioNodeOptions { - attack?: number; - knee?: number; - ratio?: number; - release?: number; - threshold?: number; + attack?: number; + knee?: number; + ratio?: number; + release?: number; + threshold?: number; } interface EcKeyAlgorithm extends KeyAlgorithm { - namedCurve: NamedCurve; + namedCurve: NamedCurve; } interface EcKeyGenParams extends Algorithm { - namedCurve: NamedCurve; + namedCurve: NamedCurve; } interface EcKeyImportParams extends Algorithm { - namedCurve: NamedCurve; + namedCurve: NamedCurve; } interface EcdhKeyDeriveParams extends Algorithm { - public: CryptoKey; + public: CryptoKey; } interface EcdsaParams extends Algorithm { - hash: HashAlgorithmIdentifier; + hash: HashAlgorithmIdentifier; } interface EffectTiming { - delay?: number; - direction?: PlaybackDirection; - duration?: number | CSSNumericValue | string; - easing?: string; - endDelay?: number; - fill?: FillMode; - iterationStart?: number; - iterations?: number; - playbackRate?: number; + delay?: number; + direction?: PlaybackDirection; + duration?: number | CSSNumericValue | string; + easing?: string; + endDelay?: number; + fill?: FillMode; + iterationStart?: number; + iterations?: number; + playbackRate?: number; } interface ElementCreationOptions { - is?: string; + is?: string; } interface ElementDefinitionOptions { - extends?: string; + extends?: string; } interface EncodedAudioChunkInit { - data: AllowSharedBufferSource; - duration?: number; - timestamp: number; - transfer?: ArrayBuffer[]; - type: EncodedAudioChunkType; + data: AllowSharedBufferSource; + duration?: number; + timestamp: number; + transfer?: ArrayBuffer[]; + type: EncodedAudioChunkType; } interface EncodedAudioChunkMetadata { - decoderConfig?: AudioDecoderConfig; + decoderConfig?: AudioDecoderConfig; } interface EncodedVideoChunkInit { - data: AllowSharedBufferSource; - duration?: number; - timestamp: number; - type: EncodedVideoChunkType; + data: AllowSharedBufferSource; + duration?: number; + timestamp: number; + type: EncodedVideoChunkType; } interface EncodedVideoChunkMetadata { - decoderConfig?: VideoDecoderConfig; + decoderConfig?: VideoDecoderConfig; } interface ErrorEventInit extends EventInit { - colno?: number; - error?: any; - filename?: string; - lineno?: number; - message?: string; + colno?: number; + error?: any; + filename?: string; + lineno?: number; + message?: string; } interface EventInit { - bubbles?: boolean; - cancelable?: boolean; - composed?: boolean; + bubbles?: boolean; + cancelable?: boolean; + composed?: boolean; } interface EventListenerOptions { - capture?: boolean; + capture?: boolean; } interface EventModifierInit extends UIEventInit { - altKey?: boolean; - ctrlKey?: boolean; - metaKey?: boolean; - modifierAltGraph?: boolean; - modifierCapsLock?: boolean; - modifierFn?: boolean; - modifierFnLock?: boolean; - modifierHyper?: boolean; - modifierNumLock?: boolean; - modifierScrollLock?: boolean; - modifierSuper?: boolean; - modifierSymbol?: boolean; - modifierSymbolLock?: boolean; - shiftKey?: boolean; + altKey?: boolean; + ctrlKey?: boolean; + metaKey?: boolean; + modifierAltGraph?: boolean; + modifierCapsLock?: boolean; + modifierFn?: boolean; + modifierFnLock?: boolean; + modifierHyper?: boolean; + modifierNumLock?: boolean; + modifierScrollLock?: boolean; + modifierSuper?: boolean; + modifierSymbol?: boolean; + modifierSymbolLock?: boolean; + shiftKey?: boolean; } interface EventSourceInit { - withCredentials?: boolean; + withCredentials?: boolean; } interface FilePropertyBag extends BlobPropertyBag { - lastModified?: number; + lastModified?: number; } interface FileSystemCreateWritableOptions { - keepExistingData?: boolean; + keepExistingData?: boolean; } interface FileSystemFlags { - create?: boolean; - exclusive?: boolean; + create?: boolean; + exclusive?: boolean; } interface FileSystemGetDirectoryOptions { - create?: boolean; + create?: boolean; } interface FileSystemGetFileOptions { - create?: boolean; + create?: boolean; } interface FileSystemRemoveOptions { - recursive?: boolean; + recursive?: boolean; } interface FocusEventInit extends UIEventInit { - relatedTarget?: EventTarget | null; + relatedTarget?: EventTarget | null; } interface FocusOptions { - preventScroll?: boolean; + preventScroll?: boolean; } interface FontFaceDescriptors { - ascentOverride?: string; - descentOverride?: string; - display?: FontDisplay; - featureSettings?: string; - lineGapOverride?: string; - stretch?: string; - style?: string; - unicodeRange?: string; - weight?: string; + ascentOverride?: string; + descentOverride?: string; + display?: FontDisplay; + featureSettings?: string; + lineGapOverride?: string; + stretch?: string; + style?: string; + unicodeRange?: string; + weight?: string; } interface FontFaceSetLoadEventInit extends EventInit { - fontfaces?: FontFace[]; + fontfaces?: FontFace[]; } interface FormDataEventInit extends EventInit { - formData: FormData; + formData: FormData; } interface FullscreenOptions { - navigationUI?: FullscreenNavigationUI; + navigationUI?: FullscreenNavigationUI; } interface GainOptions extends AudioNodeOptions { - gain?: number; + gain?: number; } interface GamepadEffectParameters { - duration?: number; - leftTrigger?: number; - rightTrigger?: number; - startDelay?: number; - strongMagnitude?: number; - weakMagnitude?: number; + duration?: number; + leftTrigger?: number; + rightTrigger?: number; + startDelay?: number; + strongMagnitude?: number; + weakMagnitude?: number; } interface GamepadEventInit extends EventInit { - gamepad: Gamepad; + gamepad: Gamepad; } interface GetAnimationsOptions { - subtree?: boolean; + subtree?: boolean; } interface GetHTMLOptions { - serializableShadowRoots?: boolean; - shadowRoots?: ShadowRoot[]; + serializableShadowRoots?: boolean; + shadowRoots?: ShadowRoot[]; } interface GetNotificationOptions { - tag?: string; + tag?: string; } interface GetRootNodeOptions { - composed?: boolean; + composed?: boolean; } interface HashChangeEventInit extends EventInit { - newURL?: string; - oldURL?: string; + newURL?: string; + oldURL?: string; } interface HkdfParams extends Algorithm { - hash: HashAlgorithmIdentifier; - info: BufferSource; - salt: BufferSource; + hash: HashAlgorithmIdentifier; + info: BufferSource; + salt: BufferSource; } interface HmacImportParams extends Algorithm { - hash: HashAlgorithmIdentifier; - length?: number; + hash: HashAlgorithmIdentifier; + length?: number; } interface HmacKeyAlgorithm extends KeyAlgorithm { - hash: KeyAlgorithm; - length: number; + hash: KeyAlgorithm; + length: number; } interface HmacKeyGenParams extends Algorithm { - hash: HashAlgorithmIdentifier; - length?: number; + hash: HashAlgorithmIdentifier; + length?: number; } interface IDBDatabaseInfo { - name?: string; - version?: number; + name?: string; + version?: number; } interface IDBIndexParameters { - multiEntry?: boolean; - unique?: boolean; + multiEntry?: boolean; + unique?: boolean; } interface IDBObjectStoreParameters { - autoIncrement?: boolean; - keyPath?: string | string[] | null; + autoIncrement?: boolean; + keyPath?: string | string[] | null; } interface IDBTransactionOptions { - durability?: IDBTransactionDurability; + durability?: IDBTransactionDurability; } interface IDBVersionChangeEventInit extends EventInit { - newVersion?: number | null; - oldVersion?: number; + newVersion?: number | null; + oldVersion?: number; } interface IIRFilterOptions extends AudioNodeOptions { - feedback: number[]; - feedforward: number[]; + feedback: number[]; + feedforward: number[]; } interface IdleRequestOptions { - timeout?: number; + timeout?: number; } interface ImageBitmapOptions { - colorSpaceConversion?: ColorSpaceConversion; - imageOrientation?: ImageOrientation; - premultiplyAlpha?: PremultiplyAlpha; - resizeHeight?: number; - resizeQuality?: ResizeQuality; - resizeWidth?: number; + colorSpaceConversion?: ColorSpaceConversion; + imageOrientation?: ImageOrientation; + premultiplyAlpha?: PremultiplyAlpha; + resizeHeight?: number; + resizeQuality?: ResizeQuality; + resizeWidth?: number; } interface ImageBitmapRenderingContextSettings { - alpha?: boolean; + alpha?: boolean; } interface ImageDataSettings { - colorSpace?: PredefinedColorSpace; + colorSpace?: PredefinedColorSpace; } interface ImageEncodeOptions { - quality?: number; - type?: string; + quality?: number; + type?: string; } interface InputEventInit extends UIEventInit { - data?: string | null; - dataTransfer?: DataTransfer | null; - inputType?: string; - isComposing?: boolean; - targetRanges?: StaticRange[]; + data?: string | null; + dataTransfer?: DataTransfer | null; + inputType?: string; + isComposing?: boolean; + targetRanges?: StaticRange[]; } interface IntersectionObserverInit { - root?: Element | Document | null; - rootMargin?: string; - threshold?: number | number[]; + root?: Element | Document | null; + rootMargin?: string; + threshold?: number | number[]; } interface JsonWebKey { - alg?: string; - crv?: string; - d?: string; - dp?: string; - dq?: string; - e?: string; - ext?: boolean; - k?: string; - key_ops?: string[]; - kty?: string; - n?: string; - oth?: RsaOtherPrimesInfo[]; - p?: string; - q?: string; - qi?: string; - use?: string; - x?: string; - y?: string; + alg?: string; + crv?: string; + d?: string; + dp?: string; + dq?: string; + e?: string; + ext?: boolean; + k?: string; + key_ops?: string[]; + kty?: string; + n?: string; + oth?: RsaOtherPrimesInfo[]; + p?: string; + q?: string; + qi?: string; + use?: string; + x?: string; + y?: string; } interface KeyAlgorithm { - name: string; + name: string; } interface KeyboardEventInit extends EventModifierInit { - /** @deprecated */ - charCode?: number; - code?: string; - isComposing?: boolean; - key?: string; - /** @deprecated */ - keyCode?: number; - location?: number; - repeat?: boolean; + /** @deprecated */ + charCode?: number; + code?: string; + isComposing?: boolean; + key?: string; + /** @deprecated */ + keyCode?: number; + location?: number; + repeat?: boolean; } interface Keyframe { - composite?: CompositeOperationOrAuto; - easing?: string; - offset?: number | null; - [property: string]: string | number | null | undefined; + composite?: CompositeOperationOrAuto; + easing?: string; + offset?: number | null; + [property: string]: string | number | null | undefined; } interface KeyframeAnimationOptions extends KeyframeEffectOptions { - id?: string; - timeline?: AnimationTimeline | null; + id?: string; + timeline?: AnimationTimeline | null; } interface KeyframeEffectOptions extends EffectTiming { - composite?: CompositeOperation; - iterationComposite?: IterationCompositeOperation; - pseudoElement?: string | null; + composite?: CompositeOperation; + iterationComposite?: IterationCompositeOperation; + pseudoElement?: string | null; } interface LockInfo { - clientId?: string; - mode?: LockMode; - name?: string; + clientId?: string; + mode?: LockMode; + name?: string; } interface LockManagerSnapshot { - held?: LockInfo[]; - pending?: LockInfo[]; + held?: LockInfo[]; + pending?: LockInfo[]; } interface LockOptions { - ifAvailable?: boolean; - mode?: LockMode; - signal?: AbortSignal; - steal?: boolean; + ifAvailable?: boolean; + mode?: LockMode; + signal?: AbortSignal; + steal?: boolean; } interface MIDIConnectionEventInit extends EventInit { - port?: MIDIPort; + port?: MIDIPort; } interface MIDIMessageEventInit extends EventInit { - data?: Uint8Array; + data?: Uint8Array; } interface MIDIOptions { - software?: boolean; - sysex?: boolean; + software?: boolean; + sysex?: boolean; } interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo { - configuration?: MediaDecodingConfiguration; + configuration?: MediaDecodingConfiguration; } interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo { - configuration?: MediaEncodingConfiguration; + configuration?: MediaEncodingConfiguration; } interface MediaCapabilitiesInfo { - powerEfficient: boolean; - smooth: boolean; - supported: boolean; + powerEfficient: boolean; + smooth: boolean; + supported: boolean; } interface MediaConfiguration { - audio?: AudioConfiguration; - video?: VideoConfiguration; + audio?: AudioConfiguration; + video?: VideoConfiguration; } interface MediaDecodingConfiguration extends MediaConfiguration { - type: MediaDecodingType; + type: MediaDecodingType; } interface MediaElementAudioSourceOptions { - mediaElement: HTMLMediaElement; + mediaElement: HTMLMediaElement; } interface MediaEncodingConfiguration extends MediaConfiguration { - type: MediaEncodingType; + type: MediaEncodingType; } interface MediaEncryptedEventInit extends EventInit { - initData?: ArrayBuffer | null; - initDataType?: string; + initData?: ArrayBuffer | null; + initDataType?: string; } interface MediaImage { - sizes?: string; - src: string; - type?: string; + sizes?: string; + src: string; + type?: string; } interface MediaKeyMessageEventInit extends EventInit { - message: ArrayBuffer; - messageType: MediaKeyMessageType; + message: ArrayBuffer; + messageType: MediaKeyMessageType; } interface MediaKeySystemConfiguration { - audioCapabilities?: MediaKeySystemMediaCapability[]; - distinctiveIdentifier?: MediaKeysRequirement; - initDataTypes?: string[]; - label?: string; - persistentState?: MediaKeysRequirement; - sessionTypes?: string[]; - videoCapabilities?: MediaKeySystemMediaCapability[]; + audioCapabilities?: MediaKeySystemMediaCapability[]; + distinctiveIdentifier?: MediaKeysRequirement; + initDataTypes?: string[]; + label?: string; + persistentState?: MediaKeysRequirement; + sessionTypes?: string[]; + videoCapabilities?: MediaKeySystemMediaCapability[]; } interface MediaKeySystemMediaCapability { - contentType?: string; - encryptionScheme?: string | null; - robustness?: string; + contentType?: string; + encryptionScheme?: string | null; + robustness?: string; } interface MediaKeysPolicy { - minHdcpVersion?: string; + minHdcpVersion?: string; } interface MediaMetadataInit { - album?: string; - artist?: string; - artwork?: MediaImage[]; - title?: string; + album?: string; + artist?: string; + artwork?: MediaImage[]; + title?: string; } interface MediaPositionState { - duration?: number; - playbackRate?: number; - position?: number; + duration?: number; + playbackRate?: number; + position?: number; } interface MediaQueryListEventInit extends EventInit { - matches?: boolean; - media?: string; + matches?: boolean; + media?: string; } interface MediaRecorderOptions { - audioBitsPerSecond?: number; - bitsPerSecond?: number; - mimeType?: string; - videoBitsPerSecond?: number; + audioBitsPerSecond?: number; + bitsPerSecond?: number; + mimeType?: string; + videoBitsPerSecond?: number; } interface MediaSessionActionDetails { - action: MediaSessionAction; - fastSeek?: boolean; - seekOffset?: number; - seekTime?: number; + action: MediaSessionAction; + fastSeek?: boolean; + seekOffset?: number; + seekTime?: number; } interface MediaStreamAudioSourceOptions { - mediaStream: MediaStream; + mediaStream: MediaStream; } interface MediaStreamConstraints { - audio?: boolean | MediaTrackConstraints; - peerIdentity?: string; - preferCurrentTab?: boolean; - video?: boolean | MediaTrackConstraints; + audio?: boolean | MediaTrackConstraints; + peerIdentity?: string; + preferCurrentTab?: boolean; + video?: boolean | MediaTrackConstraints; } interface MediaStreamTrackEventInit extends EventInit { - track: MediaStreamTrack; + track: MediaStreamTrack; } interface MediaTrackCapabilities { - aspectRatio?: DoubleRange; - autoGainControl?: boolean[]; - backgroundBlur?: boolean[]; - channelCount?: ULongRange; - deviceId?: string; - displaySurface?: string; - echoCancellation?: boolean[]; - facingMode?: string[]; - frameRate?: DoubleRange; - groupId?: string; - height?: ULongRange; - noiseSuppression?: boolean[]; - sampleRate?: ULongRange; - sampleSize?: ULongRange; - width?: ULongRange; + aspectRatio?: DoubleRange; + autoGainControl?: boolean[]; + backgroundBlur?: boolean[]; + channelCount?: ULongRange; + deviceId?: string; + displaySurface?: string; + echoCancellation?: boolean[]; + facingMode?: string[]; + frameRate?: DoubleRange; + groupId?: string; + height?: ULongRange; + noiseSuppression?: boolean[]; + sampleRate?: ULongRange; + sampleSize?: ULongRange; + width?: ULongRange; } interface MediaTrackConstraintSet { - aspectRatio?: ConstrainDouble; - autoGainControl?: ConstrainBoolean; - backgroundBlur?: ConstrainBoolean; - channelCount?: ConstrainULong; - deviceId?: ConstrainDOMString; - displaySurface?: ConstrainDOMString; - echoCancellation?: ConstrainBoolean; - facingMode?: ConstrainDOMString; - frameRate?: ConstrainDouble; - groupId?: ConstrainDOMString; - height?: ConstrainULong; - noiseSuppression?: ConstrainBoolean; - sampleRate?: ConstrainULong; - sampleSize?: ConstrainULong; - width?: ConstrainULong; + aspectRatio?: ConstrainDouble; + autoGainControl?: ConstrainBoolean; + backgroundBlur?: ConstrainBoolean; + channelCount?: ConstrainULong; + deviceId?: ConstrainDOMString; + displaySurface?: ConstrainDOMString; + echoCancellation?: ConstrainBoolean; + facingMode?: ConstrainDOMString; + frameRate?: ConstrainDouble; + groupId?: ConstrainDOMString; + height?: ConstrainULong; + noiseSuppression?: ConstrainBoolean; + sampleRate?: ConstrainULong; + sampleSize?: ConstrainULong; + width?: ConstrainULong; } interface MediaTrackConstraints extends MediaTrackConstraintSet { - advanced?: MediaTrackConstraintSet[]; + advanced?: MediaTrackConstraintSet[]; } interface MediaTrackSettings { - aspectRatio?: number; - autoGainControl?: boolean; - backgroundBlur?: boolean; - channelCount?: number; - deviceId?: string; - displaySurface?: string; - echoCancellation?: boolean; - facingMode?: string; - frameRate?: number; - groupId?: string; - height?: number; - noiseSuppression?: boolean; - sampleRate?: number; - sampleSize?: number; - width?: number; + aspectRatio?: number; + autoGainControl?: boolean; + backgroundBlur?: boolean; + channelCount?: number; + deviceId?: string; + displaySurface?: string; + echoCancellation?: boolean; + facingMode?: string; + frameRate?: number; + groupId?: string; + height?: number; + noiseSuppression?: boolean; + sampleRate?: number; + sampleSize?: number; + width?: number; } interface MediaTrackSupportedConstraints { - aspectRatio?: boolean; - autoGainControl?: boolean; - backgroundBlur?: boolean; - channelCount?: boolean; - deviceId?: boolean; - displaySurface?: boolean; - echoCancellation?: boolean; - facingMode?: boolean; - frameRate?: boolean; - groupId?: boolean; - height?: boolean; - noiseSuppression?: boolean; - sampleRate?: boolean; - sampleSize?: boolean; - width?: boolean; + aspectRatio?: boolean; + autoGainControl?: boolean; + backgroundBlur?: boolean; + channelCount?: boolean; + deviceId?: boolean; + displaySurface?: boolean; + echoCancellation?: boolean; + facingMode?: boolean; + frameRate?: boolean; + groupId?: boolean; + height?: boolean; + noiseSuppression?: boolean; + sampleRate?: boolean; + sampleSize?: boolean; + width?: boolean; } interface MessageEventInit extends EventInit { - data?: T; - lastEventId?: string; - origin?: string; - ports?: MessagePort[]; - source?: MessageEventSource | null; + data?: T; + lastEventId?: string; + origin?: string; + ports?: MessagePort[]; + source?: MessageEventSource | null; } interface MouseEventInit extends EventModifierInit { - button?: number; - buttons?: number; - clientX?: number; - clientY?: number; - movementX?: number; - movementY?: number; - relatedTarget?: EventTarget | null; - screenX?: number; - screenY?: number; + button?: number; + buttons?: number; + clientX?: number; + clientY?: number; + movementX?: number; + movementY?: number; + relatedTarget?: EventTarget | null; + screenX?: number; + screenY?: number; } interface MultiCacheQueryOptions extends CacheQueryOptions { - cacheName?: string; + cacheName?: string; } interface MutationObserverInit { - /** Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted. */ - attributeFilter?: string[]; - /** Set to true if attributes is true or omitted and target's attribute value before the mutation needs to be recorded. */ - attributeOldValue?: boolean; - /** Set to true if mutations to target's attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified. */ - attributes?: boolean; - /** Set to true if mutations to target's data are to be observed. Can be omitted if characterDataOldValue is specified. */ - characterData?: boolean; - /** Set to true if characterData is set to true or omitted and target's data before the mutation needs to be recorded. */ - characterDataOldValue?: boolean; - /** Set to true if mutations to target's children are to be observed. */ - childList?: boolean; - /** Set to true if mutations to not just target, but also target's descendants are to be observed. */ - subtree?: boolean; + /** Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted. */ + attributeFilter?: string[]; + /** Set to true if attributes is true or omitted and target's attribute value before the mutation needs to be recorded. */ + attributeOldValue?: boolean; + /** Set to true if mutations to target's attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified. */ + attributes?: boolean; + /** Set to true if mutations to target's data are to be observed. Can be omitted if characterDataOldValue is specified. */ + characterData?: boolean; + /** Set to true if characterData is set to true or omitted and target's data before the mutation needs to be recorded. */ + characterDataOldValue?: boolean; + /** Set to true if mutations to target's children are to be observed. */ + childList?: boolean; + /** Set to true if mutations to not just target, but also target's descendants are to be observed. */ + subtree?: boolean; } interface NavigationPreloadState { - enabled?: boolean; - headerValue?: string; + enabled?: boolean; + headerValue?: string; } interface NotificationOptions { - badge?: string; - body?: string; - data?: any; - dir?: NotificationDirection; - icon?: string; - lang?: string; - requireInteraction?: boolean; - silent?: boolean | null; - tag?: string; + badge?: string; + body?: string; + data?: any; + dir?: NotificationDirection; + icon?: string; + lang?: string; + requireInteraction?: boolean; + silent?: boolean | null; + tag?: string; } interface OfflineAudioCompletionEventInit extends EventInit { - renderedBuffer: AudioBuffer; + renderedBuffer: AudioBuffer; } interface OfflineAudioContextOptions { - length: number; - numberOfChannels?: number; - sampleRate: number; + length: number; + numberOfChannels?: number; + sampleRate: number; } interface OptionalEffectTiming { - delay?: number; - direction?: PlaybackDirection; - duration?: number | string; - easing?: string; - endDelay?: number; - fill?: FillMode; - iterationStart?: number; - iterations?: number; - playbackRate?: number; + delay?: number; + direction?: PlaybackDirection; + duration?: number | string; + easing?: string; + endDelay?: number; + fill?: FillMode; + iterationStart?: number; + iterations?: number; + playbackRate?: number; } interface OpusEncoderConfig { - complexity?: number; - format?: OpusBitstreamFormat; - frameDuration?: number; - packetlossperc?: number; - usedtx?: boolean; - useinbandfec?: boolean; + complexity?: number; + format?: OpusBitstreamFormat; + frameDuration?: number; + packetlossperc?: number; + usedtx?: boolean; + useinbandfec?: boolean; } interface OscillatorOptions extends AudioNodeOptions { - detune?: number; - frequency?: number; - periodicWave?: PeriodicWave; - type?: OscillatorType; + detune?: number; + frequency?: number; + periodicWave?: PeriodicWave; + type?: OscillatorType; } interface PageTransitionEventInit extends EventInit { - persisted?: boolean; + persisted?: boolean; } interface PannerOptions extends AudioNodeOptions { - coneInnerAngle?: number; - coneOuterAngle?: number; - coneOuterGain?: number; - distanceModel?: DistanceModelType; - maxDistance?: number; - orientationX?: number; - orientationY?: number; - orientationZ?: number; - panningModel?: PanningModelType; - positionX?: number; - positionY?: number; - positionZ?: number; - refDistance?: number; - rolloffFactor?: number; + coneInnerAngle?: number; + coneOuterAngle?: number; + coneOuterGain?: number; + distanceModel?: DistanceModelType; + maxDistance?: number; + orientationX?: number; + orientationY?: number; + orientationZ?: number; + panningModel?: PanningModelType; + positionX?: number; + positionY?: number; + positionZ?: number; + refDistance?: number; + rolloffFactor?: number; } interface PayerErrors { - email?: string; - name?: string; - phone?: string; + email?: string; + name?: string; + phone?: string; } interface PaymentCurrencyAmount { - currency: string; - value: string; + currency: string; + value: string; } interface PaymentDetailsBase { - displayItems?: PaymentItem[]; - modifiers?: PaymentDetailsModifier[]; - shippingOptions?: PaymentShippingOption[]; + displayItems?: PaymentItem[]; + modifiers?: PaymentDetailsModifier[]; + shippingOptions?: PaymentShippingOption[]; } interface PaymentDetailsInit extends PaymentDetailsBase { - id?: string; - total: PaymentItem; + id?: string; + total: PaymentItem; } interface PaymentDetailsModifier { - additionalDisplayItems?: PaymentItem[]; - data?: any; - supportedMethods: string; - total?: PaymentItem; + additionalDisplayItems?: PaymentItem[]; + data?: any; + supportedMethods: string; + total?: PaymentItem; } interface PaymentDetailsUpdate extends PaymentDetailsBase { - error?: string; - paymentMethodErrors?: any; - shippingAddressErrors?: AddressErrors; - total?: PaymentItem; + error?: string; + paymentMethodErrors?: any; + shippingAddressErrors?: AddressErrors; + total?: PaymentItem; } interface PaymentItem { - amount: PaymentCurrencyAmount; - label: string; - pending?: boolean; + amount: PaymentCurrencyAmount; + label: string; + pending?: boolean; } interface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit { - methodDetails?: any; - methodName?: string; + methodDetails?: any; + methodName?: string; } interface PaymentMethodData { - data?: any; - supportedMethods: string; + data?: any; + supportedMethods: string; } interface PaymentOptions { - requestPayerEmail?: boolean; - requestPayerName?: boolean; - requestPayerPhone?: boolean; - requestShipping?: boolean; - shippingType?: PaymentShippingType; + requestPayerEmail?: boolean; + requestPayerName?: boolean; + requestPayerPhone?: boolean; + requestShipping?: boolean; + shippingType?: PaymentShippingType; } -interface PaymentRequestUpdateEventInit extends EventInit { -} +interface PaymentRequestUpdateEventInit extends EventInit {} interface PaymentShippingOption { - amount: PaymentCurrencyAmount; - id: string; - label: string; - selected?: boolean; + amount: PaymentCurrencyAmount; + id: string; + label: string; + selected?: boolean; } interface PaymentValidationErrors { - error?: string; - payer?: PayerErrors; - shippingAddress?: AddressErrors; + error?: string; + payer?: PayerErrors; + shippingAddress?: AddressErrors; } interface Pbkdf2Params extends Algorithm { - hash: HashAlgorithmIdentifier; - iterations: number; - salt: BufferSource; + hash: HashAlgorithmIdentifier; + iterations: number; + salt: BufferSource; } interface PerformanceMarkOptions { - detail?: any; - startTime?: DOMHighResTimeStamp; + detail?: any; + startTime?: DOMHighResTimeStamp; } interface PerformanceMeasureOptions { - detail?: any; - duration?: DOMHighResTimeStamp; - end?: string | DOMHighResTimeStamp; - start?: string | DOMHighResTimeStamp; + detail?: any; + duration?: DOMHighResTimeStamp; + end?: string | DOMHighResTimeStamp; + start?: string | DOMHighResTimeStamp; } interface PerformanceObserverInit { - buffered?: boolean; - entryTypes?: string[]; - type?: string; + buffered?: boolean; + entryTypes?: string[]; + type?: string; } interface PeriodicWaveConstraints { - disableNormalization?: boolean; + disableNormalization?: boolean; } interface PeriodicWaveOptions extends PeriodicWaveConstraints { - imag?: number[] | Float32Array; - real?: number[] | Float32Array; + imag?: number[] | Float32Array; + real?: number[] | Float32Array; } interface PermissionDescriptor { - name: PermissionName; + name: PermissionName; } interface PictureInPictureEventInit extends EventInit { - pictureInPictureWindow: PictureInPictureWindow; + pictureInPictureWindow: PictureInPictureWindow; } interface PlaneLayout { - offset: number; - stride: number; + offset: number; + stride: number; } interface PointerEventInit extends MouseEventInit { - altitudeAngle?: number; - azimuthAngle?: number; - coalescedEvents?: PointerEvent[]; - height?: number; - isPrimary?: boolean; - pointerId?: number; - pointerType?: string; - predictedEvents?: PointerEvent[]; - pressure?: number; - tangentialPressure?: number; - tiltX?: number; - tiltY?: number; - twist?: number; - width?: number; + altitudeAngle?: number; + azimuthAngle?: number; + coalescedEvents?: PointerEvent[]; + height?: number; + isPrimary?: boolean; + pointerId?: number; + pointerType?: string; + predictedEvents?: PointerEvent[]; + pressure?: number; + tangentialPressure?: number; + tiltX?: number; + tiltY?: number; + twist?: number; + width?: number; } interface PointerLockOptions { - unadjustedMovement?: boolean; + unadjustedMovement?: boolean; } interface PopStateEventInit extends EventInit { - state?: any; + state?: any; } interface PositionOptions { - enableHighAccuracy?: boolean; - maximumAge?: number; - timeout?: number; + enableHighAccuracy?: boolean; + maximumAge?: number; + timeout?: number; } interface ProgressEventInit extends EventInit { - lengthComputable?: boolean; - loaded?: number; - total?: number; + lengthComputable?: boolean; + loaded?: number; + total?: number; } interface PromiseRejectionEventInit extends EventInit { - promise: Promise; - reason?: any; + promise: Promise; + reason?: any; } interface PropertyDefinition { - inherits: boolean; - initialValue?: string; - name: string; - syntax?: string; + inherits: boolean; + initialValue?: string; + name: string; + syntax?: string; } interface PropertyIndexedKeyframes { - composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[]; - easing?: string | string[]; - offset?: number | (number | null)[]; - [property: string]: string | string[] | number | null | (number | null)[] | undefined; + composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[]; + easing?: string | string[]; + offset?: number | (number | null)[]; + [property: string]: + | string + | string[] + | number + | null + | (number | null)[] + | undefined; } interface PublicKeyCredentialCreationOptions { - attestation?: AttestationConveyancePreference; - authenticatorSelection?: AuthenticatorSelectionCriteria; - challenge: BufferSource; - excludeCredentials?: PublicKeyCredentialDescriptor[]; - extensions?: AuthenticationExtensionsClientInputs; - pubKeyCredParams: PublicKeyCredentialParameters[]; - rp: PublicKeyCredentialRpEntity; - timeout?: number; - user: PublicKeyCredentialUserEntity; + attestation?: AttestationConveyancePreference; + authenticatorSelection?: AuthenticatorSelectionCriteria; + challenge: BufferSource; + excludeCredentials?: PublicKeyCredentialDescriptor[]; + extensions?: AuthenticationExtensionsClientInputs; + pubKeyCredParams: PublicKeyCredentialParameters[]; + rp: PublicKeyCredentialRpEntity; + timeout?: number; + user: PublicKeyCredentialUserEntity; } interface PublicKeyCredentialCreationOptionsJSON { - attestation?: string; - authenticatorSelection?: AuthenticatorSelectionCriteria; - challenge: Base64URLString; - excludeCredentials?: PublicKeyCredentialDescriptorJSON[]; - extensions?: AuthenticationExtensionsClientInputsJSON; - hints?: string[]; - pubKeyCredParams: PublicKeyCredentialParameters[]; - rp: PublicKeyCredentialRpEntity; - timeout?: number; - user: PublicKeyCredentialUserEntityJSON; + attestation?: string; + authenticatorSelection?: AuthenticatorSelectionCriteria; + challenge: Base64URLString; + excludeCredentials?: PublicKeyCredentialDescriptorJSON[]; + extensions?: AuthenticationExtensionsClientInputsJSON; + hints?: string[]; + pubKeyCredParams: PublicKeyCredentialParameters[]; + rp: PublicKeyCredentialRpEntity; + timeout?: number; + user: PublicKeyCredentialUserEntityJSON; } interface PublicKeyCredentialDescriptor { - id: BufferSource; - transports?: AuthenticatorTransport[]; - type: PublicKeyCredentialType; + id: BufferSource; + transports?: AuthenticatorTransport[]; + type: PublicKeyCredentialType; } interface PublicKeyCredentialDescriptorJSON { - id: Base64URLString; - transports?: string[]; - type: string; + id: Base64URLString; + transports?: string[]; + type: string; } interface PublicKeyCredentialEntity { - name: string; + name: string; } interface PublicKeyCredentialParameters { - alg: COSEAlgorithmIdentifier; - type: PublicKeyCredentialType; + alg: COSEAlgorithmIdentifier; + type: PublicKeyCredentialType; } interface PublicKeyCredentialRequestOptions { - allowCredentials?: PublicKeyCredentialDescriptor[]; - challenge: BufferSource; - extensions?: AuthenticationExtensionsClientInputs; - rpId?: string; - timeout?: number; - userVerification?: UserVerificationRequirement; + allowCredentials?: PublicKeyCredentialDescriptor[]; + challenge: BufferSource; + extensions?: AuthenticationExtensionsClientInputs; + rpId?: string; + timeout?: number; + userVerification?: UserVerificationRequirement; } interface PublicKeyCredentialRequestOptionsJSON { - allowCredentials?: PublicKeyCredentialDescriptorJSON[]; - challenge: Base64URLString; - extensions?: AuthenticationExtensionsClientInputsJSON; - hints?: string[]; - rpId?: string; - timeout?: number; - userVerification?: string; + allowCredentials?: PublicKeyCredentialDescriptorJSON[]; + challenge: Base64URLString; + extensions?: AuthenticationExtensionsClientInputsJSON; + hints?: string[]; + rpId?: string; + timeout?: number; + userVerification?: string; } interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity { - id?: string; + id?: string; } interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity { - displayName: string; - id: BufferSource; + displayName: string; + id: BufferSource; } interface PublicKeyCredentialUserEntityJSON { - displayName: string; - id: Base64URLString; - name: string; + displayName: string; + id: Base64URLString; + name: string; } interface PushSubscriptionJSON { - endpoint?: string; - expirationTime?: EpochTimeStamp | null; - keys?: Record; + endpoint?: string; + expirationTime?: EpochTimeStamp | null; + keys?: Record; } interface PushSubscriptionOptionsInit { - applicationServerKey?: BufferSource | string | null; - userVisibleOnly?: boolean; + applicationServerKey?: BufferSource | string | null; + userVisibleOnly?: boolean; } interface QueuingStrategy { - highWaterMark?: number; - size?: QueuingStrategySize; + highWaterMark?: number; + size?: QueuingStrategySize; } interface QueuingStrategyInit { - /** - * Creates a new ByteLengthQueuingStrategy with the provided high water mark. - * - * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw. - */ - highWaterMark: number; + /** + * Creates a new ByteLengthQueuingStrategy with the provided high water mark. + * + * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw. + */ + highWaterMark: number; } -interface RTCAnswerOptions extends RTCOfferAnswerOptions { -} +interface RTCAnswerOptions extends RTCOfferAnswerOptions {} interface RTCCertificateExpiration { - expires?: number; + expires?: number; } interface RTCConfiguration { - bundlePolicy?: RTCBundlePolicy; - certificates?: RTCCertificate[]; - iceCandidatePoolSize?: number; - iceServers?: RTCIceServer[]; - iceTransportPolicy?: RTCIceTransportPolicy; - rtcpMuxPolicy?: RTCRtcpMuxPolicy; + bundlePolicy?: RTCBundlePolicy; + certificates?: RTCCertificate[]; + iceCandidatePoolSize?: number; + iceServers?: RTCIceServer[]; + iceTransportPolicy?: RTCIceTransportPolicy; + rtcpMuxPolicy?: RTCRtcpMuxPolicy; } interface RTCDTMFToneChangeEventInit extends EventInit { - tone?: string; + tone?: string; } interface RTCDataChannelEventInit extends EventInit { - channel: RTCDataChannel; + channel: RTCDataChannel; } interface RTCDataChannelInit { - id?: number; - maxPacketLifeTime?: number; - maxRetransmits?: number; - negotiated?: boolean; - ordered?: boolean; - protocol?: string; + id?: number; + maxPacketLifeTime?: number; + maxRetransmits?: number; + negotiated?: boolean; + ordered?: boolean; + protocol?: string; } interface RTCDtlsFingerprint { - algorithm?: string; - value?: string; + algorithm?: string; + value?: string; } interface RTCEncodedAudioFrameMetadata { - contributingSources?: number[]; - payloadType?: number; - sequenceNumber?: number; - synchronizationSource?: number; + contributingSources?: number[]; + payloadType?: number; + sequenceNumber?: number; + synchronizationSource?: number; } interface RTCEncodedVideoFrameMetadata { - contributingSources?: number[]; - dependencies?: number[]; - frameId?: number; - height?: number; - payloadType?: number; - spatialIndex?: number; - synchronizationSource?: number; - temporalIndex?: number; - timestamp?: number; - width?: number; + contributingSources?: number[]; + dependencies?: number[]; + frameId?: number; + height?: number; + payloadType?: number; + spatialIndex?: number; + synchronizationSource?: number; + temporalIndex?: number; + timestamp?: number; + width?: number; } interface RTCErrorEventInit extends EventInit { - error: RTCError; + error: RTCError; } interface RTCErrorInit { - errorDetail: RTCErrorDetailType; - httpRequestStatusCode?: number; - receivedAlert?: number; - sctpCauseCode?: number; - sdpLineNumber?: number; - sentAlert?: number; + errorDetail: RTCErrorDetailType; + httpRequestStatusCode?: number; + receivedAlert?: number; + sctpCauseCode?: number; + sdpLineNumber?: number; + sentAlert?: number; } interface RTCIceCandidateInit { - candidate?: string; - sdpMLineIndex?: number | null; - sdpMid?: string | null; - usernameFragment?: string | null; + candidate?: string; + sdpMLineIndex?: number | null; + sdpMid?: string | null; + usernameFragment?: string | null; } interface RTCIceCandidatePairStats extends RTCStats { - availableIncomingBitrate?: number; - availableOutgoingBitrate?: number; - bytesReceived?: number; - bytesSent?: number; - currentRoundTripTime?: number; - lastPacketReceivedTimestamp?: DOMHighResTimeStamp; - lastPacketSentTimestamp?: DOMHighResTimeStamp; - localCandidateId: string; - nominated?: boolean; - remoteCandidateId: string; - requestsReceived?: number; - requestsSent?: number; - responsesReceived?: number; - responsesSent?: number; - state: RTCStatsIceCandidatePairState; - totalRoundTripTime?: number; - transportId: string; + availableIncomingBitrate?: number; + availableOutgoingBitrate?: number; + bytesReceived?: number; + bytesSent?: number; + currentRoundTripTime?: number; + lastPacketReceivedTimestamp?: DOMHighResTimeStamp; + lastPacketSentTimestamp?: DOMHighResTimeStamp; + localCandidateId: string; + nominated?: boolean; + remoteCandidateId: string; + requestsReceived?: number; + requestsSent?: number; + responsesReceived?: number; + responsesSent?: number; + state: RTCStatsIceCandidatePairState; + totalRoundTripTime?: number; + transportId: string; } interface RTCIceServer { - credential?: string; - urls: string | string[]; - username?: string; + credential?: string; + urls: string | string[]; + username?: string; } interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats { - audioLevel?: number; - bytesReceived?: number; - concealedSamples?: number; - concealmentEvents?: number; - decoderImplementation?: string; - estimatedPlayoutTimestamp?: DOMHighResTimeStamp; - fecPacketsDiscarded?: number; - fecPacketsReceived?: number; - firCount?: number; - frameHeight?: number; - frameWidth?: number; - framesDecoded?: number; - framesDropped?: number; - framesPerSecond?: number; - framesReceived?: number; - headerBytesReceived?: number; - insertedSamplesForDeceleration?: number; - jitterBufferDelay?: number; - jitterBufferEmittedCount?: number; - keyFramesDecoded?: number; - lastPacketReceivedTimestamp?: DOMHighResTimeStamp; - mid?: string; - nackCount?: number; - packetsDiscarded?: number; - pliCount?: number; - qpSum?: number; - remoteId?: string; - removedSamplesForAcceleration?: number; - silentConcealedSamples?: number; - totalAudioEnergy?: number; - totalDecodeTime?: number; - totalInterFrameDelay?: number; - totalProcessingDelay?: number; - totalSamplesDuration?: number; - totalSamplesReceived?: number; - totalSquaredInterFrameDelay?: number; - trackIdentifier: string; + audioLevel?: number; + bytesReceived?: number; + concealedSamples?: number; + concealmentEvents?: number; + decoderImplementation?: string; + estimatedPlayoutTimestamp?: DOMHighResTimeStamp; + fecPacketsDiscarded?: number; + fecPacketsReceived?: number; + firCount?: number; + frameHeight?: number; + frameWidth?: number; + framesDecoded?: number; + framesDropped?: number; + framesPerSecond?: number; + framesReceived?: number; + headerBytesReceived?: number; + insertedSamplesForDeceleration?: number; + jitterBufferDelay?: number; + jitterBufferEmittedCount?: number; + keyFramesDecoded?: number; + lastPacketReceivedTimestamp?: DOMHighResTimeStamp; + mid?: string; + nackCount?: number; + packetsDiscarded?: number; + pliCount?: number; + qpSum?: number; + remoteId?: string; + removedSamplesForAcceleration?: number; + silentConcealedSamples?: number; + totalAudioEnergy?: number; + totalDecodeTime?: number; + totalInterFrameDelay?: number; + totalProcessingDelay?: number; + totalSamplesDuration?: number; + totalSamplesReceived?: number; + totalSquaredInterFrameDelay?: number; + trackIdentifier: string; } interface RTCLocalSessionDescriptionInit { - sdp?: string; - type?: RTCSdpType; + sdp?: string; + type?: RTCSdpType; } -interface RTCOfferAnswerOptions { -} +interface RTCOfferAnswerOptions {} interface RTCOfferOptions extends RTCOfferAnswerOptions { - iceRestart?: boolean; - offerToReceiveAudio?: boolean; - offerToReceiveVideo?: boolean; + iceRestart?: boolean; + offerToReceiveAudio?: boolean; + offerToReceiveVideo?: boolean; } interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats { - firCount?: number; - frameHeight?: number; - frameWidth?: number; - framesEncoded?: number; - framesPerSecond?: number; - framesSent?: number; - headerBytesSent?: number; - hugeFramesSent?: number; - keyFramesEncoded?: number; - mediaSourceId?: string; - nackCount?: number; - pliCount?: number; - qpSum?: number; - qualityLimitationResolutionChanges?: number; - remoteId?: string; - retransmittedBytesSent?: number; - retransmittedPacketsSent?: number; - rid?: string; - rtxSsrc?: number; - targetBitrate?: number; - totalEncodeTime?: number; - totalEncodedBytesTarget?: number; - totalPacketSendDelay?: number; + firCount?: number; + frameHeight?: number; + frameWidth?: number; + framesEncoded?: number; + framesPerSecond?: number; + framesSent?: number; + headerBytesSent?: number; + hugeFramesSent?: number; + keyFramesEncoded?: number; + mediaSourceId?: string; + nackCount?: number; + pliCount?: number; + qpSum?: number; + qualityLimitationResolutionChanges?: number; + remoteId?: string; + retransmittedBytesSent?: number; + retransmittedPacketsSent?: number; + rid?: string; + rtxSsrc?: number; + targetBitrate?: number; + totalEncodeTime?: number; + totalEncodedBytesTarget?: number; + totalPacketSendDelay?: number; } interface RTCPeerConnectionIceErrorEventInit extends EventInit { - address?: string | null; - errorCode: number; - errorText?: string; - port?: number | null; - url?: string; + address?: string | null; + errorCode: number; + errorText?: string; + port?: number | null; + url?: string; } interface RTCPeerConnectionIceEventInit extends EventInit { - candidate?: RTCIceCandidate | null; - url?: string | null; + candidate?: RTCIceCandidate | null; + url?: string | null; } interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats { - jitter?: number; - packetsLost?: number; - packetsReceived?: number; + jitter?: number; + packetsLost?: number; + packetsReceived?: number; } interface RTCRtcpParameters { - cname?: string; - reducedSize?: boolean; + cname?: string; + reducedSize?: boolean; } interface RTCRtpCapabilities { - codecs: RTCRtpCodec[]; - headerExtensions: RTCRtpHeaderExtensionCapability[]; + codecs: RTCRtpCodec[]; + headerExtensions: RTCRtpHeaderExtensionCapability[]; } interface RTCRtpCodec { - channels?: number; - clockRate: number; - mimeType: string; - sdpFmtpLine?: string; + channels?: number; + clockRate: number; + mimeType: string; + sdpFmtpLine?: string; } interface RTCRtpCodecParameters extends RTCRtpCodec { - payloadType: number; + payloadType: number; } interface RTCRtpCodingParameters { - rid?: string; + rid?: string; } interface RTCRtpContributingSource { - audioLevel?: number; - rtpTimestamp: number; - source: number; - timestamp: DOMHighResTimeStamp; + audioLevel?: number; + rtpTimestamp: number; + source: number; + timestamp: DOMHighResTimeStamp; } interface RTCRtpEncodingParameters extends RTCRtpCodingParameters { - active?: boolean; - maxBitrate?: number; - maxFramerate?: number; - networkPriority?: RTCPriorityType; - priority?: RTCPriorityType; - scaleResolutionDownBy?: number; + active?: boolean; + maxBitrate?: number; + maxFramerate?: number; + networkPriority?: RTCPriorityType; + priority?: RTCPriorityType; + scaleResolutionDownBy?: number; } interface RTCRtpHeaderExtensionCapability { - uri: string; + uri: string; } interface RTCRtpHeaderExtensionParameters { - encrypted?: boolean; - id: number; - uri: string; + encrypted?: boolean; + id: number; + uri: string; } interface RTCRtpParameters { - codecs: RTCRtpCodecParameters[]; - headerExtensions: RTCRtpHeaderExtensionParameters[]; - rtcp: RTCRtcpParameters; + codecs: RTCRtpCodecParameters[]; + headerExtensions: RTCRtpHeaderExtensionParameters[]; + rtcp: RTCRtcpParameters; } -interface RTCRtpReceiveParameters extends RTCRtpParameters { -} +interface RTCRtpReceiveParameters extends RTCRtpParameters {} interface RTCRtpSendParameters extends RTCRtpParameters { - degradationPreference?: RTCDegradationPreference; - encodings: RTCRtpEncodingParameters[]; - transactionId: string; + degradationPreference?: RTCDegradationPreference; + encodings: RTCRtpEncodingParameters[]; + transactionId: string; } interface RTCRtpStreamStats extends RTCStats { - codecId?: string; - kind: string; - ssrc: number; - transportId?: string; + codecId?: string; + kind: string; + ssrc: number; + transportId?: string; } -interface RTCRtpSynchronizationSource extends RTCRtpContributingSource { -} +interface RTCRtpSynchronizationSource extends RTCRtpContributingSource {} interface RTCRtpTransceiverInit { - direction?: RTCRtpTransceiverDirection; - sendEncodings?: RTCRtpEncodingParameters[]; - streams?: MediaStream[]; + direction?: RTCRtpTransceiverDirection; + sendEncodings?: RTCRtpEncodingParameters[]; + streams?: MediaStream[]; } interface RTCSentRtpStreamStats extends RTCRtpStreamStats { - bytesSent?: number; - packetsSent?: number; + bytesSent?: number; + packetsSent?: number; } interface RTCSessionDescriptionInit { - sdp?: string; - type: RTCSdpType; + sdp?: string; + type: RTCSdpType; } -interface RTCSetParameterOptions { -} +interface RTCSetParameterOptions {} interface RTCStats { - id: string; - timestamp: DOMHighResTimeStamp; - type: RTCStatsType; + id: string; + timestamp: DOMHighResTimeStamp; + type: RTCStatsType; } interface RTCTrackEventInit extends EventInit { - receiver: RTCRtpReceiver; - streams?: MediaStream[]; - track: MediaStreamTrack; - transceiver: RTCRtpTransceiver; + receiver: RTCRtpReceiver; + streams?: MediaStream[]; + track: MediaStreamTrack; + transceiver: RTCRtpTransceiver; } interface RTCTransportStats extends RTCStats { - bytesReceived?: number; - bytesSent?: number; - dtlsCipher?: string; - dtlsState: RTCDtlsTransportState; - localCertificateId?: string; - remoteCertificateId?: string; - selectedCandidatePairId?: string; - srtpCipher?: string; - tlsVersion?: string; + bytesReceived?: number; + bytesSent?: number; + dtlsCipher?: string; + dtlsState: RTCDtlsTransportState; + localCertificateId?: string; + remoteCertificateId?: string; + selectedCandidatePairId?: string; + srtpCipher?: string; + tlsVersion?: string; } interface ReadableStreamGetReaderOptions { - /** - * Creates a ReadableStreamBYOBReader and locks the stream to the new reader. - * - * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation. - */ - mode?: ReadableStreamReaderMode; + /** + * Creates a ReadableStreamBYOBReader and locks the stream to the new reader. + * + * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation. + */ + mode?: ReadableStreamReaderMode; } interface ReadableStreamIteratorOptions { - /** - * Asynchronously iterates over the chunks in the stream's internal queue. - * - * Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader. The lock will be released if the async iterator's return() method is called, e.g. by breaking out of the loop. - * - * By default, calling the async iterator's return() method will also cancel the stream. To prevent this, use the stream's values() method, passing true for the preventCancel option. - */ - preventCancel?: boolean; + /** + * Asynchronously iterates over the chunks in the stream's internal queue. + * + * Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader. The lock will be released if the async iterator's return() method is called, e.g. by breaking out of the loop. + * + * By default, calling the async iterator's return() method will also cancel the stream. To prevent this, use the stream's values() method, passing true for the preventCancel option. + */ + preventCancel?: boolean; } interface ReadableStreamReadDoneResult { - done: true; - value?: T; + done: true; + value?: T; } interface ReadableStreamReadValueResult { - done: false; - value: T; + done: false; + value: T; } interface ReadableWritablePair { - readable: ReadableStream; - /** - * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use. - * - * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. - */ - writable: WritableStream; + readable: ReadableStream; + /** + * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use. + * + * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. + */ + writable: WritableStream; } interface RegistrationOptions { - scope?: string; - type?: WorkerType; - updateViaCache?: ServiceWorkerUpdateViaCache; + scope?: string; + type?: WorkerType; + updateViaCache?: ServiceWorkerUpdateViaCache; } interface ReportingObserverOptions { - buffered?: boolean; - types?: string[]; + buffered?: boolean; + types?: string[]; } interface RequestInit { - /** A BodyInit object or null to set request's body. */ - body?: BodyInit | null; - /** A string indicating how the request will interact with the browser's cache to set request's cache. */ - cache?: RequestCache; - /** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. */ - credentials?: RequestCredentials; - /** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */ - headers?: HeadersInit; - /** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */ - integrity?: string; - /** A boolean to set request's keepalive. */ - keepalive?: boolean; - /** A string to set request's method. */ - method?: string; - /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */ - mode?: RequestMode; - priority?: RequestPriority; - /** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */ - redirect?: RequestRedirect; - /** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */ - referrer?: string; - /** A referrer policy to set request's referrerPolicy. */ - referrerPolicy?: ReferrerPolicy; - /** An AbortSignal to set request's signal. */ - signal?: AbortSignal | null; - /** Can only be null. Used to disassociate request from any Window. */ - window?: null; + /** A BodyInit object or null to set request's body. */ + body?: BodyInit | null; + /** A string indicating how the request will interact with the browser's cache to set request's cache. */ + cache?: RequestCache; + /** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. */ + credentials?: RequestCredentials; + /** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */ + headers?: HeadersInit; + /** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */ + integrity?: string; + /** A boolean to set request's keepalive. */ + keepalive?: boolean; + /** A string to set request's method. */ + method?: string; + /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */ + mode?: RequestMode; + priority?: RequestPriority; + /** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */ + redirect?: RequestRedirect; + /** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */ + referrer?: string; + /** A referrer policy to set request's referrerPolicy. */ + referrerPolicy?: ReferrerPolicy; + /** An AbortSignal to set request's signal. */ + signal?: AbortSignal | null; + /** Can only be null. Used to disassociate request from any Window. */ + window?: null; } interface ResizeObserverOptions { - box?: ResizeObserverBoxOptions; + box?: ResizeObserverBoxOptions; } interface ResponseInit { - headers?: HeadersInit; - status?: number; - statusText?: string; + headers?: HeadersInit; + status?: number; + statusText?: string; } interface RsaHashedImportParams extends Algorithm { - hash: HashAlgorithmIdentifier; + hash: HashAlgorithmIdentifier; } interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm { - hash: KeyAlgorithm; + hash: KeyAlgorithm; } interface RsaHashedKeyGenParams extends RsaKeyGenParams { - hash: HashAlgorithmIdentifier; + hash: HashAlgorithmIdentifier; } interface RsaKeyAlgorithm extends KeyAlgorithm { - modulusLength: number; - publicExponent: BigInteger; + modulusLength: number; + publicExponent: BigInteger; } interface RsaKeyGenParams extends Algorithm { - modulusLength: number; - publicExponent: BigInteger; + modulusLength: number; + publicExponent: BigInteger; } interface RsaOaepParams extends Algorithm { - label?: BufferSource; + label?: BufferSource; } interface RsaOtherPrimesInfo { - d?: string; - r?: string; - t?: string; + d?: string; + r?: string; + t?: string; } interface RsaPssParams extends Algorithm { - saltLength: number; + saltLength: number; } interface SVGBoundingBoxOptions { - clipped?: boolean; - fill?: boolean; - markers?: boolean; - stroke?: boolean; + clipped?: boolean; + fill?: boolean; + markers?: boolean; + stroke?: boolean; } interface ScrollIntoViewOptions extends ScrollOptions { - block?: ScrollLogicalPosition; - inline?: ScrollLogicalPosition; + block?: ScrollLogicalPosition; + inline?: ScrollLogicalPosition; } interface ScrollOptions { - behavior?: ScrollBehavior; + behavior?: ScrollBehavior; } interface ScrollToOptions extends ScrollOptions { - left?: number; - top?: number; + left?: number; + top?: number; } interface SecurityPolicyViolationEventInit extends EventInit { - blockedURI?: string; - columnNumber?: number; - disposition?: SecurityPolicyViolationEventDisposition; - documentURI?: string; - effectiveDirective?: string; - lineNumber?: number; - originalPolicy?: string; - referrer?: string; - sample?: string; - sourceFile?: string; - statusCode?: number; - violatedDirective?: string; + blockedURI?: string; + columnNumber?: number; + disposition?: SecurityPolicyViolationEventDisposition; + documentURI?: string; + effectiveDirective?: string; + lineNumber?: number; + originalPolicy?: string; + referrer?: string; + sample?: string; + sourceFile?: string; + statusCode?: number; + violatedDirective?: string; } interface ShadowRootInit { - delegatesFocus?: boolean; - mode: ShadowRootMode; - serializable?: boolean; - slotAssignment?: SlotAssignmentMode; + delegatesFocus?: boolean; + mode: ShadowRootMode; + serializable?: boolean; + slotAssignment?: SlotAssignmentMode; } interface ShareData { - files?: File[]; - text?: string; - title?: string; - url?: string; + files?: File[]; + text?: string; + title?: string; + url?: string; } interface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit { - error: SpeechSynthesisErrorCode; + error: SpeechSynthesisErrorCode; } interface SpeechSynthesisEventInit extends EventInit { - charIndex?: number; - charLength?: number; - elapsedTime?: number; - name?: string; - utterance: SpeechSynthesisUtterance; + charIndex?: number; + charLength?: number; + elapsedTime?: number; + name?: string; + utterance: SpeechSynthesisUtterance; } interface StaticRangeInit { - endContainer: Node; - endOffset: number; - startContainer: Node; - startOffset: number; + endContainer: Node; + endOffset: number; + startContainer: Node; + startOffset: number; } interface StereoPannerOptions extends AudioNodeOptions { - pan?: number; + pan?: number; } interface StorageEstimate { - quota?: number; - usage?: number; + quota?: number; + usage?: number; } interface StorageEventInit extends EventInit { - key?: string | null; - newValue?: string | null; - oldValue?: string | null; - storageArea?: Storage | null; - url?: string; + key?: string | null; + newValue?: string | null; + oldValue?: string | null; + storageArea?: Storage | null; + url?: string; } interface StreamPipeOptions { - preventAbort?: boolean; - preventCancel?: boolean; - /** - * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered. - * - * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. - * - * Errors and closures of the source and destination streams propagate as follows: - * - * An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination. - * - * An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source. - * - * When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error. - * - * If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source. - * - * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set. - */ - preventClose?: boolean; - signal?: AbortSignal; + preventAbort?: boolean; + preventCancel?: boolean; + /** + * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered. + * + * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. + * + * Errors and closures of the source and destination streams propagate as follows: + * + * An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination. + * + * An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source. + * + * When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error. + * + * If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source. + * + * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set. + */ + preventClose?: boolean; + signal?: AbortSignal; } interface StructuredSerializeOptions { - transfer?: Transferable[]; + transfer?: Transferable[]; } interface SubmitEventInit extends EventInit { - submitter?: HTMLElement | null; + submitter?: HTMLElement | null; } interface TextDecodeOptions { - stream?: boolean; + stream?: boolean; } interface TextDecoderOptions { - fatal?: boolean; - ignoreBOM?: boolean; + fatal?: boolean; + ignoreBOM?: boolean; } interface TextEncoderEncodeIntoResult { - read: number; - written: number; + read: number; + written: number; } interface ToggleEventInit extends EventInit { - newState?: string; - oldState?: string; + newState?: string; + oldState?: string; } interface TouchEventInit extends EventModifierInit { - changedTouches?: Touch[]; - targetTouches?: Touch[]; - touches?: Touch[]; + changedTouches?: Touch[]; + targetTouches?: Touch[]; + touches?: Touch[]; } interface TouchInit { - altitudeAngle?: number; - azimuthAngle?: number; - clientX?: number; - clientY?: number; - force?: number; - identifier: number; - pageX?: number; - pageY?: number; - radiusX?: number; - radiusY?: number; - rotationAngle?: number; - screenX?: number; - screenY?: number; - target: EventTarget; - touchType?: TouchType; + altitudeAngle?: number; + azimuthAngle?: number; + clientX?: number; + clientY?: number; + force?: number; + identifier: number; + pageX?: number; + pageY?: number; + radiusX?: number; + radiusY?: number; + rotationAngle?: number; + screenX?: number; + screenY?: number; + target: EventTarget; + touchType?: TouchType; } interface TrackEventInit extends EventInit { - track?: TextTrack | null; + track?: TextTrack | null; } interface Transformer { - flush?: TransformerFlushCallback; - readableType?: undefined; - start?: TransformerStartCallback; - transform?: TransformerTransformCallback; - writableType?: undefined; + flush?: TransformerFlushCallback; + readableType?: undefined; + start?: TransformerStartCallback; + transform?: TransformerTransformCallback; + writableType?: undefined; } interface TransitionEventInit extends EventInit { - elapsedTime?: number; - propertyName?: string; - pseudoElement?: string; + elapsedTime?: number; + propertyName?: string; + pseudoElement?: string; } interface UIEventInit extends EventInit { - detail?: number; - view?: Window | null; - /** @deprecated */ - which?: number; + detail?: number; + view?: Window | null; + /** @deprecated */ + which?: number; } interface ULongRange { - max?: number; - min?: number; + max?: number; + min?: number; } interface UnderlyingByteSource { - autoAllocateChunkSize?: number; - cancel?: UnderlyingSourceCancelCallback; - pull?: (controller: ReadableByteStreamController) => void | PromiseLike; - start?: (controller: ReadableByteStreamController) => any; - type: "bytes"; + autoAllocateChunkSize?: number; + cancel?: UnderlyingSourceCancelCallback; + pull?: (controller: ReadableByteStreamController) => void | PromiseLike; + start?: (controller: ReadableByteStreamController) => any; + type: "bytes"; } interface UnderlyingDefaultSource { - cancel?: UnderlyingSourceCancelCallback; - pull?: (controller: ReadableStreamDefaultController) => void | PromiseLike; - start?: (controller: ReadableStreamDefaultController) => any; - type?: undefined; + cancel?: UnderlyingSourceCancelCallback; + pull?: ( + controller: ReadableStreamDefaultController, + ) => void | PromiseLike; + start?: (controller: ReadableStreamDefaultController) => any; + type?: undefined; } interface UnderlyingSink { - abort?: UnderlyingSinkAbortCallback; - close?: UnderlyingSinkCloseCallback; - start?: UnderlyingSinkStartCallback; - type?: undefined; - write?: UnderlyingSinkWriteCallback; + abort?: UnderlyingSinkAbortCallback; + close?: UnderlyingSinkCloseCallback; + start?: UnderlyingSinkStartCallback; + type?: undefined; + write?: UnderlyingSinkWriteCallback; } interface UnderlyingSource { - autoAllocateChunkSize?: number; - cancel?: UnderlyingSourceCancelCallback; - pull?: UnderlyingSourcePullCallback; - start?: UnderlyingSourceStartCallback; - type?: ReadableStreamType; + autoAllocateChunkSize?: number; + cancel?: UnderlyingSourceCancelCallback; + pull?: UnderlyingSourcePullCallback; + start?: UnderlyingSourceStartCallback; + type?: ReadableStreamType; } interface ValidityStateFlags { - badInput?: boolean; - customError?: boolean; - patternMismatch?: boolean; - rangeOverflow?: boolean; - rangeUnderflow?: boolean; - stepMismatch?: boolean; - tooLong?: boolean; - tooShort?: boolean; - typeMismatch?: boolean; - valueMissing?: boolean; + badInput?: boolean; + customError?: boolean; + patternMismatch?: boolean; + rangeOverflow?: boolean; + rangeUnderflow?: boolean; + stepMismatch?: boolean; + tooLong?: boolean; + tooShort?: boolean; + typeMismatch?: boolean; + valueMissing?: boolean; } interface VideoColorSpaceInit { - fullRange?: boolean | null; - matrix?: VideoMatrixCoefficients | null; - primaries?: VideoColorPrimaries | null; - transfer?: VideoTransferCharacteristics | null; + fullRange?: boolean | null; + matrix?: VideoMatrixCoefficients | null; + primaries?: VideoColorPrimaries | null; + transfer?: VideoTransferCharacteristics | null; } interface VideoConfiguration { - bitrate: number; - colorGamut?: ColorGamut; - contentType: string; - framerate: number; - hasAlphaChannel?: boolean; - hdrMetadataType?: HdrMetadataType; - height: number; - scalabilityMode?: string; - transferFunction?: TransferFunction; - width: number; + bitrate: number; + colorGamut?: ColorGamut; + contentType: string; + framerate: number; + hasAlphaChannel?: boolean; + hdrMetadataType?: HdrMetadataType; + height: number; + scalabilityMode?: string; + transferFunction?: TransferFunction; + width: number; } interface VideoDecoderConfig { - codec: string; - codedHeight?: number; - codedWidth?: number; - colorSpace?: VideoColorSpaceInit; - description?: AllowSharedBufferSource; - displayAspectHeight?: number; - displayAspectWidth?: number; - hardwareAcceleration?: HardwareAcceleration; - optimizeForLatency?: boolean; + codec: string; + codedHeight?: number; + codedWidth?: number; + colorSpace?: VideoColorSpaceInit; + description?: AllowSharedBufferSource; + displayAspectHeight?: number; + displayAspectWidth?: number; + hardwareAcceleration?: HardwareAcceleration; + optimizeForLatency?: boolean; } interface VideoDecoderInit { - error: WebCodecsErrorCallback; - output: VideoFrameOutputCallback; + error: WebCodecsErrorCallback; + output: VideoFrameOutputCallback; } interface VideoDecoderSupport { - config?: VideoDecoderConfig; - supported?: boolean; + config?: VideoDecoderConfig; + supported?: boolean; } interface VideoEncoderConfig { - alpha?: AlphaOption; - avc?: AvcEncoderConfig; - bitrate?: number; - bitrateMode?: VideoEncoderBitrateMode; - codec: string; - contentHint?: string; - displayHeight?: number; - displayWidth?: number; - framerate?: number; - hardwareAcceleration?: HardwareAcceleration; - height: number; - latencyMode?: LatencyMode; - scalabilityMode?: string; - width: number; + alpha?: AlphaOption; + avc?: AvcEncoderConfig; + bitrate?: number; + bitrateMode?: VideoEncoderBitrateMode; + codec: string; + contentHint?: string; + displayHeight?: number; + displayWidth?: number; + framerate?: number; + hardwareAcceleration?: HardwareAcceleration; + height: number; + latencyMode?: LatencyMode; + scalabilityMode?: string; + width: number; } interface VideoEncoderEncodeOptions { - avc?: VideoEncoderEncodeOptionsForAvc; - keyFrame?: boolean; + avc?: VideoEncoderEncodeOptionsForAvc; + keyFrame?: boolean; } interface VideoEncoderEncodeOptionsForAvc { - quantizer?: number | null; + quantizer?: number | null; } interface VideoEncoderInit { - error: WebCodecsErrorCallback; - output: EncodedVideoChunkOutputCallback; + error: WebCodecsErrorCallback; + output: EncodedVideoChunkOutputCallback; } interface VideoEncoderSupport { - config?: VideoEncoderConfig; - supported?: boolean; + config?: VideoEncoderConfig; + supported?: boolean; } interface VideoFrameBufferInit { - codedHeight: number; - codedWidth: number; - colorSpace?: VideoColorSpaceInit; - displayHeight?: number; - displayWidth?: number; - duration?: number; - format: VideoPixelFormat; - layout?: PlaneLayout[]; - timestamp: number; - visibleRect?: DOMRectInit; + codedHeight: number; + codedWidth: number; + colorSpace?: VideoColorSpaceInit; + displayHeight?: number; + displayWidth?: number; + duration?: number; + format: VideoPixelFormat; + layout?: PlaneLayout[]; + timestamp: number; + visibleRect?: DOMRectInit; } interface VideoFrameCallbackMetadata { - captureTime?: DOMHighResTimeStamp; - expectedDisplayTime: DOMHighResTimeStamp; - height: number; - mediaTime: number; - presentationTime: DOMHighResTimeStamp; - presentedFrames: number; - processingDuration?: number; - receiveTime?: DOMHighResTimeStamp; - rtpTimestamp?: number; - width: number; + captureTime?: DOMHighResTimeStamp; + expectedDisplayTime: DOMHighResTimeStamp; + height: number; + mediaTime: number; + presentationTime: DOMHighResTimeStamp; + presentedFrames: number; + processingDuration?: number; + receiveTime?: DOMHighResTimeStamp; + rtpTimestamp?: number; + width: number; } interface VideoFrameCopyToOptions { - colorSpace?: PredefinedColorSpace; - format?: VideoPixelFormat; - layout?: PlaneLayout[]; - rect?: DOMRectInit; + colorSpace?: PredefinedColorSpace; + format?: VideoPixelFormat; + layout?: PlaneLayout[]; + rect?: DOMRectInit; } interface VideoFrameInit { - alpha?: AlphaOption; - displayHeight?: number; - displayWidth?: number; - duration?: number; - timestamp?: number; - visibleRect?: DOMRectInit; + alpha?: AlphaOption; + displayHeight?: number; + displayWidth?: number; + duration?: number; + timestamp?: number; + visibleRect?: DOMRectInit; } interface WaveShaperOptions extends AudioNodeOptions { - curve?: number[] | Float32Array; - oversample?: OverSampleType; + curve?: number[] | Float32Array; + oversample?: OverSampleType; } interface WebGLContextAttributes { - alpha?: boolean; - antialias?: boolean; - depth?: boolean; - desynchronized?: boolean; - failIfMajorPerformanceCaveat?: boolean; - powerPreference?: WebGLPowerPreference; - premultipliedAlpha?: boolean; - preserveDrawingBuffer?: boolean; - stencil?: boolean; + alpha?: boolean; + antialias?: boolean; + depth?: boolean; + desynchronized?: boolean; + failIfMajorPerformanceCaveat?: boolean; + powerPreference?: WebGLPowerPreference; + premultipliedAlpha?: boolean; + preserveDrawingBuffer?: boolean; + stencil?: boolean; } interface WebGLContextEventInit extends EventInit { - statusMessage?: string; + statusMessage?: string; } interface WebTransportCloseInfo { - closeCode?: number; - reason?: string; + closeCode?: number; + reason?: string; } interface WebTransportErrorOptions { - source?: WebTransportErrorSource; - streamErrorCode?: number | null; + source?: WebTransportErrorSource; + streamErrorCode?: number | null; } interface WebTransportHash { - algorithm?: string; - value?: BufferSource; + algorithm?: string; + value?: BufferSource; } interface WebTransportOptions { - allowPooling?: boolean; - congestionControl?: WebTransportCongestionControl; - requireUnreliable?: boolean; - serverCertificateHashes?: WebTransportHash[]; + allowPooling?: boolean; + congestionControl?: WebTransportCongestionControl; + requireUnreliable?: boolean; + serverCertificateHashes?: WebTransportHash[]; } interface WebTransportSendStreamOptions { - sendOrder?: number; + sendOrder?: number; } interface WheelEventInit extends MouseEventInit { - deltaMode?: number; - deltaX?: number; - deltaY?: number; - deltaZ?: number; + deltaMode?: number; + deltaX?: number; + deltaY?: number; + deltaZ?: number; } interface WindowPostMessageOptions extends StructuredSerializeOptions { - targetOrigin?: string; + targetOrigin?: string; } interface WorkerOptions { - credentials?: RequestCredentials; - name?: string; - type?: WorkerType; + credentials?: RequestCredentials; + name?: string; + type?: WorkerType; } interface WorkletOptions { - credentials?: RequestCredentials; + credentials?: RequestCredentials; } interface WriteParams { - data?: BufferSource | Blob | string | null; - position?: number | null; - size?: number | null; - type: WriteCommandType; + data?: BufferSource | Blob | string | null; + position?: number | null; + size?: number | null; + type: WriteCommandType; } -type NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; }; +type NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number }; declare var NodeFilter: { - readonly FILTER_ACCEPT: 1; - readonly FILTER_REJECT: 2; - readonly FILTER_SKIP: 3; - readonly SHOW_ALL: 0xFFFFFFFF; - readonly SHOW_ELEMENT: 0x1; - readonly SHOW_ATTRIBUTE: 0x2; - readonly SHOW_TEXT: 0x4; - readonly SHOW_CDATA_SECTION: 0x8; - readonly SHOW_ENTITY_REFERENCE: 0x10; - readonly SHOW_ENTITY: 0x20; - readonly SHOW_PROCESSING_INSTRUCTION: 0x40; - readonly SHOW_COMMENT: 0x80; - readonly SHOW_DOCUMENT: 0x100; - readonly SHOW_DOCUMENT_TYPE: 0x200; - readonly SHOW_DOCUMENT_FRAGMENT: 0x400; - readonly SHOW_NOTATION: 0x800; -}; - -type XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; }; + readonly FILTER_ACCEPT: 1; + readonly FILTER_REJECT: 2; + readonly FILTER_SKIP: 3; + readonly SHOW_ALL: 0xffffffff; + readonly SHOW_ELEMENT: 0x1; + readonly SHOW_ATTRIBUTE: 0x2; + readonly SHOW_TEXT: 0x4; + readonly SHOW_CDATA_SECTION: 0x8; + readonly SHOW_ENTITY_REFERENCE: 0x10; + readonly SHOW_ENTITY: 0x20; + readonly SHOW_PROCESSING_INSTRUCTION: 0x40; + readonly SHOW_COMMENT: 0x80; + readonly SHOW_DOCUMENT: 0x100; + readonly SHOW_DOCUMENT_TYPE: 0x200; + readonly SHOW_DOCUMENT_FRAGMENT: 0x400; + readonly SHOW_NOTATION: 0x800; +}; + +type XPathNSResolver = + | ((prefix: string | null) => string | null) + | { lookupNamespaceURI(prefix: string | null): string | null }; /** * The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. @@ -2373,100 +2376,111 @@ type XPathNSResolver = ((prefix: string | null) => string | null) | { lookupName * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays) */ interface ANGLE_instanced_arrays { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE) */ - drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE) */ - drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE) */ - vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void; - readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE) */ + drawArraysInstancedANGLE( + mode: GLenum, + first: GLint, + count: GLsizei, + primcount: GLsizei, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE) */ + drawElementsInstancedANGLE( + mode: GLenum, + count: GLsizei, + type: GLenum, + offset: GLintptr, + primcount: GLsizei, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE) */ + vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void; + readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88fe; } interface ARIAMixin { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAtomic) */ - ariaAtomic: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAutoComplete) */ - ariaAutoComplete: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBrailleLabel) */ - ariaBrailleLabel: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBrailleRoleDescription) */ - ariaBrailleRoleDescription: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBusy) */ - ariaBusy: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaChecked) */ - ariaChecked: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColCount) */ - ariaColCount: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColIndex) */ - ariaColIndex: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColIndexText) */ - ariaColIndexText: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColSpan) */ - ariaColSpan: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaCurrent) */ - ariaCurrent: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDescription) */ - ariaDescription: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDisabled) */ - ariaDisabled: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaExpanded) */ - ariaExpanded: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHasPopup) */ - ariaHasPopup: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHidden) */ - ariaHidden: string | null; - ariaInvalid: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaKeyShortcuts) */ - ariaKeyShortcuts: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLabel) */ - ariaLabel: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLevel) */ - ariaLevel: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLive) */ - ariaLive: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaModal) */ - ariaModal: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiLine) */ - ariaMultiLine: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiSelectable) */ - ariaMultiSelectable: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaOrientation) */ - ariaOrientation: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPlaceholder) */ - ariaPlaceholder: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPosInSet) */ - ariaPosInSet: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPressed) */ - ariaPressed: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaReadOnly) */ - ariaReadOnly: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRequired) */ - ariaRequired: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRoleDescription) */ - ariaRoleDescription: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowCount) */ - ariaRowCount: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowIndex) */ - ariaRowIndex: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowIndexText) */ - ariaRowIndexText: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowSpan) */ - ariaRowSpan: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSelected) */ - ariaSelected: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSetSize) */ - ariaSetSize: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSort) */ - ariaSort: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMax) */ - ariaValueMax: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMin) */ - ariaValueMin: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueNow) */ - ariaValueNow: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueText) */ - ariaValueText: string | null; - role: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAtomic) */ + ariaAtomic: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAutoComplete) */ + ariaAutoComplete: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBrailleLabel) */ + ariaBrailleLabel: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBrailleRoleDescription) */ + ariaBrailleRoleDescription: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBusy) */ + ariaBusy: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaChecked) */ + ariaChecked: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColCount) */ + ariaColCount: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColIndex) */ + ariaColIndex: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColIndexText) */ + ariaColIndexText: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColSpan) */ + ariaColSpan: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaCurrent) */ + ariaCurrent: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDescription) */ + ariaDescription: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDisabled) */ + ariaDisabled: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaExpanded) */ + ariaExpanded: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHasPopup) */ + ariaHasPopup: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHidden) */ + ariaHidden: string | null; + ariaInvalid: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaKeyShortcuts) */ + ariaKeyShortcuts: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLabel) */ + ariaLabel: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLevel) */ + ariaLevel: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLive) */ + ariaLive: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaModal) */ + ariaModal: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiLine) */ + ariaMultiLine: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiSelectable) */ + ariaMultiSelectable: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaOrientation) */ + ariaOrientation: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPlaceholder) */ + ariaPlaceholder: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPosInSet) */ + ariaPosInSet: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPressed) */ + ariaPressed: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaReadOnly) */ + ariaReadOnly: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRequired) */ + ariaRequired: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRoleDescription) */ + ariaRoleDescription: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowCount) */ + ariaRowCount: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowIndex) */ + ariaRowIndex: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowIndexText) */ + ariaRowIndexText: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowSpan) */ + ariaRowSpan: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSelected) */ + ariaSelected: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSetSize) */ + ariaSetSize: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSort) */ + ariaSort: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMax) */ + ariaValueMax: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMin) */ + ariaValueMin: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueNow) */ + ariaValueNow: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueText) */ + ariaValueText: string | null; + role: string | null; } /** @@ -2475,27 +2489,27 @@ interface ARIAMixin { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController) */ interface AbortController { - /** - * Returns the AbortSignal object associated with this object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal) - */ - readonly signal: AbortSignal; - /** - * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort) - */ - abort(reason?: any): void; + /** + * Returns the AbortSignal object associated with this object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal) + */ + readonly signal: AbortSignal; + /** + * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort) + */ + abort(reason?: any): void; } declare var AbortController: { - prototype: AbortController; - new(): AbortController; + prototype: AbortController; + new (): AbortController; }; interface AbortSignalEventMap { - "abort": Event; + abort: Event; } /** @@ -2504,85 +2518,117 @@ interface AbortSignalEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal) */ interface AbortSignal extends EventTarget { - /** - * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted) - */ - readonly aborted: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */ - onabort: ((this: AbortSignal, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) */ - readonly reason: any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted) */ - throwIfAborted(): void; - addEventListener(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted) + */ + readonly aborted: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */ + onabort: ((this: AbortSignal, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) */ + readonly reason: any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted) */ + throwIfAborted(): void; + addEventListener( + type: K, + listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var AbortSignal: { - prototype: AbortSignal; - new(): AbortSignal; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */ - abort(reason?: any): AbortSignal; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */ - any(signals: AbortSignal[]): AbortSignal; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */ - timeout(milliseconds: number): AbortSignal; + prototype: AbortSignal; + new (): AbortSignal; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */ + abort(reason?: any): AbortSignal; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */ + any(signals: AbortSignal[]): AbortSignal; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */ + timeout(milliseconds: number): AbortSignal; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange) */ interface AbstractRange { - /** - * Returns true if range is collapsed, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/collapsed) - */ - readonly collapsed: boolean; - /** - * Returns range's end node. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endContainer) - */ - readonly endContainer: Node; - /** - * Returns range's end offset. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endOffset) - */ - readonly endOffset: number; - /** - * Returns range's start node. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startContainer) - */ - readonly startContainer: Node; - /** - * Returns range's start offset. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startOffset) - */ - readonly startOffset: number; + /** + * Returns true if range is collapsed, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/collapsed) + */ + readonly collapsed: boolean; + /** + * Returns range's end node. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endContainer) + */ + readonly endContainer: Node; + /** + * Returns range's end offset. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endOffset) + */ + readonly endOffset: number; + /** + * Returns range's start node. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startContainer) + */ + readonly startContainer: Node; + /** + * Returns range's start offset. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startOffset) + */ + readonly startOffset: number; } declare var AbstractRange: { - prototype: AbstractRange; - new(): AbstractRange; + prototype: AbstractRange; + new (): AbstractRange; }; interface AbstractWorkerEventMap { - "error": ErrorEvent; + error: ErrorEvent; } interface AbstractWorker { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/error_event) */ - onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null; - addEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/error_event) */ + onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null; + addEventListener( + type: K, + listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } /** @@ -2591,114 +2637,136 @@ interface AbstractWorker { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode) */ interface AnalyserNode extends AudioNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/fftSize) */ - fftSize: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/frequencyBinCount) */ - readonly frequencyBinCount: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/maxDecibels) */ - maxDecibels: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/minDecibels) */ - minDecibels: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/smoothingTimeConstant) */ - smoothingTimeConstant: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteFrequencyData) */ - getByteFrequencyData(array: Uint8Array): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteTimeDomainData) */ - getByteTimeDomainData(array: Uint8Array): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatFrequencyData) */ - getFloatFrequencyData(array: Float32Array): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatTimeDomainData) */ - getFloatTimeDomainData(array: Float32Array): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/fftSize) */ + fftSize: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/frequencyBinCount) */ + readonly frequencyBinCount: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/maxDecibels) */ + maxDecibels: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/minDecibels) */ + minDecibels: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/smoothingTimeConstant) */ + smoothingTimeConstant: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteFrequencyData) */ + getByteFrequencyData(array: Uint8Array): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteTimeDomainData) */ + getByteTimeDomainData(array: Uint8Array): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatFrequencyData) */ + getFloatFrequencyData(array: Float32Array): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatTimeDomainData) */ + getFloatTimeDomainData(array: Float32Array): void; } declare var AnalyserNode: { - prototype: AnalyserNode; - new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode; + prototype: AnalyserNode; + new (context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode; }; interface Animatable { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animate) */ - animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAnimations) */ - getAnimations(options?: GetAnimationsOptions): Animation[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animate) */ + animate( + keyframes: Keyframe[] | PropertyIndexedKeyframes | null, + options?: number | KeyframeAnimationOptions, + ): Animation; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAnimations) */ + getAnimations(options?: GetAnimationsOptions): Animation[]; } interface AnimationEventMap { - "cancel": AnimationPlaybackEvent; - "finish": AnimationPlaybackEvent; - "remove": AnimationPlaybackEvent; + cancel: AnimationPlaybackEvent; + finish: AnimationPlaybackEvent; + remove: AnimationPlaybackEvent; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation) */ interface Animation extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/currentTime) */ - currentTime: CSSNumberish | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/effect) */ - effect: AnimationEffect | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finished) */ - readonly finished: Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/id) */ - id: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel_event) */ - oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish_event) */ - onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/remove_event) */ - onremove: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pending) */ - readonly pending: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playState) */ - readonly playState: AnimationPlayState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playbackRate) */ - playbackRate: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/ready) */ - readonly ready: Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/replaceState) */ - readonly replaceState: AnimationReplaceState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/startTime) */ - startTime: CSSNumberish | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/timeline) */ - timeline: AnimationTimeline | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel) */ - cancel(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/commitStyles) */ - commitStyles(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish) */ - finish(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pause) */ - pause(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/persist) */ - persist(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/play) */ - play(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/reverse) */ - reverse(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/updatePlaybackRate) */ - updatePlaybackRate(playbackRate: number): void; - addEventListener(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/currentTime) */ + currentTime: CSSNumberish | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/effect) */ + effect: AnimationEffect | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finished) */ + readonly finished: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/id) */ + id: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel_event) */ + oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish_event) */ + onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/remove_event) */ + onremove: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pending) */ + readonly pending: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playState) */ + readonly playState: AnimationPlayState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playbackRate) */ + playbackRate: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/ready) */ + readonly ready: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/replaceState) */ + readonly replaceState: AnimationReplaceState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/startTime) */ + startTime: CSSNumberish | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/timeline) */ + timeline: AnimationTimeline | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel) */ + cancel(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/commitStyles) */ + commitStyles(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish) */ + finish(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pause) */ + pause(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/persist) */ + persist(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/play) */ + play(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/reverse) */ + reverse(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/updatePlaybackRate) */ + updatePlaybackRate(playbackRate: number): void; + addEventListener( + type: K, + listener: (this: Animation, ev: AnimationEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: Animation, ev: AnimationEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var Animation: { - prototype: Animation; - new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation; + prototype: Animation; + new ( + effect?: AnimationEffect | null, + timeline?: AnimationTimeline | null, + ): Animation; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect) */ interface AnimationEffect { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getComputedTiming) */ - getComputedTiming(): ComputedEffectTiming; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getTiming) */ - getTiming(): EffectTiming; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/updateTiming) */ - updateTiming(timing?: OptionalEffectTiming): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getComputedTiming) */ + getComputedTiming(): ComputedEffectTiming; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getTiming) */ + getTiming(): EffectTiming; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/updateTiming) */ + updateTiming(timing?: OptionalEffectTiming): void; } declare var AnimationEffect: { - prototype: AnimationEffect; - new(): AnimationEffect; + prototype: AnimationEffect; + new (): AnimationEffect; }; /** @@ -2707,48 +2775,54 @@ declare var AnimationEffect: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent) */ interface AnimationEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animationName) */ - readonly animationName: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/elapsedTime) */ - readonly elapsedTime: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/pseudoElement) */ - readonly pseudoElement: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animationName) */ + readonly animationName: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/elapsedTime) */ + readonly elapsedTime: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/pseudoElement) */ + readonly pseudoElement: string; } declare var AnimationEvent: { - prototype: AnimationEvent; - new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent; + prototype: AnimationEvent; + new ( + type: string, + animationEventInitDict?: AnimationEventInit, + ): AnimationEvent; }; interface AnimationFrameProvider { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */ - cancelAnimationFrame(handle: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */ - requestAnimationFrame(callback: FrameRequestCallback): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */ + cancelAnimationFrame(handle: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */ + requestAnimationFrame(callback: FrameRequestCallback): number; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent) */ interface AnimationPlaybackEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/currentTime) */ - readonly currentTime: CSSNumberish | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/timelineTime) */ - readonly timelineTime: CSSNumberish | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/currentTime) */ + readonly currentTime: CSSNumberish | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/timelineTime) */ + readonly timelineTime: CSSNumberish | null; } declare var AnimationPlaybackEvent: { - prototype: AnimationPlaybackEvent; - new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent; + prototype: AnimationPlaybackEvent; + new ( + type: string, + eventInitDict?: AnimationPlaybackEventInit, + ): AnimationPlaybackEvent; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline) */ interface AnimationTimeline { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime) */ - readonly currentTime: CSSNumberish | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime) */ + readonly currentTime: CSSNumberish | null; } declare var AnimationTimeline: { - prototype: AnimationTimeline; - new(): AnimationTimeline; + prototype: AnimationTimeline; + new (): AnimationTimeline; }; /** @@ -2757,30 +2831,30 @@ declare var AnimationTimeline: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr) */ interface Attr extends Node { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/localName) */ - readonly localName: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/name) */ - readonly name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/namespaceURI) */ - readonly namespaceURI: string | null; - readonly ownerDocument: Document; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/ownerElement) */ - readonly ownerElement: Element | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/prefix) */ - readonly prefix: string | null; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/specified) - */ - readonly specified: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/value) */ - value: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/localName) */ + readonly localName: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/namespaceURI) */ + readonly namespaceURI: string | null; + readonly ownerDocument: Document; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/ownerElement) */ + readonly ownerElement: Element | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/prefix) */ + readonly prefix: string | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/specified) + */ + readonly specified: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/value) */ + value: string; } declare var Attr: { - prototype: Attr; - new(): Attr; + prototype: Attr; + new (): Attr; }; /** @@ -2789,25 +2863,33 @@ declare var Attr: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer) */ interface AudioBuffer { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/duration) */ - readonly duration: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/length) */ - readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/numberOfChannels) */ - readonly numberOfChannels: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/sampleRate) */ - readonly sampleRate: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyFromChannel) */ - copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyToChannel) */ - copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/getChannelData) */ - getChannelData(channel: number): Float32Array; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/duration) */ + readonly duration: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/numberOfChannels) */ + readonly numberOfChannels: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/sampleRate) */ + readonly sampleRate: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyFromChannel) */ + copyFromChannel( + destination: Float32Array, + channelNumber: number, + bufferOffset?: number, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyToChannel) */ + copyToChannel( + source: Float32Array, + channelNumber: number, + bufferOffset?: number, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/getChannelData) */ + getChannelData(channel: number): Float32Array; } declare var AudioBuffer: { - prototype: AudioBuffer; - new(options: AudioBufferOptions): AudioBuffer; + prototype: AudioBuffer; + new (options: AudioBufferOptions): AudioBuffer; }; /** @@ -2816,29 +2898,54 @@ declare var AudioBuffer: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode) */ interface AudioBufferSourceNode extends AudioScheduledSourceNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/buffer) */ - buffer: AudioBuffer | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/detune) */ - readonly detune: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loop) */ - loop: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopEnd) */ - loopEnd: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopStart) */ - loopStart: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/playbackRate) */ - readonly playbackRate: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/start) */ - start(when?: number, offset?: number, duration?: number): void; - addEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/buffer) */ + buffer: AudioBuffer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/detune) */ + readonly detune: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loop) */ + loop: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopEnd) */ + loopEnd: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopStart) */ + loopStart: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/playbackRate) */ + readonly playbackRate: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/start) */ + start(when?: number, offset?: number, duration?: number): void; + addEventListener( + type: K, + listener: ( + this: AudioBufferSourceNode, + ev: AudioScheduledSourceNodeEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: AudioBufferSourceNode, + ev: AudioScheduledSourceNodeEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var AudioBufferSourceNode: { - prototype: AudioBufferSourceNode; - new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode; + prototype: AudioBufferSourceNode; + new ( + context: BaseAudioContext, + options?: AudioBufferSourceOptions, + ): AudioBufferSourceNode; }; /** @@ -2847,66 +2954,87 @@ declare var AudioBufferSourceNode: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext) */ interface AudioContext extends BaseAudioContext { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/baseLatency) */ - readonly baseLatency: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/outputLatency) */ - readonly outputLatency: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/close) */ - close(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaElementSource) */ - createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamDestination) */ - createMediaStreamDestination(): MediaStreamAudioDestinationNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamSource) */ - createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/getOutputTimestamp) */ - getOutputTimestamp(): AudioTimestamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/resume) */ - resume(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/suspend) */ - suspend(): Promise; - addEventListener(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/baseLatency) */ + readonly baseLatency: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/outputLatency) */ + readonly outputLatency: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/close) */ + close(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaElementSource) */ + createMediaElementSource( + mediaElement: HTMLMediaElement, + ): MediaElementAudioSourceNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamDestination) */ + createMediaStreamDestination(): MediaStreamAudioDestinationNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamSource) */ + createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/getOutputTimestamp) */ + getOutputTimestamp(): AudioTimestamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/resume) */ + resume(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/suspend) */ + suspend(): Promise; + addEventListener( + type: K, + listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var AudioContext: { - prototype: AudioContext; - new(contextOptions?: AudioContextOptions): AudioContext; + prototype: AudioContext; + new (contextOptions?: AudioContextOptions): AudioContext; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData) */ interface AudioData { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/duration) */ - readonly duration: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/format) */ - readonly format: AudioSampleFormat | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfChannels) */ - readonly numberOfChannels: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfFrames) */ - readonly numberOfFrames: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/sampleRate) */ - readonly sampleRate: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/timestamp) */ - readonly timestamp: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/allocationSize) */ - allocationSize(options: AudioDataCopyToOptions): number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/clone) */ - clone(): AudioData; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/close) */ - close(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/copyTo) */ - copyTo(destination: AllowSharedBufferSource, options: AudioDataCopyToOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/duration) */ + readonly duration: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/format) */ + readonly format: AudioSampleFormat | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfChannels) */ + readonly numberOfChannels: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfFrames) */ + readonly numberOfFrames: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/sampleRate) */ + readonly sampleRate: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/timestamp) */ + readonly timestamp: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/allocationSize) */ + allocationSize(options: AudioDataCopyToOptions): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/clone) */ + clone(): AudioData; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/close) */ + close(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/copyTo) */ + copyTo( + destination: AllowSharedBufferSource, + options: AudioDataCopyToOptions, + ): void; } declare var AudioData: { - prototype: AudioData; - new(init: AudioDataInit): AudioData; + prototype: AudioData; + new (init: AudioDataInit): AudioData; }; interface AudioDecoderEventMap { - "dequeue": Event; + dequeue: Event; } /** @@ -2915,33 +3043,49 @@ interface AudioDecoderEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder) */ interface AudioDecoder extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decodeQueueSize) */ - readonly decodeQueueSize: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/dequeue_event) */ - ondequeue: ((this: AudioDecoder, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/state) */ - readonly state: CodecState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/close) */ - close(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/configure) */ - configure(config: AudioDecoderConfig): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decode) */ - decode(chunk: EncodedAudioChunk): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/flush) */ - flush(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/reset) */ - reset(): void; - addEventListener(type: K, listener: (this: AudioDecoder, ev: AudioDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: AudioDecoder, ev: AudioDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decodeQueueSize) */ + readonly decodeQueueSize: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/dequeue_event) */ + ondequeue: ((this: AudioDecoder, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/state) */ + readonly state: CodecState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/close) */ + close(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/configure) */ + configure(config: AudioDecoderConfig): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decode) */ + decode(chunk: EncodedAudioChunk): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/flush) */ + flush(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/reset) */ + reset(): void; + addEventListener( + type: K, + listener: (this: AudioDecoder, ev: AudioDecoderEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: AudioDecoder, ev: AudioDecoderEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var AudioDecoder: { - prototype: AudioDecoder; - new(init: AudioDecoderInit): AudioDecoder; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/isConfigSupported_static) */ - isConfigSupported(config: AudioDecoderConfig): Promise; + prototype: AudioDecoder; + new (init: AudioDecoderInit): AudioDecoder; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/isConfigSupported_static) */ + isConfigSupported(config: AudioDecoderConfig): Promise; }; /** @@ -2950,17 +3094,17 @@ declare var AudioDecoder: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode) */ interface AudioDestinationNode extends AudioNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode/maxChannelCount) */ - readonly maxChannelCount: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode/maxChannelCount) */ + readonly maxChannelCount: number; } declare var AudioDestinationNode: { - prototype: AudioDestinationNode; - new(): AudioDestinationNode; + prototype: AudioDestinationNode; + new (): AudioDestinationNode; }; interface AudioEncoderEventMap { - "dequeue": Event; + dequeue: Event; } /** @@ -2969,33 +3113,49 @@ interface AudioEncoderEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder) */ interface AudioEncoder extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encodeQueueSize) */ - readonly encodeQueueSize: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/dequeue_event) */ - ondequeue: ((this: AudioEncoder, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/state) */ - readonly state: CodecState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/close) */ - close(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/configure) */ - configure(config: AudioEncoderConfig): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encode) */ - encode(data: AudioData): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/flush) */ - flush(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/reset) */ - reset(): void; - addEventListener(type: K, listener: (this: AudioEncoder, ev: AudioEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: AudioEncoder, ev: AudioEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encodeQueueSize) */ + readonly encodeQueueSize: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/dequeue_event) */ + ondequeue: ((this: AudioEncoder, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/state) */ + readonly state: CodecState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/close) */ + close(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/configure) */ + configure(config: AudioEncoderConfig): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encode) */ + encode(data: AudioData): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/flush) */ + flush(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/reset) */ + reset(): void; + addEventListener( + type: K, + listener: (this: AudioEncoder, ev: AudioEncoderEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: AudioEncoder, ev: AudioEncoderEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var AudioEncoder: { - prototype: AudioEncoder; - new(init: AudioEncoderInit): AudioEncoder; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/isConfigSupported_static) */ - isConfigSupported(config: AudioEncoderConfig): Promise; + prototype: AudioEncoder; + new (init: AudioEncoderInit): AudioEncoder; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/isConfigSupported_static) */ + isConfigSupported(config: AudioEncoderConfig): Promise; }; /** @@ -3004,41 +3164,48 @@ declare var AudioEncoder: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener) */ interface AudioListener { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardX) */ - readonly forwardX: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardY) */ - readonly forwardY: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardZ) */ - readonly forwardZ: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionX) */ - readonly positionX: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionY) */ - readonly positionY: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionZ) */ - readonly positionZ: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upX) */ - readonly upX: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upY) */ - readonly upY: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upZ) */ - readonly upZ: AudioParam; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setOrientation) - */ - setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setPosition) - */ - setPosition(x: number, y: number, z: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardX) */ + readonly forwardX: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardY) */ + readonly forwardY: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardZ) */ + readonly forwardZ: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionX) */ + readonly positionX: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionY) */ + readonly positionY: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionZ) */ + readonly positionZ: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upX) */ + readonly upX: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upY) */ + readonly upY: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upZ) */ + readonly upZ: AudioParam; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setOrientation) + */ + setOrientation( + x: number, + y: number, + z: number, + xUp: number, + yUp: number, + zUp: number, + ): void; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setPosition) + */ + setPosition(x: number, y: number, z: number): void; } declare var AudioListener: { - prototype: AudioListener; - new(): AudioListener; + prototype: AudioListener; + new (): AudioListener; }; /** @@ -3047,34 +3214,38 @@ declare var AudioListener: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode) */ interface AudioNode extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCount) */ - channelCount: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCountMode) */ - channelCountMode: ChannelCountMode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelInterpretation) */ - channelInterpretation: ChannelInterpretation; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/context) */ - readonly context: BaseAudioContext; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfInputs) */ - readonly numberOfInputs: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfOutputs) */ - readonly numberOfOutputs: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/connect) */ - connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode; - connect(destinationParam: AudioParam, output?: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect) */ - disconnect(): void; - disconnect(output: number): void; - disconnect(destinationNode: AudioNode): void; - disconnect(destinationNode: AudioNode, output: number): void; - disconnect(destinationNode: AudioNode, output: number, input: number): void; - disconnect(destinationParam: AudioParam): void; - disconnect(destinationParam: AudioParam, output: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCount) */ + channelCount: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCountMode) */ + channelCountMode: ChannelCountMode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelInterpretation) */ + channelInterpretation: ChannelInterpretation; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/context) */ + readonly context: BaseAudioContext; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfInputs) */ + readonly numberOfInputs: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfOutputs) */ + readonly numberOfOutputs: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/connect) */ + connect( + destinationNode: AudioNode, + output?: number, + input?: number, + ): AudioNode; + connect(destinationParam: AudioParam, output?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect) */ + disconnect(): void; + disconnect(output: number): void; + disconnect(destinationNode: AudioNode): void; + disconnect(destinationNode: AudioNode, output: number): void; + disconnect(destinationNode: AudioNode, output: number, input: number): void; + disconnect(destinationParam: AudioParam): void; + disconnect(destinationParam: AudioParam, output: number): void; } declare var AudioNode: { - prototype: AudioNode; - new(): AudioNode; + prototype: AudioNode; + new (): AudioNode; }; /** @@ -3083,44 +3254,55 @@ declare var AudioNode: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam) */ interface AudioParam { - automationRate: AutomationRate; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/defaultValue) */ - readonly defaultValue: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/maxValue) */ - readonly maxValue: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/minValue) */ - readonly minValue: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/value) */ - value: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelAndHoldAtTime) */ - cancelAndHoldAtTime(cancelTime: number): AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelScheduledValues) */ - cancelScheduledValues(cancelTime: number): AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/exponentialRampToValueAtTime) */ - exponentialRampToValueAtTime(value: number, endTime: number): AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/linearRampToValueAtTime) */ - linearRampToValueAtTime(value: number, endTime: number): AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setTargetAtTime) */ - setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueAtTime) */ - setValueAtTime(value: number, startTime: number): AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */ - setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam; + automationRate: AutomationRate; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/defaultValue) */ + readonly defaultValue: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/maxValue) */ + readonly maxValue: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/minValue) */ + readonly minValue: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/value) */ + value: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelAndHoldAtTime) */ + cancelAndHoldAtTime(cancelTime: number): AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelScheduledValues) */ + cancelScheduledValues(cancelTime: number): AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/exponentialRampToValueAtTime) */ + exponentialRampToValueAtTime(value: number, endTime: number): AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/linearRampToValueAtTime) */ + linearRampToValueAtTime(value: number, endTime: number): AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setTargetAtTime) */ + setTargetAtTime( + target: number, + startTime: number, + timeConstant: number, + ): AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueAtTime) */ + setValueAtTime(value: number, startTime: number): AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */ + setValueCurveAtTime( + values: number[] | Float32Array, + startTime: number, + duration: number, + ): AudioParam; } declare var AudioParam: { - prototype: AudioParam; - new(): AudioParam; + prototype: AudioParam; + new (): AudioParam; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParamMap) */ interface AudioParamMap { - forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void; + forEach( + callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, + thisArg?: any, + ): void; } declare var AudioParamMap: { - prototype: AudioParamMap; - new(): AudioParamMap; + prototype: AudioParamMap; + new (): AudioParamMap; }; /** @@ -3130,53 +3312,78 @@ declare var AudioParamMap: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent) */ interface AudioProcessingEvent extends Event { - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/inputBuffer) - */ - readonly inputBuffer: AudioBuffer; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/outputBuffer) - */ - readonly outputBuffer: AudioBuffer; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/playbackTime) - */ - readonly playbackTime: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/inputBuffer) + */ + readonly inputBuffer: AudioBuffer; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/outputBuffer) + */ + readonly outputBuffer: AudioBuffer; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/playbackTime) + */ + readonly playbackTime: number; } /** @deprecated */ declare var AudioProcessingEvent: { - prototype: AudioProcessingEvent; - new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent; + prototype: AudioProcessingEvent; + new ( + type: string, + eventInitDict: AudioProcessingEventInit, + ): AudioProcessingEvent; }; interface AudioScheduledSourceNodeEventMap { - "ended": Event; + ended: Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode) */ interface AudioScheduledSourceNode extends AudioNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/ended_event) */ - onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/start) */ - start(when?: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/stop) */ - stop(when?: number): void; - addEventListener(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/ended_event) */ + onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/start) */ + start(when?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/stop) */ + stop(when?: number): void; + addEventListener( + type: K, + listener: ( + this: AudioScheduledSourceNode, + ev: AudioScheduledSourceNodeEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: AudioScheduledSourceNode, + ev: AudioScheduledSourceNodeEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var AudioScheduledSourceNode: { - prototype: AudioScheduledSourceNode; - new(): AudioScheduledSourceNode; + prototype: AudioScheduledSourceNode; + new (): AudioScheduledSourceNode; }; /** @@ -3184,16 +3391,15 @@ declare var AudioScheduledSourceNode: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorklet) */ -interface AudioWorklet extends Worklet { -} +interface AudioWorklet extends Worklet {} declare var AudioWorklet: { - prototype: AudioWorklet; - new(): AudioWorklet; + prototype: AudioWorklet; + new (): AudioWorklet; }; interface AudioWorkletNodeEventMap { - "processorerror": ErrorEvent; + processorerror: ErrorEvent; } /** @@ -3202,21 +3408,41 @@ interface AudioWorkletNodeEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode) */ interface AudioWorkletNode extends AudioNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/processorerror_event) */ - onprocessorerror: ((this: AudioWorkletNode, ev: ErrorEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/parameters) */ - readonly parameters: AudioParamMap; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/port) */ - readonly port: MessagePort; - addEventListener(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/processorerror_event) */ + onprocessorerror: ((this: AudioWorkletNode, ev: ErrorEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/parameters) */ + readonly parameters: AudioParamMap; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/port) */ + readonly port: MessagePort; + addEventListener( + type: K, + listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var AudioWorkletNode: { - prototype: AudioWorkletNode; - new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode; + prototype: AudioWorkletNode; + new ( + context: BaseAudioContext, + name: string, + options?: AudioWorkletNodeOptions, + ): AudioWorkletNode; }; /** @@ -3225,17 +3451,17 @@ declare var AudioWorkletNode: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse) */ interface AuthenticatorAssertionResponse extends AuthenticatorResponse { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/authenticatorData) */ - readonly authenticatorData: ArrayBuffer; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/signature) */ - readonly signature: ArrayBuffer; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/userHandle) */ - readonly userHandle: ArrayBuffer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/authenticatorData) */ + readonly authenticatorData: ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/signature) */ + readonly signature: ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/userHandle) */ + readonly userHandle: ArrayBuffer | null; } declare var AuthenticatorAssertionResponse: { - prototype: AuthenticatorAssertionResponse; - new(): AuthenticatorAssertionResponse; + prototype: AuthenticatorAssertionResponse; + new (): AuthenticatorAssertionResponse; }; /** @@ -3244,21 +3470,21 @@ declare var AuthenticatorAssertionResponse: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse) */ interface AuthenticatorAttestationResponse extends AuthenticatorResponse { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/attestationObject) */ - readonly attestationObject: ArrayBuffer; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getAuthenticatorData) */ - getAuthenticatorData(): ArrayBuffer; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKey) */ - getPublicKey(): ArrayBuffer | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKeyAlgorithm) */ - getPublicKeyAlgorithm(): COSEAlgorithmIdentifier; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getTransports) */ - getTransports(): string[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/attestationObject) */ + readonly attestationObject: ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getAuthenticatorData) */ + getAuthenticatorData(): ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKey) */ + getPublicKey(): ArrayBuffer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKeyAlgorithm) */ + getPublicKeyAlgorithm(): COSEAlgorithmIdentifier; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getTransports) */ + getTransports(): string[]; } declare var AuthenticatorAttestationResponse: { - prototype: AuthenticatorAttestationResponse; - new(): AuthenticatorAttestationResponse; + prototype: AuthenticatorAttestationResponse; + new (): AuthenticatorAttestationResponse; }; /** @@ -3267,101 +3493,133 @@ declare var AuthenticatorAttestationResponse: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse) */ interface AuthenticatorResponse { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse/clientDataJSON) */ - readonly clientDataJSON: ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse/clientDataJSON) */ + readonly clientDataJSON: ArrayBuffer; } declare var AuthenticatorResponse: { - prototype: AuthenticatorResponse; - new(): AuthenticatorResponse; + prototype: AuthenticatorResponse; + new (): AuthenticatorResponse; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp) */ interface BarProp { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp/visible) */ - readonly visible: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp/visible) */ + readonly visible: boolean; } declare var BarProp: { - prototype: BarProp; - new(): BarProp; + prototype: BarProp; + new (): BarProp; }; interface BaseAudioContextEventMap { - "statechange": Event; + statechange: Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext) */ interface BaseAudioContext extends EventTarget { - /** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/audioWorklet) - */ - readonly audioWorklet: AudioWorklet; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/currentTime) */ - readonly currentTime: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/destination) */ - readonly destination: AudioDestinationNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/listener) */ - readonly listener: AudioListener; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/statechange_event) */ - onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/sampleRate) */ - readonly sampleRate: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/state) */ - readonly state: AudioContextState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createAnalyser) */ - createAnalyser(): AnalyserNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBiquadFilter) */ - createBiquadFilter(): BiquadFilterNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBuffer) */ - createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBufferSource) */ - createBufferSource(): AudioBufferSourceNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelMerger) */ - createChannelMerger(numberOfInputs?: number): ChannelMergerNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelSplitter) */ - createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConstantSource) */ - createConstantSource(): ConstantSourceNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConvolver) */ - createConvolver(): ConvolverNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDelay) */ - createDelay(maxDelayTime?: number): DelayNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDynamicsCompressor) */ - createDynamicsCompressor(): DynamicsCompressorNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createGain) */ - createGain(): GainNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) */ - createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createOscillator) */ - createOscillator(): OscillatorNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPanner) */ - createPanner(): PannerNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) */ - createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createScriptProcessor) - */ - createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createStereoPanner) */ - createStereoPanner(): StereoPannerNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createWaveShaper) */ - createWaveShaper(): WaveShaperNode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/decodeAudioData) */ - decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise; - addEventListener(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/audioWorklet) + */ + readonly audioWorklet: AudioWorklet; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/currentTime) */ + readonly currentTime: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/destination) */ + readonly destination: AudioDestinationNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/listener) */ + readonly listener: AudioListener; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/statechange_event) */ + onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/sampleRate) */ + readonly sampleRate: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/state) */ + readonly state: AudioContextState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createAnalyser) */ + createAnalyser(): AnalyserNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBiquadFilter) */ + createBiquadFilter(): BiquadFilterNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBuffer) */ + createBuffer( + numberOfChannels: number, + length: number, + sampleRate: number, + ): AudioBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBufferSource) */ + createBufferSource(): AudioBufferSourceNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelMerger) */ + createChannelMerger(numberOfInputs?: number): ChannelMergerNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelSplitter) */ + createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConstantSource) */ + createConstantSource(): ConstantSourceNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConvolver) */ + createConvolver(): ConvolverNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDelay) */ + createDelay(maxDelayTime?: number): DelayNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDynamicsCompressor) */ + createDynamicsCompressor(): DynamicsCompressorNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createGain) */ + createGain(): GainNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) */ + createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createOscillator) */ + createOscillator(): OscillatorNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPanner) */ + createPanner(): PannerNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) */ + createPeriodicWave( + real: number[] | Float32Array, + imag: number[] | Float32Array, + constraints?: PeriodicWaveConstraints, + ): PeriodicWave; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createScriptProcessor) + */ + createScriptProcessor( + bufferSize?: number, + numberOfInputChannels?: number, + numberOfOutputChannels?: number, + ): ScriptProcessorNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createStereoPanner) */ + createStereoPanner(): StereoPannerNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createWaveShaper) */ + createWaveShaper(): WaveShaperNode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/decodeAudioData) */ + decodeAudioData( + audioData: ArrayBuffer, + successCallback?: DecodeSuccessCallback | null, + errorCallback?: DecodeErrorCallback | null, + ): Promise; + addEventListener( + type: K, + listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var BaseAudioContext: { - prototype: BaseAudioContext; - new(): BaseAudioContext; + prototype: BaseAudioContext; + new (): BaseAudioContext; }; /** @@ -3370,17 +3628,17 @@ declare var BaseAudioContext: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent) */ interface BeforeUnloadEvent extends Event { - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent/returnValue) - */ - returnValue: any; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent/returnValue) + */ + returnValue: any; } declare var BeforeUnloadEvent: { - prototype: BeforeUnloadEvent; - new(): BeforeUnloadEvent; + prototype: BeforeUnloadEvent; + new (): BeforeUnloadEvent; }; /** @@ -3389,23 +3647,30 @@ declare var BeforeUnloadEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode) */ interface BiquadFilterNode extends AudioNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/Q) */ - readonly Q: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/detune) */ - readonly detune: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/frequency) */ - readonly frequency: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/gain) */ - readonly gain: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/type) */ - type: BiquadFilterType; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/getFrequencyResponse) */ - getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/Q) */ + readonly Q: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/detune) */ + readonly detune: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/frequency) */ + readonly frequency: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/gain) */ + readonly gain: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/type) */ + type: BiquadFilterType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/getFrequencyResponse) */ + getFrequencyResponse( + frequencyHz: Float32Array, + magResponse: Float32Array, + phaseResponse: Float32Array, + ): void; } declare var BiquadFilterNode: { - prototype: BiquadFilterNode; - new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode; + prototype: BiquadFilterNode; + new ( + context: BaseAudioContext, + options?: BiquadFilterOptions, + ): BiquadFilterNode; }; /** @@ -3414,97 +3679,113 @@ declare var BiquadFilterNode: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob) */ interface Blob { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */ - readonly size: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */ - readonly type: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */ - arrayBuffer(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/bytes) */ - bytes(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */ - slice(start?: number, end?: number, contentType?: string): Blob; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */ - stream(): ReadableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */ - text(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */ + readonly size: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */ + readonly type: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */ + arrayBuffer(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/bytes) */ + bytes(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */ + slice(start?: number, end?: number, contentType?: string): Blob; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */ + stream(): ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */ + text(): Promise; } declare var Blob: { - prototype: Blob; - new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob; + prototype: Blob; + new (blobParts?: BlobPart[], options?: BlobPropertyBag): Blob; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent) */ interface BlobEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/data) */ - readonly data: Blob; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/timecode) */ - readonly timecode: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/data) */ + readonly data: Blob; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/timecode) */ + readonly timecode: DOMHighResTimeStamp; } declare var BlobEvent: { - prototype: BlobEvent; - new(type: string, eventInitDict: BlobEventInit): BlobEvent; + prototype: BlobEvent; + new (type: string, eventInitDict: BlobEventInit): BlobEvent; }; interface Body { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */ - readonly body: ReadableStream | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */ - readonly bodyUsed: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */ - arrayBuffer(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */ - blob(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes) */ - bytes(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */ - formData(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */ - json(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */ - text(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */ + readonly body: ReadableStream | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */ + readonly bodyUsed: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */ + arrayBuffer(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */ + blob(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes) */ + bytes(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */ + formData(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */ + json(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */ + text(): Promise; } interface BroadcastChannelEventMap { - "message": MessageEvent; - "messageerror": MessageEvent; + message: MessageEvent; + messageerror: MessageEvent; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel) */ interface BroadcastChannel extends EventTarget { - /** - * Returns the channel name (as passed to the constructor). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/name) - */ - readonly name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/message_event) */ - onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/messageerror_event) */ - onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null; - /** - * Closes the BroadcastChannel object, opening it up to garbage collection. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/close) - */ - close(): void; - /** - * Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/postMessage) - */ - postMessage(message: any): void; - addEventListener(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Returns the channel name (as passed to the constructor). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/name) + */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/message_event) */ + onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/messageerror_event) */ + onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null; + /** + * Closes the BroadcastChannel object, opening it up to garbage collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/close) + */ + close(): void; + /** + * Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/postMessage) + */ + postMessage(message: any): void; + addEventListener( + type: K, + listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var BroadcastChannel: { - prototype: BroadcastChannel; - new(name: string): BroadcastChannel; + prototype: BroadcastChannel; + new (name: string): BroadcastChannel; }; /** @@ -3513,15 +3794,15 @@ declare var BroadcastChannel: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy) */ interface ByteLengthQueuingStrategy extends QueuingStrategy { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark) */ - readonly highWaterMark: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */ - readonly size: QueuingStrategySize; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark) */ + readonly highWaterMark: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */ + readonly size: QueuingStrategySize; } declare var ByteLengthQueuingStrategy: { - prototype: ByteLengthQueuingStrategy; - new(init: QueuingStrategyInit): ByteLengthQueuingStrategy; + prototype: ByteLengthQueuingStrategy; + new (init: QueuingStrategyInit): ByteLengthQueuingStrategy; }; /** @@ -3529,27 +3810,42 @@ declare var ByteLengthQueuingStrategy: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CDATASection) */ -interface CDATASection extends Text { -} +interface CDATASection extends Text {} declare var CDATASection: { - prototype: CDATASection; - new(): CDATASection; + prototype: CDATASection; + new (): CDATASection; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation) */ interface CSSAnimation extends Animation { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation/animationName) */ - readonly animationName: string; - addEventListener(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation/animationName) */ + readonly animationName: string; + addEventListener( + type: K, + listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var CSSAnimation: { - prototype: CSSAnimation; - new(): CSSAnimation; + prototype: CSSAnimation; + new (): CSSAnimation; }; /** @@ -3558,96 +3854,96 @@ declare var CSSAnimation: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule) */ interface CSSConditionRule extends CSSGroupingRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule/conditionText) */ - readonly conditionText: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule/conditionText) */ + readonly conditionText: string; } declare var CSSConditionRule: { - prototype: CSSConditionRule; - new(): CSSConditionRule; + prototype: CSSConditionRule; + new (): CSSConditionRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule) */ interface CSSContainerRule extends CSSConditionRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerName) */ - readonly containerName: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerQuery) */ - readonly containerQuery: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerName) */ + readonly containerName: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerQuery) */ + readonly containerQuery: string; } declare var CSSContainerRule: { - prototype: CSSContainerRule; - new(): CSSContainerRule; + prototype: CSSContainerRule; + new (): CSSContainerRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule) */ interface CSSCounterStyleRule extends CSSRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/additiveSymbols) */ - additiveSymbols: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/fallback) */ - fallback: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/name) */ - name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/negative) */ - negative: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/pad) */ - pad: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/prefix) */ - prefix: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/range) */ - range: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/speakAs) */ - speakAs: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/suffix) */ - suffix: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/symbols) */ - symbols: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/system) */ - system: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/additiveSymbols) */ + additiveSymbols: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/fallback) */ + fallback: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/name) */ + name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/negative) */ + negative: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/pad) */ + pad: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/prefix) */ + prefix: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/range) */ + range: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/speakAs) */ + speakAs: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/suffix) */ + suffix: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/symbols) */ + symbols: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/system) */ + system: string; } declare var CSSCounterStyleRule: { - prototype: CSSCounterStyleRule; - new(): CSSCounterStyleRule; + prototype: CSSCounterStyleRule; + new (): CSSCounterStyleRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule) */ interface CSSFontFaceRule extends CSSRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style) */ - readonly style: CSSStyleDeclaration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style) */ + readonly style: CSSStyleDeclaration; } declare var CSSFontFaceRule: { - prototype: CSSFontFaceRule; - new(): CSSFontFaceRule; + prototype: CSSFontFaceRule; + new (): CSSFontFaceRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule) */ interface CSSFontFeatureValuesRule extends CSSRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule/fontFamily) */ - fontFamily: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule/fontFamily) */ + fontFamily: string; } declare var CSSFontFeatureValuesRule: { - prototype: CSSFontFeatureValuesRule; - new(): CSSFontFeatureValuesRule; + prototype: CSSFontFeatureValuesRule; + new (): CSSFontFeatureValuesRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule) */ interface CSSFontPaletteValuesRule extends CSSRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/basePalette) */ - readonly basePalette: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/fontFamily) */ - readonly fontFamily: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/name) */ - readonly name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/overrideColors) */ - readonly overrideColors: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/basePalette) */ + readonly basePalette: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/fontFamily) */ + readonly fontFamily: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/overrideColors) */ + readonly overrideColors: string; } declare var CSSFontPaletteValuesRule: { - prototype: CSSFontPaletteValuesRule; - new(): CSSFontPaletteValuesRule; + prototype: CSSFontPaletteValuesRule; + new (): CSSFontPaletteValuesRule; }; /** @@ -3656,45 +3952,44 @@ declare var CSSFontPaletteValuesRule: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule) */ interface CSSGroupingRule extends CSSRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/cssRules) */ - readonly cssRules: CSSRuleList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/deleteRule) */ - deleteRule(index: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/insertRule) */ - insertRule(rule: string, index?: number): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/cssRules) */ + readonly cssRules: CSSRuleList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/deleteRule) */ + deleteRule(index: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/insertRule) */ + insertRule(rule: string, index?: number): number; } declare var CSSGroupingRule: { - prototype: CSSGroupingRule; - new(): CSSGroupingRule; + prototype: CSSGroupingRule; + new (): CSSGroupingRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImageValue) */ -interface CSSImageValue extends CSSStyleValue { -} +interface CSSImageValue extends CSSStyleValue {} declare var CSSImageValue: { - prototype: CSSImageValue; - new(): CSSImageValue; + prototype: CSSImageValue; + new (): CSSImageValue; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule) */ interface CSSImportRule extends CSSRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/href) */ - readonly href: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/layerName) */ - readonly layerName: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/media) */ - readonly media: MediaList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/styleSheet) */ - readonly styleSheet: CSSStyleSheet | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/supportsText) */ - readonly supportsText: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/href) */ + readonly href: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/layerName) */ + readonly layerName: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/media) */ + readonly media: MediaList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/styleSheet) */ + readonly styleSheet: CSSStyleSheet | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/supportsText) */ + readonly supportsText: string | null; } declare var CSSImportRule: { - prototype: CSSImportRule; - new(): CSSImportRule; + prototype: CSSImportRule; + new (): CSSImportRule; }; /** @@ -3703,15 +3998,15 @@ declare var CSSImportRule: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule) */ interface CSSKeyframeRule extends CSSRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/keyText) */ - keyText: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style) */ - readonly style: CSSStyleDeclaration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/keyText) */ + keyText: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style) */ + readonly style: CSSStyleDeclaration; } declare var CSSKeyframeRule: { - prototype: CSSKeyframeRule; - new(): CSSKeyframeRule; + prototype: CSSKeyframeRule; + new (): CSSKeyframeRule; }; /** @@ -3720,156 +4015,163 @@ declare var CSSKeyframeRule: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule) */ interface CSSKeyframesRule extends CSSRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules) */ - readonly cssRules: CSSRuleList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/length) */ - readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name) */ - name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/appendRule) */ - appendRule(rule: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/deleteRule) */ - deleteRule(select: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/findRule) */ - findRule(select: string): CSSKeyframeRule | null; - [index: number]: CSSKeyframeRule; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules) */ + readonly cssRules: CSSRuleList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name) */ + name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/appendRule) */ + appendRule(rule: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/deleteRule) */ + deleteRule(select: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/findRule) */ + findRule(select: string): CSSKeyframeRule | null; + [index: number]: CSSKeyframeRule; } declare var CSSKeyframesRule: { - prototype: CSSKeyframesRule; - new(): CSSKeyframesRule; + prototype: CSSKeyframesRule; + new (): CSSKeyframesRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue) */ interface CSSKeywordValue extends CSSStyleValue { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue/value) */ - value: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue/value) */ + value: string; } declare var CSSKeywordValue: { - prototype: CSSKeywordValue; - new(value: string): CSSKeywordValue; + prototype: CSSKeywordValue; + new (value: string): CSSKeywordValue; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule) */ interface CSSLayerBlockRule extends CSSGroupingRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule/name) */ - readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule/name) */ + readonly name: string; } declare var CSSLayerBlockRule: { - prototype: CSSLayerBlockRule; - new(): CSSLayerBlockRule; + prototype: CSSLayerBlockRule; + new (): CSSLayerBlockRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule) */ interface CSSLayerStatementRule extends CSSRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule/nameList) */ - readonly nameList: ReadonlyArray; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule/nameList) */ + readonly nameList: ReadonlyArray; } declare var CSSLayerStatementRule: { - prototype: CSSLayerStatementRule; - new(): CSSLayerStatementRule; + prototype: CSSLayerStatementRule; + new (): CSSLayerStatementRule; }; interface CSSMathClamp extends CSSMathValue { - readonly lower: CSSNumericValue; - readonly upper: CSSNumericValue; - readonly value: CSSNumericValue; + readonly lower: CSSNumericValue; + readonly upper: CSSNumericValue; + readonly value: CSSNumericValue; } declare var CSSMathClamp: { - prototype: CSSMathClamp; - new(lower: CSSNumberish, value: CSSNumberish, upper: CSSNumberish): CSSMathClamp; + prototype: CSSMathClamp; + new ( + lower: CSSNumberish, + value: CSSNumberish, + upper: CSSNumberish, + ): CSSMathClamp; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */ interface CSSMathInvert extends CSSMathValue { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert/value) */ - readonly value: CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert/value) */ + readonly value: CSSNumericValue; } declare var CSSMathInvert: { - prototype: CSSMathInvert; - new(arg: CSSNumberish): CSSMathInvert; + prototype: CSSMathInvert; + new (arg: CSSNumberish): CSSMathInvert; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax) */ interface CSSMathMax extends CSSMathValue { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax/values) */ - readonly values: CSSNumericArray; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax/values) */ + readonly values: CSSNumericArray; } declare var CSSMathMax: { - prototype: CSSMathMax; - new(...args: CSSNumberish[]): CSSMathMax; + prototype: CSSMathMax; + new (...args: CSSNumberish[]): CSSMathMax; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin) */ interface CSSMathMin extends CSSMathValue { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin/values) */ - readonly values: CSSNumericArray; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin/values) */ + readonly values: CSSNumericArray; } declare var CSSMathMin: { - prototype: CSSMathMin; - new(...args: CSSNumberish[]): CSSMathMin; + prototype: CSSMathMin; + new (...args: CSSNumberish[]): CSSMathMin; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate) */ interface CSSMathNegate extends CSSMathValue { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value) */ - readonly value: CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value) */ + readonly value: CSSNumericValue; } declare var CSSMathNegate: { - prototype: CSSMathNegate; - new(arg: CSSNumberish): CSSMathNegate; + prototype: CSSMathNegate; + new (arg: CSSNumberish): CSSMathNegate; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct) */ interface CSSMathProduct extends CSSMathValue { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct/values) */ - readonly values: CSSNumericArray; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct/values) */ + readonly values: CSSNumericArray; } declare var CSSMathProduct: { - prototype: CSSMathProduct; - new(...args: CSSNumberish[]): CSSMathProduct; + prototype: CSSMathProduct; + new (...args: CSSNumberish[]): CSSMathProduct; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum) */ interface CSSMathSum extends CSSMathValue { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum/values) */ - readonly values: CSSNumericArray; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum/values) */ + readonly values: CSSNumericArray; } declare var CSSMathSum: { - prototype: CSSMathSum; - new(...args: CSSNumberish[]): CSSMathSum; + prototype: CSSMathSum; + new (...args: CSSNumberish[]): CSSMathSum; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue) */ interface CSSMathValue extends CSSNumericValue { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue/operator) */ - readonly operator: CSSMathOperator; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue/operator) */ + readonly operator: CSSMathOperator; } declare var CSSMathValue: { - prototype: CSSMathValue; - new(): CSSMathValue; + prototype: CSSMathValue; + new (): CSSMathValue; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent) */ interface CSSMatrixComponent extends CSSTransformComponent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent/matrix) */ - matrix: DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent/matrix) */ + matrix: DOMMatrix; } declare var CSSMatrixComponent: { - prototype: CSSMatrixComponent; - new(matrix: DOMMatrixReadOnly, options?: CSSMatrixComponentOptions): CSSMatrixComponent; + prototype: CSSMatrixComponent; + new ( + matrix: DOMMatrixReadOnly, + options?: CSSMatrixComponentOptions, + ): CSSMatrixComponent; }; /** @@ -3878,13 +4180,13 @@ declare var CSSMatrixComponent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule) */ interface CSSMediaRule extends CSSConditionRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule/media) */ - readonly media: MediaList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule/media) */ + readonly media: MediaList; } declare var CSSMediaRule: { - prototype: CSSMediaRule; - new(): CSSMediaRule; + prototype: CSSMediaRule; + new (): CSSMediaRule; }; /** @@ -3893,68 +4195,75 @@ declare var CSSMediaRule: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule) */ interface CSSNamespaceRule extends CSSRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/namespaceURI) */ - readonly namespaceURI: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/prefix) */ - readonly prefix: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/namespaceURI) */ + readonly namespaceURI: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/prefix) */ + readonly prefix: string; } declare var CSSNamespaceRule: { - prototype: CSSNamespaceRule; - new(): CSSNamespaceRule; + prototype: CSSNamespaceRule; + new (): CSSNamespaceRule; }; interface CSSNestedDeclarations extends CSSRule { - readonly style: CSSStyleDeclaration; + readonly style: CSSStyleDeclaration; } declare var CSSNestedDeclarations: { - prototype: CSSNestedDeclarations; - new(): CSSNestedDeclarations; + prototype: CSSNestedDeclarations; + new (): CSSNestedDeclarations; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray) */ interface CSSNumericArray { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray/length) */ - readonly length: number; - forEach(callbackfn: (value: CSSNumericValue, key: number, parent: CSSNumericArray) => void, thisArg?: any): void; - [index: number]: CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray/length) */ + readonly length: number; + forEach( + callbackfn: ( + value: CSSNumericValue, + key: number, + parent: CSSNumericArray, + ) => void, + thisArg?: any, + ): void; + [index: number]: CSSNumericValue; } declare var CSSNumericArray: { - prototype: CSSNumericArray; - new(): CSSNumericArray; + prototype: CSSNumericArray; + new (): CSSNumericArray; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue) */ interface CSSNumericValue extends CSSStyleValue { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/add) */ - add(...values: CSSNumberish[]): CSSNumericValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/div) */ - div(...values: CSSNumberish[]): CSSNumericValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/equals) */ - equals(...value: CSSNumberish[]): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/max) */ - max(...values: CSSNumberish[]): CSSNumericValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/min) */ - min(...values: CSSNumberish[]): CSSNumericValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/mul) */ - mul(...values: CSSNumberish[]): CSSNumericValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/sub) */ - sub(...values: CSSNumberish[]): CSSNumericValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/to) */ - to(unit: string): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/toSum) */ - toSum(...units: string[]): CSSMathSum; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/type) */ - type(): CSSNumericType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/add) */ + add(...values: CSSNumberish[]): CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/div) */ + div(...values: CSSNumberish[]): CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/equals) */ + equals(...value: CSSNumberish[]): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/max) */ + max(...values: CSSNumberish[]): CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/min) */ + min(...values: CSSNumberish[]): CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/mul) */ + mul(...values: CSSNumberish[]): CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/sub) */ + sub(...values: CSSNumberish[]): CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/to) */ + to(unit: string): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/toSum) */ + toSum(...units: string[]): CSSMathSum; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/type) */ + type(): CSSNumericType; } declare var CSSNumericValue: { - prototype: CSSNumericValue; - new(): CSSNumericValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/parse_static) */ - parse(cssText: string): CSSNumericValue; + prototype: CSSNumericValue; + new (): CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/parse_static) */ + parse(cssText: string): CSSNumericValue; }; /** @@ -3963,61 +4272,66 @@ declare var CSSNumericValue: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule) */ interface CSSPageRule extends CSSGroupingRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/selectorText) */ - selectorText: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/style) */ - readonly style: CSSStyleDeclaration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/selectorText) */ + selectorText: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/style) */ + readonly style: CSSStyleDeclaration; } declare var CSSPageRule: { - prototype: CSSPageRule; - new(): CSSPageRule; + prototype: CSSPageRule; + new (): CSSPageRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective) */ interface CSSPerspective extends CSSTransformComponent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective/length) */ - length: CSSPerspectiveValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective/length) */ + length: CSSPerspectiveValue; } declare var CSSPerspective: { - prototype: CSSPerspective; - new(length: CSSPerspectiveValue): CSSPerspective; + prototype: CSSPerspective; + new (length: CSSPerspectiveValue): CSSPerspective; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule) */ interface CSSPropertyRule extends CSSRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/inherits) */ - readonly inherits: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/initialValue) */ - readonly initialValue: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/name) */ - readonly name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/syntax) */ - readonly syntax: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/inherits) */ + readonly inherits: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/initialValue) */ + readonly initialValue: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/syntax) */ + readonly syntax: string; } declare var CSSPropertyRule: { - prototype: CSSPropertyRule; - new(): CSSPropertyRule; + prototype: CSSPropertyRule; + new (): CSSPropertyRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate) */ interface CSSRotate extends CSSTransformComponent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/angle) */ - angle: CSSNumericValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/x) */ - x: CSSNumberish; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/y) */ - y: CSSNumberish; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/z) */ - z: CSSNumberish; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/angle) */ + angle: CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/x) */ + x: CSSNumberish; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/y) */ + y: CSSNumberish; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/z) */ + z: CSSNumberish; } declare var CSSRotate: { - prototype: CSSRotate; - new(angle: CSSNumericValue): CSSRotate; - new(x: CSSNumberish, y: CSSNumberish, z: CSSNumberish, angle: CSSNumericValue): CSSRotate; + prototype: CSSRotate; + new (angle: CSSNumericValue): CSSRotate; + new ( + x: CSSNumberish, + y: CSSNumberish, + z: CSSNumberish, + angle: CSSNumericValue, + ): CSSRotate; }; /** @@ -4026,47 +4340,47 @@ declare var CSSRotate: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule) */ interface CSSRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/cssText) */ - cssText: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentRule) */ - readonly parentRule: CSSRule | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentStyleSheet) */ - readonly parentStyleSheet: CSSStyleSheet | null; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/type) - */ - readonly type: number; - readonly STYLE_RULE: 1; - readonly CHARSET_RULE: 2; - readonly IMPORT_RULE: 3; - readonly MEDIA_RULE: 4; - readonly FONT_FACE_RULE: 5; - readonly PAGE_RULE: 6; - readonly NAMESPACE_RULE: 10; - readonly KEYFRAMES_RULE: 7; - readonly KEYFRAME_RULE: 8; - readonly SUPPORTS_RULE: 12; - readonly COUNTER_STYLE_RULE: 11; - readonly FONT_FEATURE_VALUES_RULE: 14; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/cssText) */ + cssText: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentRule) */ + readonly parentRule: CSSRule | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentStyleSheet) */ + readonly parentStyleSheet: CSSStyleSheet | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/type) + */ + readonly type: number; + readonly STYLE_RULE: 1; + readonly CHARSET_RULE: 2; + readonly IMPORT_RULE: 3; + readonly MEDIA_RULE: 4; + readonly FONT_FACE_RULE: 5; + readonly PAGE_RULE: 6; + readonly NAMESPACE_RULE: 10; + readonly KEYFRAMES_RULE: 7; + readonly KEYFRAME_RULE: 8; + readonly SUPPORTS_RULE: 12; + readonly COUNTER_STYLE_RULE: 11; + readonly FONT_FEATURE_VALUES_RULE: 14; } declare var CSSRule: { - prototype: CSSRule; - new(): CSSRule; - readonly STYLE_RULE: 1; - readonly CHARSET_RULE: 2; - readonly IMPORT_RULE: 3; - readonly MEDIA_RULE: 4; - readonly FONT_FACE_RULE: 5; - readonly PAGE_RULE: 6; - readonly NAMESPACE_RULE: 10; - readonly KEYFRAMES_RULE: 7; - readonly KEYFRAME_RULE: 8; - readonly SUPPORTS_RULE: 12; - readonly COUNTER_STYLE_RULE: 11; - readonly FONT_FEATURE_VALUES_RULE: 14; + prototype: CSSRule; + new (): CSSRule; + readonly STYLE_RULE: 1; + readonly CHARSET_RULE: 2; + readonly IMPORT_RULE: 3; + readonly MEDIA_RULE: 4; + readonly FONT_FACE_RULE: 5; + readonly PAGE_RULE: 6; + readonly NAMESPACE_RULE: 10; + readonly KEYFRAMES_RULE: 7; + readonly KEYFRAME_RULE: 8; + readonly SUPPORTS_RULE: 12; + readonly COUNTER_STYLE_RULE: 11; + readonly FONT_FEATURE_VALUES_RULE: 14; }; /** @@ -4075,88 +4389,87 @@ declare var CSSRule: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList) */ interface CSSRuleList { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/length) */ - readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/item) */ - item(index: number): CSSRule | null; - [index: number]: CSSRule; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/item) */ + item(index: number): CSSRule | null; + [index: number]: CSSRule; } declare var CSSRuleList: { - prototype: CSSRuleList; - new(): CSSRuleList; + prototype: CSSRuleList; + new (): CSSRuleList; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale) */ interface CSSScale extends CSSTransformComponent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/x) */ - x: CSSNumberish; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/y) */ - y: CSSNumberish; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/z) */ - z: CSSNumberish; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/x) */ + x: CSSNumberish; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/y) */ + y: CSSNumberish; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/z) */ + z: CSSNumberish; } declare var CSSScale: { - prototype: CSSScale; - new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale; + prototype: CSSScale; + new (x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScopeRule) */ interface CSSScopeRule extends CSSGroupingRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScopeRule/end) */ - readonly end: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScopeRule/start) */ - readonly start: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScopeRule/end) */ + readonly end: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScopeRule/start) */ + readonly start: string | null; } declare var CSSScopeRule: { - prototype: CSSScopeRule; - new(): CSSScopeRule; + prototype: CSSScopeRule; + new (): CSSScopeRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew) */ interface CSSSkew extends CSSTransformComponent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax) */ - ax: CSSNumericValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ay) */ - ay: CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax) */ + ax: CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ay) */ + ay: CSSNumericValue; } declare var CSSSkew: { - prototype: CSSSkew; - new(ax: CSSNumericValue, ay: CSSNumericValue): CSSSkew; + prototype: CSSSkew; + new (ax: CSSNumericValue, ay: CSSNumericValue): CSSSkew; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX) */ interface CSSSkewX extends CSSTransformComponent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX/ax) */ - ax: CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX/ax) */ + ax: CSSNumericValue; } declare var CSSSkewX: { - prototype: CSSSkewX; - new(ax: CSSNumericValue): CSSSkewX; + prototype: CSSSkewX; + new (ax: CSSNumericValue): CSSSkewX; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY) */ interface CSSSkewY extends CSSTransformComponent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY/ay) */ - ay: CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY/ay) */ + ay: CSSNumericValue; } declare var CSSSkewY: { - prototype: CSSSkewY; - new(ay: CSSNumericValue): CSSSkewY; + prototype: CSSSkewY; + new (ay: CSSNumericValue): CSSSkewY; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStartingStyleRule) */ -interface CSSStartingStyleRule extends CSSGroupingRule { -} +interface CSSStartingStyleRule extends CSSGroupingRule {} declare var CSSStartingStyleRule: { - prototype: CSSStartingStyleRule; - new(): CSSStartingStyleRule; + prototype: CSSStartingStyleRule; + new (): CSSStartingStyleRule; }; /** @@ -4165,1294 +4478,1294 @@ declare var CSSStartingStyleRule: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration) */ interface CSSStyleDeclaration { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */ - accentColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */ - alignContent: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items) */ - alignItems: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self) */ - alignSelf: string; - alignmentBaseline: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/all) */ - all: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation) */ - animation: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-composition) */ - animationComposition: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay) */ - animationDelay: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction) */ - animationDirection: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration) */ - animationDuration: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode) */ - animationFillMode: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count) */ - animationIterationCount: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name) */ - animationName: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state) */ - animationPlayState: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function) */ - animationTimingFunction: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance) */ - appearance: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/aspect-ratio) */ - aspectRatio: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backdrop-filter) */ - backdropFilter: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility) */ - backfaceVisibility: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background) */ - background: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-attachment) */ - backgroundAttachment: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-blend-mode) */ - backgroundBlendMode: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip) */ - backgroundClip: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-color) */ - backgroundColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-image) */ - backgroundImage: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin) */ - backgroundOrigin: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position) */ - backgroundPosition: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-x) */ - backgroundPositionX: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-y) */ - backgroundPositionY: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-repeat) */ - backgroundRepeat: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size) */ - backgroundSize: string; - baselineShift: string; - baselineSource: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/block-size) */ - blockSize: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border) */ - border: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block) */ - borderBlock: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-color) */ - borderBlockColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end) */ - borderBlockEnd: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-color) */ - borderBlockEndColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-style) */ - borderBlockEndStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-width) */ - borderBlockEndWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start) */ - borderBlockStart: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-color) */ - borderBlockStartColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-style) */ - borderBlockStartStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-width) */ - borderBlockStartWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-style) */ - borderBlockStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-width) */ - borderBlockWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom) */ - borderBottom: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-color) */ - borderBottomColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius) */ - borderBottomLeftRadius: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius) */ - borderBottomRightRadius: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-style) */ - borderBottomStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-width) */ - borderBottomWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-collapse) */ - borderCollapse: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-color) */ - borderColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-end-radius) */ - borderEndEndRadius: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-start-radius) */ - borderEndStartRadius: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image) */ - borderImage: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-outset) */ - borderImageOutset: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-repeat) */ - borderImageRepeat: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-slice) */ - borderImageSlice: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-source) */ - borderImageSource: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-width) */ - borderImageWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline) */ - borderInline: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-color) */ - borderInlineColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end) */ - borderInlineEnd: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-color) */ - borderInlineEndColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-style) */ - borderInlineEndStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width) */ - borderInlineEndWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start) */ - borderInlineStart: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-color) */ - borderInlineStartColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-style) */ - borderInlineStartStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width) */ - borderInlineStartWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-style) */ - borderInlineStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-width) */ - borderInlineWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left) */ - borderLeft: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-color) */ - borderLeftColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-style) */ - borderLeftStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-width) */ - borderLeftWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius) */ - borderRadius: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right) */ - borderRight: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-color) */ - borderRightColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-style) */ - borderRightStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-width) */ - borderRightWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-spacing) */ - borderSpacing: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-end-radius) */ - borderStartEndRadius: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-start-radius) */ - borderStartStartRadius: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-style) */ - borderStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top) */ - borderTop: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-color) */ - borderTopColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius) */ - borderTopLeftRadius: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius) */ - borderTopRightRadius: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-style) */ - borderTopStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-width) */ - borderTopWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-width) */ - borderWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/bottom) */ - bottom: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-decoration-break) */ - boxDecorationBreak: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow) */ - boxShadow: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing) */ - boxSizing: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-after) */ - breakAfter: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-before) */ - breakBefore: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-inside) */ - breakInside: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caption-side) */ - captionSide: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caret-color) */ - caretColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clear) */ - clear: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip) - */ - clip: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-path) */ - clipPath: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-rule) */ - clipRule: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color) */ - color: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-interpolation) */ - colorInterpolation: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-interpolation-filters) */ - colorInterpolationFilters: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-scheme) */ - colorScheme: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-count) */ - columnCount: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-fill) */ - columnFill: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-gap) */ - columnGap: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule) */ - columnRule: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-color) */ - columnRuleColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-style) */ - columnRuleStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-width) */ - columnRuleWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-span) */ - columnSpan: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-width) */ - columnWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/columns) */ - columns: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain) */ - contain: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-block-size) */ - containIntrinsicBlockSize: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-height) */ - containIntrinsicHeight: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-inline-size) */ - containIntrinsicInlineSize: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-size) */ - containIntrinsicSize: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-width) */ - containIntrinsicWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container) */ - container: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-name) */ - containerName: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-type) */ - containerType: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content) */ - content: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content-visibility) */ - contentVisibility: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-increment) */ - counterIncrement: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-reset) */ - 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/API/CSSStyleDeclaration/cssText) */ - cssText: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */ - cursor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cx) */ - cx: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cy) */ - cy: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/d) */ - d: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/direction) */ - direction: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/display) */ - display: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/dominant-baseline) */ - dominantBaseline: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/empty-cells) */ - emptyCells: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill) */ - fill: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill-opacity) */ - fillOpacity: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill-rule) */ - fillRule: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter) */ - filter: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex) */ - flex: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis) */ - flexBasis: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction) */ - flexDirection: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow) */ - flexFlow: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow) */ - flexGrow: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink) */ - flexShrink: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap) */ - flexWrap: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/float) */ - float: string; - floodColor: string; - floodOpacity: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font) */ - font: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-family) */ - fontFamily: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-feature-settings) */ - fontFeatureSettings: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-kerning) */ - fontKerning: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-optical-sizing) */ - fontOpticalSizing: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-palette) */ - fontPalette: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size) */ - fontSize: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size-adjust) */ - fontSizeAdjust: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-stretch) */ - fontStretch: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-style) */ - fontStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis) */ - fontSynthesis: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-small-caps) */ - fontSynthesisSmallCaps: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-style) */ - fontSynthesisStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-weight) */ - fontSynthesisWeight: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant) */ - fontVariant: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-alternates) */ - fontVariantAlternates: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-caps) */ - fontVariantCaps: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian) */ - fontVariantEastAsian: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures) */ - fontVariantLigatures: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric) */ - fontVariantNumeric: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-position) */ - fontVariantPosition: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variation-settings) */ - fontVariationSettings: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-weight) */ - fontWeight: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/forced-color-adjust) */ - forcedColorAdjust: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/gap) */ - gap: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid) */ - grid: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-area) */ - gridArea: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-columns) */ - gridAutoColumns: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-flow) */ - gridAutoFlow: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-rows) */ - gridAutoRows: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column) */ - gridColumn: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-end) */ - gridColumnEnd: string; - /** @deprecated This is a legacy alias of `columnGap`. */ - gridColumnGap: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-start) */ - gridColumnStart: string; - /** @deprecated This is a legacy alias of `gap`. */ - gridGap: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row) */ - gridRow: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-end) */ - gridRowEnd: string; - /** @deprecated This is a legacy alias of `rowGap`. */ - gridRowGap: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-start) */ - gridRowStart: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template) */ - gridTemplate: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-areas) */ - gridTemplateAreas: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-columns) */ - gridTemplateColumns: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-rows) */ - gridTemplateRows: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/height) */ - height: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphenate-character) */ - hyphenateCharacter: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphens) */ - hyphens: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-orientation) - */ - imageOrientation: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-rendering) */ - imageRendering: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inline-size) */ - inlineSize: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset) */ - inset: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block) */ - insetBlock: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-end) */ - insetBlockEnd: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-start) */ - insetBlockStart: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline) */ - insetInline: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-end) */ - insetInlineEnd: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-start) */ - insetInlineStart: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/isolation) */ - isolation: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content) */ - justifyContent: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-items) */ - justifyItems: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-self) */ - justifySelf: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/left) */ - left: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/length) */ - readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/letter-spacing) */ - letterSpacing: string; - lightingColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-break) */ - lineBreak: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-height) */ - lineHeight: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style) */ - listStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-image) */ - listStyleImage: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-position) */ - listStylePosition: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-type) */ - listStyleType: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin) */ - margin: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block) */ - marginBlock: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-end) */ - marginBlockEnd: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-start) */ - marginBlockStart: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-bottom) */ - marginBottom: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline) */ - marginInline: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-end) */ - marginInlineEnd: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-start) */ - marginInlineStart: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-left) */ - marginLeft: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-right) */ - marginRight: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-top) */ - marginTop: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker) */ - marker: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker-end) */ - markerEnd: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker-mid) */ - markerMid: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker-start) */ - markerStart: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask) */ - mask: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip) */ - maskClip: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite) */ - maskComposite: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image) */ - maskImage: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-mode) */ - maskMode: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin) */ - maskOrigin: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position) */ - maskPosition: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat) */ - maskRepeat: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size) */ - maskSize: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-type) */ - maskType: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-depth) */ - mathDepth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-style) */ - mathStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-block-size) */ - maxBlockSize: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-height) */ - maxHeight: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-inline-size) */ - maxInlineSize: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-width) */ - maxWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-block-size) */ - minBlockSize: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-height) */ - minHeight: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-inline-size) */ - minInlineSize: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-width) */ - minWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mix-blend-mode) */ - mixBlendMode: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-fit) */ - objectFit: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-position) */ - objectPosition: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset) */ - offset: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-anchor) */ - offsetAnchor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-distance) */ - offsetDistance: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-path) */ - offsetPath: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-position) */ - offsetPosition: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-rotate) */ - offsetRotate: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/opacity) */ - opacity: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order) */ - order: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/orphans) */ - orphans: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline) */ - outline: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-color) */ - outlineColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-offset) */ - outlineOffset: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-style) */ - outlineStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-width) */ - outlineWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow) */ - overflow: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-anchor) */ - overflowAnchor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-clip-margin) */ - overflowClipMargin: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-wrap) */ - overflowWrap: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-x) */ - overflowX: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-y) */ - overflowY: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior) */ - overscrollBehavior: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-block) */ - overscrollBehaviorBlock: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-inline) */ - overscrollBehaviorInline: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-x) */ - overscrollBehaviorX: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-y) */ - overscrollBehaviorY: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding) */ - padding: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block) */ - paddingBlock: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-end) */ - paddingBlockEnd: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-start) */ - paddingBlockStart: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-bottom) */ - paddingBottom: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline) */ - paddingInline: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-end) */ - paddingInlineEnd: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-start) */ - paddingInlineStart: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-left) */ - paddingLeft: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-right) */ - paddingRight: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-top) */ - paddingTop: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page) */ - page: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-after) */ - pageBreakAfter: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-before) */ - pageBreakBefore: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-inside) */ - pageBreakInside: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/paint-order) */ - paintOrder: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/parentRule) */ - readonly parentRule: CSSRule | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective) */ - perspective: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin) */ - perspectiveOrigin: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-content) */ - placeContent: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-items) */ - placeItems: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-self) */ - placeSelf: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/pointer-events) */ - pointerEvents: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/position) */ - position: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/position-area) */ - positionArea: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/print-color-adjust) */ - printColorAdjust: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/quotes) */ - quotes: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/r) */ - r: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/resize) */ - resize: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/right) */ - right: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/rotate) */ - rotate: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/row-gap) */ - rowGap: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ruby-align) */ - rubyAlign: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ruby-position) */ - rubyPosition: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/rx) */ - rx: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ry) */ - ry: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scale) */ - scale: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-behavior) */ - scrollBehavior: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin) */ - scrollMargin: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block) */ - scrollMarginBlock: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-end) */ - scrollMarginBlockEnd: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-start) */ - scrollMarginBlockStart: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-bottom) */ - scrollMarginBottom: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline) */ - scrollMarginInline: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-end) */ - scrollMarginInlineEnd: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-start) */ - scrollMarginInlineStart: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-left) */ - scrollMarginLeft: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-right) */ - scrollMarginRight: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-top) */ - scrollMarginTop: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding) */ - scrollPadding: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block) */ - scrollPaddingBlock: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-end) */ - scrollPaddingBlockEnd: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-start) */ - scrollPaddingBlockStart: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-bottom) */ - scrollPaddingBottom: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline) */ - scrollPaddingInline: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-end) */ - scrollPaddingInlineEnd: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-start) */ - scrollPaddingInlineStart: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-left) */ - scrollPaddingLeft: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-right) */ - scrollPaddingRight: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-top) */ - scrollPaddingTop: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align) */ - scrollSnapAlign: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop) */ - scrollSnapStop: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type) */ - scrollSnapType: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-color) */ - scrollbarColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-gutter) */ - scrollbarGutter: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-width) */ - scrollbarWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold) */ - shapeImageThreshold: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-margin) */ - shapeMargin: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-outside) */ - shapeOutside: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-rendering) */ - shapeRendering: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stop-color) */ - stopColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stop-opacity) */ - stopOpacity: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke) */ - stroke: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-dasharray) */ - strokeDasharray: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-dashoffset) */ - strokeDashoffset: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-linecap) */ - strokeLinecap: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-linejoin) */ - strokeLinejoin: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-miterlimit) */ - strokeMiterlimit: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-opacity) */ - strokeOpacity: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-width) */ - strokeWidth: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/tab-size) */ - tabSize: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/table-layout) */ - tableLayout: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align) */ - textAlign: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align-last) */ - textAlignLast: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-anchor) */ - textAnchor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-combine-upright) */ - textCombineUpright: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration) */ - textDecoration: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-color) */ - textDecorationColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-line) */ - textDecorationLine: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip-ink) */ - textDecorationSkipInk: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-style) */ - textDecorationStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness) */ - textDecorationThickness: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis) */ - textEmphasis: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-color) */ - textEmphasisColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-position) */ - textEmphasisPosition: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-style) */ - textEmphasisStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-indent) */ - textIndent: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-orientation) */ - textOrientation: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-overflow) */ - textOverflow: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-rendering) */ - textRendering: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-shadow) */ - textShadow: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-transform) */ - textTransform: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-offset) */ - textUnderlineOffset: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-position) */ - textUnderlinePosition: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap) */ - textWrap: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap-mode) */ - textWrapMode: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap-style) */ - textWrapStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/top) */ - top: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/touch-action) */ - touchAction: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform) */ - transform: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-box) */ - transformBox: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin) */ - transformOrigin: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style) */ - transformStyle: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) */ - transition: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-behavior) */ - transitionBehavior: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) */ - transitionDelay: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) */ - transitionDuration: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property) */ - transitionProperty: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function) */ - transitionTimingFunction: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/translate) */ - translate: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/unicode-bidi) */ - unicodeBidi: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select) */ - userSelect: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vector-effect) */ - vectorEffect: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */ - verticalAlign: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-name) */ - viewTransitionName: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */ - visibility: string; - /** - * @deprecated This is a legacy alias of `alignContent`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) - */ - webkitAlignContent: string; - /** - * @deprecated This is a legacy alias of `alignItems`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items) - */ - webkitAlignItems: string; - /** - * @deprecated This is a legacy alias of `alignSelf`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self) - */ - webkitAlignSelf: string; - /** - * @deprecated This is a legacy alias of `animation`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation) - */ - webkitAnimation: string; - /** - * @deprecated This is a legacy alias of `animationDelay`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay) - */ - webkitAnimationDelay: string; - /** - * @deprecated This is a legacy alias of `animationDirection`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction) - */ - webkitAnimationDirection: string; - /** - * @deprecated This is a legacy alias of `animationDuration`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration) - */ - webkitAnimationDuration: string; - /** - * @deprecated This is a legacy alias of `animationFillMode`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode) - */ - webkitAnimationFillMode: string; - /** - * @deprecated This is a legacy alias of `animationIterationCount`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count) - */ - webkitAnimationIterationCount: string; - /** - * @deprecated This is a legacy alias of `animationName`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name) - */ - webkitAnimationName: string; - /** - * @deprecated This is a legacy alias of `animationPlayState`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state) - */ - webkitAnimationPlayState: string; - /** - * @deprecated This is a legacy alias of `animationTimingFunction`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function) - */ - webkitAnimationTimingFunction: string; - /** - * @deprecated This is a legacy alias of `appearance`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance) - */ - webkitAppearance: string; - /** - * @deprecated This is a legacy alias of `backfaceVisibility`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility) - */ - webkitBackfaceVisibility: string; - /** - * @deprecated This is a legacy alias of `backgroundClip`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip) - */ - webkitBackgroundClip: string; - /** - * @deprecated This is a legacy alias of `backgroundOrigin`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin) - */ - webkitBackgroundOrigin: string; - /** - * @deprecated This is a legacy alias of `backgroundSize`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size) - */ - webkitBackgroundSize: string; - /** - * @deprecated This is a legacy alias of `borderBottomLeftRadius`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius) - */ - webkitBorderBottomLeftRadius: string; - /** - * @deprecated This is a legacy alias of `borderBottomRightRadius`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius) - */ - webkitBorderBottomRightRadius: string; - /** - * @deprecated This is a legacy alias of `borderRadius`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius) - */ - webkitBorderRadius: string; - /** - * @deprecated This is a legacy alias of `borderTopLeftRadius`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius) - */ - webkitBorderTopLeftRadius: string; - /** - * @deprecated This is a legacy alias of `borderTopRightRadius`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius) - */ - webkitBorderTopRightRadius: string; - /** - * @deprecated This is a legacy alias of `boxAlign`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-align) - */ - webkitBoxAlign: string; - /** - * @deprecated This is a legacy alias of `boxFlex`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-flex) - */ - webkitBoxFlex: string; - /** - * @deprecated This is a legacy alias of `boxOrdinalGroup`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-ordinal-group) - */ - webkitBoxOrdinalGroup: string; - /** - * @deprecated This is a legacy alias of `boxOrient`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-orient) - */ - webkitBoxOrient: string; - /** - * @deprecated This is a legacy alias of `boxPack`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-pack) - */ - webkitBoxPack: string; - /** - * @deprecated This is a legacy alias of `boxShadow`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow) - */ - webkitBoxShadow: string; - /** - * @deprecated This is a legacy alias of `boxSizing`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing) - */ - webkitBoxSizing: string; - /** - * @deprecated This is a legacy alias of `filter`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter) - */ - webkitFilter: string; - /** - * @deprecated This is a legacy alias of `flex`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex) - */ - webkitFlex: string; - /** - * @deprecated This is a legacy alias of `flexBasis`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis) - */ - webkitFlexBasis: string; - /** - * @deprecated This is a legacy alias of `flexDirection`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction) - */ - webkitFlexDirection: string; - /** - * @deprecated This is a legacy alias of `flexFlow`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow) - */ - webkitFlexFlow: string; - /** - * @deprecated This is a legacy alias of `flexGrow`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow) - */ - webkitFlexGrow: string; - /** - * @deprecated This is a legacy alias of `flexShrink`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink) - */ - webkitFlexShrink: string; - /** - * @deprecated This is a legacy alias of `flexWrap`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap) - */ - webkitFlexWrap: string; - /** - * @deprecated This is a legacy alias of `justifyContent`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content) - */ - webkitJustifyContent: string; - /** - * @deprecated This is a legacy alias of `lineClamp`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp) - */ - webkitLineClamp: string; - /** - * @deprecated This is a legacy alias of `mask`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask) - */ - webkitMask: string; - /** - * @deprecated This is a legacy alias of `maskBorder`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border) - */ - webkitMaskBoxImage: string; - /** - * @deprecated This is a legacy alias of `maskBorderOutset`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-outset) - */ - webkitMaskBoxImageOutset: string; - /** - * @deprecated This is a legacy alias of `maskBorderRepeat`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-repeat) - */ - webkitMaskBoxImageRepeat: string; - /** - * @deprecated This is a legacy alias of `maskBorderSlice`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-slice) - */ - webkitMaskBoxImageSlice: string; - /** - * @deprecated This is a legacy alias of `maskBorderSource`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-source) - */ - webkitMaskBoxImageSource: string; - /** - * @deprecated This is a legacy alias of `maskBorderWidth`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-width) - */ - webkitMaskBoxImageWidth: string; - /** - * @deprecated This is a legacy alias of `maskClip`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip) - */ - webkitMaskClip: string; - /** - * @deprecated This is a legacy alias of `maskComposite`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite) - */ - webkitMaskComposite: string; - /** - * @deprecated This is a legacy alias of `maskImage`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image) - */ - webkitMaskImage: string; - /** - * @deprecated This is a legacy alias of `maskOrigin`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin) - */ - webkitMaskOrigin: string; - /** - * @deprecated This is a legacy alias of `maskPosition`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position) - */ - webkitMaskPosition: string; - /** - * @deprecated This is a legacy alias of `maskRepeat`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat) - */ - webkitMaskRepeat: string; - /** - * @deprecated This is a legacy alias of `maskSize`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size) - */ - webkitMaskSize: string; - /** - * @deprecated This is a legacy alias of `order`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order) - */ - webkitOrder: string; - /** - * @deprecated This is a legacy alias of `perspective`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective) - */ - webkitPerspective: string; - /** - * @deprecated This is a legacy alias of `perspectiveOrigin`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin) - */ - webkitPerspectiveOrigin: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color) */ - webkitTextFillColor: string; - /** - * @deprecated This is a legacy alias of `textSizeAdjust`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-size-adjust) - */ - webkitTextSizeAdjust: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke) */ - webkitTextStroke: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color) */ - webkitTextStrokeColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width) */ - webkitTextStrokeWidth: string; - /** - * @deprecated This is a legacy alias of `transform`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform) - */ - webkitTransform: string; - /** - * @deprecated This is a legacy alias of `transformOrigin`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin) - */ - webkitTransformOrigin: string; - /** - * @deprecated This is a legacy alias of `transformStyle`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style) - */ - webkitTransformStyle: string; - /** - * @deprecated This is a legacy alias of `transition`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) - */ - webkitTransition: string; - /** - * @deprecated This is a legacy alias of `transitionDelay`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) - */ - webkitTransitionDelay: string; - /** - * @deprecated This is a legacy alias of `transitionDuration`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) - */ - webkitTransitionDuration: string; - /** - * @deprecated This is a legacy alias of `transitionProperty`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property) - */ - webkitTransitionProperty: string; - /** - * @deprecated This is a legacy alias of `transitionTimingFunction`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function) - */ - webkitTransitionTimingFunction: string; - /** - * @deprecated This is a legacy alias of `userSelect`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select) - */ - webkitUserSelect: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space) */ - whiteSpace: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space-collapse) */ - whiteSpaceCollapse: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/widows) */ - widows: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/width) */ - width: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/will-change) */ - willChange: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-break) */ - wordBreak: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-spacing) */ - wordSpacing: string; - /** @deprecated */ - wordWrap: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/writing-mode) */ - writingMode: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/x) */ - x: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/y) */ - y: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/z-index) */ - zIndex: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/zoom) */ - zoom: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyPriority) */ - getPropertyPriority(property: string): string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyValue) */ - getPropertyValue(property: string): string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/item) */ - item(index: number): string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/removeProperty) */ - removeProperty(property: string): string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/setProperty) */ - setProperty(property: string, value: string | null, priority?: string): void; - [index: number]: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */ + accentColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */ + alignContent: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items) */ + alignItems: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self) */ + alignSelf: string; + alignmentBaseline: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/all) */ + all: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation) */ + animation: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-composition) */ + animationComposition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay) */ + animationDelay: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction) */ + animationDirection: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration) */ + animationDuration: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode) */ + animationFillMode: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count) */ + animationIterationCount: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name) */ + animationName: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state) */ + animationPlayState: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function) */ + animationTimingFunction: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance) */ + appearance: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/aspect-ratio) */ + aspectRatio: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backdrop-filter) */ + backdropFilter: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility) */ + backfaceVisibility: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background) */ + background: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-attachment) */ + backgroundAttachment: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-blend-mode) */ + backgroundBlendMode: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip) */ + backgroundClip: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-color) */ + backgroundColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-image) */ + backgroundImage: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin) */ + backgroundOrigin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position) */ + backgroundPosition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-x) */ + backgroundPositionX: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-y) */ + backgroundPositionY: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-repeat) */ + backgroundRepeat: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size) */ + backgroundSize: string; + baselineShift: string; + baselineSource: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/block-size) */ + blockSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border) */ + border: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block) */ + borderBlock: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-color) */ + borderBlockColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end) */ + borderBlockEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-color) */ + borderBlockEndColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-style) */ + borderBlockEndStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-width) */ + borderBlockEndWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start) */ + borderBlockStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-color) */ + borderBlockStartColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-style) */ + borderBlockStartStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-width) */ + borderBlockStartWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-style) */ + borderBlockStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-width) */ + borderBlockWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom) */ + borderBottom: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-color) */ + borderBottomColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius) */ + borderBottomLeftRadius: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius) */ + borderBottomRightRadius: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-style) */ + borderBottomStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-width) */ + borderBottomWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-collapse) */ + borderCollapse: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-color) */ + borderColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-end-radius) */ + borderEndEndRadius: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-start-radius) */ + borderEndStartRadius: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image) */ + borderImage: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-outset) */ + borderImageOutset: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-repeat) */ + borderImageRepeat: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-slice) */ + borderImageSlice: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-source) */ + borderImageSource: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-width) */ + borderImageWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline) */ + borderInline: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-color) */ + borderInlineColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end) */ + borderInlineEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-color) */ + borderInlineEndColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-style) */ + borderInlineEndStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width) */ + borderInlineEndWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start) */ + borderInlineStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-color) */ + borderInlineStartColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-style) */ + borderInlineStartStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width) */ + borderInlineStartWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-style) */ + borderInlineStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-width) */ + borderInlineWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left) */ + borderLeft: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-color) */ + borderLeftColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-style) */ + borderLeftStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-width) */ + borderLeftWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius) */ + borderRadius: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right) */ + borderRight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-color) */ + borderRightColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-style) */ + borderRightStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-width) */ + borderRightWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-spacing) */ + borderSpacing: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-end-radius) */ + borderStartEndRadius: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-start-radius) */ + borderStartStartRadius: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-style) */ + borderStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top) */ + borderTop: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-color) */ + borderTopColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius) */ + borderTopLeftRadius: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius) */ + borderTopRightRadius: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-style) */ + borderTopStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-width) */ + borderTopWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-width) */ + borderWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/bottom) */ + bottom: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-decoration-break) */ + boxDecorationBreak: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow) */ + boxShadow: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing) */ + boxSizing: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-after) */ + breakAfter: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-before) */ + breakBefore: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-inside) */ + breakInside: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caption-side) */ + captionSide: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caret-color) */ + caretColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clear) */ + clear: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip) + */ + clip: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-path) */ + clipPath: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-rule) */ + clipRule: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color) */ + color: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-interpolation) */ + colorInterpolation: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-interpolation-filters) */ + colorInterpolationFilters: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-scheme) */ + colorScheme: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-count) */ + columnCount: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-fill) */ + columnFill: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-gap) */ + columnGap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule) */ + columnRule: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-color) */ + columnRuleColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-style) */ + columnRuleStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-width) */ + columnRuleWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-span) */ + columnSpan: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-width) */ + columnWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/columns) */ + columns: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain) */ + contain: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-block-size) */ + containIntrinsicBlockSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-height) */ + containIntrinsicHeight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-inline-size) */ + containIntrinsicInlineSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-size) */ + containIntrinsicSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-width) */ + containIntrinsicWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container) */ + container: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-name) */ + containerName: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-type) */ + containerType: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content) */ + content: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content-visibility) */ + contentVisibility: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-increment) */ + counterIncrement: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-reset) */ + 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/API/CSSStyleDeclaration/cssText) */ + cssText: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */ + cursor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cx) */ + cx: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cy) */ + cy: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/d) */ + d: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/direction) */ + direction: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/display) */ + display: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/dominant-baseline) */ + dominantBaseline: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/empty-cells) */ + emptyCells: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill) */ + fill: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill-opacity) */ + fillOpacity: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill-rule) */ + fillRule: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter) */ + filter: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex) */ + flex: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis) */ + flexBasis: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction) */ + flexDirection: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow) */ + flexFlow: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow) */ + flexGrow: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink) */ + flexShrink: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap) */ + flexWrap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/float) */ + float: string; + floodColor: string; + floodOpacity: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font) */ + font: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-family) */ + fontFamily: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-feature-settings) */ + fontFeatureSettings: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-kerning) */ + fontKerning: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-optical-sizing) */ + fontOpticalSizing: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-palette) */ + fontPalette: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size) */ + fontSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size-adjust) */ + fontSizeAdjust: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-stretch) */ + fontStretch: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-style) */ + fontStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis) */ + fontSynthesis: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-small-caps) */ + fontSynthesisSmallCaps: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-style) */ + fontSynthesisStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-weight) */ + fontSynthesisWeight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant) */ + fontVariant: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-alternates) */ + fontVariantAlternates: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-caps) */ + fontVariantCaps: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian) */ + fontVariantEastAsian: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures) */ + fontVariantLigatures: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric) */ + fontVariantNumeric: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-position) */ + fontVariantPosition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variation-settings) */ + fontVariationSettings: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-weight) */ + fontWeight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/forced-color-adjust) */ + forcedColorAdjust: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/gap) */ + gap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid) */ + grid: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-area) */ + gridArea: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-columns) */ + gridAutoColumns: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-flow) */ + gridAutoFlow: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-rows) */ + gridAutoRows: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column) */ + gridColumn: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-end) */ + gridColumnEnd: string; + /** @deprecated This is a legacy alias of `columnGap`. */ + gridColumnGap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-start) */ + gridColumnStart: string; + /** @deprecated This is a legacy alias of `gap`. */ + gridGap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row) */ + gridRow: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-end) */ + gridRowEnd: string; + /** @deprecated This is a legacy alias of `rowGap`. */ + gridRowGap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-start) */ + gridRowStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template) */ + gridTemplate: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-areas) */ + gridTemplateAreas: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-columns) */ + gridTemplateColumns: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-rows) */ + gridTemplateRows: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/height) */ + height: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphenate-character) */ + hyphenateCharacter: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphens) */ + hyphens: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-orientation) + */ + imageOrientation: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-rendering) */ + imageRendering: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inline-size) */ + inlineSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset) */ + inset: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block) */ + insetBlock: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-end) */ + insetBlockEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-start) */ + insetBlockStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline) */ + insetInline: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-end) */ + insetInlineEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-start) */ + insetInlineStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/isolation) */ + isolation: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content) */ + justifyContent: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-items) */ + justifyItems: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-self) */ + justifySelf: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/left) */ + left: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/letter-spacing) */ + letterSpacing: string; + lightingColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-break) */ + lineBreak: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-height) */ + lineHeight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style) */ + listStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-image) */ + listStyleImage: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-position) */ + listStylePosition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-type) */ + listStyleType: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin) */ + margin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block) */ + marginBlock: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-end) */ + marginBlockEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-start) */ + marginBlockStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-bottom) */ + marginBottom: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline) */ + marginInline: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-end) */ + marginInlineEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-start) */ + marginInlineStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-left) */ + marginLeft: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-right) */ + marginRight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-top) */ + marginTop: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker) */ + marker: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker-end) */ + markerEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker-mid) */ + markerMid: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker-start) */ + markerStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask) */ + mask: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip) */ + maskClip: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite) */ + maskComposite: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image) */ + maskImage: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-mode) */ + maskMode: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin) */ + maskOrigin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position) */ + maskPosition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat) */ + maskRepeat: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size) */ + maskSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-type) */ + maskType: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-depth) */ + mathDepth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-style) */ + mathStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-block-size) */ + maxBlockSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-height) */ + maxHeight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-inline-size) */ + maxInlineSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-width) */ + maxWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-block-size) */ + minBlockSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-height) */ + minHeight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-inline-size) */ + minInlineSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-width) */ + minWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mix-blend-mode) */ + mixBlendMode: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-fit) */ + objectFit: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-position) */ + objectPosition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset) */ + offset: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-anchor) */ + offsetAnchor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-distance) */ + offsetDistance: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-path) */ + offsetPath: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-position) */ + offsetPosition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-rotate) */ + offsetRotate: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/opacity) */ + opacity: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order) */ + order: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/orphans) */ + orphans: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline) */ + outline: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-color) */ + outlineColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-offset) */ + outlineOffset: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-style) */ + outlineStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-width) */ + outlineWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow) */ + overflow: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-anchor) */ + overflowAnchor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-clip-margin) */ + overflowClipMargin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-wrap) */ + overflowWrap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-x) */ + overflowX: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-y) */ + overflowY: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior) */ + overscrollBehavior: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-block) */ + overscrollBehaviorBlock: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-inline) */ + overscrollBehaviorInline: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-x) */ + overscrollBehaviorX: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-y) */ + overscrollBehaviorY: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding) */ + padding: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block) */ + paddingBlock: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-end) */ + paddingBlockEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-start) */ + paddingBlockStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-bottom) */ + paddingBottom: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline) */ + paddingInline: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-end) */ + paddingInlineEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-start) */ + paddingInlineStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-left) */ + paddingLeft: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-right) */ + paddingRight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-top) */ + paddingTop: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page) */ + page: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-after) */ + pageBreakAfter: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-before) */ + pageBreakBefore: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-inside) */ + pageBreakInside: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/paint-order) */ + paintOrder: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/parentRule) */ + readonly parentRule: CSSRule | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective) */ + perspective: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin) */ + perspectiveOrigin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-content) */ + placeContent: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-items) */ + placeItems: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-self) */ + placeSelf: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/pointer-events) */ + pointerEvents: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/position) */ + position: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/position-area) */ + positionArea: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/print-color-adjust) */ + printColorAdjust: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/quotes) */ + quotes: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/r) */ + r: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/resize) */ + resize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/right) */ + right: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/rotate) */ + rotate: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/row-gap) */ + rowGap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ruby-align) */ + rubyAlign: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ruby-position) */ + rubyPosition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/rx) */ + rx: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ry) */ + ry: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scale) */ + scale: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-behavior) */ + scrollBehavior: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin) */ + scrollMargin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block) */ + scrollMarginBlock: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-end) */ + scrollMarginBlockEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-start) */ + scrollMarginBlockStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-bottom) */ + scrollMarginBottom: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline) */ + scrollMarginInline: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-end) */ + scrollMarginInlineEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-start) */ + scrollMarginInlineStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-left) */ + scrollMarginLeft: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-right) */ + scrollMarginRight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-top) */ + scrollMarginTop: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding) */ + scrollPadding: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block) */ + scrollPaddingBlock: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-end) */ + scrollPaddingBlockEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-start) */ + scrollPaddingBlockStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-bottom) */ + scrollPaddingBottom: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline) */ + scrollPaddingInline: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-end) */ + scrollPaddingInlineEnd: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-start) */ + scrollPaddingInlineStart: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-left) */ + scrollPaddingLeft: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-right) */ + scrollPaddingRight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-top) */ + scrollPaddingTop: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align) */ + scrollSnapAlign: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop) */ + scrollSnapStop: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type) */ + scrollSnapType: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-color) */ + scrollbarColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-gutter) */ + scrollbarGutter: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-width) */ + scrollbarWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold) */ + shapeImageThreshold: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-margin) */ + shapeMargin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-outside) */ + shapeOutside: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-rendering) */ + shapeRendering: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stop-color) */ + stopColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stop-opacity) */ + stopOpacity: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke) */ + stroke: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-dasharray) */ + strokeDasharray: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-dashoffset) */ + strokeDashoffset: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-linecap) */ + strokeLinecap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-linejoin) */ + strokeLinejoin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-miterlimit) */ + strokeMiterlimit: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-opacity) */ + strokeOpacity: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-width) */ + strokeWidth: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/tab-size) */ + tabSize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/table-layout) */ + tableLayout: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align) */ + textAlign: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align-last) */ + textAlignLast: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-anchor) */ + textAnchor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-combine-upright) */ + textCombineUpright: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration) */ + textDecoration: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-color) */ + textDecorationColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-line) */ + textDecorationLine: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip-ink) */ + textDecorationSkipInk: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-style) */ + textDecorationStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness) */ + textDecorationThickness: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis) */ + textEmphasis: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-color) */ + textEmphasisColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-position) */ + textEmphasisPosition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-style) */ + textEmphasisStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-indent) */ + textIndent: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-orientation) */ + textOrientation: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-overflow) */ + textOverflow: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-rendering) */ + textRendering: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-shadow) */ + textShadow: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-transform) */ + textTransform: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-offset) */ + textUnderlineOffset: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-position) */ + textUnderlinePosition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap) */ + textWrap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap-mode) */ + textWrapMode: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap-style) */ + textWrapStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/top) */ + top: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/touch-action) */ + touchAction: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform) */ + transform: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-box) */ + transformBox: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin) */ + transformOrigin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style) */ + transformStyle: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) */ + transition: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-behavior) */ + transitionBehavior: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) */ + transitionDelay: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) */ + transitionDuration: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property) */ + transitionProperty: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function) */ + transitionTimingFunction: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/translate) */ + translate: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/unicode-bidi) */ + unicodeBidi: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select) */ + userSelect: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vector-effect) */ + vectorEffect: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */ + verticalAlign: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-name) */ + viewTransitionName: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */ + visibility: string; + /** + * @deprecated This is a legacy alias of `alignContent`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) + */ + webkitAlignContent: string; + /** + * @deprecated This is a legacy alias of `alignItems`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items) + */ + webkitAlignItems: string; + /** + * @deprecated This is a legacy alias of `alignSelf`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self) + */ + webkitAlignSelf: string; + /** + * @deprecated This is a legacy alias of `animation`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation) + */ + webkitAnimation: string; + /** + * @deprecated This is a legacy alias of `animationDelay`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay) + */ + webkitAnimationDelay: string; + /** + * @deprecated This is a legacy alias of `animationDirection`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction) + */ + webkitAnimationDirection: string; + /** + * @deprecated This is a legacy alias of `animationDuration`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration) + */ + webkitAnimationDuration: string; + /** + * @deprecated This is a legacy alias of `animationFillMode`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode) + */ + webkitAnimationFillMode: string; + /** + * @deprecated This is a legacy alias of `animationIterationCount`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count) + */ + webkitAnimationIterationCount: string; + /** + * @deprecated This is a legacy alias of `animationName`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name) + */ + webkitAnimationName: string; + /** + * @deprecated This is a legacy alias of `animationPlayState`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state) + */ + webkitAnimationPlayState: string; + /** + * @deprecated This is a legacy alias of `animationTimingFunction`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function) + */ + webkitAnimationTimingFunction: string; + /** + * @deprecated This is a legacy alias of `appearance`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance) + */ + webkitAppearance: string; + /** + * @deprecated This is a legacy alias of `backfaceVisibility`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility) + */ + webkitBackfaceVisibility: string; + /** + * @deprecated This is a legacy alias of `backgroundClip`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip) + */ + webkitBackgroundClip: string; + /** + * @deprecated This is a legacy alias of `backgroundOrigin`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin) + */ + webkitBackgroundOrigin: string; + /** + * @deprecated This is a legacy alias of `backgroundSize`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size) + */ + webkitBackgroundSize: string; + /** + * @deprecated This is a legacy alias of `borderBottomLeftRadius`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius) + */ + webkitBorderBottomLeftRadius: string; + /** + * @deprecated This is a legacy alias of `borderBottomRightRadius`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius) + */ + webkitBorderBottomRightRadius: string; + /** + * @deprecated This is a legacy alias of `borderRadius`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius) + */ + webkitBorderRadius: string; + /** + * @deprecated This is a legacy alias of `borderTopLeftRadius`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius) + */ + webkitBorderTopLeftRadius: string; + /** + * @deprecated This is a legacy alias of `borderTopRightRadius`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius) + */ + webkitBorderTopRightRadius: string; + /** + * @deprecated This is a legacy alias of `boxAlign`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-align) + */ + webkitBoxAlign: string; + /** + * @deprecated This is a legacy alias of `boxFlex`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-flex) + */ + webkitBoxFlex: string; + /** + * @deprecated This is a legacy alias of `boxOrdinalGroup`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-ordinal-group) + */ + webkitBoxOrdinalGroup: string; + /** + * @deprecated This is a legacy alias of `boxOrient`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-orient) + */ + webkitBoxOrient: string; + /** + * @deprecated This is a legacy alias of `boxPack`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-pack) + */ + webkitBoxPack: string; + /** + * @deprecated This is a legacy alias of `boxShadow`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow) + */ + webkitBoxShadow: string; + /** + * @deprecated This is a legacy alias of `boxSizing`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing) + */ + webkitBoxSizing: string; + /** + * @deprecated This is a legacy alias of `filter`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter) + */ + webkitFilter: string; + /** + * @deprecated This is a legacy alias of `flex`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex) + */ + webkitFlex: string; + /** + * @deprecated This is a legacy alias of `flexBasis`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis) + */ + webkitFlexBasis: string; + /** + * @deprecated This is a legacy alias of `flexDirection`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction) + */ + webkitFlexDirection: string; + /** + * @deprecated This is a legacy alias of `flexFlow`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow) + */ + webkitFlexFlow: string; + /** + * @deprecated This is a legacy alias of `flexGrow`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow) + */ + webkitFlexGrow: string; + /** + * @deprecated This is a legacy alias of `flexShrink`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink) + */ + webkitFlexShrink: string; + /** + * @deprecated This is a legacy alias of `flexWrap`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap) + */ + webkitFlexWrap: string; + /** + * @deprecated This is a legacy alias of `justifyContent`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content) + */ + webkitJustifyContent: string; + /** + * @deprecated This is a legacy alias of `lineClamp`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp) + */ + webkitLineClamp: string; + /** + * @deprecated This is a legacy alias of `mask`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask) + */ + webkitMask: string; + /** + * @deprecated This is a legacy alias of `maskBorder`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border) + */ + webkitMaskBoxImage: string; + /** + * @deprecated This is a legacy alias of `maskBorderOutset`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-outset) + */ + webkitMaskBoxImageOutset: string; + /** + * @deprecated This is a legacy alias of `maskBorderRepeat`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-repeat) + */ + webkitMaskBoxImageRepeat: string; + /** + * @deprecated This is a legacy alias of `maskBorderSlice`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-slice) + */ + webkitMaskBoxImageSlice: string; + /** + * @deprecated This is a legacy alias of `maskBorderSource`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-source) + */ + webkitMaskBoxImageSource: string; + /** + * @deprecated This is a legacy alias of `maskBorderWidth`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-width) + */ + webkitMaskBoxImageWidth: string; + /** + * @deprecated This is a legacy alias of `maskClip`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip) + */ + webkitMaskClip: string; + /** + * @deprecated This is a legacy alias of `maskComposite`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite) + */ + webkitMaskComposite: string; + /** + * @deprecated This is a legacy alias of `maskImage`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image) + */ + webkitMaskImage: string; + /** + * @deprecated This is a legacy alias of `maskOrigin`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin) + */ + webkitMaskOrigin: string; + /** + * @deprecated This is a legacy alias of `maskPosition`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position) + */ + webkitMaskPosition: string; + /** + * @deprecated This is a legacy alias of `maskRepeat`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat) + */ + webkitMaskRepeat: string; + /** + * @deprecated This is a legacy alias of `maskSize`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size) + */ + webkitMaskSize: string; + /** + * @deprecated This is a legacy alias of `order`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order) + */ + webkitOrder: string; + /** + * @deprecated This is a legacy alias of `perspective`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective) + */ + webkitPerspective: string; + /** + * @deprecated This is a legacy alias of `perspectiveOrigin`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin) + */ + webkitPerspectiveOrigin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color) */ + webkitTextFillColor: string; + /** + * @deprecated This is a legacy alias of `textSizeAdjust`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-size-adjust) + */ + webkitTextSizeAdjust: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke) */ + webkitTextStroke: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color) */ + webkitTextStrokeColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width) */ + webkitTextStrokeWidth: string; + /** + * @deprecated This is a legacy alias of `transform`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform) + */ + webkitTransform: string; + /** + * @deprecated This is a legacy alias of `transformOrigin`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin) + */ + webkitTransformOrigin: string; + /** + * @deprecated This is a legacy alias of `transformStyle`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style) + */ + webkitTransformStyle: string; + /** + * @deprecated This is a legacy alias of `transition`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) + */ + webkitTransition: string; + /** + * @deprecated This is a legacy alias of `transitionDelay`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) + */ + webkitTransitionDelay: string; + /** + * @deprecated This is a legacy alias of `transitionDuration`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) + */ + webkitTransitionDuration: string; + /** + * @deprecated This is a legacy alias of `transitionProperty`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property) + */ + webkitTransitionProperty: string; + /** + * @deprecated This is a legacy alias of `transitionTimingFunction`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function) + */ + webkitTransitionTimingFunction: string; + /** + * @deprecated This is a legacy alias of `userSelect`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select) + */ + webkitUserSelect: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space) */ + whiteSpace: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space-collapse) */ + whiteSpaceCollapse: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/widows) */ + widows: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/width) */ + width: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/will-change) */ + willChange: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-break) */ + wordBreak: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-spacing) */ + wordSpacing: string; + /** @deprecated */ + wordWrap: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/writing-mode) */ + writingMode: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/x) */ + x: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/y) */ + y: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/z-index) */ + zIndex: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/zoom) */ + zoom: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyPriority) */ + getPropertyPriority(property: string): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyValue) */ + getPropertyValue(property: string): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/item) */ + item(index: number): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/removeProperty) */ + removeProperty(property: string): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/setProperty) */ + setProperty(property: string, value: string | null, priority?: string): void; + [index: number]: string; } declare var CSSStyleDeclaration: { - prototype: CSSStyleDeclaration; - new(): CSSStyleDeclaration; + prototype: CSSStyleDeclaration; + new (): CSSStyleDeclaration; }; /** @@ -5461,17 +5774,17 @@ declare var CSSStyleDeclaration: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule) */ interface CSSStyleRule extends CSSGroupingRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/selectorText) */ - selectorText: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style) */ - readonly style: CSSStyleDeclaration; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/styleMap) */ - readonly styleMap: StylePropertyMap; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/selectorText) */ + selectorText: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style) */ + readonly style: CSSStyleDeclaration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/styleMap) */ + readonly styleMap: StylePropertyMap; } declare var CSSStyleRule: { - prototype: CSSStyleRule; - new(): CSSStyleRule; + prototype: CSSStyleRule; + new (): CSSStyleRule; }; /** @@ -5480,55 +5793,55 @@ declare var CSSStyleRule: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet) */ interface CSSStyleSheet extends StyleSheet { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/cssRules) */ - readonly cssRules: CSSRuleList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/ownerRule) */ - readonly ownerRule: CSSRule | null; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/rules) - */ - readonly rules: CSSRuleList; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/addRule) - */ - addRule(selector?: string, style?: string, index?: number): number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/deleteRule) */ - deleteRule(index: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/insertRule) */ - insertRule(rule: string, index?: number): number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/removeRule) - */ - removeRule(index?: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replace) */ - replace(text: string): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replaceSync) */ - replaceSync(text: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/cssRules) */ + readonly cssRules: CSSRuleList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/ownerRule) */ + readonly ownerRule: CSSRule | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/rules) + */ + readonly rules: CSSRuleList; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/addRule) + */ + addRule(selector?: string, style?: string, index?: number): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/deleteRule) */ + deleteRule(index: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/insertRule) */ + insertRule(rule: string, index?: number): number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/removeRule) + */ + removeRule(index?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replace) */ + replace(text: string): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replaceSync) */ + replaceSync(text: string): void; } declare var CSSStyleSheet: { - prototype: CSSStyleSheet; - new(options?: CSSStyleSheetInit): CSSStyleSheet; + prototype: CSSStyleSheet; + new (options?: CSSStyleSheetInit): CSSStyleSheet; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue) */ interface CSSStyleValue { - toString(): string; + toString(): string; } declare var CSSStyleValue: { - prototype: CSSStyleValue; - new(): CSSStyleValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parse_static) */ - parse(property: string, cssText: string): CSSStyleValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parseAll_static) */ - parseAll(property: string, cssText: string): CSSStyleValue[]; + prototype: CSSStyleValue; + new (): CSSStyleValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parse_static) */ + parse(property: string, cssText: string): CSSStyleValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parseAll_static) */ + parseAll(property: string, cssText: string): CSSStyleValue[]; }; /** @@ -5536,112 +5849,148 @@ declare var CSSStyleValue: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSupportsRule) */ -interface CSSSupportsRule extends CSSConditionRule { -} +interface CSSSupportsRule extends CSSConditionRule {} declare var CSSSupportsRule: { - prototype: CSSSupportsRule; - new(): CSSSupportsRule; + prototype: CSSSupportsRule; + new (): CSSSupportsRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent) */ interface CSSTransformComponent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D) */ - is2D: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix) */ - toMatrix(): DOMMatrix; - toString(): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D) */ + is2D: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix) */ + toMatrix(): DOMMatrix; + toString(): string; } declare var CSSTransformComponent: { - prototype: CSSTransformComponent; - new(): CSSTransformComponent; + prototype: CSSTransformComponent; + new (): CSSTransformComponent; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue) */ interface CSSTransformValue extends CSSStyleValue { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/is2D) */ - readonly is2D: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/length) */ - readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/toMatrix) */ - toMatrix(): DOMMatrix; - forEach(callbackfn: (value: CSSTransformComponent, key: number, parent: CSSTransformValue) => void, thisArg?: any): void; - [index: number]: CSSTransformComponent; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/is2D) */ + readonly is2D: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/toMatrix) */ + toMatrix(): DOMMatrix; + forEach( + callbackfn: ( + value: CSSTransformComponent, + key: number, + parent: CSSTransformValue, + ) => void, + thisArg?: any, + ): void; + [index: number]: CSSTransformComponent; } declare var CSSTransformValue: { - prototype: CSSTransformValue; - new(transforms: CSSTransformComponent[]): CSSTransformValue; + prototype: CSSTransformValue; + new (transforms: CSSTransformComponent[]): CSSTransformValue; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition) */ interface CSSTransition extends Animation { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition/transitionProperty) */ - readonly transitionProperty: string; - addEventListener(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition/transitionProperty) */ + readonly transitionProperty: string; + addEventListener( + type: K, + listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var CSSTransition: { - prototype: CSSTransition; - new(): CSSTransition; + prototype: CSSTransition; + new (): CSSTransition; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate) */ interface CSSTranslate extends CSSTransformComponent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/x) */ - x: CSSNumericValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/y) */ - y: CSSNumericValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/z) */ - z: CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/x) */ + x: CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/y) */ + y: CSSNumericValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/z) */ + z: CSSNumericValue; } declare var CSSTranslate: { - prototype: CSSTranslate; - new(x: CSSNumericValue, y: CSSNumericValue, z?: CSSNumericValue): CSSTranslate; + prototype: CSSTranslate; + new ( + x: CSSNumericValue, + y: CSSNumericValue, + z?: CSSNumericValue, + ): CSSTranslate; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */ interface CSSUnitValue extends CSSNumericValue { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */ - readonly unit: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/value) */ - value: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */ + readonly unit: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/value) */ + value: number; } declare var CSSUnitValue: { - prototype: CSSUnitValue; - new(value: number, unit: string): CSSUnitValue; + prototype: CSSUnitValue; + new (value: number, unit: string): CSSUnitValue; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue) */ interface CSSUnparsedValue extends CSSStyleValue { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue/length) */ - readonly length: number; - forEach(callbackfn: (value: CSSUnparsedSegment, key: number, parent: CSSUnparsedValue) => void, thisArg?: any): void; - [index: number]: CSSUnparsedSegment; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue/length) */ + readonly length: number; + forEach( + callbackfn: ( + value: CSSUnparsedSegment, + key: number, + parent: CSSUnparsedValue, + ) => void, + thisArg?: any, + ): void; + [index: number]: CSSUnparsedSegment; } declare var CSSUnparsedValue: { - prototype: CSSUnparsedValue; - new(members: CSSUnparsedSegment[]): CSSUnparsedValue; + prototype: CSSUnparsedValue; + new (members: CSSUnparsedSegment[]): CSSUnparsedValue; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue) */ interface CSSVariableReferenceValue { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/fallback) */ - readonly fallback: CSSUnparsedValue | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/variable) */ - variable: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/fallback) */ + readonly fallback: CSSUnparsedValue | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/variable) */ + variable: string; } declare var CSSVariableReferenceValue: { - prototype: CSSVariableReferenceValue; - new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue; + prototype: CSSVariableReferenceValue; + new ( + variable: string, + fallback?: CSSUnparsedValue | null, + ): CSSVariableReferenceValue; }; /** @@ -5651,25 +6000,37 @@ declare var CSSVariableReferenceValue: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache) */ interface Cache { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/add) */ - add(request: RequestInfo | URL): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */ - addAll(requests: RequestInfo[]): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/delete) */ - delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/keys) */ - keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise>; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/match) */ - match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/matchAll) */ - matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise>; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/put) */ - put(request: RequestInfo | URL, response: Response): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/add) */ + add(request: RequestInfo | URL): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */ + addAll(requests: RequestInfo[]): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/delete) */ + delete( + request: RequestInfo | URL, + options?: CacheQueryOptions, + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/keys) */ + keys( + request?: RequestInfo | URL, + options?: CacheQueryOptions, + ): Promise>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/match) */ + match( + request: RequestInfo | URL, + options?: CacheQueryOptions, + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/matchAll) */ + matchAll( + request?: RequestInfo | URL, + options?: CacheQueryOptions, + ): Promise>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/put) */ + put(request: RequestInfo | URL, response: Response): Promise; } declare var Cache: { - prototype: Cache; - new(): Cache; + prototype: Cache; + new (): Cache; }; /** @@ -5679,92 +6040,153 @@ declare var Cache: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage) */ interface CacheStorage { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete) */ - delete(cacheName: string): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has) */ - has(cacheName: string): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys) */ - keys(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match) */ - match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open) */ - open(cacheName: string): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete) */ + delete(cacheName: string): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has) */ + has(cacheName: string): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys) */ + keys(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match) */ + match( + request: RequestInfo | URL, + options?: MultiCacheQueryOptions, + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open) */ + open(cacheName: string): Promise; } declare var CacheStorage: { - prototype: CacheStorage; - new(): CacheStorage; + prototype: CacheStorage; + new (): CacheStorage; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack) */ interface CanvasCaptureMediaStreamTrack extends MediaStreamTrack { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/canvas) */ - readonly canvas: HTMLCanvasElement; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/requestFrame) */ - requestFrame(): void; - addEventListener(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/canvas) */ + readonly canvas: HTMLCanvasElement; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/requestFrame) */ + requestFrame(): void; + addEventListener( + type: K, + listener: ( + this: CanvasCaptureMediaStreamTrack, + ev: MediaStreamTrackEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: CanvasCaptureMediaStreamTrack, + ev: MediaStreamTrackEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var CanvasCaptureMediaStreamTrack: { - prototype: CanvasCaptureMediaStreamTrack; - new(): CanvasCaptureMediaStreamTrack; + prototype: CanvasCaptureMediaStreamTrack; + new (): CanvasCaptureMediaStreamTrack; }; interface CanvasCompositing { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalAlpha) */ - globalAlpha: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation) */ - globalCompositeOperation: GlobalCompositeOperation; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalAlpha) */ + globalAlpha: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation) */ + globalCompositeOperation: GlobalCompositeOperation; } interface CanvasDrawImage { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) */ - drawImage(image: CanvasImageSource, dx: number, dy: number): void; - drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void; - drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) */ + drawImage(image: CanvasImageSource, dx: number, dy: number): void; + drawImage( + image: CanvasImageSource, + dx: number, + dy: number, + dw: number, + dh: number, + ): void; + drawImage( + image: CanvasImageSource, + sx: number, + sy: number, + sw: number, + sh: number, + dx: number, + dy: number, + dw: number, + dh: number, + ): void; } interface CanvasDrawPath { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/beginPath) */ - beginPath(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clip) */ - clip(fillRule?: CanvasFillRule): void; - clip(path: Path2D, fillRule?: CanvasFillRule): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fill) */ - fill(fillRule?: CanvasFillRule): void; - fill(path: Path2D, fillRule?: CanvasFillRule): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInPath) */ - isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean; - isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInStroke) */ - isPointInStroke(x: number, y: number): boolean; - isPointInStroke(path: Path2D, x: number, y: number): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/stroke) */ - stroke(): void; - stroke(path: Path2D): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/beginPath) */ + beginPath(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clip) */ + clip(fillRule?: CanvasFillRule): void; + clip(path: Path2D, fillRule?: CanvasFillRule): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fill) */ + fill(fillRule?: CanvasFillRule): void; + fill(path: Path2D, fillRule?: CanvasFillRule): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInPath) */ + isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean; + isPointInPath( + path: Path2D, + x: number, + y: number, + fillRule?: CanvasFillRule, + ): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInStroke) */ + isPointInStroke(x: number, y: number): boolean; + isPointInStroke(path: Path2D, x: number, y: number): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/stroke) */ + stroke(): void; + stroke(path: Path2D): void; } interface CanvasFillStrokeStyles { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle) */ - fillStyle: string | CanvasGradient | CanvasPattern; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeStyle) */ - strokeStyle: string | CanvasGradient | CanvasPattern; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createConicGradient) */ - createConicGradient(startAngle: number, x: number, y: number): CanvasGradient; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createLinearGradient) */ - createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createPattern) */ - createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createRadialGradient) */ - createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle) */ + fillStyle: string | CanvasGradient | CanvasPattern; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeStyle) */ + strokeStyle: string | CanvasGradient | CanvasPattern; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createConicGradient) */ + createConicGradient(startAngle: number, x: number, y: number): CanvasGradient; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createLinearGradient) */ + createLinearGradient( + x0: number, + y0: number, + x1: number, + y1: number, + ): CanvasGradient; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createPattern) */ + createPattern( + image: CanvasImageSource, + repetition: string | null, + ): CanvasPattern | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createRadialGradient) */ + createRadialGradient( + x0: number, + y0: number, + r0: number, + x1: number, + y1: number, + r1: number, + ): CanvasGradient; } interface CanvasFilters { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/filter) */ - filter: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/filter) */ + filter: string; } /** @@ -5773,77 +6195,124 @@ interface CanvasFilters { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient) */ interface CanvasGradient { - /** - * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end. - * - * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient/addColorStop) - */ - addColorStop(offset: number, color: string): void; + /** + * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end. + * + * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient/addColorStop) + */ + addColorStop(offset: number, color: string): void; } declare var CanvasGradient: { - prototype: CanvasGradient; - new(): CanvasGradient; + prototype: CanvasGradient; + new (): CanvasGradient; }; interface CanvasImageData { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createImageData) */ - createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData; - createImageData(imagedata: ImageData): ImageData; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getImageData) */ - getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/putImageData) */ - putImageData(imagedata: ImageData, dx: number, dy: number): void; - putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createImageData) */ + createImageData( + sw: number, + sh: number, + settings?: ImageDataSettings, + ): ImageData; + createImageData(imagedata: ImageData): ImageData; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getImageData) */ + getImageData( + sx: number, + sy: number, + sw: number, + sh: number, + settings?: ImageDataSettings, + ): ImageData; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/putImageData) */ + putImageData(imagedata: ImageData, dx: number, dy: number): void; + putImageData( + imagedata: ImageData, + dx: number, + dy: number, + dirtyX: number, + dirtyY: number, + dirtyWidth: number, + dirtyHeight: number, + ): void; } interface CanvasImageSmoothing { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled) */ - imageSmoothingEnabled: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingQuality) */ - imageSmoothingQuality: ImageSmoothingQuality; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled) */ + imageSmoothingEnabled: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingQuality) */ + imageSmoothingQuality: ImageSmoothingQuality; } interface CanvasPath { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arc) */ - arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arcTo) */ - arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo) */ - bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/closePath) */ - closePath(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/ellipse) */ - ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineTo) */ - lineTo(x: number, y: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/moveTo) */ - moveTo(x: number, y: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/quadraticCurveTo) */ - quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rect) */ - rect(x: number, y: number, w: number, h: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */ - roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arc) */ + arc( + x: number, + y: number, + radius: number, + startAngle: number, + endAngle: number, + counterclockwise?: boolean, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arcTo) */ + arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo) */ + bezierCurveTo( + cp1x: number, + cp1y: number, + cp2x: number, + cp2y: number, + x: number, + y: number, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/closePath) */ + closePath(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/ellipse) */ + ellipse( + x: number, + y: number, + radiusX: number, + radiusY: number, + rotation: number, + startAngle: number, + endAngle: number, + counterclockwise?: boolean, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineTo) */ + lineTo(x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/moveTo) */ + moveTo(x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/quadraticCurveTo) */ + quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rect) */ + rect(x: number, y: number, w: number, h: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */ + roundRect( + x: number, + y: number, + w: number, + h: number, + radii?: number | DOMPointInit | (number | DOMPointInit)[], + ): void; } interface CanvasPathDrawingStyles { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineCap) */ - lineCap: CanvasLineCap; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineDashOffset) */ - lineDashOffset: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineJoin) */ - lineJoin: CanvasLineJoin; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineWidth) */ - lineWidth: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/miterLimit) */ - miterLimit: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getLineDash) */ - getLineDash(): number[]; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */ - setLineDash(segments: number[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineCap) */ + lineCap: CanvasLineCap; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineDashOffset) */ + lineDashOffset: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineJoin) */ + lineJoin: CanvasLineJoin; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineWidth) */ + lineWidth: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/miterLimit) */ + miterLimit: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getLineDash) */ + getLineDash(): number[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */ + setLineDash(segments: number[]): void; } /** @@ -5852,26 +6321,26 @@ interface CanvasPathDrawingStyles { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern) */ interface CanvasPattern { - /** - * Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern/setTransform) - */ - setTransform(transform?: DOMMatrix2DInit): void; + /** + * Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern/setTransform) + */ + setTransform(transform?: DOMMatrix2DInit): void; } declare var CanvasPattern: { - prototype: CanvasPattern; - new(): CanvasPattern; + prototype: CanvasPattern; + new (): CanvasPattern; }; interface CanvasRect { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clearRect) */ - clearRect(x: number, y: number, w: number, h: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillRect) */ - fillRect(x: number, y: number, w: number, h: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeRect) */ - strokeRect(x: number, y: number, w: number, h: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clearRect) */ + clearRect(x: number, y: number, w: number, h: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillRect) */ + fillRect(x: number, y: number, w: number, h: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeRect) */ + strokeRect(x: number, y: number, w: number, h: number): void; } /** @@ -5879,106 +6348,137 @@ interface CanvasRect { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D) */ -interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */ - readonly canvas: HTMLCanvasElement; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getContextAttributes) */ - getContextAttributes(): CanvasRenderingContext2DSettings; +interface CanvasRenderingContext2D + extends + CanvasCompositing, + CanvasDrawImage, + CanvasDrawPath, + CanvasFillStrokeStyles, + CanvasFilters, + CanvasImageData, + CanvasImageSmoothing, + CanvasPath, + CanvasPathDrawingStyles, + CanvasRect, + CanvasShadowStyles, + CanvasState, + CanvasText, + CanvasTextDrawingStyles, + CanvasTransform, + CanvasUserInterface { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */ + readonly canvas: HTMLCanvasElement; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getContextAttributes) */ + getContextAttributes(): CanvasRenderingContext2DSettings; } declare var CanvasRenderingContext2D: { - prototype: CanvasRenderingContext2D; - new(): CanvasRenderingContext2D; + prototype: CanvasRenderingContext2D; + new (): CanvasRenderingContext2D; }; interface CanvasShadowStyles { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowBlur) */ - shadowBlur: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowColor) */ - shadowColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX) */ - shadowOffsetX: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY) */ - shadowOffsetY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowBlur) */ + shadowBlur: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowColor) */ + shadowColor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX) */ + shadowOffsetX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY) */ + shadowOffsetY: number; } interface CanvasState { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isContextLost) */ - isContextLost(): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */ - reset(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */ - restore(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) */ - save(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isContextLost) */ + isContextLost(): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */ + reset(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */ + restore(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) */ + save(): void; } interface CanvasText { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillText) */ - fillText(text: string, x: number, y: number, maxWidth?: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/measureText) */ - measureText(text: string): TextMetrics; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeText) */ - strokeText(text: string, x: number, y: number, maxWidth?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillText) */ + fillText(text: string, x: number, y: number, maxWidth?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/measureText) */ + measureText(text: string): TextMetrics; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeText) */ + strokeText(text: string, x: number, y: number, maxWidth?: number): void; } interface CanvasTextDrawingStyles { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/direction) */ - direction: CanvasDirection; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/font) */ - font: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */ - fontKerning: CanvasFontKerning; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */ - fontStretch: CanvasFontStretch; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */ - fontVariantCaps: CanvasFontVariantCaps; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */ - letterSpacing: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */ - textAlign: CanvasTextAlign; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textBaseline) */ - textBaseline: CanvasTextBaseline; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textRendering) */ - textRendering: CanvasTextRendering; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/wordSpacing) */ - wordSpacing: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/direction) */ + direction: CanvasDirection; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/font) */ + font: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */ + fontKerning: CanvasFontKerning; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */ + fontStretch: CanvasFontStretch; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */ + fontVariantCaps: CanvasFontVariantCaps; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */ + letterSpacing: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */ + textAlign: CanvasTextAlign; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textBaseline) */ + textBaseline: CanvasTextBaseline; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textRendering) */ + textRendering: CanvasTextRendering; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/wordSpacing) */ + wordSpacing: string; } interface CanvasTransform { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getTransform) */ - getTransform(): DOMMatrix; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/resetTransform) */ - resetTransform(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rotate) */ - rotate(angle: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/scale) */ - scale(x: number, y: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setTransform) */ - setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void; - setTransform(transform?: DOMMatrix2DInit): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/transform) */ - transform(a: number, b: number, c: number, d: number, e: number, f: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/translate) */ - translate(x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getTransform) */ + getTransform(): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/resetTransform) */ + resetTransform(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rotate) */ + rotate(angle: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/scale) */ + scale(x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setTransform) */ + setTransform( + a: number, + b: number, + c: number, + d: number, + e: number, + f: number, + ): void; + setTransform(transform?: DOMMatrix2DInit): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/transform) */ + transform( + a: number, + b: number, + c: number, + d: number, + e: number, + f: number, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/translate) */ + translate(x: number, y: number): void; } interface CanvasUserInterface { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawFocusIfNeeded) */ - drawFocusIfNeeded(element: Element): void; - drawFocusIfNeeded(path: Path2D, element: Element): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawFocusIfNeeded) */ + drawFocusIfNeeded(element: Element): void; + drawFocusIfNeeded(path: Path2D, element: Element): void; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CaretPosition) */ interface CaretPosition { - readonly offset: number; - readonly offsetNode: Node; - getClientRect(): DOMRect | null; + readonly offset: number; + readonly offsetNode: Node; + getClientRect(): DOMRect | null; } declare var CaretPosition: { - prototype: CaretPosition; - new(): CaretPosition; + prototype: CaretPosition; + new (): CaretPosition; }; /** @@ -5986,12 +6486,14 @@ declare var CaretPosition: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelMergerNode) */ -interface ChannelMergerNode extends AudioNode { -} +interface ChannelMergerNode extends AudioNode {} declare var ChannelMergerNode: { - prototype: ChannelMergerNode; - new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode; + prototype: ChannelMergerNode; + new ( + context: BaseAudioContext, + options?: ChannelMergerOptions, + ): ChannelMergerNode; }; /** @@ -5999,12 +6501,14 @@ declare var ChannelMergerNode: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelSplitterNode) */ -interface ChannelSplitterNode extends AudioNode { -} +interface ChannelSplitterNode extends AudioNode {} declare var ChannelSplitterNode: { - prototype: ChannelSplitterNode; - new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode; + prototype: ChannelSplitterNode; + new ( + context: BaseAudioContext, + options?: ChannelSplitterOptions, + ): ChannelSplitterNode; }; /** @@ -6013,64 +6517,63 @@ declare var ChannelSplitterNode: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData) */ interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/data) */ - data: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/length) */ - readonly length: number; - readonly ownerDocument: Document; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/appendData) */ - appendData(data: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/deleteData) */ - deleteData(offset: number, count: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/insertData) */ - insertData(offset: number, data: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceData) */ - replaceData(offset: number, count: number, data: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/substringData) */ - substringData(offset: number, count: number): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/data) */ + data: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/length) */ + readonly length: number; + readonly ownerDocument: Document; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/appendData) */ + appendData(data: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/deleteData) */ + deleteData(offset: number, count: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/insertData) */ + insertData(offset: number, data: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceData) */ + replaceData(offset: number, count: number, data: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/substringData) */ + substringData(offset: number, count: number): string; } declare var CharacterData: { - prototype: CharacterData; - new(): CharacterData; + prototype: CharacterData; + new (): CharacterData; }; interface ChildNode extends Node { - /** - * Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. - * - * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/after) - */ - after(...nodes: (Node | string)[]): void; - /** - * Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. - * - * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/before) - */ - before(...nodes: (Node | string)[]): void; - /** - * Removes node. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/remove) - */ - remove(): void; - /** - * Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. - * - * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) - */ - replaceWith(...nodes: (Node | string)[]): void; + /** + * Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. + * + * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/after) + */ + after(...nodes: (Node | string)[]): void; + /** + * Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. + * + * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/before) + */ + before(...nodes: (Node | string)[]): void; + /** + * Removes node. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/remove) + */ + remove(): void; + /** + * Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. + * + * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) + */ + replaceWith(...nodes: (Node | string)[]): void; } /** @deprecated */ -interface ClientRect extends DOMRect { -} +interface ClientRect extends DOMRect {} /** * Available only in secure contexts. @@ -6078,19 +6581,19 @@ interface ClientRect extends DOMRect { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard) */ interface Clipboard extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/read) */ - read(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/readText) */ - readText(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/write) */ - write(data: ClipboardItems): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/writeText) */ - writeText(data: string): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/read) */ + read(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/readText) */ + readText(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/write) */ + write(data: ClipboardItems): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/writeText) */ + writeText(data: string): Promise; } declare var Clipboard: { - prototype: Clipboard; - new(): Clipboard; + prototype: Clipboard; + new (): Clipboard; }; /** @@ -6099,13 +6602,13 @@ declare var Clipboard: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent) */ interface ClipboardEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent/clipboardData) */ - readonly clipboardData: DataTransfer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent/clipboardData) */ + readonly clipboardData: DataTransfer | null; } declare var ClipboardEvent: { - prototype: ClipboardEvent; - new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent; + prototype: ClipboardEvent; + new (type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent; }; /** @@ -6114,19 +6617,22 @@ declare var ClipboardEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem) */ interface ClipboardItem { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/presentationStyle) */ - readonly presentationStyle: PresentationStyle; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/types) */ - readonly types: ReadonlyArray; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/getType) */ - getType(type: string): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/presentationStyle) */ + readonly presentationStyle: PresentationStyle; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/types) */ + readonly types: ReadonlyArray; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/getType) */ + getType(type: string): Promise; } declare var ClipboardItem: { - prototype: ClipboardItem; - new(items: Record>, options?: ClipboardItemOptions): ClipboardItem; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/supports_static) */ - supports(type: string): boolean; + prototype: ClipboardItem; + new ( + items: Record>, + options?: ClipboardItemOptions, + ): ClipboardItem; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/supports_static) */ + supports(type: string): boolean; }; /** @@ -6135,29 +6641,29 @@ declare var ClipboardItem: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent) */ interface CloseEvent extends Event { - /** - * Returns the WebSocket connection close code provided by the server. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code) - */ - readonly code: number; - /** - * Returns the WebSocket connection close reason provided by the server. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason) - */ - readonly reason: string; - /** - * Returns true if the connection closed cleanly; false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean) - */ - readonly wasClean: boolean; + /** + * Returns the WebSocket connection close code provided by the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code) + */ + readonly code: number; + /** + * Returns the WebSocket connection close reason provided by the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason) + */ + readonly reason: string; + /** + * Returns true if the connection closed cleanly; false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean) + */ + readonly wasClean: boolean; } declare var CloseEvent: { - prototype: CloseEvent; - new(type: string, eventInitDict?: CloseEventInit): CloseEvent; + prototype: CloseEvent; + new (type: string, eventInitDict?: CloseEventInit): CloseEvent; }; /** @@ -6165,12 +6671,11 @@ declare var CloseEvent: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Comment) */ -interface Comment extends CharacterData { -} +interface Comment extends CharacterData {} declare var Comment: { - prototype: Comment; - new(data?: string): Comment; + prototype: Comment; + new (data?: string): Comment; }; /** @@ -6179,56 +6684,90 @@ declare var Comment: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent) */ interface CompositionEvent extends UIEvent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/data) */ - readonly data: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/initCompositionEvent) - */ - initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/data) */ + readonly data: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/initCompositionEvent) + */ + initCompositionEvent( + typeArg: string, + bubblesArg?: boolean, + cancelableArg?: boolean, + viewArg?: WindowProxy | null, + dataArg?: string, + ): void; } declare var CompositionEvent: { - prototype: CompositionEvent; - new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent; + prototype: CompositionEvent; + new (type: string, eventInitDict?: CompositionEventInit): CompositionEvent; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */ interface CompressionStream extends GenericTransformStream { - readonly readable: ReadableStream; - readonly writable: WritableStream; + readonly readable: ReadableStream; + readonly writable: WritableStream; } declare var CompressionStream: { - prototype: CompressionStream; - new(format: CompressionFormat): CompressionStream; + prototype: CompressionStream; + new (format: CompressionFormat): CompressionStream; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode) */ interface ConstantSourceNode extends AudioScheduledSourceNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode/offset) */ - readonly offset: AudioParam; - addEventListener(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode/offset) */ + readonly offset: AudioParam; + addEventListener( + type: K, + listener: ( + this: ConstantSourceNode, + ev: AudioScheduledSourceNodeEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: ConstantSourceNode, + ev: AudioScheduledSourceNodeEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var ConstantSourceNode: { - prototype: ConstantSourceNode; - new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode; + prototype: ConstantSourceNode; + new ( + context: BaseAudioContext, + options?: ConstantSourceOptions, + ): ConstantSourceNode; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContentVisibilityAutoStateChangeEvent) */ interface ContentVisibilityAutoStateChangeEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContentVisibilityAutoStateChangeEvent/skipped) */ - readonly skipped: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContentVisibilityAutoStateChangeEvent/skipped) */ + readonly skipped: boolean; } declare var ContentVisibilityAutoStateChangeEvent: { - prototype: ContentVisibilityAutoStateChangeEvent; - new(type: string, eventInitDict?: ContentVisibilityAutoStateChangeEventInit): ContentVisibilityAutoStateChangeEvent; + prototype: ContentVisibilityAutoStateChangeEvent; + new ( + type: string, + eventInitDict?: ContentVisibilityAutoStateChangeEventInit, + ): ContentVisibilityAutoStateChangeEvent; }; /** @@ -6237,15 +6776,15 @@ declare var ContentVisibilityAutoStateChangeEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode) */ interface ConvolverNode extends AudioNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/buffer) */ - buffer: AudioBuffer | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/normalize) */ - normalize: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/buffer) */ + buffer: AudioBuffer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/normalize) */ + normalize: boolean; } declare var ConvolverNode: { - prototype: ConvolverNode; - new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode; + prototype: ConvolverNode; + new (context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode; }; /** @@ -6254,15 +6793,15 @@ declare var ConvolverNode: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy) */ interface CountQueuingStrategy extends QueuingStrategy { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark) */ - readonly highWaterMark: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */ - readonly size: QueuingStrategySize; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark) */ + readonly highWaterMark: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */ + readonly size: QueuingStrategySize; } declare var CountQueuingStrategy: { - prototype: CountQueuingStrategy; - new(init: QueuingStrategyInit): CountQueuingStrategy; + prototype: CountQueuingStrategy; + new (init: QueuingStrategyInit): CountQueuingStrategy; }; /** @@ -6271,15 +6810,15 @@ declare var CountQueuingStrategy: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential) */ interface Credential { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/id) */ - readonly id: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/type) */ - readonly type: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/id) */ + readonly id: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/type) */ + readonly type: string; } declare var Credential: { - prototype: Credential; - new(): Credential; + prototype: Credential; + new (): Credential; }; /** @@ -6288,19 +6827,19 @@ declare var Credential: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer) */ interface CredentialsContainer { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/create) */ - create(options?: CredentialCreationOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/get) */ - get(options?: CredentialRequestOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/preventSilentAccess) */ - preventSilentAccess(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/store) */ - store(credential: Credential): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/create) */ + create(options?: CredentialCreationOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/get) */ + get(options?: CredentialRequestOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/preventSilentAccess) */ + preventSilentAccess(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/store) */ + store(credential: Credential): Promise; } declare var CredentialsContainer: { - prototype: CredentialsContainer; - new(): CredentialsContainer; + prototype: CredentialsContainer; + new (): CredentialsContainer; }; /** @@ -6309,25 +6848,25 @@ declare var CredentialsContainer: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto) */ interface Crypto { - /** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle) - */ - readonly subtle: SubtleCrypto; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */ - getRandomValues(array: T): T; - /** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID) - */ - randomUUID(): `${string}-${string}-${string}-${string}-${string}`; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle) + */ + readonly subtle: SubtleCrypto; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */ + getRandomValues(array: T): T; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID) + */ + randomUUID(): `${string}-${string}-${string}-${string}-${string}`; } declare var Crypto: { - prototype: Crypto; - new(): Crypto; + prototype: Crypto; + new (): Crypto; }; /** @@ -6337,69 +6876,81 @@ declare var Crypto: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey) */ interface CryptoKey { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm) */ - readonly algorithm: KeyAlgorithm; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable) */ - readonly extractable: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type) */ - readonly type: KeyType; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages) */ - readonly usages: KeyUsage[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm) */ + readonly algorithm: KeyAlgorithm; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable) */ + readonly extractable: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type) */ + readonly type: KeyType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages) */ + readonly usages: KeyUsage[]; } declare var CryptoKey: { - prototype: CryptoKey; - new(): CryptoKey; + prototype: CryptoKey; + new (): CryptoKey; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry) */ interface CustomElementRegistry { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/define) */ - define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/get) */ - get(name: string): CustomElementConstructor | undefined; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName) */ - getName(constructor: CustomElementConstructor): string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/upgrade) */ - upgrade(root: Node): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/whenDefined) */ - whenDefined(name: string): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/define) */ + define( + name: string, + constructor: CustomElementConstructor, + options?: ElementDefinitionOptions, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/get) */ + get(name: string): CustomElementConstructor | undefined; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName) */ + getName(constructor: CustomElementConstructor): string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/upgrade) */ + upgrade(root: Node): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/whenDefined) */ + whenDefined(name: string): Promise; } declare var CustomElementRegistry: { - prototype: CustomElementRegistry; - new(): CustomElementRegistry; + prototype: CustomElementRegistry; + new (): CustomElementRegistry; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */ interface CustomEvent extends Event { - /** - * Returns any custom data event was created with. Typically used for synthetic events. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail) - */ - readonly detail: T; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/initCustomEvent) - */ - initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void; + /** + * Returns any custom data event was created with. Typically used for synthetic events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail) + */ + readonly detail: T; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/initCustomEvent) + */ + initCustomEvent( + type: string, + bubbles?: boolean, + cancelable?: boolean, + detail?: T, + ): void; } declare var CustomEvent: { - prototype: CustomEvent; - new(type: string, eventInitDict?: CustomEventInit): CustomEvent; + prototype: CustomEvent; + new (type: string, eventInitDict?: CustomEventInit): CustomEvent; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomStateSet) */ interface CustomStateSet { - forEach(callbackfn: (value: string, key: string, parent: CustomStateSet) => void, thisArg?: any): void; + forEach( + callbackfn: (value: string, key: string, parent: CustomStateSet) => void, + thisArg?: any, + ): void; } declare var CustomStateSet: { - prototype: CustomStateSet; - new(): CustomStateSet; + prototype: CustomStateSet; + new (): CustomStateSet; }; /** @@ -6408,71 +6959,71 @@ declare var CustomStateSet: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException) */ interface DOMException extends Error { - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code) - */ - readonly code: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */ - readonly message: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) */ - readonly name: string; - readonly INDEX_SIZE_ERR: 1; - readonly DOMSTRING_SIZE_ERR: 2; - readonly HIERARCHY_REQUEST_ERR: 3; - readonly WRONG_DOCUMENT_ERR: 4; - readonly INVALID_CHARACTER_ERR: 5; - readonly NO_DATA_ALLOWED_ERR: 6; - readonly NO_MODIFICATION_ALLOWED_ERR: 7; - readonly NOT_FOUND_ERR: 8; - readonly NOT_SUPPORTED_ERR: 9; - readonly INUSE_ATTRIBUTE_ERR: 10; - readonly INVALID_STATE_ERR: 11; - readonly SYNTAX_ERR: 12; - readonly INVALID_MODIFICATION_ERR: 13; - readonly NAMESPACE_ERR: 14; - readonly INVALID_ACCESS_ERR: 15; - readonly VALIDATION_ERR: 16; - readonly TYPE_MISMATCH_ERR: 17; - readonly SECURITY_ERR: 18; - readonly NETWORK_ERR: 19; - readonly ABORT_ERR: 20; - readonly URL_MISMATCH_ERR: 21; - readonly QUOTA_EXCEEDED_ERR: 22; - readonly TIMEOUT_ERR: 23; - readonly INVALID_NODE_TYPE_ERR: 24; - readonly DATA_CLONE_ERR: 25; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code) + */ + readonly code: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */ + readonly message: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) */ + readonly name: string; + readonly INDEX_SIZE_ERR: 1; + readonly DOMSTRING_SIZE_ERR: 2; + readonly HIERARCHY_REQUEST_ERR: 3; + readonly WRONG_DOCUMENT_ERR: 4; + readonly INVALID_CHARACTER_ERR: 5; + readonly NO_DATA_ALLOWED_ERR: 6; + readonly NO_MODIFICATION_ALLOWED_ERR: 7; + readonly NOT_FOUND_ERR: 8; + readonly NOT_SUPPORTED_ERR: 9; + readonly INUSE_ATTRIBUTE_ERR: 10; + readonly INVALID_STATE_ERR: 11; + readonly SYNTAX_ERR: 12; + readonly INVALID_MODIFICATION_ERR: 13; + readonly NAMESPACE_ERR: 14; + readonly INVALID_ACCESS_ERR: 15; + readonly VALIDATION_ERR: 16; + readonly TYPE_MISMATCH_ERR: 17; + readonly SECURITY_ERR: 18; + readonly NETWORK_ERR: 19; + readonly ABORT_ERR: 20; + readonly URL_MISMATCH_ERR: 21; + readonly QUOTA_EXCEEDED_ERR: 22; + readonly TIMEOUT_ERR: 23; + readonly INVALID_NODE_TYPE_ERR: 24; + readonly DATA_CLONE_ERR: 25; } declare var DOMException: { - prototype: DOMException; - new(message?: string, name?: string): DOMException; - readonly INDEX_SIZE_ERR: 1; - readonly DOMSTRING_SIZE_ERR: 2; - readonly HIERARCHY_REQUEST_ERR: 3; - readonly WRONG_DOCUMENT_ERR: 4; - readonly INVALID_CHARACTER_ERR: 5; - readonly NO_DATA_ALLOWED_ERR: 6; - readonly NO_MODIFICATION_ALLOWED_ERR: 7; - readonly NOT_FOUND_ERR: 8; - readonly NOT_SUPPORTED_ERR: 9; - readonly INUSE_ATTRIBUTE_ERR: 10; - readonly INVALID_STATE_ERR: 11; - readonly SYNTAX_ERR: 12; - readonly INVALID_MODIFICATION_ERR: 13; - readonly NAMESPACE_ERR: 14; - readonly INVALID_ACCESS_ERR: 15; - readonly VALIDATION_ERR: 16; - readonly TYPE_MISMATCH_ERR: 17; - readonly SECURITY_ERR: 18; - readonly NETWORK_ERR: 19; - readonly ABORT_ERR: 20; - readonly URL_MISMATCH_ERR: 21; - readonly QUOTA_EXCEEDED_ERR: 22; - readonly TIMEOUT_ERR: 23; - readonly INVALID_NODE_TYPE_ERR: 24; - readonly DATA_CLONE_ERR: 25; + prototype: DOMException; + new (message?: string, name?: string): DOMException; + readonly INDEX_SIZE_ERR: 1; + readonly DOMSTRING_SIZE_ERR: 2; + readonly HIERARCHY_REQUEST_ERR: 3; + readonly WRONG_DOCUMENT_ERR: 4; + readonly INVALID_CHARACTER_ERR: 5; + readonly NO_DATA_ALLOWED_ERR: 6; + readonly NO_MODIFICATION_ALLOWED_ERR: 7; + readonly NOT_FOUND_ERR: 8; + readonly NOT_SUPPORTED_ERR: 9; + readonly INUSE_ATTRIBUTE_ERR: 10; + readonly INVALID_STATE_ERR: 11; + readonly SYNTAX_ERR: 12; + readonly INVALID_MODIFICATION_ERR: 13; + readonly NAMESPACE_ERR: 14; + readonly INVALID_ACCESS_ERR: 15; + readonly VALIDATION_ERR: 16; + readonly TYPE_MISMATCH_ERR: 17; + readonly SECURITY_ERR: 18; + readonly NETWORK_ERR: 19; + readonly ABORT_ERR: 20; + readonly URL_MISMATCH_ERR: 21; + readonly QUOTA_EXCEEDED_ERR: 22; + readonly TIMEOUT_ERR: 23; + readonly INVALID_NODE_TYPE_ERR: 24; + readonly DATA_CLONE_ERR: 25; }; /** @@ -6481,91 +7032,116 @@ declare var DOMException: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation) */ interface DOMImplementation { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocument) */ - createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocumentType) */ - createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createHTMLDocument) */ - createHTMLDocument(title?: string): Document; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/hasFeature) - */ - hasFeature(...args: any[]): true; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocument) */ + createDocument( + namespace: string | null, + qualifiedName: string | null, + doctype?: DocumentType | null, + ): XMLDocument; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocumentType) */ + createDocumentType( + qualifiedName: string, + publicId: string, + systemId: string, + ): DocumentType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createHTMLDocument) */ + createHTMLDocument(title?: string): Document; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/hasFeature) + */ + hasFeature(...args: any[]): true; } declare var DOMImplementation: { - prototype: DOMImplementation; - new(): DOMImplementation; + prototype: DOMImplementation; + new (): DOMImplementation; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix) */ interface DOMMatrix extends DOMMatrixReadOnly { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ - a: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ - b: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ - c: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ - d: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ - e: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ - f: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ - m11: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ - m12: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ - m13: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ - m14: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ - m21: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ - m22: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ - m23: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ - m24: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ - m31: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ - m32: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ - m33: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ - m34: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ - m41: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ - m42: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ - m43: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ - m44: number; - invertSelf(): DOMMatrix; - multiplySelf(other?: DOMMatrixInit): DOMMatrix; - preMultiplySelf(other?: DOMMatrixInit): DOMMatrix; - rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; - rotateFromVectorSelf(x?: number, y?: number): DOMMatrix; - rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; - scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; - scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; - setMatrixValue(transformList: string): DOMMatrix; - skewXSelf(sx?: number): DOMMatrix; - skewYSelf(sy?: number): DOMMatrix; - translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ + a: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ + b: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ + c: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ + d: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ + e: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ + f: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ + m11: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ + m12: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ + m13: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ + m14: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ + m21: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ + m22: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ + m23: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ + m24: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ + m31: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ + m32: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ + m33: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ + m34: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ + m41: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ + m42: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ + m43: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ + m44: number; + invertSelf(): DOMMatrix; + multiplySelf(other?: DOMMatrixInit): DOMMatrix; + preMultiplySelf(other?: DOMMatrixInit): DOMMatrix; + rotateAxisAngleSelf( + x?: number, + y?: number, + z?: number, + angle?: number, + ): DOMMatrix; + rotateFromVectorSelf(x?: number, y?: number): DOMMatrix; + rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; + scale3dSelf( + scale?: number, + originX?: number, + originY?: number, + originZ?: number, + ): DOMMatrix; + scaleSelf( + scaleX?: number, + scaleY?: number, + scaleZ?: number, + originX?: number, + originY?: number, + originZ?: number, + ): DOMMatrix; + setMatrixValue(transformList: string): DOMMatrix; + skewXSelf(sx?: number): DOMMatrix; + skewYSelf(sy?: number): DOMMatrix; + translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix; } declare var DOMMatrix: { - prototype: DOMMatrix; - new(init?: string | number[]): DOMMatrix; - fromFloat32Array(array32: Float32Array): DOMMatrix; - fromFloat64Array(array64: Float64Array): DOMMatrix; - fromMatrix(other?: DOMMatrixInit): DOMMatrix; + prototype: DOMMatrix; + new (init?: string | number[]): DOMMatrix; + fromFloat32Array(array32: Float32Array): DOMMatrix; + fromFloat64Array(array64: Float64Array): DOMMatrix; + fromMatrix(other?: DOMMatrixInit): DOMMatrix; }; type SVGMatrix = DOMMatrix; @@ -6576,82 +7152,99 @@ declare var WebKitCSSMatrix: typeof DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly) */ interface DOMMatrixReadOnly { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ - readonly a: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ - readonly b: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ - readonly c: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ - readonly d: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ - readonly e: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ - readonly f: number; - readonly is2D: boolean; - readonly isIdentity: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ - readonly m11: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ - readonly m12: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ - readonly m13: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ - readonly m14: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ - readonly m21: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ - readonly m22: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ - readonly m23: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ - readonly m24: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ - readonly m31: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ - readonly m32: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ - readonly m33: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ - readonly m34: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ - readonly m41: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ - readonly m42: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ - readonly m43: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ - readonly m44: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) */ - flipX(): DOMMatrix; - flipY(): DOMMatrix; - inverse(): DOMMatrix; - multiply(other?: DOMMatrixInit): DOMMatrix; - rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; - rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; - rotateFromVector(x?: number, y?: number): DOMMatrix; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale) */ - scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; - scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; - /** @deprecated */ - scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix; - skewX(sx?: number): DOMMatrix; - skewY(sy?: number): DOMMatrix; - toFloat32Array(): Float32Array; - toFloat64Array(): Float64Array; - toJSON(): any; - transformPoint(point?: DOMPointInit): DOMPoint; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate) */ - translate(tx?: number, ty?: number, tz?: number): DOMMatrix; - toString(): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + readonly a: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + readonly b: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + readonly c: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + readonly d: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + readonly e: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + readonly f: number; + readonly is2D: boolean; + readonly isIdentity: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + readonly m11: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + readonly m12: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + readonly m13: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + readonly m14: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + readonly m21: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + readonly m22: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + readonly m23: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + readonly m24: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + readonly m31: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + readonly m32: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + readonly m33: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + readonly m34: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + readonly m41: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + readonly m42: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + readonly m43: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + readonly m44: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) */ + flipX(): DOMMatrix; + flipY(): DOMMatrix; + inverse(): DOMMatrix; + multiply(other?: DOMMatrixInit): DOMMatrix; + rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; + rotateAxisAngle( + x?: number, + y?: number, + z?: number, + angle?: number, + ): DOMMatrix; + rotateFromVector(x?: number, y?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale) */ + scale( + scaleX?: number, + scaleY?: number, + scaleZ?: number, + originX?: number, + originY?: number, + originZ?: number, + ): DOMMatrix; + scale3d( + scale?: number, + originX?: number, + originY?: number, + originZ?: number, + ): DOMMatrix; + /** @deprecated */ + scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix; + skewX(sx?: number): DOMMatrix; + skewY(sy?: number): DOMMatrix; + toFloat32Array(): Float32Array; + toFloat64Array(): Float64Array; + toJSON(): any; + transformPoint(point?: DOMPointInit): DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate) */ + translate(tx?: number, ty?: number, tz?: number): DOMMatrix; + toString(): string; } declare var DOMMatrixReadOnly: { - prototype: DOMMatrixReadOnly; - new(init?: string | number[]): DOMMatrixReadOnly; - fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly; - fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly; - fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly; + prototype: DOMMatrixReadOnly; + new (init?: string | number[]): DOMMatrixReadOnly; + fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly; + fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly; + fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly; }; /** @@ -6660,42 +7253,42 @@ declare var DOMMatrixReadOnly: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser) */ interface DOMParser { - /** - * Parses string using either the HTML or XML parser, according to type, and returns the resulting Document. type can be "text/html" (which will invoke the HTML parser), or any of "text/xml", "application/xml", "application/xhtml+xml", or "image/svg+xml" (which will invoke the XML parser). - * - * For the XML parser, if string cannot be parsed, then the returned Document will contain elements describing the resulting error. - * - * Note that script elements are not evaluated during parsing, and the resulting document's encoding will always be UTF-8. - * - * Values other than the above for type will cause a TypeError exception to be thrown. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser/parseFromString) - */ - parseFromString(string: string, type: DOMParserSupportedType): Document; + /** + * Parses string using either the HTML or XML parser, according to type, and returns the resulting Document. type can be "text/html" (which will invoke the HTML parser), or any of "text/xml", "application/xml", "application/xhtml+xml", or "image/svg+xml" (which will invoke the XML parser). + * + * For the XML parser, if string cannot be parsed, then the returned Document will contain elements describing the resulting error. + * + * Note that script elements are not evaluated during parsing, and the resulting document's encoding will always be UTF-8. + * + * Values other than the above for type will cause a TypeError exception to be thrown. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser/parseFromString) + */ + parseFromString(string: string, type: DOMParserSupportedType): Document; } declare var DOMParser: { - prototype: DOMParser; - new(): DOMParser; + prototype: DOMParser; + new (): DOMParser; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint) */ interface DOMPoint extends DOMPointReadOnly { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/w) */ - w: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/x) */ - x: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/y) */ - y: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/z) */ - z: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/w) */ + w: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/x) */ + x: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/y) */ + y: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/z) */ + z: number; } declare var DOMPoint: { - prototype: DOMPoint; - new(x?: number, y?: number, z?: number, w?: number): DOMPoint; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static) */ - fromPoint(other?: DOMPointInit): DOMPoint; + prototype: DOMPoint; + new (x?: number, y?: number, z?: number, w?: number): DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static) */ + fromPoint(other?: DOMPointInit): DOMPoint; }; type SVGPoint = DOMPoint; @@ -6703,98 +7296,108 @@ declare var SVGPoint: typeof DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly) */ interface DOMPointReadOnly { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w) */ - readonly w: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x) */ - readonly x: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ - readonly y: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z) */ - readonly z: number; - matrixTransform(matrix?: DOMMatrixInit): DOMPoint; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */ - toJSON(): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w) */ + readonly w: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x) */ + readonly x: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ + readonly y: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z) */ + readonly z: number; + matrixTransform(matrix?: DOMMatrixInit): DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */ + toJSON(): any; } declare var DOMPointReadOnly: { - prototype: DOMPointReadOnly; - new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static) */ - fromPoint(other?: DOMPointInit): DOMPointReadOnly; + prototype: DOMPointReadOnly; + new (x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static) */ + fromPoint(other?: DOMPointInit): DOMPointReadOnly; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad) */ interface DOMQuad { - readonly p1: DOMPoint; - readonly p2: DOMPoint; - readonly p3: DOMPoint; - readonly p4: DOMPoint; - getBounds(): DOMRect; - toJSON(): any; + readonly p1: DOMPoint; + readonly p2: DOMPoint; + readonly p3: DOMPoint; + readonly p4: DOMPoint; + getBounds(): DOMRect; + toJSON(): any; } declare var DOMQuad: { - prototype: DOMQuad; - new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad; - fromQuad(other?: DOMQuadInit): DOMQuad; - fromRect(other?: DOMRectInit): DOMQuad; + prototype: DOMQuad; + new ( + p1?: DOMPointInit, + p2?: DOMPointInit, + p3?: DOMPointInit, + p4?: DOMPointInit, + ): DOMQuad; + fromQuad(other?: DOMQuadInit): DOMQuad; + fromRect(other?: DOMRectInit): DOMQuad; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect) */ interface DOMRect extends DOMRectReadOnly { - height: number; - width: number; - x: number; - y: number; + height: number; + width: number; + x: number; + y: number; } declare var DOMRect: { - prototype: DOMRect; - new(x?: number, y?: number, width?: number, height?: number): DOMRect; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/fromRect_static) */ - fromRect(other?: DOMRectInit): DOMRect; + prototype: DOMRect; + new (x?: number, y?: number, width?: number, height?: number): DOMRect; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/fromRect_static) */ + fromRect(other?: DOMRectInit): DOMRect; }; type SVGRect = DOMRect; declare var SVGRect: typeof DOMRect; interface DOMRectList { - readonly length: number; - item(index: number): DOMRect | null; - [index: number]: DOMRect; + readonly length: number; + item(index: number): DOMRect | null; + [index: number]: DOMRect; } declare var DOMRectList: { - prototype: DOMRectList; - new(): DOMRectList; + prototype: DOMRectList; + new (): DOMRectList; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly) */ interface DOMRectReadOnly { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom) */ - readonly bottom: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height) */ - readonly height: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left) */ - readonly left: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right) */ - readonly right: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top) */ - readonly top: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width) */ - readonly width: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x) */ - readonly x: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) */ - readonly y: number; - toJSON(): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom) */ + readonly bottom: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height) */ + readonly height: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left) */ + readonly left: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right) */ + readonly right: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top) */ + readonly top: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width) */ + readonly width: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x) */ + readonly x: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) */ + readonly y: number; + toJSON(): any; } declare var DOMRectReadOnly: { - prototype: DOMRectReadOnly; - new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static) */ - fromRect(other?: DOMRectInit): DOMRectReadOnly; + prototype: DOMRectReadOnly; + new ( + x?: number, + y?: number, + width?: number, + height?: number, + ): DOMRectReadOnly; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static) */ + fromRect(other?: DOMRectInit): DOMRectReadOnly; }; /** @@ -6803,30 +7406,30 @@ declare var DOMRectReadOnly: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList) */ interface DOMStringList { - /** - * Returns the number of strings in strings. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/length) - */ - readonly length: number; - /** - * Returns true if strings contains string, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains) - */ - contains(string: string): boolean; - /** - * Returns the string with index index from strings. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/item) - */ - item(index: number): string | null; - [index: number]: string; + /** + * Returns the number of strings in strings. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/length) + */ + readonly length: number; + /** + * Returns true if strings contains string, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains) + */ + contains(string: string): boolean; + /** + * Returns the string with index index from strings. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/item) + */ + item(index: number): string | null; + [index: number]: string; } declare var DOMStringList: { - prototype: DOMStringList; - new(): DOMStringList; + prototype: DOMStringList; + new (): DOMStringList; }; /** @@ -6835,12 +7438,12 @@ declare var DOMStringList: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringMap) */ interface DOMStringMap { - [name: string]: string | undefined; + [name: string]: string | undefined; } declare var DOMStringMap: { - prototype: DOMStringMap; - new(): DOMStringMap; + prototype: DOMStringMap; + new (): DOMStringMap; }; /** @@ -6849,92 +7452,95 @@ declare var DOMStringMap: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList) */ interface DOMTokenList { - /** - * Returns the number of tokens. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/length) - */ - readonly length: number; - /** - * Returns the associated set as string. - * - * Can be set, to change the associated attribute. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/value) - */ - value: string; - toString(): string; - /** - * Adds all arguments passed, except those already present. - * - * Throws a "SyntaxError" DOMException if one of the arguments is the empty string. - * - * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/add) - */ - add(...tokens: string[]): void; - /** - * Returns true if token is present, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/contains) - */ - contains(token: string): boolean; - /** - * Returns the token with index index. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/item) - */ - item(index: number): string | null; - /** - * Removes arguments passed, if they are present. - * - * Throws a "SyntaxError" DOMException if one of the arguments is the empty string. - * - * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/remove) - */ - remove(...tokens: string[]): void; - /** - * Replaces token with newToken. - * - * Returns true if token was replaced with newToken, and false otherwise. - * - * Throws a "SyntaxError" DOMException if one of the arguments is the empty string. - * - * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/replace) - */ - replace(token: string, newToken: string): boolean; - /** - * Returns true if token is in the associated attribute's supported tokens. Returns false otherwise. - * - * Throws a TypeError if the associated attribute has no supported tokens defined. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/supports) - */ - supports(token: string): boolean; - /** - * If force is not given, "toggles" token, removing it if it's present and adding it if it's not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()). - * - * Returns true if token is now present, and false otherwise. - * - * Throws a "SyntaxError" DOMException if token is empty. - * - * Throws an "InvalidCharacterError" DOMException if token contains any spaces. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/toggle) - */ - toggle(token: string, force?: boolean): boolean; - forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void; - [index: number]: string; + /** + * Returns the number of tokens. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/length) + */ + readonly length: number; + /** + * Returns the associated set as string. + * + * Can be set, to change the associated attribute. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/value) + */ + value: string; + toString(): string; + /** + * Adds all arguments passed, except those already present. + * + * Throws a "SyntaxError" DOMException if one of the arguments is the empty string. + * + * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/add) + */ + add(...tokens: string[]): void; + /** + * Returns true if token is present, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/contains) + */ + contains(token: string): boolean; + /** + * Returns the token with index index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/item) + */ + item(index: number): string | null; + /** + * Removes arguments passed, if they are present. + * + * Throws a "SyntaxError" DOMException if one of the arguments is the empty string. + * + * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/remove) + */ + remove(...tokens: string[]): void; + /** + * Replaces token with newToken. + * + * Returns true if token was replaced with newToken, and false otherwise. + * + * Throws a "SyntaxError" DOMException if one of the arguments is the empty string. + * + * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/replace) + */ + replace(token: string, newToken: string): boolean; + /** + * Returns true if token is in the associated attribute's supported tokens. Returns false otherwise. + * + * Throws a TypeError if the associated attribute has no supported tokens defined. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/supports) + */ + supports(token: string): boolean; + /** + * If force is not given, "toggles" token, removing it if it's present and adding it if it's not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()). + * + * Returns true if token is now present, and false otherwise. + * + * Throws a "SyntaxError" DOMException if token is empty. + * + * Throws an "InvalidCharacterError" DOMException if token contains any spaces. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/toggle) + */ + toggle(token: string, force?: boolean): boolean; + forEach( + callbackfn: (value: string, key: number, parent: DOMTokenList) => void, + thisArg?: any, + ): void; + [index: number]: string; } declare var DOMTokenList: { - prototype: DOMTokenList; - new(): DOMTokenList; + prototype: DOMTokenList; + new (): DOMTokenList; }; /** @@ -6943,73 +7549,82 @@ declare var DOMTokenList: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer) */ interface DataTransfer { - /** - * Returns the kind of operation that is currently selected. If the kind of operation isn't one of those that is allowed by the effectAllowed attribute, then the operation will fail. - * - * Can be set, to change the selected operation. - * - * The possible values are "none", "copy", "link", and "move". - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/dropEffect) - */ - dropEffect: "none" | "copy" | "link" | "move"; - /** - * Returns the kinds of operations that are to be allowed. - * - * Can be set (during the dragstart event), to change the allowed operations. - * - * The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized", - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/effectAllowed) - */ - effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized"; - /** - * Returns a FileList of the files being dragged, if any. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/files) - */ - readonly files: FileList; - /** - * Returns a DataTransferItemList object, with the drag data. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/items) - */ - readonly items: DataTransferItemList; - /** - * Returns a frozen array listing the formats that were set in the dragstart event. In addition, if any files are being dragged, then one of the types will be the string "Files". - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/types) - */ - readonly types: ReadonlyArray; - /** - * Removes the data of the specified formats. Removes all data if the argument is omitted. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/clearData) - */ - clearData(format?: string): void; - /** - * Returns the specified data. If there is no such data, returns the empty string. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/getData) - */ - getData(format: string): string; - /** - * Adds the specified data. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setData) - */ - setData(format: string, data: string): void; - /** - * Uses the given element to update the drag feedback, replacing any previously specified feedback. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setDragImage) - */ - setDragImage(image: Element, x: number, y: number): void; + /** + * Returns the kind of operation that is currently selected. If the kind of operation isn't one of those that is allowed by the effectAllowed attribute, then the operation will fail. + * + * Can be set, to change the selected operation. + * + * The possible values are "none", "copy", "link", and "move". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/dropEffect) + */ + dropEffect: "none" | "copy" | "link" | "move"; + /** + * Returns the kinds of operations that are to be allowed. + * + * Can be set (during the dragstart event), to change the allowed operations. + * + * The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized", + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/effectAllowed) + */ + effectAllowed: + | "none" + | "copy" + | "copyLink" + | "copyMove" + | "link" + | "linkMove" + | "move" + | "all" + | "uninitialized"; + /** + * Returns a FileList of the files being dragged, if any. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/files) + */ + readonly files: FileList; + /** + * Returns a DataTransferItemList object, with the drag data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/items) + */ + readonly items: DataTransferItemList; + /** + * Returns a frozen array listing the formats that were set in the dragstart event. In addition, if any files are being dragged, then one of the types will be the string "Files". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/types) + */ + readonly types: ReadonlyArray; + /** + * Removes the data of the specified formats. Removes all data if the argument is omitted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/clearData) + */ + clearData(format?: string): void; + /** + * Returns the specified data. If there is no such data, returns the empty string. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/getData) + */ + getData(format: string): string; + /** + * Adds the specified data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setData) + */ + setData(format: string, data: string): void; + /** + * Uses the given element to update the drag feedback, replacing any previously specified feedback. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setDragImage) + */ + setDragImage(image: Element, x: number, y: number): void; } declare var DataTransfer: { - prototype: DataTransfer; - new(): DataTransfer; + prototype: DataTransfer; + new (): DataTransfer; }; /** @@ -7018,37 +7633,37 @@ declare var DataTransfer: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem) */ interface DataTransferItem { - /** - * Returns the drag data item kind, one of: "string", "file". - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/kind) - */ - readonly kind: string; - /** - * Returns the drag data item type string. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/type) - */ - readonly type: string; - /** - * Returns a File object, if the drag data item kind is File. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsFile) - */ - getAsFile(): File | null; - /** - * Invokes the callback with the string data as the argument, if the drag data item kind is text. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsString) - */ - getAsString(callback: FunctionStringCallback | null): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/webkitGetAsEntry) */ - webkitGetAsEntry(): FileSystemEntry | null; + /** + * Returns the drag data item kind, one of: "string", "file". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/kind) + */ + readonly kind: string; + /** + * Returns the drag data item type string. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/type) + */ + readonly type: string; + /** + * Returns a File object, if the drag data item kind is File. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsFile) + */ + getAsFile(): File | null; + /** + * Invokes the callback with the string data as the argument, if the drag data item kind is text. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsString) + */ + getAsString(callback: FunctionStringCallback | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/webkitGetAsEntry) */ + webkitGetAsEntry(): FileSystemEntry | null; } declare var DataTransferItem: { - prototype: DataTransferItem; - new(): DataTransferItem; + prototype: DataTransferItem; + new (): DataTransferItem; }; /** @@ -7057,48 +7672,48 @@ declare var DataTransferItem: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList) */ interface DataTransferItemList { - /** - * Returns the number of items in the drag data store. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/length) - */ - readonly length: number; - /** - * Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/add) - */ - add(data: string, type: string): DataTransferItem | null; - add(data: File): DataTransferItem | null; - /** - * Removes all the entries in the drag data store. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/clear) - */ - clear(): void; - /** - * Removes the indexth entry in the drag data store. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/remove) - */ - remove(index: number): void; - [index: number]: DataTransferItem; + /** + * Returns the number of items in the drag data store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/length) + */ + readonly length: number; + /** + * Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/add) + */ + add(data: string, type: string): DataTransferItem | null; + add(data: File): DataTransferItem | null; + /** + * Removes all the entries in the drag data store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/clear) + */ + clear(): void; + /** + * Removes the indexth entry in the drag data store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/remove) + */ + remove(index: number): void; + [index: number]: DataTransferItem; } declare var DataTransferItemList: { - prototype: DataTransferItemList; - new(): DataTransferItemList; + prototype: DataTransferItemList; + new (): DataTransferItemList; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */ interface DecompressionStream extends GenericTransformStream { - readonly readable: ReadableStream; - readonly writable: WritableStream; + readonly readable: ReadableStream; + readonly writable: WritableStream; } declare var DecompressionStream: { - prototype: DecompressionStream; - new(format: CompressionFormat): DecompressionStream; + prototype: DecompressionStream; + new (format: CompressionFormat): DecompressionStream; }; /** @@ -7107,13 +7722,13 @@ declare var DecompressionStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode) */ interface DelayNode extends AudioNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode/delayTime) */ - readonly delayTime: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode/delayTime) */ + readonly delayTime: AudioParam; } declare var DelayNode: { - prototype: DelayNode; - new(context: BaseAudioContext, options?: DelayOptions): DelayNode; + prototype: DelayNode; + new (context: BaseAudioContext, options?: DelayOptions): DelayNode; }; /** @@ -7123,19 +7738,19 @@ declare var DelayNode: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent) */ interface DeviceMotionEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/acceleration) */ - readonly acceleration: DeviceMotionEventAcceleration | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/accelerationIncludingGravity) */ - readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/interval) */ - readonly interval: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/rotationRate) */ - readonly rotationRate: DeviceMotionEventRotationRate | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/acceleration) */ + readonly acceleration: DeviceMotionEventAcceleration | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/accelerationIncludingGravity) */ + readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/interval) */ + readonly interval: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/rotationRate) */ + readonly rotationRate: DeviceMotionEventRotationRate | null; } declare var DeviceMotionEvent: { - prototype: DeviceMotionEvent; - new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; + prototype: DeviceMotionEvent; + new (type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; }; /** @@ -7144,12 +7759,12 @@ declare var DeviceMotionEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration) */ interface DeviceMotionEventAcceleration { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/x) */ - readonly x: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/y) */ - readonly y: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/z) */ - readonly z: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/x) */ + readonly x: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/y) */ + readonly y: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/z) */ + readonly z: number | null; } /** @@ -7158,12 +7773,12 @@ interface DeviceMotionEventAcceleration { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate) */ interface DeviceMotionEventRotationRate { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/alpha) */ - readonly alpha: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/beta) */ - readonly beta: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/gamma) */ - readonly gamma: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/alpha) */ + readonly alpha: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/beta) */ + readonly beta: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/gamma) */ + readonly gamma: number | null; } /** @@ -7173,29 +7788,32 @@ interface DeviceMotionEventRotationRate { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent) */ interface DeviceOrientationEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/absolute) */ - readonly absolute: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/alpha) */ - readonly alpha: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/beta) */ - readonly beta: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/gamma) */ - readonly gamma: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/absolute) */ + readonly absolute: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/alpha) */ + readonly alpha: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/beta) */ + readonly beta: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/gamma) */ + readonly gamma: number | null; } declare var DeviceOrientationEvent: { - prototype: DeviceOrientationEvent; - new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent; + prototype: DeviceOrientationEvent; + new ( + type: string, + eventInitDict?: DeviceOrientationEventInit, + ): DeviceOrientationEvent; }; interface DocumentEventMap extends GlobalEventHandlersEventMap { - "DOMContentLoaded": Event; - "fullscreenchange": Event; - "fullscreenerror": Event; - "pointerlockchange": Event; - "pointerlockerror": Event; - "readystatechange": Event; - "visibilitychange": Event; + DOMContentLoaded: Event; + fullscreenchange: Event; + fullscreenerror: Event; + pointerlockchange: Event; + pointerlockerror: Event; + readystatechange: Event; + visibilitychange: Event; } /** @@ -7203,649 +7821,755 @@ interface DocumentEventMap extends GlobalEventHandlersEventMap { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document) */ -interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase { - /** - * Sets or gets the URL for the current document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/URL) - */ - readonly URL: string; - /** - * Sets or gets the color of all active links in the document. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/alinkColor) - */ - alinkColor: string; - /** - * Returns a reference to the collection of elements contained by the object. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/all) - */ - readonly all: HTMLAllCollection; - /** - * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/anchors) - */ - readonly anchors: HTMLCollectionOf; - /** - * Retrieves a collection of all applet objects in the document. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/applets) - */ - readonly applets: HTMLCollection; - /** - * Deprecated. Sets or retrieves a value that indicates the background color behind the object. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/bgColor) - */ - bgColor: string; - /** - * Specifies the beginning and end of the document body. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/body) - */ - body: HTMLElement; - /** - * Returns document's encoding. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) - */ - readonly characterSet: string; - /** - * Gets or sets the character set used to encode the object. - * @deprecated This is a legacy alias of `characterSet`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) - */ - readonly charset: string; - /** - * Gets a value that indicates whether standards-compliant mode is switched on for the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/compatMode) - */ - readonly compatMode: string; - /** - * Returns document's content type. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/contentType) - */ - readonly contentType: string; - /** - * Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned. - * - * Can be set, to add a new cookie to the element's set of HTTP cookies. - * - * If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/cookie) - */ - cookie: string; - /** - * Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing. - * - * Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/currentScript) - */ - readonly currentScript: HTMLOrSVGScriptElement | null; - /** - * Returns the Window object of the active document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/defaultView) - */ - readonly defaultView: (WindowProxy & typeof globalThis) | null; - /** - * Sets or gets a value that indicates whether the document can be edited. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/designMode) - */ - designMode: string; - /** - * Sets or retrieves a value that indicates the reading order of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/dir) - */ - dir: string; - /** - * Gets an object representing the document type declaration associated with the current document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/doctype) - */ - readonly doctype: DocumentType | null; - /** - * Gets a reference to the root node of the document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentElement) - */ - readonly documentElement: HTMLElement; - /** - * Returns document's URL. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentURI) - */ - readonly documentURI: string; - /** - * Sets or gets the security domain of the document. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/domain) - */ - domain: string; - /** - * Retrieves a collection of all embed objects in the document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/embeds) - */ - readonly embeds: HTMLCollectionOf; - /** - * Sets or gets the foreground (text) color of the document. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fgColor) - */ - fgColor: string; - /** - * Retrieves a collection, in source order, of all form objects in the document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/forms) - */ - readonly forms: HTMLCollectionOf; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fragmentDirective) */ - readonly fragmentDirective: FragmentDirective; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreen) - */ - readonly fullscreen: boolean; - /** - * Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenEnabled) - */ - readonly fullscreenEnabled: boolean; - /** - * Returns the head element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/head) - */ - readonly head: HTMLHeadElement; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hidden) */ - readonly hidden: boolean; - /** - * Retrieves a collection, in source order, of img objects in the document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/images) - */ - readonly images: HTMLCollectionOf; - /** - * Gets the implementation object of the current document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/implementation) - */ - readonly implementation: DOMImplementation; - /** - * Returns the character encoding used to create the webpage that is loaded into the document object. - * @deprecated This is a legacy alias of `characterSet`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) - */ - readonly inputEncoding: string; - /** - * Gets the date that the page was last modified, if the page supplies one. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lastModified) - */ - readonly lastModified: string; - /** - * Sets or gets the color of the document links. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/linkColor) - */ - linkColor: string; - /** - * Retrieves a collection of all a objects that specify the href property and all area objects in the document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/links) - */ - readonly links: HTMLCollectionOf; - /** - * Contains information about the current URL. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/location) - */ - get location(): Location; - set location(href: string | Location); - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenchange_event) */ - onfullscreenchange: ((this: Document, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenerror_event) */ - onfullscreenerror: ((this: Document, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockchange_event) */ - onpointerlockchange: ((this: Document, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockerror_event) */ - onpointerlockerror: ((this: Document, ev: Event) => any) | null; - /** - * Fires when the state of the object has changed. - * @param ev The event - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readystatechange_event) - */ - onreadystatechange: ((this: Document, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilitychange_event) */ - onvisibilitychange: ((this: Document, ev: Event) => any) | null; - readonly ownerDocument: null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureEnabled) */ - readonly pictureInPictureEnabled: boolean; - /** - * Return an HTMLCollection of the embed elements in the Document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/plugins) - */ - readonly plugins: HTMLCollectionOf; - /** - * Retrieves a value that indicates the current state of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readyState) - */ - readonly readyState: DocumentReadyState; - /** - * Gets the URL of the location that referred the user to the current page. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/referrer) - */ - readonly referrer: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/rootElement) - */ - readonly rootElement: SVGSVGElement | null; - /** - * Retrieves a collection of all script objects in the document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scripts) - */ - readonly scripts: HTMLCollectionOf; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollingElement) */ - readonly scrollingElement: Element | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/timeline) */ - readonly timeline: DocumentTimeline; - /** - * Contains the title of the document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/title) - */ - title: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilityState) */ - readonly visibilityState: DocumentVisibilityState; - /** - * Sets or gets the color of the links that the user has visited. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/vlinkColor) - */ - vlinkColor: string; - /** - * Moves node from another document and returns it. - * - * If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptNode) - */ - adoptNode(node: T): T; - /** @deprecated */ - captureEvents(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/caretPositionFromPoint) */ - caretPositionFromPoint(x: number, y: number, options?: CaretPositionFromPointOptions): CaretPosition | null; - /** @deprecated */ - caretRangeFromPoint(x: number, y: number): Range | null; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/clear) - */ - clear(): void; - /** - * Closes an output stream and forces the sent data to display. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/close) - */ - close(): void; - /** - * Creates an attribute object with a specified name. - * @param name String that sets the attribute object's name. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttribute) - */ - createAttribute(localName: string): Attr; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttributeNS) */ - createAttributeNS(namespace: string | null, qualifiedName: string): Attr; - /** - * Returns a CDATASection node whose data is data. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createCDATASection) - */ - createCDATASection(data: string): CDATASection; - /** - * Creates a comment object with the specified data. - * @param data Sets the comment object's data. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createComment) - */ - createComment(data: string): Comment; - /** - * Creates a new document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createDocumentFragment) - */ - createDocumentFragment(): DocumentFragment; - /** - * Creates an instance of the element for the specified tag. - * @param tagName The name of an element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElement) - */ - createElement(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K]; - /** @deprecated */ - createElement(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K]; - createElement(tagName: string, options?: ElementCreationOptions): HTMLElement; - /** - * Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName. - * - * If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown. - * - * If one of the following conditions is true a "NamespaceError" DOMException will be thrown: - * - * localName does not match the QName production. - * Namespace prefix is not null and namespace is the empty string. - * Namespace prefix is "xml" and namespace is not the XML namespace. - * qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace. - * namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns". - * - * When supplied, options's is can be used to create a customized built-in element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElementNS) - */ - createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement; - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K]; - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement; - createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: K): MathMLElementTagNameMap[K]; - createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: string): MathMLElement; - createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element; - createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createEvent) */ - createEvent(eventInterface: "AnimationEvent"): AnimationEvent; - createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent; - createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent; - createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent; - createEvent(eventInterface: "BlobEvent"): BlobEvent; - createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent; - createEvent(eventInterface: "CloseEvent"): CloseEvent; - createEvent(eventInterface: "CompositionEvent"): CompositionEvent; - createEvent(eventInterface: "ContentVisibilityAutoStateChangeEvent"): ContentVisibilityAutoStateChangeEvent; - createEvent(eventInterface: "CustomEvent"): CustomEvent; - createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent; - createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent; - createEvent(eventInterface: "DragEvent"): DragEvent; - createEvent(eventInterface: "ErrorEvent"): ErrorEvent; - createEvent(eventInterface: "Event"): Event; - createEvent(eventInterface: "Events"): Event; - createEvent(eventInterface: "FocusEvent"): FocusEvent; - createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent; - createEvent(eventInterface: "FormDataEvent"): FormDataEvent; - createEvent(eventInterface: "GamepadEvent"): GamepadEvent; - createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent; - createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent; - createEvent(eventInterface: "InputEvent"): InputEvent; - createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent; - createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent; - createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent; - createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent; - createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent; - createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent; - createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent; - createEvent(eventInterface: "MessageEvent"): MessageEvent; - createEvent(eventInterface: "MouseEvent"): MouseEvent; - createEvent(eventInterface: "MouseEvents"): MouseEvent; - createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent; - createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent; - createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent; - createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent; - createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent; - createEvent(eventInterface: "PointerEvent"): PointerEvent; - createEvent(eventInterface: "PopStateEvent"): PopStateEvent; - createEvent(eventInterface: "ProgressEvent"): ProgressEvent; - createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent; - createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent; - createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent; - createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent; - createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent; - createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent; - createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent; - createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent; - createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent; - createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent; - createEvent(eventInterface: "StorageEvent"): StorageEvent; - createEvent(eventInterface: "SubmitEvent"): SubmitEvent; - createEvent(eventInterface: "TextEvent"): TextEvent; - createEvent(eventInterface: "ToggleEvent"): ToggleEvent; - createEvent(eventInterface: "TouchEvent"): TouchEvent; - createEvent(eventInterface: "TrackEvent"): TrackEvent; - createEvent(eventInterface: "TransitionEvent"): TransitionEvent; - createEvent(eventInterface: "UIEvent"): UIEvent; - createEvent(eventInterface: "UIEvents"): UIEvent; - createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent; - createEvent(eventInterface: "WheelEvent"): WheelEvent; - createEvent(eventInterface: string): Event; - /** - * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document. - * @param root The root element or node to start traversing on. - * @param whatToShow The type of nodes or elements to appear in the node list - * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createNodeIterator) - */ - createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator; - /** - * Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an "InvalidCharacterError" DOMException will be thrown. If data contains "?>" an "InvalidCharacterError" DOMException will be thrown. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createProcessingInstruction) - */ - createProcessingInstruction(target: string, data: string): ProcessingInstruction; - /** - * Returns an empty range object that has both of its boundary points positioned at the beginning of the document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createRange) - */ - createRange(): Range; - /** - * Creates a text string from the specified value. - * @param data String that specifies the nodeValue property of the text node. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTextNode) - */ - createTextNode(data: string): Text; - /** - * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document. - * @param root The root element or node to start traversing on. - * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow. - * @param filter A custom NodeFilter function to use. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTreeWalker) - */ - createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker; - /** - * Executes a command on the current document, current selection, or the given range. - * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script. - * @param showUI Display the user interface, defaults to false. - * @param value Value to assign. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/execCommand) - */ - execCommand(commandId: string, showUI?: boolean, value?: string): boolean; - /** - * Stops document's fullscreen element from being displayed fullscreen and resolves promise when done. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitFullscreen) - */ - exitFullscreen(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPictureInPicture) */ - exitPictureInPicture(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPointerLock) */ - exitPointerLock(): void; - /** - * Returns a reference to the first object with the specified value of the ID attribute. - * @param elementId String that specifies the ID value. - */ - getElementById(elementId: string): HTMLElement | null; - /** - * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByClassName) - */ - getElementsByClassName(classNames: string): HTMLCollectionOf; - /** - * Gets a collection of objects based on the value of the NAME or ID attribute. - * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByName) - */ - getElementsByName(elementName: string): NodeListOf; - /** - * Retrieves a collection of objects based on the specified element name. - * @param name Specifies the name of an element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagName) - */ - getElementsByTagName(qualifiedName: K): HTMLCollectionOf; - getElementsByTagName(qualifiedName: K): HTMLCollectionOf; - getElementsByTagName(qualifiedName: K): HTMLCollectionOf; - /** @deprecated */ - getElementsByTagName(qualifiedName: K): HTMLCollectionOf; - getElementsByTagName(qualifiedName: string): HTMLCollectionOf; - /** - * If namespace and localName are "*" returns a HTMLCollection of all descendant elements. - * - * If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName. - * - * If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace. - * - * Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagNameNS) - */ - getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf; - getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf; - getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf; - getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf; - /** - * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getSelection) - */ - getSelection(): Selection | null; - /** - * Gets a value indicating whether the object currently has focus. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasFocus) - */ - hasFocus(): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasStorageAccess) */ - hasStorageAccess(): Promise; - /** - * Returns a copy of node. If deep is true, the copy also includes the node's descendants. - * - * If node is a document or a shadow root, throws a "NotSupportedError" DOMException. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/importNode) - */ - importNode(node: T, deep?: boolean): T; - /** - * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method. - * @param url Specifies a MIME type for the document. - * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element. - * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported. - * @param replace Specifies whether the existing entry for the document is replaced in the history list. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/open) - */ - open(unused1?: string, unused2?: string): Document; - open(url: string | URL, name: string, features: string): WindowProxy | null; - /** - * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document. - * @param commandId Specifies a command identifier. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandEnabled) - */ - queryCommandEnabled(commandId: string): boolean; - /** - * Returns a Boolean value that indicates whether the specified command is in the indeterminate state. - * @param commandId String that specifies a command identifier. - * @deprecated - */ - queryCommandIndeterm(commandId: string): boolean; - /** - * Returns a Boolean value that indicates the current state of the command. - * @param commandId String that specifies a command identifier. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandState) - */ - queryCommandState(commandId: string): boolean; - /** - * Returns a Boolean value that indicates whether the current command is supported on the current range. - * @param commandId Specifies a command identifier. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandSupported) - */ - queryCommandSupported(commandId: string): boolean; - /** - * Returns the current value of the document, range, or current selection for the given command. - * @param commandId String that specifies a command identifier. - * @deprecated - */ - queryCommandValue(commandId: string): string; - /** @deprecated */ - releaseEvents(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/requestStorageAccess) */ - requestStorageAccess(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/startViewTransition) */ - startViewTransition(callbackOptions?: ViewTransitionUpdateCallback): ViewTransition; - /** - * Writes one or more HTML expressions to a document in the specified window. - * @param content Specifies the text and HTML tags to write. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/write) - */ - write(...text: string[]): void; - /** - * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window. - * @param content The text and HTML tags to write. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/writeln) - */ - writeln(...text: string[]): void; - addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +interface Document + extends + Node, + DocumentOrShadowRoot, + FontFaceSource, + GlobalEventHandlers, + NonElementParentNode, + ParentNode, + XPathEvaluatorBase { + /** + * Sets or gets the URL for the current document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/URL) + */ + readonly URL: string; + /** + * Sets or gets the color of all active links in the document. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/alinkColor) + */ + alinkColor: string; + /** + * Returns a reference to the collection of elements contained by the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/all) + */ + readonly all: HTMLAllCollection; + /** + * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/anchors) + */ + readonly anchors: HTMLCollectionOf; + /** + * Retrieves a collection of all applet objects in the document. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/applets) + */ + readonly applets: HTMLCollection; + /** + * Deprecated. Sets or retrieves a value that indicates the background color behind the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/bgColor) + */ + bgColor: string; + /** + * Specifies the beginning and end of the document body. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/body) + */ + body: HTMLElement; + /** + * Returns document's encoding. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) + */ + readonly characterSet: string; + /** + * Gets or sets the character set used to encode the object. + * @deprecated This is a legacy alias of `characterSet`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) + */ + readonly charset: string; + /** + * Gets a value that indicates whether standards-compliant mode is switched on for the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/compatMode) + */ + readonly compatMode: string; + /** + * Returns document's content type. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/contentType) + */ + readonly contentType: string; + /** + * Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned. + * + * Can be set, to add a new cookie to the element's set of HTTP cookies. + * + * If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/cookie) + */ + cookie: string; + /** + * Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing. + * + * Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/currentScript) + */ + readonly currentScript: HTMLOrSVGScriptElement | null; + /** + * Returns the Window object of the active document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/defaultView) + */ + readonly defaultView: (WindowProxy & typeof globalThis) | null; + /** + * Sets or gets a value that indicates whether the document can be edited. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/designMode) + */ + designMode: string; + /** + * Sets or retrieves a value that indicates the reading order of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/dir) + */ + dir: string; + /** + * Gets an object representing the document type declaration associated with the current document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/doctype) + */ + readonly doctype: DocumentType | null; + /** + * Gets a reference to the root node of the document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentElement) + */ + readonly documentElement: HTMLElement; + /** + * Returns document's URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentURI) + */ + readonly documentURI: string; + /** + * Sets or gets the security domain of the document. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/domain) + */ + domain: string; + /** + * Retrieves a collection of all embed objects in the document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/embeds) + */ + readonly embeds: HTMLCollectionOf; + /** + * Sets or gets the foreground (text) color of the document. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fgColor) + */ + fgColor: string; + /** + * Retrieves a collection, in source order, of all form objects in the document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/forms) + */ + readonly forms: HTMLCollectionOf; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fragmentDirective) */ + readonly fragmentDirective: FragmentDirective; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreen) + */ + readonly fullscreen: boolean; + /** + * Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenEnabled) + */ + readonly fullscreenEnabled: boolean; + /** + * Returns the head element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/head) + */ + readonly head: HTMLHeadElement; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hidden) */ + readonly hidden: boolean; + /** + * Retrieves a collection, in source order, of img objects in the document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/images) + */ + readonly images: HTMLCollectionOf; + /** + * Gets the implementation object of the current document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/implementation) + */ + readonly implementation: DOMImplementation; + /** + * Returns the character encoding used to create the webpage that is loaded into the document object. + * @deprecated This is a legacy alias of `characterSet`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) + */ + readonly inputEncoding: string; + /** + * Gets the date that the page was last modified, if the page supplies one. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lastModified) + */ + readonly lastModified: string; + /** + * Sets or gets the color of the document links. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/linkColor) + */ + linkColor: string; + /** + * Retrieves a collection of all a objects that specify the href property and all area objects in the document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/links) + */ + readonly links: HTMLCollectionOf; + /** + * Contains information about the current URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/location) + */ + get location(): Location; + set location(href: string | Location); + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenchange_event) */ + onfullscreenchange: ((this: Document, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenerror_event) */ + onfullscreenerror: ((this: Document, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockchange_event) */ + onpointerlockchange: ((this: Document, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockerror_event) */ + onpointerlockerror: ((this: Document, ev: Event) => any) | null; + /** + * Fires when the state of the object has changed. + * @param ev The event + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readystatechange_event) + */ + onreadystatechange: ((this: Document, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilitychange_event) */ + onvisibilitychange: ((this: Document, ev: Event) => any) | null; + readonly ownerDocument: null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureEnabled) */ + readonly pictureInPictureEnabled: boolean; + /** + * Return an HTMLCollection of the embed elements in the Document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/plugins) + */ + readonly plugins: HTMLCollectionOf; + /** + * Retrieves a value that indicates the current state of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readyState) + */ + readonly readyState: DocumentReadyState; + /** + * Gets the URL of the location that referred the user to the current page. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/referrer) + */ + readonly referrer: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/rootElement) + */ + readonly rootElement: SVGSVGElement | null; + /** + * Retrieves a collection of all script objects in the document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scripts) + */ + readonly scripts: HTMLCollectionOf; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollingElement) */ + readonly scrollingElement: Element | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/timeline) */ + readonly timeline: DocumentTimeline; + /** + * Contains the title of the document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/title) + */ + title: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilityState) */ + readonly visibilityState: DocumentVisibilityState; + /** + * Sets or gets the color of the links that the user has visited. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/vlinkColor) + */ + vlinkColor: string; + /** + * Moves node from another document and returns it. + * + * If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptNode) + */ + adoptNode(node: T): T; + /** @deprecated */ + captureEvents(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/caretPositionFromPoint) */ + caretPositionFromPoint( + x: number, + y: number, + options?: CaretPositionFromPointOptions, + ): CaretPosition | null; + /** @deprecated */ + caretRangeFromPoint(x: number, y: number): Range | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/clear) + */ + clear(): void; + /** + * Closes an output stream and forces the sent data to display. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/close) + */ + close(): void; + /** + * Creates an attribute object with a specified name. + * @param name String that sets the attribute object's name. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttribute) + */ + createAttribute(localName: string): Attr; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttributeNS) */ + createAttributeNS(namespace: string | null, qualifiedName: string): Attr; + /** + * Returns a CDATASection node whose data is data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createCDATASection) + */ + createCDATASection(data: string): CDATASection; + /** + * Creates a comment object with the specified data. + * @param data Sets the comment object's data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createComment) + */ + createComment(data: string): Comment; + /** + * Creates a new document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createDocumentFragment) + */ + createDocumentFragment(): DocumentFragment; + /** + * Creates an instance of the element for the specified tag. + * @param tagName The name of an element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElement) + */ + createElement( + tagName: K, + options?: ElementCreationOptions, + ): HTMLElementTagNameMap[K]; + /** @deprecated */ + createElement( + tagName: K, + options?: ElementCreationOptions, + ): HTMLElementDeprecatedTagNameMap[K]; + createElement(tagName: string, options?: ElementCreationOptions): HTMLElement; + /** + * Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName. + * + * If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown. + * + * If one of the following conditions is true a "NamespaceError" DOMException will be thrown: + * + * localName does not match the QName production. + * Namespace prefix is not null and namespace is the empty string. + * Namespace prefix is "xml" and namespace is not the XML namespace. + * qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace. + * namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns". + * + * When supplied, options's is can be used to create a customized built-in element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElementNS) + */ + createElementNS( + namespaceURI: "http://www.w3.org/1999/xhtml", + qualifiedName: string, + ): HTMLElement; + createElementNS( + namespaceURI: "http://www.w3.org/2000/svg", + qualifiedName: K, + ): SVGElementTagNameMap[K]; + createElementNS( + namespaceURI: "http://www.w3.org/2000/svg", + qualifiedName: string, + ): SVGElement; + createElementNS( + namespaceURI: "http://www.w3.org/1998/Math/MathML", + qualifiedName: K, + ): MathMLElementTagNameMap[K]; + createElementNS( + namespaceURI: "http://www.w3.org/1998/Math/MathML", + qualifiedName: string, + ): MathMLElement; + createElementNS( + namespaceURI: string | null, + qualifiedName: string, + options?: ElementCreationOptions, + ): Element; + createElementNS( + namespace: string | null, + qualifiedName: string, + options?: string | ElementCreationOptions, + ): Element; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createEvent) */ + createEvent(eventInterface: "AnimationEvent"): AnimationEvent; + createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent; + createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent; + createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent; + createEvent(eventInterface: "BlobEvent"): BlobEvent; + createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent; + createEvent(eventInterface: "CloseEvent"): CloseEvent; + createEvent(eventInterface: "CompositionEvent"): CompositionEvent; + createEvent( + eventInterface: "ContentVisibilityAutoStateChangeEvent", + ): ContentVisibilityAutoStateChangeEvent; + createEvent(eventInterface: "CustomEvent"): CustomEvent; + createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent; + createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent; + createEvent(eventInterface: "DragEvent"): DragEvent; + createEvent(eventInterface: "ErrorEvent"): ErrorEvent; + createEvent(eventInterface: "Event"): Event; + createEvent(eventInterface: "Events"): Event; + createEvent(eventInterface: "FocusEvent"): FocusEvent; + createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent; + createEvent(eventInterface: "FormDataEvent"): FormDataEvent; + createEvent(eventInterface: "GamepadEvent"): GamepadEvent; + createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent; + createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent; + createEvent(eventInterface: "InputEvent"): InputEvent; + createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent; + createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent; + createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent; + createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent; + createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent; + createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent; + createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent; + createEvent(eventInterface: "MessageEvent"): MessageEvent; + createEvent(eventInterface: "MouseEvent"): MouseEvent; + createEvent(eventInterface: "MouseEvents"): MouseEvent; + createEvent( + eventInterface: "OfflineAudioCompletionEvent", + ): OfflineAudioCompletionEvent; + createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent; + createEvent( + eventInterface: "PaymentMethodChangeEvent", + ): PaymentMethodChangeEvent; + createEvent( + eventInterface: "PaymentRequestUpdateEvent", + ): PaymentRequestUpdateEvent; + createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent; + createEvent(eventInterface: "PointerEvent"): PointerEvent; + createEvent(eventInterface: "PopStateEvent"): PopStateEvent; + createEvent(eventInterface: "ProgressEvent"): ProgressEvent; + createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent; + createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent; + createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent; + createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent; + createEvent( + eventInterface: "RTCPeerConnectionIceErrorEvent", + ): RTCPeerConnectionIceErrorEvent; + createEvent( + eventInterface: "RTCPeerConnectionIceEvent", + ): RTCPeerConnectionIceEvent; + createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent; + createEvent( + eventInterface: "SecurityPolicyViolationEvent", + ): SecurityPolicyViolationEvent; + createEvent( + eventInterface: "SpeechSynthesisErrorEvent", + ): SpeechSynthesisErrorEvent; + createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent; + createEvent(eventInterface: "StorageEvent"): StorageEvent; + createEvent(eventInterface: "SubmitEvent"): SubmitEvent; + createEvent(eventInterface: "TextEvent"): TextEvent; + createEvent(eventInterface: "ToggleEvent"): ToggleEvent; + createEvent(eventInterface: "TouchEvent"): TouchEvent; + createEvent(eventInterface: "TrackEvent"): TrackEvent; + createEvent(eventInterface: "TransitionEvent"): TransitionEvent; + createEvent(eventInterface: "UIEvent"): UIEvent; + createEvent(eventInterface: "UIEvents"): UIEvent; + createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent; + createEvent(eventInterface: "WheelEvent"): WheelEvent; + createEvent(eventInterface: string): Event; + /** + * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document. + * @param root The root element or node to start traversing on. + * @param whatToShow The type of nodes or elements to appear in the node list + * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createNodeIterator) + */ + createNodeIterator( + root: Node, + whatToShow?: number, + filter?: NodeFilter | null, + ): NodeIterator; + /** + * Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an "InvalidCharacterError" DOMException will be thrown. If data contains "?>" an "InvalidCharacterError" DOMException will be thrown. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createProcessingInstruction) + */ + createProcessingInstruction( + target: string, + data: string, + ): ProcessingInstruction; + /** + * Returns an empty range object that has both of its boundary points positioned at the beginning of the document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createRange) + */ + createRange(): Range; + /** + * Creates a text string from the specified value. + * @param data String that specifies the nodeValue property of the text node. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTextNode) + */ + createTextNode(data: string): Text; + /** + * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document. + * @param root The root element or node to start traversing on. + * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow. + * @param filter A custom NodeFilter function to use. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTreeWalker) + */ + createTreeWalker( + root: Node, + whatToShow?: number, + filter?: NodeFilter | null, + ): TreeWalker; + /** + * Executes a command on the current document, current selection, or the given range. + * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script. + * @param showUI Display the user interface, defaults to false. + * @param value Value to assign. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/execCommand) + */ + execCommand(commandId: string, showUI?: boolean, value?: string): boolean; + /** + * Stops document's fullscreen element from being displayed fullscreen and resolves promise when done. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitFullscreen) + */ + exitFullscreen(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPictureInPicture) */ + exitPictureInPicture(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPointerLock) */ + exitPointerLock(): void; + /** + * Returns a reference to the first object with the specified value of the ID attribute. + * @param elementId String that specifies the ID value. + */ + getElementById(elementId: string): HTMLElement | null; + /** + * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByClassName) + */ + getElementsByClassName(classNames: string): HTMLCollectionOf; + /** + * Gets a collection of objects based on the value of the NAME or ID attribute. + * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByName) + */ + getElementsByName(elementName: string): NodeListOf; + /** + * Retrieves a collection of objects based on the specified element name. + * @param name Specifies the name of an element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagName) + */ + getElementsByTagName( + qualifiedName: K, + ): HTMLCollectionOf; + getElementsByTagName( + qualifiedName: K, + ): HTMLCollectionOf; + getElementsByTagName( + qualifiedName: K, + ): HTMLCollectionOf; + /** @deprecated */ + getElementsByTagName( + qualifiedName: K, + ): HTMLCollectionOf; + getElementsByTagName(qualifiedName: string): HTMLCollectionOf; + /** + * If namespace and localName are "*" returns a HTMLCollection of all descendant elements. + * + * If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName. + * + * If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace. + * + * Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagNameNS) + */ + getElementsByTagNameNS( + namespaceURI: "http://www.w3.org/1999/xhtml", + localName: string, + ): HTMLCollectionOf; + getElementsByTagNameNS( + namespaceURI: "http://www.w3.org/2000/svg", + localName: string, + ): HTMLCollectionOf; + getElementsByTagNameNS( + namespaceURI: "http://www.w3.org/1998/Math/MathML", + localName: string, + ): HTMLCollectionOf; + getElementsByTagNameNS( + namespace: string | null, + localName: string, + ): HTMLCollectionOf; + /** + * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getSelection) + */ + getSelection(): Selection | null; + /** + * Gets a value indicating whether the object currently has focus. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasFocus) + */ + hasFocus(): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasStorageAccess) */ + hasStorageAccess(): Promise; + /** + * Returns a copy of node. If deep is true, the copy also includes the node's descendants. + * + * If node is a document or a shadow root, throws a "NotSupportedError" DOMException. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/importNode) + */ + importNode(node: T, deep?: boolean): T; + /** + * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method. + * @param url Specifies a MIME type for the document. + * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element. + * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported. + * @param replace Specifies whether the existing entry for the document is replaced in the history list. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/open) + */ + open(unused1?: string, unused2?: string): Document; + open(url: string | URL, name: string, features: string): WindowProxy | null; + /** + * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document. + * @param commandId Specifies a command identifier. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandEnabled) + */ + queryCommandEnabled(commandId: string): boolean; + /** + * Returns a Boolean value that indicates whether the specified command is in the indeterminate state. + * @param commandId String that specifies a command identifier. + * @deprecated + */ + queryCommandIndeterm(commandId: string): boolean; + /** + * Returns a Boolean value that indicates the current state of the command. + * @param commandId String that specifies a command identifier. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandState) + */ + queryCommandState(commandId: string): boolean; + /** + * Returns a Boolean value that indicates whether the current command is supported on the current range. + * @param commandId Specifies a command identifier. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandSupported) + */ + queryCommandSupported(commandId: string): boolean; + /** + * Returns the current value of the document, range, or current selection for the given command. + * @param commandId String that specifies a command identifier. + * @deprecated + */ + queryCommandValue(commandId: string): string; + /** @deprecated */ + releaseEvents(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/requestStorageAccess) */ + requestStorageAccess(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/startViewTransition) */ + startViewTransition( + callbackOptions?: ViewTransitionUpdateCallback, + ): ViewTransition; + /** + * Writes one or more HTML expressions to a document in the specified window. + * @param content Specifies the text and HTML tags to write. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/write) + */ + write(...text: string[]): void; + /** + * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window. + * @param content The text and HTML tags to write. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/writeln) + */ + writeln(...text: string[]): void; + addEventListener( + type: K, + listener: (this: Document, ev: DocumentEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: Document, ev: DocumentEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var Document: { - prototype: Document; - new(): Document; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static) */ - parseHTMLUnsafe(html: string): Document; + prototype: Document; + new (): Document; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static) */ + parseHTMLUnsafe(html: string): Document; }; /** @@ -7854,62 +8578,61 @@ declare var Document: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentFragment) */ interface DocumentFragment extends Node, NonElementParentNode, ParentNode { - readonly ownerDocument: Document; - getElementById(elementId: string): HTMLElement | null; + readonly ownerDocument: Document; + getElementById(elementId: string): HTMLElement | null; } declare var DocumentFragment: { - prototype: DocumentFragment; - new(): DocumentFragment; + prototype: DocumentFragment; + new (): DocumentFragment; }; interface DocumentOrShadowRoot { - /** - * Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document. - * - * For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document. - * - * Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/activeElement) - */ - readonly activeElement: Element | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) */ - adoptedStyleSheets: CSSStyleSheet[]; - /** - * Returns document's fullscreen element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenElement) - */ - readonly fullscreenElement: Element | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureElement) */ - readonly pictureInPictureElement: Element | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerLockElement) */ - readonly pointerLockElement: Element | null; - /** - * Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/styleSheets) - */ - readonly styleSheets: StyleSheetList; - /** - * Returns the element for the specified x coordinate and the specified y coordinate. - * @param x The x-offset - * @param y The y-offset - */ - elementFromPoint(x: number, y: number): Element | null; - elementsFromPoint(x: number, y: number): Element[]; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getAnimations) */ - getAnimations(): Animation[]; + /** + * Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document. + * + * For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document. + * + * Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/activeElement) + */ + readonly activeElement: Element | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) */ + adoptedStyleSheets: CSSStyleSheet[]; + /** + * Returns document's fullscreen element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenElement) + */ + readonly fullscreenElement: Element | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureElement) */ + readonly pictureInPictureElement: Element | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerLockElement) */ + readonly pointerLockElement: Element | null; + /** + * Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/styleSheets) + */ + readonly styleSheets: StyleSheetList; + /** + * Returns the element for the specified x coordinate and the specified y coordinate. + * @param x The x-offset + * @param y The y-offset + */ + elementFromPoint(x: number, y: number): Element | null; + elementsFromPoint(x: number, y: number): Element[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getAnimations) */ + getAnimations(): Animation[]; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentTimeline) */ -interface DocumentTimeline extends AnimationTimeline { -} +interface DocumentTimeline extends AnimationTimeline {} declare var DocumentTimeline: { - prototype: DocumentTimeline; - new(options?: DocumentTimelineOptions): DocumentTimeline; + prototype: DocumentTimeline; + new (options?: DocumentTimelineOptions): DocumentTimeline; }; /** @@ -7918,18 +8641,18 @@ declare var DocumentTimeline: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType) */ interface DocumentType extends Node, ChildNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/name) */ - readonly name: string; - readonly ownerDocument: Document; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/publicId) */ - readonly publicId: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/systemId) */ - readonly systemId: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/name) */ + readonly name: string; + readonly ownerDocument: Document; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/publicId) */ + readonly publicId: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/systemId) */ + readonly systemId: string; } declare var DocumentType: { - prototype: DocumentType; - new(): DocumentType; + prototype: DocumentType; + new (): DocumentType; }; /** @@ -7938,17 +8661,17 @@ declare var DocumentType: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent) */ interface DragEvent extends MouseEvent { - /** - * Returns the DataTransfer object for the event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent/dataTransfer) - */ - readonly dataTransfer: DataTransfer | null; + /** + * Returns the DataTransfer object for the event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent/dataTransfer) + */ + readonly dataTransfer: DataTransfer | null; } declare var DragEvent: { - prototype: DragEvent; - new(type: string, eventInitDict?: DragEventInit): DragEvent; + prototype: DragEvent; + new (type: string, eventInitDict?: DragEventInit): DragEvent; }; /** @@ -7957,81 +8680,80 @@ declare var DragEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode) */ interface DynamicsCompressorNode extends AudioNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/attack) */ - readonly attack: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/knee) */ - readonly knee: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/ratio) */ - readonly ratio: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/reduction) */ - readonly reduction: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/release) */ - readonly release: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/threshold) */ - readonly threshold: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/attack) */ + readonly attack: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/knee) */ + readonly knee: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/ratio) */ + readonly ratio: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/reduction) */ + readonly reduction: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/release) */ + readonly release: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/threshold) */ + readonly threshold: AudioParam; } declare var DynamicsCompressorNode: { - prototype: DynamicsCompressorNode; - new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode; + prototype: DynamicsCompressorNode; + new ( + context: BaseAudioContext, + options?: DynamicsCompressorOptions, + ): DynamicsCompressorNode; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_blend_minmax) */ interface EXT_blend_minmax { - readonly MIN_EXT: 0x8007; - readonly MAX_EXT: 0x8008; + readonly MIN_EXT: 0x8007; + readonly MAX_EXT: 0x8008; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_float) */ -interface EXT_color_buffer_float { -} +interface EXT_color_buffer_float {} /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_half_float) */ interface EXT_color_buffer_half_float { - readonly RGBA16F_EXT: 0x881A; - readonly RGB16F_EXT: 0x881B; - readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211; - readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; + readonly RGBA16F_EXT: 0x881a; + readonly RGB16F_EXT: 0x881b; + readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211; + readonly UNSIGNED_NORMALIZED_EXT: 0x8c17; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_float_blend) */ -interface EXT_float_blend { -} +interface EXT_float_blend {} /** * The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_frag_depth) */ -interface EXT_frag_depth { -} +interface EXT_frag_depth {} /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_sRGB) */ interface EXT_sRGB { - readonly SRGB_EXT: 0x8C40; - readonly SRGB_ALPHA_EXT: 0x8C42; - readonly SRGB8_ALPHA8_EXT: 0x8C43; - readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210; + readonly SRGB_EXT: 0x8c40; + readonly SRGB_ALPHA_EXT: 0x8c42; + readonly SRGB8_ALPHA8_EXT: 0x8c43; + readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_shader_texture_lod) */ -interface EXT_shader_texture_lod { -} +interface EXT_shader_texture_lod {} /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_bptc) */ interface EXT_texture_compression_bptc { - readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C; - readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D; - readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E; - readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F; + readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8e8c; + readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8e8d; + readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8e8e; + readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8e8f; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_rgtc) */ interface EXT_texture_compression_rgtc { - readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB; - readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC; - readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD; - readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE; + readonly COMPRESSED_RED_RGTC1_EXT: 0x8dbb; + readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8dbc; + readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8dbd; + readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8dbe; } /** @@ -8040,25 +8762,25 @@ interface EXT_texture_compression_rgtc { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_filter_anisotropic) */ interface EXT_texture_filter_anisotropic { - readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE; - readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF; + readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84fe; + readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84ff; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_norm16) */ interface EXT_texture_norm16 { - readonly R16_EXT: 0x822A; - readonly RG16_EXT: 0x822C; - readonly RGB16_EXT: 0x8054; - readonly RGBA16_EXT: 0x805B; - readonly R16_SNORM_EXT: 0x8F98; - readonly RG16_SNORM_EXT: 0x8F99; - readonly RGB16_SNORM_EXT: 0x8F9A; - readonly RGBA16_SNORM_EXT: 0x8F9B; + readonly R16_EXT: 0x822a; + readonly RG16_EXT: 0x822c; + readonly RGB16_EXT: 0x8054; + readonly RGBA16_EXT: 0x805b; + readonly R16_SNORM_EXT: 0x8f98; + readonly RG16_SNORM_EXT: 0x8f99; + readonly RGB16_SNORM_EXT: 0x8f9a; + readonly RGBA16_SNORM_EXT: 0x8f9b; } interface ElementEventMap { - "fullscreenchange": Event; - "fullscreenerror": Event; + fullscreenchange: Event; + fullscreenerror: Event; } /** @@ -8066,398 +8788,462 @@ interface ElementEventMap { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element) */ -interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTypeChildNode, ParentNode, Slottable { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attributes) */ - readonly attributes: NamedNodeMap; - /** - * Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/classList) - */ - readonly classList: DOMTokenList; - /** - * Returns the value of element's class content attribute. Can be set to change it. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/className) - */ - className: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientHeight) */ - readonly clientHeight: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientLeft) */ - readonly clientLeft: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientTop) */ - readonly clientTop: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientWidth) */ - readonly clientWidth: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom) */ - readonly currentCSSZoom: number; - /** - * Returns the value of element's id content attribute. Can be set to change it. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/id) - */ - id: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) */ - innerHTML: string; - /** - * Returns the local name. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/localName) - */ - readonly localName: string; - /** - * Returns the namespace. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/namespaceURI) - */ - readonly namespaceURI: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenchange_event) */ - onfullscreenchange: ((this: Element, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenerror_event) */ - onfullscreenerror: ((this: Element, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/outerHTML) */ - outerHTML: string; - readonly ownerDocument: Document; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/part) */ - readonly part: DOMTokenList; - /** - * Returns the namespace prefix. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/prefix) - */ - readonly prefix: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight) */ - readonly scrollHeight: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft) */ - scrollLeft: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTop) */ - scrollTop: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth) */ - readonly scrollWidth: number; - /** - * Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot) - */ - readonly shadowRoot: ShadowRoot | null; - /** - * Returns the value of element's slot content attribute. Can be set to change it. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/slot) - */ - slot: string; - /** - * Returns the HTML-uppercased qualified name. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/tagName) - */ - readonly tagName: string; - /** - * Creates a shadow root for element and returns it. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attachShadow) - */ - attachShadow(init: ShadowRootInit): ShadowRoot; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/checkVisibility) */ - checkVisibility(options?: CheckVisibilityOptions): boolean; - /** - * Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/closest) - */ - closest(selector: K): HTMLElementTagNameMap[K] | null; - closest(selector: K): SVGElementTagNameMap[K] | null; - closest(selector: K): MathMLElementTagNameMap[K] | null; - closest(selectors: string): E | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/computedStyleMap) */ - computedStyleMap(): StylePropertyMapReadOnly; - /** - * Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttribute) - */ - getAttribute(qualifiedName: string): string | null; - /** - * Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNS) - */ - getAttributeNS(namespace: string | null, localName: string): string | null; - /** - * Returns the qualified names of all element's attributes. Can contain duplicates. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNames) - */ - getAttributeNames(): string[]; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNode) */ - getAttributeNode(qualifiedName: string): Attr | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNodeNS) */ - getAttributeNodeNS(namespace: string | null, localName: string): Attr | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getBoundingClientRect) */ - getBoundingClientRect(): DOMRect; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getClientRects) */ - getClientRects(): DOMRectList; - /** - * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByClassName) - */ - getElementsByClassName(classNames: string): HTMLCollectionOf; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName) */ - getElementsByTagName(qualifiedName: K): HTMLCollectionOf; - getElementsByTagName(qualifiedName: K): HTMLCollectionOf; - getElementsByTagName(qualifiedName: K): HTMLCollectionOf; - /** @deprecated */ - getElementsByTagName(qualifiedName: K): HTMLCollectionOf; - getElementsByTagName(qualifiedName: string): HTMLCollectionOf; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS) */ - getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf; - getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf; - getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf; - getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getHTML) */ - getHTML(options?: GetHTMLOptions): string; - /** - * Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttribute) - */ - hasAttribute(qualifiedName: string): boolean; - /** - * Returns true if element has an attribute whose namespace is namespace and local name is localName. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributeNS) - */ - hasAttributeNS(namespace: string | null, localName: string): boolean; - /** - * Returns true if element has attributes, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributes) - */ - hasAttributes(): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasPointerCapture) */ - hasPointerCapture(pointerId: number): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement) */ - insertAdjacentElement(where: InsertPosition, element: Element): Element | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML) */ - insertAdjacentHTML(position: InsertPosition, string: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText) */ - insertAdjacentText(where: InsertPosition, data: string): void; - /** - * Returns true if matching selectors against element's root yields element, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches) - */ - matches(selectors: string): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture) */ - releasePointerCapture(pointerId: number): void; - /** - * Removes element's first attribute whose qualified name is qualifiedName. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttribute) - */ - removeAttribute(qualifiedName: string): void; - /** - * Removes element's attribute whose namespace is namespace and local name is localName. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNS) - */ - removeAttributeNS(namespace: string | null, localName: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNode) */ - removeAttributeNode(attr: Attr): Attr; - /** - * Displays element fullscreen and resolves promise when done. - * - * When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestFullscreen) - */ - requestFullscreen(options?: FullscreenOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock) */ - requestPointerLock(options?: PointerLockOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll) */ - scroll(options?: ScrollToOptions): void; - scroll(x: number, y: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) */ - scrollBy(options?: ScrollToOptions): void; - scrollBy(x: number, y: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) */ - scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) */ - scrollTo(options?: ScrollToOptions): void; - scrollTo(x: number, y: number): void; - /** - * Sets the value of element's first attribute whose qualified name is qualifiedName to value. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttribute) - */ - setAttribute(qualifiedName: string, value: string): void; - /** - * Sets the value of element's attribute whose namespace is namespace and local name is localName to value. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNS) - */ - setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNode) */ - setAttributeNode(attr: Attr): Attr | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) */ - setAttributeNodeNS(attr: Attr): Attr | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe) */ - setHTMLUnsafe(html: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) */ - setPointerCapture(pointerId: number): void; - /** - * If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName. - * - * Returns true if qualifiedName is now present, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute) - */ - toggleAttribute(qualifiedName: string, force?: boolean): boolean; - /** - * @deprecated This is a legacy alias of `matches`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches) - */ - webkitMatchesSelector(selectors: string): boolean; - addEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +interface Element + extends + Node, + ARIAMixin, + Animatable, + ChildNode, + NonDocumentTypeChildNode, + ParentNode, + Slottable { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attributes) */ + readonly attributes: NamedNodeMap; + /** + * Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/classList) + */ + readonly classList: DOMTokenList; + /** + * Returns the value of element's class content attribute. Can be set to change it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/className) + */ + className: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientHeight) */ + readonly clientHeight: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientLeft) */ + readonly clientLeft: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientTop) */ + readonly clientTop: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientWidth) */ + readonly clientWidth: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom) */ + readonly currentCSSZoom: number; + /** + * Returns the value of element's id content attribute. Can be set to change it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/id) + */ + id: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) */ + innerHTML: string; + /** + * Returns the local name. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/localName) + */ + readonly localName: string; + /** + * Returns the namespace. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/namespaceURI) + */ + readonly namespaceURI: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenchange_event) */ + onfullscreenchange: ((this: Element, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenerror_event) */ + onfullscreenerror: ((this: Element, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/outerHTML) */ + outerHTML: string; + readonly ownerDocument: Document; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/part) */ + readonly part: DOMTokenList; + /** + * Returns the namespace prefix. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/prefix) + */ + readonly prefix: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight) */ + readonly scrollHeight: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft) */ + scrollLeft: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTop) */ + scrollTop: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth) */ + readonly scrollWidth: number; + /** + * Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot) + */ + readonly shadowRoot: ShadowRoot | null; + /** + * Returns the value of element's slot content attribute. Can be set to change it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/slot) + */ + slot: string; + /** + * Returns the HTML-uppercased qualified name. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/tagName) + */ + readonly tagName: string; + /** + * Creates a shadow root for element and returns it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attachShadow) + */ + attachShadow(init: ShadowRootInit): ShadowRoot; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/checkVisibility) */ + checkVisibility(options?: CheckVisibilityOptions): boolean; + /** + * Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/closest) + */ + closest( + selector: K, + ): HTMLElementTagNameMap[K] | null; + closest( + selector: K, + ): SVGElementTagNameMap[K] | null; + closest( + selector: K, + ): MathMLElementTagNameMap[K] | null; + closest(selectors: string): E | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/computedStyleMap) */ + computedStyleMap(): StylePropertyMapReadOnly; + /** + * Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttribute) + */ + getAttribute(qualifiedName: string): string | null; + /** + * Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNS) + */ + getAttributeNS(namespace: string | null, localName: string): string | null; + /** + * Returns the qualified names of all element's attributes. Can contain duplicates. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNames) + */ + getAttributeNames(): string[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNode) */ + getAttributeNode(qualifiedName: string): Attr | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNodeNS) */ + getAttributeNodeNS(namespace: string | null, localName: string): Attr | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getBoundingClientRect) */ + getBoundingClientRect(): DOMRect; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getClientRects) */ + getClientRects(): DOMRectList; + /** + * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByClassName) + */ + getElementsByClassName(classNames: string): HTMLCollectionOf; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName) */ + getElementsByTagName( + qualifiedName: K, + ): HTMLCollectionOf; + getElementsByTagName( + qualifiedName: K, + ): HTMLCollectionOf; + getElementsByTagName( + qualifiedName: K, + ): HTMLCollectionOf; + /** @deprecated */ + getElementsByTagName( + qualifiedName: K, + ): HTMLCollectionOf; + getElementsByTagName(qualifiedName: string): HTMLCollectionOf; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS) */ + getElementsByTagNameNS( + namespaceURI: "http://www.w3.org/1999/xhtml", + localName: string, + ): HTMLCollectionOf; + getElementsByTagNameNS( + namespaceURI: "http://www.w3.org/2000/svg", + localName: string, + ): HTMLCollectionOf; + getElementsByTagNameNS( + namespaceURI: "http://www.w3.org/1998/Math/MathML", + localName: string, + ): HTMLCollectionOf; + getElementsByTagNameNS( + namespace: string | null, + localName: string, + ): HTMLCollectionOf; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getHTML) */ + getHTML(options?: GetHTMLOptions): string; + /** + * Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttribute) + */ + hasAttribute(qualifiedName: string): boolean; + /** + * Returns true if element has an attribute whose namespace is namespace and local name is localName. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributeNS) + */ + hasAttributeNS(namespace: string | null, localName: string): boolean; + /** + * Returns true if element has attributes, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributes) + */ + hasAttributes(): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasPointerCapture) */ + hasPointerCapture(pointerId: number): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement) */ + insertAdjacentElement( + where: InsertPosition, + element: Element, + ): Element | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML) */ + insertAdjacentHTML(position: InsertPosition, string: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText) */ + insertAdjacentText(where: InsertPosition, data: string): void; + /** + * Returns true if matching selectors against element's root yields element, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches) + */ + matches(selectors: string): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture) */ + releasePointerCapture(pointerId: number): void; + /** + * Removes element's first attribute whose qualified name is qualifiedName. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttribute) + */ + removeAttribute(qualifiedName: string): void; + /** + * Removes element's attribute whose namespace is namespace and local name is localName. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNS) + */ + removeAttributeNS(namespace: string | null, localName: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNode) */ + removeAttributeNode(attr: Attr): Attr; + /** + * Displays element fullscreen and resolves promise when done. + * + * When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestFullscreen) + */ + requestFullscreen(options?: FullscreenOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock) */ + requestPointerLock(options?: PointerLockOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll) */ + scroll(options?: ScrollToOptions): void; + scroll(x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) */ + scrollBy(options?: ScrollToOptions): void; + scrollBy(x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) */ + scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) */ + scrollTo(options?: ScrollToOptions): void; + scrollTo(x: number, y: number): void; + /** + * Sets the value of element's first attribute whose qualified name is qualifiedName to value. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttribute) + */ + setAttribute(qualifiedName: string, value: string): void; + /** + * Sets the value of element's attribute whose namespace is namespace and local name is localName to value. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNS) + */ + setAttributeNS( + namespace: string | null, + qualifiedName: string, + value: string, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNode) */ + setAttributeNode(attr: Attr): Attr | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) */ + setAttributeNodeNS(attr: Attr): Attr | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe) */ + setHTMLUnsafe(html: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) */ + setPointerCapture(pointerId: number): void; + /** + * If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName. + * + * Returns true if qualifiedName is now present, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute) + */ + toggleAttribute(qualifiedName: string, force?: boolean): boolean; + /** + * @deprecated This is a legacy alias of `matches`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches) + */ + webkitMatchesSelector(selectors: string): boolean; + addEventListener( + type: K, + listener: (this: Element, ev: ElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: Element, ev: ElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var Element: { - prototype: Element; - new(): Element; + prototype: Element; + new (): Element; }; interface ElementCSSInlineStyle { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attributeStyleMap) */ - readonly attributeStyleMap: StylePropertyMap; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */ - readonly style: CSSStyleDeclaration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attributeStyleMap) */ + readonly attributeStyleMap: StylePropertyMap; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */ + readonly style: CSSStyleDeclaration; } interface ElementContentEditable { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/contentEditable) */ - contentEditable: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/enterKeyHint) */ - enterKeyHint: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inputMode) */ - inputMode: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/isContentEditable) */ - readonly isContentEditable: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/contentEditable) */ + contentEditable: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/enterKeyHint) */ + enterKeyHint: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inputMode) */ + inputMode: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/isContentEditable) */ + readonly isContentEditable: boolean; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals) */ interface ElementInternals extends ARIAMixin { - /** - * Returns the form owner of internals's target element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/form) - */ - readonly form: HTMLFormElement | null; - /** - * Returns a NodeList of all the label elements that internals's target element is associated with. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/labels) - */ - readonly labels: NodeList; - /** - * Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/shadowRoot) - */ - readonly shadowRoot: ShadowRoot | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/states) */ - readonly states: CustomStateSet; - /** - * Returns the error message that would be shown to the user if internals's target element was to be checked for validity. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validationMessage) - */ - readonly validationMessage: string; - /** - * Returns the ValidityState object for internals's target element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validity) - */ - readonly validity: ValidityState; - /** - * Returns true if internals's target element will be validated when the form is submitted; false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/willValidate) - */ - readonly willValidate: boolean; - /** - * Returns true if internals's target element has no validity problems; false otherwise. Fires an invalid event at the element in the latter case. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/checkValidity) - */ - checkValidity(): boolean; - /** - * Returns true if internals's target element has no validity problems; otherwise, returns false, fires an invalid event at the element, and (if the event isn't canceled) reports the problem to the user. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/reportValidity) - */ - reportValidity(): boolean; - /** - * Sets both the state and submission value of internals's target element to value. - * - * If value is null, the element won't participate in form submission. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setFormValue) - */ - setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void; - /** - * Marks internals's target element as suffering from the constraints indicated by the flags argument, and sets the element's validation message to message. If anchor is specified, the user agent might use it to indicate problems with the constraints of internals's target element when the form owner is validated interactively or reportValidity() is called. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setValidity) - */ - setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void; + /** + * Returns the form owner of internals's target element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/form) + */ + readonly form: HTMLFormElement | null; + /** + * Returns a NodeList of all the label elements that internals's target element is associated with. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/labels) + */ + readonly labels: NodeList; + /** + * Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/shadowRoot) + */ + readonly shadowRoot: ShadowRoot | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/states) */ + readonly states: CustomStateSet; + /** + * Returns the error message that would be shown to the user if internals's target element was to be checked for validity. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validationMessage) + */ + readonly validationMessage: string; + /** + * Returns the ValidityState object for internals's target element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validity) + */ + readonly validity: ValidityState; + /** + * Returns true if internals's target element will be validated when the form is submitted; false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/willValidate) + */ + readonly willValidate: boolean; + /** + * Returns true if internals's target element has no validity problems; false otherwise. Fires an invalid event at the element in the latter case. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/checkValidity) + */ + checkValidity(): boolean; + /** + * Returns true if internals's target element has no validity problems; otherwise, returns false, fires an invalid event at the element, and (if the event isn't canceled) reports the problem to the user. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/reportValidity) + */ + reportValidity(): boolean; + /** + * Sets both the state and submission value of internals's target element to value. + * + * If value is null, the element won't participate in form submission. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setFormValue) + */ + setFormValue( + value: File | string | FormData | null, + state?: File | string | FormData | null, + ): void; + /** + * Marks internals's target element as suffering from the constraints indicated by the flags argument, and sets the element's validation message to message. If anchor is specified, the user agent might use it to indicate problems with the constraints of internals's target element when the form owner is validated interactively or reportValidity() is called. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setValidity) + */ + setValidity( + flags?: ValidityStateFlags, + message?: string, + anchor?: HTMLElement, + ): void; } declare var ElementInternals: { - prototype: ElementInternals; - new(): ElementInternals; + prototype: ElementInternals; + new (): ElementInternals; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk) */ interface EncodedAudioChunk { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/byteLength) */ - readonly byteLength: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/duration) */ - readonly duration: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/timestamp) */ - readonly timestamp: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/type) */ - readonly type: EncodedAudioChunkType; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/copyTo) */ - copyTo(destination: AllowSharedBufferSource): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/byteLength) */ + readonly byteLength: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/duration) */ + readonly duration: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/timestamp) */ + readonly timestamp: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/type) */ + readonly type: EncodedAudioChunkType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/copyTo) */ + copyTo(destination: AllowSharedBufferSource): void; } declare var EncodedAudioChunk: { - prototype: EncodedAudioChunk; - new(init: EncodedAudioChunkInit): EncodedAudioChunk; + prototype: EncodedAudioChunk; + new (init: EncodedAudioChunkInit): EncodedAudioChunk; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk) */ interface EncodedVideoChunk { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength) */ - readonly byteLength: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/duration) */ - readonly duration: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/timestamp) */ - readonly timestamp: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type) */ - readonly type: EncodedVideoChunkType; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo) */ - copyTo(destination: AllowSharedBufferSource): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength) */ + readonly byteLength: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/duration) */ + readonly duration: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/timestamp) */ + readonly timestamp: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type) */ + readonly type: EncodedVideoChunkType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo) */ + copyTo(destination: AllowSharedBufferSource): void; } declare var EncodedVideoChunk: { - prototype: EncodedVideoChunk; - new(init: EncodedVideoChunkInit): EncodedVideoChunk; + prototype: EncodedVideoChunk; + new (init: EncodedVideoChunkInit): EncodedVideoChunk; }; /** @@ -8466,21 +9252,21 @@ declare var EncodedVideoChunk: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent) */ interface ErrorEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */ - readonly colno: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */ - readonly error: any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */ - readonly filename: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */ - readonly lineno: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */ - readonly message: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */ + readonly colno: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */ + readonly error: any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */ + readonly filename: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */ + readonly lineno: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */ + readonly message: string; } declare var ErrorEvent: { - prototype: ErrorEvent; - new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent; + prototype: ErrorEvent; + new (type: string, eventInitDict?: ErrorEventInit): ErrorEvent; }; /** @@ -8489,202 +9275,229 @@ declare var ErrorEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event) */ interface Event { - /** - * Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles) - */ - readonly bubbles: boolean; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble) - */ - cancelBubble: boolean; - /** - * Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable) - */ - readonly cancelable: boolean; - /** - * Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed) - */ - readonly composed: boolean; - /** - * Returns the object whose event listener's callback is currently being invoked. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget) - */ - readonly currentTarget: EventTarget | null; - /** - * Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented) - */ - readonly defaultPrevented: boolean; - /** - * Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase) - */ - readonly eventPhase: number; - /** - * Returns true if event was dispatched by the user agent, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) - */ - readonly isTrusted: boolean; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue) - */ - returnValue: boolean; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement) - */ - readonly srcElement: EventTarget | null; - /** - * Returns the object to which event is dispatched (its target). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target) - */ - readonly target: EventTarget | null; - /** - * Returns the event's timestamp as the number of milliseconds measured relative to the time origin. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp) - */ - readonly timeStamp: DOMHighResTimeStamp; - /** - * Returns the type of event, e.g. "click", "hashchange", or "submit". - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type) - */ - readonly type: string; - /** - * Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath) - */ - composedPath(): EventTarget[]; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent) - */ - initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void; - /** - * If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault) - */ - preventDefault(): void; - /** - * Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation) - */ - stopImmediatePropagation(): void; - /** - * When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation) - */ - stopPropagation(): void; - readonly NONE: 0; - readonly CAPTURING_PHASE: 1; - readonly AT_TARGET: 2; - readonly BUBBLING_PHASE: 3; + /** + * Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles) + */ + readonly bubbles: boolean; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble) + */ + cancelBubble: boolean; + /** + * Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable) + */ + readonly cancelable: boolean; + /** + * Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed) + */ + readonly composed: boolean; + /** + * Returns the object whose event listener's callback is currently being invoked. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget) + */ + readonly currentTarget: EventTarget | null; + /** + * Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented) + */ + readonly defaultPrevented: boolean; + /** + * Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase) + */ + readonly eventPhase: number; + /** + * Returns true if event was dispatched by the user agent, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) + */ + readonly isTrusted: boolean; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue) + */ + returnValue: boolean; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement) + */ + readonly srcElement: EventTarget | null; + /** + * Returns the object to which event is dispatched (its target). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target) + */ + readonly target: EventTarget | null; + /** + * Returns the event's timestamp as the number of milliseconds measured relative to the time origin. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp) + */ + readonly timeStamp: DOMHighResTimeStamp; + /** + * Returns the type of event, e.g. "click", "hashchange", or "submit". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type) + */ + readonly type: string; + /** + * Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath) + */ + composedPath(): EventTarget[]; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent) + */ + initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void; + /** + * If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault) + */ + preventDefault(): void; + /** + * Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation) + */ + stopImmediatePropagation(): void; + /** + * When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation) + */ + stopPropagation(): void; + readonly NONE: 0; + readonly CAPTURING_PHASE: 1; + readonly AT_TARGET: 2; + readonly BUBBLING_PHASE: 3; } declare var Event: { - prototype: Event; - new(type: string, eventInitDict?: EventInit): Event; - readonly NONE: 0; - readonly CAPTURING_PHASE: 1; - readonly AT_TARGET: 2; - readonly BUBBLING_PHASE: 3; + prototype: Event; + new (type: string, eventInitDict?: EventInit): Event; + readonly NONE: 0; + readonly CAPTURING_PHASE: 1; + readonly AT_TARGET: 2; + readonly BUBBLING_PHASE: 3; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventCounts) */ interface EventCounts { - forEach(callbackfn: (value: number, key: string, parent: EventCounts) => void, thisArg?: any): void; + forEach( + callbackfn: (value: number, key: string, parent: EventCounts) => void, + thisArg?: any, + ): void; } declare var EventCounts: { - prototype: EventCounts; - new(): EventCounts; + prototype: EventCounts; + new (): EventCounts; }; interface EventListener { - (evt: Event): void; + (evt: Event): void; } interface EventListenerObject { - handleEvent(object: Event): void; + handleEvent(object: Event): void; } interface EventSourceEventMap { - "error": Event; - "message": MessageEvent; - "open": Event; + error: Event; + message: MessageEvent; + open: Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource) */ interface EventSource extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */ - onerror: ((this: EventSource, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) */ - onmessage: ((this: EventSource, ev: MessageEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) */ - onopen: ((this: EventSource, ev: Event) => any) | null; - /** - * Returns the state of this EventSource object's connection. It can have the values described below. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState) - */ - readonly readyState: number; - /** - * Returns the URL providing the event stream. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url) - */ - readonly url: string; - /** - * Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials) - */ - readonly withCredentials: boolean; - /** - * Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close) - */ - close(): void; - readonly CONNECTING: 0; - readonly OPEN: 1; - readonly CLOSED: 2; - addEventListener(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */ + onerror: ((this: EventSource, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) */ + onmessage: ((this: EventSource, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) */ + onopen: ((this: EventSource, ev: Event) => any) | null; + /** + * Returns the state of this EventSource object's connection. It can have the values described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState) + */ + readonly readyState: number; + /** + * Returns the URL providing the event stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url) + */ + readonly url: string; + /** + * Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials) + */ + readonly withCredentials: boolean; + /** + * Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close) + */ + close(): void; + readonly CONNECTING: 0; + readonly OPEN: 1; + readonly CLOSED: 2; + addEventListener( + type: K, + listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: (this: EventSource, event: MessageEvent) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: (this: EventSource, event: MessageEvent) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var EventSource: { - prototype: EventSource; - new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource; - readonly CONNECTING: 0; - readonly OPEN: 1; - readonly CLOSED: 2; + prototype: EventSource; + new (url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource; + readonly CONNECTING: 0; + readonly OPEN: 1; + readonly CLOSED: 2; }; /** @@ -8693,55 +9506,63 @@ declare var EventSource: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget) */ interface EventTarget { - /** - * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. - * - * The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. - * - * When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. - * - * When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. - * - * When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. - * - * If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. - * - * The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) - */ - addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void; - /** - * Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) - */ - dispatchEvent(event: Event): boolean; - /** - * Removes the event listener in target's event listener list with the same type, callback, and options. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) - */ - removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void; + /** + * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. + * + * The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. + * + * When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. + * + * When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners. + * + * When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. + * + * If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. + * + * The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) + */ + addEventListener( + type: string, + callback: EventListenerOrEventListenerObject | null, + options?: AddEventListenerOptions | boolean, + ): void; + /** + * Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) + */ + dispatchEvent(event: Event): boolean; + /** + * Removes the event listener in target's event listener list with the same type, callback, and options. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) + */ + removeEventListener( + type: string, + callback: EventListenerOrEventListenerObject | null, + options?: EventListenerOptions | boolean, + ): void; } declare var EventTarget: { - prototype: EventTarget; - new(): EventTarget; + prototype: EventTarget; + new (): EventTarget; }; /** @deprecated */ interface External { - /** @deprecated */ - AddSearchProvider(): void; - /** @deprecated */ - IsSearchProviderInstalled(): void; + /** @deprecated */ + AddSearchProvider(): void; + /** @deprecated */ + IsSearchProviderInstalled(): void; } /** @deprecated */ declare var External: { - prototype: External; - new(): External; + prototype: External; + new (): External; }; /** @@ -8750,17 +9571,17 @@ declare var External: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File) */ interface File extends Blob { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */ - readonly lastModified: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */ - readonly name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/webkitRelativePath) */ - readonly webkitRelativePath: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */ + readonly lastModified: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/webkitRelativePath) */ + readonly webkitRelativePath: string; } declare var File: { - prototype: File; - new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File; + prototype: File; + new (fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File; }; /** @@ -8769,25 +9590,25 @@ declare var File: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList) */ interface FileList { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/length) */ - readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/item) */ - item(index: number): File | null; - [index: number]: File; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/item) */ + item(index: number): File | null; + [index: number]: File; } declare var FileList: { - prototype: FileList; - new(): FileList; + prototype: FileList; + new (): FileList; }; interface FileReaderEventMap { - "abort": ProgressEvent; - "error": ProgressEvent; - "load": ProgressEvent; - "loadend": ProgressEvent; - "loadstart": ProgressEvent; - "progress": ProgressEvent; + abort: ProgressEvent; + error: ProgressEvent; + load: ProgressEvent; + loadend: ProgressEvent; + loadstart: ProgressEvent; + progress: ProgressEvent; } /** @@ -8796,81 +9617,112 @@ interface FileReaderEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader) */ interface FileReader extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error) */ - readonly error: DOMException | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort_event) */ - onabort: ((this: FileReader, ev: ProgressEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error_event) */ - onerror: ((this: FileReader, ev: ProgressEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/load_event) */ - onload: ((this: FileReader, ev: ProgressEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadend_event) */ - onloadend: ((this: FileReader, ev: ProgressEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadstart_event) */ - onloadstart: ((this: FileReader, ev: ProgressEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/progress_event) */ - onprogress: ((this: FileReader, ev: ProgressEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState) */ - readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/result) */ - readonly result: string | ArrayBuffer | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort) */ - abort(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer) */ - readAsArrayBuffer(blob: Blob): void; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString) - */ - readAsBinaryString(blob: Blob): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL) */ - readAsDataURL(blob: Blob): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsText) */ - readAsText(blob: Blob, encoding?: string): void; - readonly EMPTY: 0; - readonly LOADING: 1; - readonly DONE: 2; - addEventListener(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error) */ + readonly error: DOMException | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort_event) */ + onabort: ((this: FileReader, ev: ProgressEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error_event) */ + onerror: ((this: FileReader, ev: ProgressEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/load_event) */ + onload: ((this: FileReader, ev: ProgressEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadend_event) */ + onloadend: ((this: FileReader, ev: ProgressEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadstart_event) */ + onloadstart: + | ((this: FileReader, ev: ProgressEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/progress_event) */ + onprogress: ((this: FileReader, ev: ProgressEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState) */ + readonly readyState: + | typeof FileReader.EMPTY + | typeof FileReader.LOADING + | typeof FileReader.DONE; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/result) */ + readonly result: string | ArrayBuffer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort) */ + abort(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer) */ + readAsArrayBuffer(blob: Blob): void; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString) + */ + readAsBinaryString(blob: Blob): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL) */ + readAsDataURL(blob: Blob): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsText) */ + readAsText(blob: Blob, encoding?: string): void; + readonly EMPTY: 0; + readonly LOADING: 1; + readonly DONE: 2; + addEventListener( + type: K, + listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var FileReader: { - prototype: FileReader; - new(): FileReader; - readonly EMPTY: 0; - readonly LOADING: 1; - readonly DONE: 2; + prototype: FileReader; + new (): FileReader; + readonly EMPTY: 0; + readonly LOADING: 1; + readonly DONE: 2; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem) */ interface FileSystem { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/name) */ - readonly name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/root) */ - readonly root: FileSystemDirectoryEntry; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/root) */ + readonly root: FileSystemDirectoryEntry; } declare var FileSystem: { - prototype: FileSystem; - new(): FileSystem; + prototype: FileSystem; + new (): FileSystem; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry) */ interface FileSystemDirectoryEntry extends FileSystemEntry { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/createReader) */ - createReader(): FileSystemDirectoryReader; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getDirectory) */ - getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getFile) */ - getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/createReader) */ + createReader(): FileSystemDirectoryReader; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getDirectory) */ + getDirectory( + path?: string | null, + options?: FileSystemFlags, + successCallback?: FileSystemEntryCallback, + errorCallback?: ErrorCallback, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getFile) */ + getFile( + path?: string | null, + options?: FileSystemFlags, + successCallback?: FileSystemEntryCallback, + errorCallback?: ErrorCallback, + ): void; } declare var FileSystemDirectoryEntry: { - prototype: FileSystemDirectoryEntry; - new(): FileSystemDirectoryEntry; + prototype: FileSystemDirectoryEntry; + new (): FileSystemDirectoryEntry; }; /** @@ -8879,63 +9731,75 @@ declare var FileSystemDirectoryEntry: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle) */ interface FileSystemDirectoryHandle extends FileSystemHandle { - readonly kind: "directory"; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle) */ - getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle) */ - getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry) */ - removeEntry(name: string, options?: FileSystemRemoveOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve) */ - resolve(possibleDescendant: FileSystemHandle): Promise; + readonly kind: "directory"; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle) */ + getDirectoryHandle( + name: string, + options?: FileSystemGetDirectoryOptions, + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle) */ + getFileHandle( + name: string, + options?: FileSystemGetFileOptions, + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry) */ + removeEntry(name: string, options?: FileSystemRemoveOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve) */ + resolve(possibleDescendant: FileSystemHandle): Promise; } declare var FileSystemDirectoryHandle: { - prototype: FileSystemDirectoryHandle; - new(): FileSystemDirectoryHandle; + prototype: FileSystemDirectoryHandle; + new (): FileSystemDirectoryHandle; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader) */ interface FileSystemDirectoryReader { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader/readEntries) */ - readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader/readEntries) */ + readEntries( + successCallback: FileSystemEntriesCallback, + errorCallback?: ErrorCallback, + ): void; } declare var FileSystemDirectoryReader: { - prototype: FileSystemDirectoryReader; - new(): FileSystemDirectoryReader; + prototype: FileSystemDirectoryReader; + new (): FileSystemDirectoryReader; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry) */ interface FileSystemEntry { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/filesystem) */ - readonly filesystem: FileSystem; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/fullPath) */ - readonly fullPath: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isDirectory) */ - readonly isDirectory: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isFile) */ - readonly isFile: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/name) */ - readonly name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/getParent) */ - getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/filesystem) */ + readonly filesystem: FileSystem; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/fullPath) */ + readonly fullPath: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isDirectory) */ + readonly isDirectory: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isFile) */ + readonly isFile: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/getParent) */ + getParent( + successCallback?: FileSystemEntryCallback, + errorCallback?: ErrorCallback, + ): void; } declare var FileSystemEntry: { - prototype: FileSystemEntry; - new(): FileSystemEntry; + prototype: FileSystemEntry; + new (): FileSystemEntry; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry) */ interface FileSystemFileEntry extends FileSystemEntry { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry/file) */ - file(successCallback: FileCallback, errorCallback?: ErrorCallback): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry/file) */ + file(successCallback: FileCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemFileEntry: { - prototype: FileSystemFileEntry; - new(): FileSystemFileEntry; + prototype: FileSystemFileEntry; + new (): FileSystemFileEntry; }; /** @@ -8944,16 +9808,18 @@ declare var FileSystemFileEntry: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle) */ interface FileSystemFileHandle extends FileSystemHandle { - readonly kind: "file"; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable) */ - createWritable(options?: FileSystemCreateWritableOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile) */ - getFile(): Promise; + readonly kind: "file"; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable) */ + createWritable( + options?: FileSystemCreateWritableOptions, + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile) */ + getFile(): Promise; } declare var FileSystemFileHandle: { - prototype: FileSystemFileHandle; - new(): FileSystemFileHandle; + prototype: FileSystemFileHandle; + new (): FileSystemFileHandle; }; /** @@ -8962,17 +9828,17 @@ declare var FileSystemFileHandle: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle) */ interface FileSystemHandle { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/kind) */ - readonly kind: FileSystemHandleKind; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/name) */ - readonly name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry) */ - isSameEntry(other: FileSystemHandle): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/kind) */ + readonly kind: FileSystemHandleKind; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry) */ + isSameEntry(other: FileSystemHandle): Promise; } declare var FileSystemHandle: { - prototype: FileSystemHandle; - new(): FileSystemHandle; + prototype: FileSystemHandle; + new (): FileSystemHandle; }; /** @@ -8981,17 +9847,17 @@ declare var FileSystemHandle: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream) */ interface FileSystemWritableFileStream extends WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/seek) */ - seek(position: number): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate) */ - truncate(size: number): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write) */ - write(data: FileSystemWriteChunkType): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/seek) */ + seek(position: number): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate) */ + truncate(size: number): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write) */ + write(data: FileSystemWriteChunkType): Promise; } declare var FileSystemWritableFileStream: { - prototype: FileSystemWritableFileStream; - new(): FileSystemWritableFileStream; + prototype: FileSystemWritableFileStream; + new (): FileSystemWritableFileStream; }; /** @@ -9000,98 +9866,124 @@ declare var FileSystemWritableFileStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent) */ interface FocusEvent extends UIEvent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent/relatedTarget) */ - readonly relatedTarget: EventTarget | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent/relatedTarget) */ + readonly relatedTarget: EventTarget | null; } declare var FocusEvent: { - prototype: FocusEvent; - new(type: string, eventInitDict?: FocusEventInit): FocusEvent; + prototype: FocusEvent; + new (type: string, eventInitDict?: FocusEventInit): FocusEvent; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace) */ interface FontFace { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/ascentOverride) */ - ascentOverride: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/descentOverride) */ - descentOverride: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/display) */ - display: FontDisplay; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/family) */ - family: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/featureSettings) */ - featureSettings: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/lineGapOverride) */ - lineGapOverride: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/loaded) */ - readonly loaded: Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/status) */ - readonly status: FontFaceLoadStatus; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/stretch) */ - stretch: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/style) */ - style: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */ - unicodeRange: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */ - weight: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */ - load(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/ascentOverride) */ + ascentOverride: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/descentOverride) */ + descentOverride: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/display) */ + display: FontDisplay; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/family) */ + family: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/featureSettings) */ + featureSettings: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/lineGapOverride) */ + lineGapOverride: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/loaded) */ + readonly loaded: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/status) */ + readonly status: FontFaceLoadStatus; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/stretch) */ + stretch: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/style) */ + style: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */ + unicodeRange: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */ + weight: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */ + load(): Promise; } declare var FontFace: { - prototype: FontFace; - new(family: string, source: string | BufferSource, descriptors?: FontFaceDescriptors): FontFace; + prototype: FontFace; + new ( + family: string, + source: string | BufferSource, + descriptors?: FontFaceDescriptors, + ): FontFace; }; interface FontFaceSetEventMap { - "loading": FontFaceSetLoadEvent; - "loadingdone": FontFaceSetLoadEvent; - "loadingerror": FontFaceSetLoadEvent; + loading: FontFaceSetLoadEvent; + loadingdone: FontFaceSetLoadEvent; + loadingerror: FontFaceSetLoadEvent; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet) */ interface FontFaceSet extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */ - onloading: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */ - onloadingdone: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */ - onloadingerror: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) */ - readonly ready: Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) */ - readonly status: FontFaceSetLoadStatus; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check) */ - check(font: string, text?: string): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load) */ - load(font: string, text?: string): Promise; - forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void; - addEventListener(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */ + onloading: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */ + onloadingdone: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */ + onloadingerror: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) */ + readonly ready: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) */ + readonly status: FontFaceSetLoadStatus; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check) */ + check(font: string, text?: string): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load) */ + load(font: string, text?: string): Promise; + forEach( + callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, + thisArg?: any, + ): void; + addEventListener( + type: K, + listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var FontFaceSet: { - prototype: FontFaceSet; - new(): FontFaceSet; + prototype: FontFaceSet; + new (): FontFaceSet; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent) */ interface FontFaceSetLoadEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent/fontfaces) */ - readonly fontfaces: ReadonlyArray; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent/fontfaces) */ + readonly fontfaces: ReadonlyArray; } declare var FontFaceSetLoadEvent: { - prototype: FontFaceSetLoadEvent; - new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent; + prototype: FontFaceSetLoadEvent; + new ( + type: string, + eventInitDict?: FontFaceSetLoadEventInit, + ): FontFaceSetLoadEvent; }; interface FontFaceSource { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) */ - readonly fonts: FontFaceSet; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) */ + readonly fonts: FontFaceSet; } /** @@ -9100,52 +9992,58 @@ interface FontFaceSource { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData) */ interface FormData { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) */ - append(name: string, value: string | Blob): void; - append(name: string, value: string): void; - append(name: string, blobValue: Blob, filename?: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete) */ - delete(name: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get) */ - get(name: string): FormDataEntryValue | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll) */ - getAll(name: string): FormDataEntryValue[]; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has) */ - has(name: string): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) */ - set(name: string, value: string | Blob): void; - set(name: string, value: string): void; - set(name: string, blobValue: Blob, filename?: string): void; - forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) */ + append(name: string, value: string | Blob): void; + append(name: string, value: string): void; + append(name: string, blobValue: Blob, filename?: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete) */ + delete(name: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get) */ + get(name: string): FormDataEntryValue | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll) */ + getAll(name: string): FormDataEntryValue[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has) */ + has(name: string): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) */ + set(name: string, value: string | Blob): void; + set(name: string, value: string): void; + set(name: string, blobValue: Blob, filename?: string): void; + forEach( + callbackfn: ( + value: FormDataEntryValue, + key: string, + parent: FormData, + ) => void, + thisArg?: any, + ): void; } declare var FormData: { - prototype: FormData; - new(form?: HTMLFormElement, submitter?: HTMLElement | null): FormData; + prototype: FormData; + new (form?: HTMLFormElement, submitter?: HTMLElement | null): FormData; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent) */ interface FormDataEvent extends Event { - /** - * Returns a FormData object representing names and values of elements associated to the target form. Operations on the FormData object will affect form data to be submitted. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent/formData) - */ - readonly formData: FormData; + /** + * Returns a FormData object representing names and values of elements associated to the target form. Operations on the FormData object will affect form data to be submitted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent/formData) + */ + readonly formData: FormData; } declare var FormDataEvent: { - prototype: FormDataEvent; - new(type: string, eventInitDict: FormDataEventInit): FormDataEvent; + prototype: FormDataEvent; + new (type: string, eventInitDict: FormDataEventInit): FormDataEvent; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FragmentDirective) */ -interface FragmentDirective { -} +interface FragmentDirective {} declare var FragmentDirective: { - prototype: FragmentDirective; - new(): FragmentDirective; + prototype: FragmentDirective; + new (): FragmentDirective; }; /** @@ -9154,13 +10052,13 @@ declare var FragmentDirective: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode) */ interface GainNode extends AudioNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode/gain) */ - readonly gain: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode/gain) */ + readonly gain: AudioParam; } declare var GainNode: { - prototype: GainNode; - new(context: BaseAudioContext, options?: GainOptions): GainNode; + prototype: GainNode; + new (context: BaseAudioContext, options?: GainOptions): GainNode; }; /** @@ -9169,27 +10067,27 @@ declare var GainNode: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad) */ interface Gamepad { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/axes) */ - readonly axes: ReadonlyArray; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/buttons) */ - readonly buttons: ReadonlyArray; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/connected) */ - readonly connected: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/id) */ - readonly id: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/index) */ - readonly index: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/mapping) */ - readonly mapping: GamepadMappingType; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/timestamp) */ - readonly timestamp: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/vibrationActuator) */ - readonly vibrationActuator: GamepadHapticActuator; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/axes) */ + readonly axes: ReadonlyArray; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/buttons) */ + readonly buttons: ReadonlyArray; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/connected) */ + readonly connected: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/id) */ + readonly id: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/index) */ + readonly index: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/mapping) */ + readonly mapping: GamepadMappingType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/timestamp) */ + readonly timestamp: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/vibrationActuator) */ + readonly vibrationActuator: GamepadHapticActuator; } declare var Gamepad: { - prototype: Gamepad; - new(): Gamepad; + prototype: Gamepad; + new (): Gamepad; }; /** @@ -9198,17 +10096,17 @@ declare var Gamepad: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton) */ interface GamepadButton { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/pressed) */ - readonly pressed: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/touched) */ - readonly touched: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/value) */ - readonly value: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/pressed) */ + readonly pressed: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/touched) */ + readonly touched: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/value) */ + readonly value: number; } declare var GamepadButton: { - prototype: GamepadButton; - new(): GamepadButton; + prototype: GamepadButton; + new (): GamepadButton; }; /** @@ -9217,13 +10115,13 @@ declare var GamepadButton: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent) */ interface GamepadEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent/gamepad) */ - readonly gamepad: Gamepad; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent/gamepad) */ + readonly gamepad: Gamepad; } declare var GamepadEvent: { - prototype: GamepadEvent; - new(type: string, eventInitDict: GamepadEventInit): GamepadEvent; + prototype: GamepadEvent; + new (type: string, eventInitDict: GamepadEventInit): GamepadEvent; }; /** @@ -9232,22 +10130,25 @@ declare var GamepadEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator) */ interface GamepadHapticActuator { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/playEffect) */ - playEffect(type: GamepadHapticEffectType, params?: GamepadEffectParameters): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/reset) */ - reset(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/playEffect) */ + playEffect( + type: GamepadHapticEffectType, + params?: GamepadEffectParameters, + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/reset) */ + reset(): Promise; } declare var GamepadHapticActuator: { - prototype: GamepadHapticActuator; - new(): GamepadHapticActuator; + prototype: GamepadHapticActuator; + new (): GamepadHapticActuator; }; interface GenericTransformStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ - readonly readable: ReadableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/writable) */ - readonly writable: WritableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ + readonly readable: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/writable) */ + readonly writable: WritableStream; } /** @@ -9256,17 +10157,25 @@ interface GenericTransformStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation) */ interface Geolocation { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/clearWatch) */ - clearWatch(watchId: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/getCurrentPosition) */ - getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/watchPosition) */ - watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/clearWatch) */ + clearWatch(watchId: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/getCurrentPosition) */ + getCurrentPosition( + successCallback: PositionCallback, + errorCallback?: PositionErrorCallback | null, + options?: PositionOptions, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/watchPosition) */ + watchPosition( + successCallback: PositionCallback, + errorCallback?: PositionErrorCallback | null, + options?: PositionOptions, + ): number; } declare var Geolocation: { - prototype: Geolocation; - new(): Geolocation; + prototype: Geolocation; + new (): Geolocation; }; /** @@ -9275,27 +10184,27 @@ declare var Geolocation: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates) */ interface GeolocationCoordinates { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/accuracy) */ - readonly accuracy: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitude) */ - readonly altitude: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitudeAccuracy) */ - readonly altitudeAccuracy: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/heading) */ - readonly heading: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/latitude) */ - readonly latitude: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/longitude) */ - readonly longitude: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/speed) */ - readonly speed: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/toJSON) */ - toJSON(): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/accuracy) */ + readonly accuracy: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitude) */ + readonly altitude: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitudeAccuracy) */ + readonly altitudeAccuracy: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/heading) */ + readonly heading: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/latitude) */ + readonly latitude: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/longitude) */ + readonly longitude: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/speed) */ + readonly speed: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/toJSON) */ + toJSON(): any; } declare var GeolocationCoordinates: { - prototype: GeolocationCoordinates; - new(): GeolocationCoordinates; + prototype: GeolocationCoordinates; + new (): GeolocationCoordinates; }; /** @@ -9304,619 +10213,681 @@ declare var GeolocationCoordinates: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition) */ interface GeolocationPosition { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/coords) */ - readonly coords: GeolocationCoordinates; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/timestamp) */ - readonly timestamp: EpochTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/toJSON) */ - toJSON(): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/coords) */ + readonly coords: GeolocationCoordinates; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/timestamp) */ + readonly timestamp: EpochTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/toJSON) */ + toJSON(): any; } declare var GeolocationPosition: { - prototype: GeolocationPosition; - new(): GeolocationPosition; + prototype: GeolocationPosition; + new (): GeolocationPosition; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError) */ interface GeolocationPositionError { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/code) */ - readonly code: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/message) */ - readonly message: string; - readonly PERMISSION_DENIED: 1; - readonly POSITION_UNAVAILABLE: 2; - readonly TIMEOUT: 3; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/code) */ + readonly code: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/message) */ + readonly message: string; + readonly PERMISSION_DENIED: 1; + readonly POSITION_UNAVAILABLE: 2; + readonly TIMEOUT: 3; } declare var GeolocationPositionError: { - prototype: GeolocationPositionError; - new(): GeolocationPositionError; - readonly PERMISSION_DENIED: 1; - readonly POSITION_UNAVAILABLE: 2; - readonly TIMEOUT: 3; + prototype: GeolocationPositionError; + new (): GeolocationPositionError; + readonly PERMISSION_DENIED: 1; + readonly POSITION_UNAVAILABLE: 2; + readonly TIMEOUT: 3; }; interface GlobalEventHandlersEventMap { - "abort": UIEvent; - "animationcancel": AnimationEvent; - "animationend": AnimationEvent; - "animationiteration": AnimationEvent; - "animationstart": AnimationEvent; - "auxclick": MouseEvent; - "beforeinput": InputEvent; - "beforetoggle": Event; - "blur": FocusEvent; - "cancel": Event; - "canplay": Event; - "canplaythrough": Event; - "change": Event; - "click": MouseEvent; - "close": Event; - "compositionend": CompositionEvent; - "compositionstart": CompositionEvent; - "compositionupdate": CompositionEvent; - "contextlost": Event; - "contextmenu": MouseEvent; - "contextrestored": Event; - "copy": ClipboardEvent; - "cuechange": Event; - "cut": ClipboardEvent; - "dblclick": MouseEvent; - "drag": DragEvent; - "dragend": DragEvent; - "dragenter": DragEvent; - "dragleave": DragEvent; - "dragover": DragEvent; - "dragstart": DragEvent; - "drop": DragEvent; - "durationchange": Event; - "emptied": Event; - "ended": Event; - "error": ErrorEvent; - "focus": FocusEvent; - "focusin": FocusEvent; - "focusout": FocusEvent; - "formdata": FormDataEvent; - "gotpointercapture": PointerEvent; - "input": Event; - "invalid": Event; - "keydown": KeyboardEvent; - "keypress": KeyboardEvent; - "keyup": KeyboardEvent; - "load": Event; - "loadeddata": Event; - "loadedmetadata": Event; - "loadstart": Event; - "lostpointercapture": PointerEvent; - "mousedown": MouseEvent; - "mouseenter": MouseEvent; - "mouseleave": MouseEvent; - "mousemove": MouseEvent; - "mouseout": MouseEvent; - "mouseover": MouseEvent; - "mouseup": MouseEvent; - "paste": ClipboardEvent; - "pause": Event; - "play": Event; - "playing": Event; - "pointercancel": PointerEvent; - "pointerdown": PointerEvent; - "pointerenter": PointerEvent; - "pointerleave": PointerEvent; - "pointermove": PointerEvent; - "pointerout": PointerEvent; - "pointerover": PointerEvent; - "pointerup": PointerEvent; - "progress": ProgressEvent; - "ratechange": Event; - "reset": Event; - "resize": UIEvent; - "scroll": Event; - "scrollend": Event; - "securitypolicyviolation": SecurityPolicyViolationEvent; - "seeked": Event; - "seeking": Event; - "select": Event; - "selectionchange": Event; - "selectstart": Event; - "slotchange": Event; - "stalled": Event; - "submit": SubmitEvent; - "suspend": Event; - "timeupdate": Event; - "toggle": Event; - "touchcancel": TouchEvent; - "touchend": TouchEvent; - "touchmove": TouchEvent; - "touchstart": TouchEvent; - "transitioncancel": TransitionEvent; - "transitionend": TransitionEvent; - "transitionrun": TransitionEvent; - "transitionstart": TransitionEvent; - "volumechange": Event; - "waiting": Event; - "webkitanimationend": Event; - "webkitanimationiteration": Event; - "webkitanimationstart": Event; - "webkittransitionend": Event; - "wheel": WheelEvent; + abort: UIEvent; + animationcancel: AnimationEvent; + animationend: AnimationEvent; + animationiteration: AnimationEvent; + animationstart: AnimationEvent; + auxclick: MouseEvent; + beforeinput: InputEvent; + beforetoggle: Event; + blur: FocusEvent; + cancel: Event; + canplay: Event; + canplaythrough: Event; + change: Event; + click: MouseEvent; + close: Event; + compositionend: CompositionEvent; + compositionstart: CompositionEvent; + compositionupdate: CompositionEvent; + contextlost: Event; + contextmenu: MouseEvent; + contextrestored: Event; + copy: ClipboardEvent; + cuechange: Event; + cut: ClipboardEvent; + dblclick: MouseEvent; + drag: DragEvent; + dragend: DragEvent; + dragenter: DragEvent; + dragleave: DragEvent; + dragover: DragEvent; + dragstart: DragEvent; + drop: DragEvent; + durationchange: Event; + emptied: Event; + ended: Event; + error: ErrorEvent; + focus: FocusEvent; + focusin: FocusEvent; + focusout: FocusEvent; + formdata: FormDataEvent; + gotpointercapture: PointerEvent; + input: Event; + invalid: Event; + keydown: KeyboardEvent; + keypress: KeyboardEvent; + keyup: KeyboardEvent; + load: Event; + loadeddata: Event; + loadedmetadata: Event; + loadstart: Event; + lostpointercapture: PointerEvent; + mousedown: MouseEvent; + mouseenter: MouseEvent; + mouseleave: MouseEvent; + mousemove: MouseEvent; + mouseout: MouseEvent; + mouseover: MouseEvent; + mouseup: MouseEvent; + paste: ClipboardEvent; + pause: Event; + play: Event; + playing: Event; + pointercancel: PointerEvent; + pointerdown: PointerEvent; + pointerenter: PointerEvent; + pointerleave: PointerEvent; + pointermove: PointerEvent; + pointerout: PointerEvent; + pointerover: PointerEvent; + pointerup: PointerEvent; + progress: ProgressEvent; + ratechange: Event; + reset: Event; + resize: UIEvent; + scroll: Event; + scrollend: Event; + securitypolicyviolation: SecurityPolicyViolationEvent; + seeked: Event; + seeking: Event; + select: Event; + selectionchange: Event; + selectstart: Event; + slotchange: Event; + stalled: Event; + submit: SubmitEvent; + suspend: Event; + timeupdate: Event; + toggle: Event; + touchcancel: TouchEvent; + touchend: TouchEvent; + touchmove: TouchEvent; + touchstart: TouchEvent; + transitioncancel: TransitionEvent; + transitionend: TransitionEvent; + transitionrun: TransitionEvent; + transitionstart: TransitionEvent; + volumechange: Event; + waiting: Event; + webkitanimationend: Event; + webkitanimationiteration: Event; + webkitanimationstart: Event; + webkittransitionend: Event; + wheel: WheelEvent; } interface GlobalEventHandlers { - /** - * Fires when the user aborts the download. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/abort_event) - */ - onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationcancel_event) */ - onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */ - onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */ - onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */ - onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/auxclick_event) */ - onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */ - onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */ - onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Fires when the object loses the input focus. - * @param ev The focus event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) - */ - onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/cancel_event) */ - oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Occurs when playback is possible, but would require further buffering. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) - */ - oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplaythrough_event) */ - oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Fires when the contents of the object or selection have changed. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/change_event) - */ - onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Fires when the user clicks the left mouse button on the object - * @param ev The mouse event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event) - */ - onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */ - onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/webglcontextlost_event) */ - oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Fires when the user clicks the right mouse button in the client area, opening the context menu. - * @param ev The mouse event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) - */ - oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextrestored_event) */ - oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */ - oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */ - oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/cut_event) */ - oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; - /** - * Fires when the user double-clicks the object. - * @param ev The mouse event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/dblclick_event) - */ - ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; - /** - * Fires on the source object continuously during a drag operation. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event) - */ - ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; - /** - * Fires on the source object when the user releases the mouse at the close of a drag operation. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event) - */ - ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; - /** - * Fires on the target element when the user drags the object to a valid drop target. - * @param ev The drag event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event) - */ - ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; - /** - * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation. - * @param ev The drag event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event) - */ - ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; - /** - * Fires on the target element continuously while the user drags the object over a valid drop target. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event) - */ - ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; - /** - * Fires on the source object when the user starts to drag a text selection or selected object. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragstart_event) - */ - ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drop_event) */ - ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; - /** - * Occurs when the duration attribute is updated. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/durationchange_event) - */ - ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Occurs when the media element is reset to its initial state. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/emptied_event) - */ - onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Occurs when the end of playback is reached. - * @param ev The event - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) - */ - onended: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Fires when an error occurs during object loading. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) - */ - onerror: OnErrorEventHandler; - /** - * Fires when the object receives focus. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) - */ - onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/formdata_event) */ - onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/gotpointercapture_event) */ - ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/input_event) */ - oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */ - oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Fires when the user presses a key. - * @param ev The keyboard event - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event) - */ - onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; - /** - * Fires when the user presses an alphanumeric key. - * @param ev The event. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keypress_event) - */ - onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; - /** - * Fires when the user releases a key. - * @param ev The keyboard event - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keyup_event) - */ - onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; - /** - * Fires immediately after the browser loads the object. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/load_event) - */ - onload: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Occurs when media data is loaded at the current playback position. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadeddata_event) - */ - onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Occurs when the duration and dimensions of the media have been determined. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadedmetadata_event) - */ - onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Occurs when Internet Explorer begins looking for media data. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event) - */ - onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/lostpointercapture_event) */ - onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; - /** - * Fires when the user clicks the object with either mouse button. - * @param ev The mouse event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousedown_event) - */ - onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseenter_event) */ - onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseleave_event) */ - onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; - /** - * Fires when the user moves the mouse over the object. - * @param ev The mouse event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousemove_event) - */ - onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; - /** - * Fires when the user moves the mouse pointer outside the boundaries of the object. - * @param ev The mouse event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseout_event) - */ - onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; - /** - * Fires when the user moves the mouse pointer into the object. - * @param ev The mouse event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseover_event) - */ - onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; - /** - * Fires when the user releases a mouse button while the mouse is over the object. - * @param ev The mouse event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseup_event) - */ - onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/paste_event) */ - onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; - /** - * Occurs when playback is paused. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause_event) - */ - onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Occurs when the play method is requested. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play_event) - */ - onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Occurs when the audio or video has started playing. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playing_event) - */ - onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointercancel_event) */ - onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerdown_event) */ - onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerenter_event) */ - onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerleave_event) */ - onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointermove_event) */ - onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerout_event) */ - onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */ - onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */ - onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; - /** - * Occurs to indicate progress while downloading media data. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event) - */ - onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null; - /** - * Occurs when the playback rate is increased or decreased. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ratechange_event) - */ - onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Fires when the user resets a form. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset_event) - */ - onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/resize_event) */ - onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null; - /** - * Fires when the user repositions the scroll box in the scroll bar on the object. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event) - */ - onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */ - onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */ - onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null; - /** - * Occurs when the seek operation ends. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeked_event) - */ - onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Occurs when the current playback position is moved. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking_event) - */ - onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Fires when the current selection changes. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select_event) - */ - onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/selectionchange_event) */ - onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/selectstart_event) */ - onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/slotchange_event) */ - onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Occurs when the download has stopped. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/stalled_event) - */ - onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit_event) */ - onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null; - /** - * Occurs if the load operation has been intentionally halted. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/suspend_event) - */ - onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Occurs to indicate the current playback position. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event) - */ - ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/toggle_event) */ - ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */ - ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */ - ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchmove_event) */ - ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchstart_event) */ - ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitioncancel_event) */ - ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */ - ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionrun_event) */ - ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionstart_event) */ - ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; - /** - * Occurs when the volume is changed, or playback is muted or unmuted. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volumechange_event) - */ - onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * Occurs when playback stops because the next frame of a video resource is not available. - * @param ev The event. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waiting_event) - */ - onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * @deprecated This is a legacy alias of `onanimationend`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) - */ - onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * @deprecated This is a legacy alias of `onanimationiteration`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) - */ - onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * @deprecated This is a legacy alias of `onanimationstart`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) - */ - onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** - * @deprecated This is a legacy alias of `ontransitionend`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) - */ - onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/wheel_event) */ - onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null; - addEventListener(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Fires when the user aborts the download. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/abort_event) + */ + onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationcancel_event) */ + onanimationcancel: + | ((this: GlobalEventHandlers, ev: AnimationEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */ + onanimationend: + | ((this: GlobalEventHandlers, ev: AnimationEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */ + onanimationiteration: + | ((this: GlobalEventHandlers, ev: AnimationEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */ + onanimationstart: + | ((this: GlobalEventHandlers, ev: AnimationEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/auxclick_event) */ + onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */ + onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */ + onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when the object loses the input focus. + * @param ev The focus event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) + */ + onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/cancel_event) */ + oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when playback is possible, but would require further buffering. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) + */ + oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplaythrough_event) */ + oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when the contents of the object or selection have changed. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/change_event) + */ + onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when the user clicks the left mouse button on the object + * @param ev The mouse event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event) + */ + onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */ + onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/webglcontextlost_event) */ + oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when the user clicks the right mouse button in the client area, opening the context menu. + * @param ev The mouse event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) + */ + oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextrestored_event) */ + oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */ + oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */ + oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/cut_event) */ + oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; + /** + * Fires when the user double-clicks the object. + * @param ev The mouse event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/dblclick_event) + */ + ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** + * Fires on the source object continuously during a drag operation. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event) + */ + ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; + /** + * Fires on the source object when the user releases the mouse at the close of a drag operation. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event) + */ + ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; + /** + * Fires on the target element when the user drags the object to a valid drop target. + * @param ev The drag event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event) + */ + ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; + /** + * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation. + * @param ev The drag event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event) + */ + ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; + /** + * Fires on the target element continuously while the user drags the object over a valid drop target. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event) + */ + ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; + /** + * Fires on the source object when the user starts to drag a text selection or selected object. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragstart_event) + */ + ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drop_event) */ + ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; + /** + * Occurs when the duration attribute is updated. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/durationchange_event) + */ + ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when the media element is reset to its initial state. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/emptied_event) + */ + onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when the end of playback is reached. + * @param ev The event + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) + */ + onended: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when an error occurs during object loading. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) + */ + onerror: OnErrorEventHandler; + /** + * Fires when the object receives focus. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) + */ + onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/formdata_event) */ + onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/gotpointercapture_event) */ + ongotpointercapture: + | ((this: GlobalEventHandlers, ev: PointerEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/input_event) */ + oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */ + oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when the user presses a key. + * @param ev The keyboard event + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event) + */ + onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; + /** + * Fires when the user presses an alphanumeric key. + * @param ev The event. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keypress_event) + */ + onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; + /** + * Fires when the user releases a key. + * @param ev The keyboard event + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keyup_event) + */ + onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; + /** + * Fires immediately after the browser loads the object. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/load_event) + */ + onload: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when media data is loaded at the current playback position. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadeddata_event) + */ + onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when the duration and dimensions of the media have been determined. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadedmetadata_event) + */ + onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when Internet Explorer begins looking for media data. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event) + */ + onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/lostpointercapture_event) */ + onlostpointercapture: + | ((this: GlobalEventHandlers, ev: PointerEvent) => any) + | null; + /** + * Fires when the user clicks the object with either mouse button. + * @param ev The mouse event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousedown_event) + */ + onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseenter_event) */ + onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseleave_event) */ + onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** + * Fires when the user moves the mouse over the object. + * @param ev The mouse event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousemove_event) + */ + onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** + * Fires when the user moves the mouse pointer outside the boundaries of the object. + * @param ev The mouse event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseout_event) + */ + onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** + * Fires when the user moves the mouse pointer into the object. + * @param ev The mouse event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseover_event) + */ + onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** + * Fires when the user releases a mouse button while the mouse is over the object. + * @param ev The mouse event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseup_event) + */ + onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/paste_event) */ + onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; + /** + * Occurs when playback is paused. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause_event) + */ + onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when the play method is requested. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play_event) + */ + onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when the audio or video has started playing. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playing_event) + */ + onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointercancel_event) */ + onpointercancel: + | ((this: GlobalEventHandlers, ev: PointerEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerdown_event) */ + onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerenter_event) */ + onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerleave_event) */ + onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointermove_event) */ + onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerout_event) */ + onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */ + onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */ + onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; + /** + * Occurs to indicate progress while downloading media data. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event) + */ + onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null; + /** + * Occurs when the playback rate is increased or decreased. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ratechange_event) + */ + onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when the user resets a form. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset_event) + */ + onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/resize_event) */ + onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null; + /** + * Fires when the user repositions the scroll box in the scroll bar on the object. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event) + */ + onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */ + onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */ + onsecuritypolicyviolation: + | ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) + | null; + /** + * Occurs when the seek operation ends. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeked_event) + */ + onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when the current playback position is moved. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking_event) + */ + onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Fires when the current selection changes. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select_event) + */ + onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/selectionchange_event) */ + onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/selectstart_event) */ + onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/slotchange_event) */ + onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when the download has stopped. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/stalled_event) + */ + onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit_event) */ + onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null; + /** + * Occurs if the load operation has been intentionally halted. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/suspend_event) + */ + onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs to indicate the current playback position. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event) + */ + ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/toggle_event) */ + ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */ + ontouchcancel?: + | ((this: GlobalEventHandlers, ev: TouchEvent) => any) + | null + | undefined; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */ + ontouchend?: + | ((this: GlobalEventHandlers, ev: TouchEvent) => any) + | null + | undefined; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchmove_event) */ + ontouchmove?: + | ((this: GlobalEventHandlers, ev: TouchEvent) => any) + | null + | undefined; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchstart_event) */ + ontouchstart?: + | ((this: GlobalEventHandlers, ev: TouchEvent) => any) + | null + | undefined; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitioncancel_event) */ + ontransitioncancel: + | ((this: GlobalEventHandlers, ev: TransitionEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */ + ontransitionend: + | ((this: GlobalEventHandlers, ev: TransitionEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionrun_event) */ + ontransitionrun: + | ((this: GlobalEventHandlers, ev: TransitionEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionstart_event) */ + ontransitionstart: + | ((this: GlobalEventHandlers, ev: TransitionEvent) => any) + | null; + /** + * Occurs when the volume is changed, or playback is muted or unmuted. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volumechange_event) + */ + onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * Occurs when playback stops because the next frame of a video resource is not available. + * @param ev The event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waiting_event) + */ + onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * @deprecated This is a legacy alias of `onanimationend`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) + */ + onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** + * @deprecated This is a legacy alias of `onanimationiteration`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) + */ + onwebkitanimationiteration: + | ((this: GlobalEventHandlers, ev: Event) => any) + | null; + /** + * @deprecated This is a legacy alias of `onanimationstart`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) + */ + onwebkitanimationstart: + | ((this: GlobalEventHandlers, ev: Event) => any) + | null; + /** + * @deprecated This is a legacy alias of `ontransitionend`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) + */ + onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/wheel_event) */ + onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null; + addEventListener( + type: K, + listener: ( + this: GlobalEventHandlers, + ev: GlobalEventHandlersEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: GlobalEventHandlers, + ev: GlobalEventHandlersEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection) */ interface HTMLAllCollection { - /** - * Returns the number of elements in the collection. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/length) - */ - readonly length: number; - /** - * Returns the item with index index from the collection (determined by tree order). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/item) - */ - item(nameOrIndex?: string): HTMLCollection | Element | null; - /** - * Returns the item with ID or name name from the collection. - * - * If there are multiple matching items, then an HTMLCollection object containing all those elements is returned. - * - * Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/namedItem) - */ - namedItem(name: string): HTMLCollection | Element | null; - [index: number]: Element; + /** + * Returns the number of elements in the collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/length) + */ + readonly length: number; + /** + * Returns the item with index index from the collection (determined by tree order). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/item) + */ + item(nameOrIndex?: string): HTMLCollection | Element | null; + /** + * Returns the item with ID or name name from the collection. + * + * If there are multiple matching items, then an HTMLCollection object containing all those elements is returned. + * + * Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/namedItem) + */ + namedItem(name: string): HTMLCollection | Element | null; + [index: number]: Element; } declare var HTMLAllCollection: { - prototype: HTMLAllCollection; - new(): HTMLAllCollection; + prototype: HTMLAllCollection; + new (): HTMLAllCollection; }; /** @@ -9925,74 +10896,90 @@ declare var HTMLAllCollection: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement) */ interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils { - /** - * Sets or retrieves the character set used to encode the object. - * @deprecated - */ - charset: string; - /** - * Sets or retrieves the coordinates of the object. - * @deprecated - */ - coords: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/download) */ - download: string; - /** - * Sets or retrieves the language code of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hreflang) - */ - hreflang: string; - /** - * Sets or retrieves the shape of the object. - * @deprecated - */ - name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/ping) */ - ping: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/referrerPolicy) */ - referrerPolicy: string; - /** - * Sets or retrieves the relationship between the object and the destination of the link. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rel) - */ - rel: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/relList) */ - readonly relList: DOMTokenList; - /** - * Sets or retrieves the relationship between the object and the destination of the link. - * @deprecated - */ - rev: string; - /** - * Sets or retrieves the shape of the object. - * @deprecated - */ - shape: string; - /** - * Sets or retrieves the window or frame at which to target content. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/target) - */ - target: string; - /** - * Retrieves or sets the text of the object as a string. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/text) - */ - text: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/type) */ - type: string; - addEventListener(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Sets or retrieves the character set used to encode the object. + * @deprecated + */ + charset: string; + /** + * Sets or retrieves the coordinates of the object. + * @deprecated + */ + coords: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/download) */ + download: string; + /** + * Sets or retrieves the language code of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hreflang) + */ + hreflang: string; + /** + * Sets or retrieves the shape of the object. + * @deprecated + */ + name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/ping) */ + ping: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/referrerPolicy) */ + referrerPolicy: string; + /** + * Sets or retrieves the relationship between the object and the destination of the link. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rel) + */ + rel: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/relList) */ + readonly relList: DOMTokenList; + /** + * Sets or retrieves the relationship between the object and the destination of the link. + * @deprecated + */ + rev: string; + /** + * Sets or retrieves the shape of the object. + * @deprecated + */ + shape: string; + /** + * Sets or retrieves the window or frame at which to target content. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/target) + */ + target: string; + /** + * Retrieves or sets the text of the object as a string. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/text) + */ + text: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/type) */ + type: string; + addEventListener( + type: K, + listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLAnchorElement: { - prototype: HTMLAnchorElement; - new(): HTMLAnchorElement; + prototype: HTMLAnchorElement; + new (): HTMLAnchorElement; }; /** @@ -10001,41 +10988,57 @@ declare var HTMLAnchorElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement) */ interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils { - /** Sets or retrieves a text alternative to the graphic. */ - alt: string; - /** Sets or retrieves the coordinates of the object. */ - coords: string; - download: string; - /** - * Sets or gets whether clicks in this region cause action. - * @deprecated - */ - noHref: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/ping) */ - ping: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/referrerPolicy) */ - referrerPolicy: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/rel) */ - rel: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/relList) */ - readonly relList: DOMTokenList; - /** Sets or retrieves the shape of the object. */ - shape: string; - /** - * Sets or retrieves the window or frame at which to target content. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/target) - */ - target: string; - addEventListener(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** Sets or retrieves a text alternative to the graphic. */ + alt: string; + /** Sets or retrieves the coordinates of the object. */ + coords: string; + download: string; + /** + * Sets or gets whether clicks in this region cause action. + * @deprecated + */ + noHref: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/ping) */ + ping: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/referrerPolicy) */ + referrerPolicy: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/rel) */ + rel: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/relList) */ + readonly relList: DOMTokenList; + /** Sets or retrieves the shape of the object. */ + shape: string; + /** + * Sets or retrieves the window or frame at which to target content. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/target) + */ + target: string; + addEventListener( + type: K, + listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLAreaElement: { - prototype: HTMLAreaElement; - new(): HTMLAreaElement; + prototype: HTMLAreaElement; + new (): HTMLAreaElement; }; /** @@ -10044,15 +11047,31 @@ declare var HTMLAreaElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAudioElement) */ interface HTMLAudioElement extends HTMLMediaElement { - addEventListener(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLAudioElement: { - prototype: HTMLAudioElement; - new(): HTMLAudioElement; + prototype: HTMLAudioElement; + new (): HTMLAudioElement; }; /** @@ -10061,20 +11080,36 @@ declare var HTMLAudioElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBRElement) */ interface HTMLBRElement extends HTMLElement { - /** - * Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document. - * @deprecated - */ - clear: string; - addEventListener(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document. + * @deprecated + */ + clear: string; + addEventListener( + type: K, + listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLBRElement: { - prototype: HTMLBRElement; - new(): HTMLBRElement; + prototype: HTMLBRElement; + new (): HTMLBRElement; }; /** @@ -10083,31 +11118,47 @@ declare var HTMLBRElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement) */ interface HTMLBaseElement extends HTMLElement { - /** - * Gets or sets the baseline URL on which relative links are based. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement/href) - */ - href: string; - /** - * Sets or retrieves the window or frame at which to target content. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement/target) - */ - target: string; - addEventListener(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Gets or sets the baseline URL on which relative links are based. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement/href) + */ + href: string; + /** + * Sets or retrieves the window or frame at which to target content. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement/target) + */ + target: string; + addEventListener( + type: K, + listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLBaseElement: { - prototype: HTMLBaseElement; - new(): HTMLBaseElement; + prototype: HTMLBaseElement; + new (): HTMLBaseElement; }; -interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap { -} +interface HTMLBodyElementEventMap + extends HTMLElementEventMap, WindowEventHandlersEventMap {} /** * Provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating elements. @@ -10115,27 +11166,43 @@ interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandle * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement) */ interface HTMLBodyElement extends HTMLElement, WindowEventHandlers { - /** @deprecated */ - aLink: string; - /** @deprecated */ - background: string; - /** @deprecated */ - bgColor: string; - /** @deprecated */ - link: string; - /** @deprecated */ - text: string; - /** @deprecated */ - vLink: string; - addEventListener(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** @deprecated */ + aLink: string; + /** @deprecated */ + background: string; + /** @deprecated */ + bgColor: string; + /** @deprecated */ + link: string; + /** @deprecated */ + text: string; + /** @deprecated */ + vLink: string; + addEventListener( + type: K, + listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLBodyElement: { - prototype: HTMLBodyElement; - new(): HTMLBodyElement; + prototype: HTMLBodyElement; + new (): HTMLBodyElement; }; /** @@ -10144,98 +11211,114 @@ declare var HTMLBodyElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement) */ interface HTMLButtonElement extends HTMLElement, PopoverInvokerElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/disabled) */ - disabled: boolean; - /** - * Retrieves a reference to the form that the object is embedded in. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/form) - */ - readonly form: HTMLFormElement | null; - /** - * Overrides the action attribute (where the data on a form is sent) on the parent form element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formAction) - */ - formAction: string; - /** - * Used to override the encoding (formEnctype attribute) specified on the form element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formEnctype) - */ - formEnctype: string; - /** - * Overrides the submit method attribute previously specified on a form element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formMethod) - */ - formMethod: string; - /** Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. */ - formNoValidate: boolean; - /** Overrides the target attribute on a form element. */ - formTarget: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/labels) */ - readonly labels: NodeListOf; - /** - * Sets or retrieves the name of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/name) - */ - name: string; - /** - * Gets the classification and default behavior of the button. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/type) - */ - type: "submit" | "reset" | "button"; - /** - * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/validationMessage) - */ - readonly validationMessage: string; - /** - * Returns a ValidityState object that represents the validity states of an element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/validity) - */ - readonly validity: ValidityState; - /** - * Sets or retrieves the default or selected value of the control. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/value) - */ - value: string; - /** - * Returns whether an element will successfully validate based on forms validation rules and constraints. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/willValidate) - */ - readonly willValidate: boolean; - /** - * Returns whether a form will validate when it is submitted, without having to submit it. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/checkValidity) - */ - checkValidity(): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/reportValidity) */ - reportValidity(): boolean; - /** - * Sets a custom error message that is displayed when a form is submitted. - * @param error Sets a custom error message that is displayed when a form is submitted. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/setCustomValidity) - */ - setCustomValidity(error: string): void; - addEventListener(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/disabled) */ + disabled: boolean; + /** + * Retrieves a reference to the form that the object is embedded in. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/form) + */ + readonly form: HTMLFormElement | null; + /** + * Overrides the action attribute (where the data on a form is sent) on the parent form element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formAction) + */ + formAction: string; + /** + * Used to override the encoding (formEnctype attribute) specified on the form element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formEnctype) + */ + formEnctype: string; + /** + * Overrides the submit method attribute previously specified on a form element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formMethod) + */ + formMethod: string; + /** Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. */ + formNoValidate: boolean; + /** Overrides the target attribute on a form element. */ + formTarget: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/labels) */ + readonly labels: NodeListOf; + /** + * Sets or retrieves the name of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/name) + */ + name: string; + /** + * Gets the classification and default behavior of the button. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/type) + */ + type: "submit" | "reset" | "button"; + /** + * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/validationMessage) + */ + readonly validationMessage: string; + /** + * Returns a ValidityState object that represents the validity states of an element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/validity) + */ + readonly validity: ValidityState; + /** + * Sets or retrieves the default or selected value of the control. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/value) + */ + value: string; + /** + * Returns whether an element will successfully validate based on forms validation rules and constraints. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/willValidate) + */ + readonly willValidate: boolean; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/checkValidity) + */ + checkValidity(): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/reportValidity) */ + reportValidity(): boolean; + /** + * Sets a custom error message that is displayed when a form is submitted. + * @param error Sets a custom error message that is displayed when a form is submitted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/setCustomValidity) + */ + setCustomValidity(error: string): void; + addEventListener( + type: K, + listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLButtonElement: { - prototype: HTMLButtonElement; - new(): HTMLButtonElement; + prototype: HTMLButtonElement; + new (): HTMLButtonElement; }; /** @@ -10244,51 +11327,79 @@ declare var HTMLButtonElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement) */ interface HTMLCanvasElement extends HTMLElement { - /** - * Gets or sets the height of a canvas element on a document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/height) - */ - height: number; - /** - * Gets or sets the width of a canvas element on a document. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/width) - */ - width: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/captureStream) */ - captureStream(frameRequestRate?: number): MediaStream; - /** - * Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas. - * @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl"); - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/getContext) - */ - getContext(contextId: "2d", options?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null; - getContext(contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null; - getContext(contextId: "webgl", options?: WebGLContextAttributes): WebGLRenderingContext | null; - getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null; - getContext(contextId: string, options?: any): RenderingContext | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toBlob) */ - toBlob(callback: BlobCallback, type?: string, quality?: any): void; - /** - * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element. - * @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toDataURL) - */ - toDataURL(type?: string, quality?: any): string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/transferControlToOffscreen) */ - transferControlToOffscreen(): OffscreenCanvas; - addEventListener(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Gets or sets the height of a canvas element on a document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/height) + */ + height: number; + /** + * Gets or sets the width of a canvas element on a document. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/width) + */ + width: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/captureStream) */ + captureStream(frameRequestRate?: number): MediaStream; + /** + * Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas. + * @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl"); + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/getContext) + */ + getContext( + contextId: "2d", + options?: CanvasRenderingContext2DSettings, + ): CanvasRenderingContext2D | null; + getContext( + contextId: "bitmaprenderer", + options?: ImageBitmapRenderingContextSettings, + ): ImageBitmapRenderingContext | null; + getContext( + contextId: "webgl", + options?: WebGLContextAttributes, + ): WebGLRenderingContext | null; + getContext( + contextId: "webgl2", + options?: WebGLContextAttributes, + ): WebGL2RenderingContext | null; + getContext(contextId: string, options?: any): RenderingContext | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toBlob) */ + toBlob(callback: BlobCallback, type?: string, quality?: any): void; + /** + * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element. + * @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toDataURL) + */ + toDataURL(type?: string, quality?: any): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/transferControlToOffscreen) */ + transferControlToOffscreen(): OffscreenCanvas; + addEventListener( + type: K, + listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLCanvasElement: { - prototype: HTMLCanvasElement; - new(): HTMLCanvasElement; + prototype: HTMLCanvasElement; + new (): HTMLCanvasElement; }; /** @@ -10297,39 +11408,39 @@ declare var HTMLCanvasElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection) */ interface HTMLCollectionBase { - /** - * Sets or retrieves the number of objects in a collection. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection/length) - */ - readonly length: number; - /** - * Retrieves an object from various collections. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection/item) - */ - item(index: number): Element | null; - [index: number]: Element; + /** + * Sets or retrieves the number of objects in a collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection/length) + */ + readonly length: number; + /** + * Retrieves an object from various collections. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection/item) + */ + item(index: number): Element | null; + [index: number]: Element; } interface HTMLCollection extends HTMLCollectionBase { - /** - * Retrieves a select object or an object from an options collection. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection/namedItem) - */ - namedItem(name: string): Element | null; + /** + * Retrieves a select object or an object from an options collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection/namedItem) + */ + namedItem(name: string): Element | null; } declare var HTMLCollection: { - prototype: HTMLCollection; - new(): HTMLCollection; + prototype: HTMLCollection; + new (): HTMLCollection; }; interface HTMLCollectionOf extends HTMLCollectionBase { - item(index: number): T | null; - namedItem(name: string): T | null; - [index: number]: T; + item(index: number): T | null; + namedItem(name: string): T | null; + [index: number]: T; } /** @@ -10338,17 +11449,33 @@ interface HTMLCollectionOf extends HTMLCollectionBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDListElement) */ interface HTMLDListElement extends HTMLElement { - /** @deprecated */ - compact: boolean; - addEventListener(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** @deprecated */ + compact: boolean; + addEventListener( + type: K, + listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLDListElement: { - prototype: HTMLDListElement; - new(): HTMLDListElement; + prototype: HTMLDListElement; + new (): HTMLDListElement; }; /** @@ -10357,17 +11484,33 @@ declare var HTMLDListElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataElement) */ interface HTMLDataElement extends HTMLElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataElement/value) */ - value: string; - addEventListener(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataElement/value) */ + value: string; + addEventListener( + type: K, + listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLDataElement: { - prototype: HTMLDataElement; - new(): HTMLDataElement; + prototype: HTMLDataElement; + new (): HTMLDataElement; }; /** @@ -10376,87 +11519,151 @@ declare var HTMLDataElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataListElement) */ interface HTMLDataListElement extends HTMLElement { - /** - * Returns an HTMLCollection of the option elements of the datalist element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataListElement/options) - */ - readonly options: HTMLCollectionOf; - addEventListener(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Returns an HTMLCollection of the option elements of the datalist element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataListElement/options) + */ + readonly options: HTMLCollectionOf; + addEventListener( + type: K, + listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLDataListElement: { - prototype: HTMLDataListElement; - new(): HTMLDataListElement; + prototype: HTMLDataListElement; + new (): HTMLDataListElement; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement) */ interface HTMLDetailsElement extends HTMLElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/open) */ - name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/open) */ - open: boolean; - addEventListener(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/open) */ + name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/open) */ + open: boolean; + addEventListener( + type: K, + listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLDetailsElement: { - prototype: HTMLDetailsElement; - new(): HTMLDetailsElement; + prototype: HTMLDetailsElement; + new (): HTMLDetailsElement; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement) */ interface HTMLDialogElement extends HTMLElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/open) */ - open: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/returnValue) */ - returnValue: string; - /** - * Closes the dialog element. - * - * The argument, if provided, provides a return value. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close) - */ - close(returnValue?: string): void; - /** - * Displays the dialog element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/show) - */ - show(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/showModal) */ - showModal(): void; - addEventListener(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/open) */ + open: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/returnValue) */ + returnValue: string; + /** + * Closes the dialog element. + * + * The argument, if provided, provides a return value. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close) + */ + close(returnValue?: string): void; + /** + * Displays the dialog element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/show) + */ + show(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/showModal) */ + showModal(): void; + addEventListener( + type: K, + listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLDialogElement: { - prototype: HTMLDialogElement; - new(): HTMLDialogElement; + prototype: HTMLDialogElement; + new (): HTMLDialogElement; }; /** @deprecated */ interface HTMLDirectoryElement extends HTMLElement { - /** @deprecated */ - compact: boolean; - addEventListener(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** @deprecated */ + compact: boolean; + addEventListener( + type: K, + listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } /** @deprecated */ declare var HTMLDirectoryElement: { - prototype: HTMLDirectoryElement; - new(): HTMLDirectoryElement; + prototype: HTMLDirectoryElement; + new (): HTMLDirectoryElement; }; /** @@ -10465,103 +11672,157 @@ declare var HTMLDirectoryElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDivElement) */ interface HTMLDivElement extends HTMLElement { - /** - * Sets or retrieves how the object is aligned with adjacent text. - * @deprecated - */ - align: string; - addEventListener(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Sets or retrieves how the object is aligned with adjacent text. + * @deprecated + */ + align: string; + addEventListener( + type: K, + listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLDivElement: { - prototype: HTMLDivElement; - new(): HTMLDivElement; + prototype: HTMLDivElement; + new (): HTMLDivElement; }; /** @deprecated use Document */ interface HTMLDocument extends Document { - addEventListener(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } /** @deprecated */ declare var HTMLDocument: { - prototype: HTMLDocument; - new(): HTMLDocument; + prototype: HTMLDocument; + new (): HTMLDocument; }; -interface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap { -} +interface HTMLElementEventMap + extends ElementEventMap, GlobalEventHandlersEventMap {} /** * Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement) */ -interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKey) */ - accessKey: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKeyLabel) */ - readonly accessKeyLabel: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autocapitalize) */ - autocapitalize: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dir) */ - dir: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/draggable) */ - draggable: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidden) */ - hidden: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inert) */ - inert: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/innerText) */ - innerText: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang) */ - lang: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetHeight) */ - readonly offsetHeight: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetLeft) */ - readonly offsetLeft: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetParent) */ - readonly offsetParent: Element | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetTop) */ - readonly offsetTop: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetWidth) */ - readonly offsetWidth: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/outerText) */ - outerText: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/popover) */ - popover: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/spellcheck) */ - spellcheck: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) */ - title: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/translate) */ - translate: boolean; - writingSuggestions: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attachInternals) */ - attachInternals(): ElementInternals; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/click) */ - click(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidePopover) */ - hidePopover(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/showPopover) */ - showPopover(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/togglePopover) */ - togglePopover(force?: boolean): boolean; - addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +interface HTMLElement + extends + Element, + ElementCSSInlineStyle, + ElementContentEditable, + GlobalEventHandlers, + HTMLOrSVGElement { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKey) */ + accessKey: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKeyLabel) */ + readonly accessKeyLabel: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autocapitalize) */ + autocapitalize: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dir) */ + dir: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/draggable) */ + draggable: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidden) */ + hidden: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inert) */ + inert: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/innerText) */ + innerText: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang) */ + lang: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetHeight) */ + readonly offsetHeight: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetLeft) */ + readonly offsetLeft: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetParent) */ + readonly offsetParent: Element | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetTop) */ + readonly offsetTop: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetWidth) */ + readonly offsetWidth: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/outerText) */ + outerText: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/popover) */ + popover: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/spellcheck) */ + spellcheck: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) */ + title: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/translate) */ + translate: boolean; + writingSuggestions: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attachInternals) */ + attachInternals(): ElementInternals; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/click) */ + click(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidePopover) */ + hidePopover(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/showPopover) */ + showPopover(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/togglePopover) */ + togglePopover(force?: boolean): boolean; + addEventListener( + type: K, + listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLElement: { - prototype: HTMLElement; - new(): HTMLElement; + prototype: HTMLElement; + new (): HTMLElement; }; /** @@ -10570,42 +11831,58 @@ declare var HTMLElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement) */ interface HTMLEmbedElement extends HTMLElement { - /** @deprecated */ - align: string; - /** - * Sets or retrieves the height of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/height) - */ - height: string; - /** - * Sets or retrieves the name of the object. - * @deprecated - */ - name: string; - /** - * Sets or retrieves a URL to be loaded by the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/src) - */ - src: string; - type: string; - /** - * Sets or retrieves the width of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/width) - */ - width: string; - getSVGDocument(): Document | null; - addEventListener(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** @deprecated */ + align: string; + /** + * Sets or retrieves the height of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/height) + */ + height: string; + /** + * Sets or retrieves the name of the object. + * @deprecated + */ + name: string; + /** + * Sets or retrieves a URL to be loaded by the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/src) + */ + src: string; + type: string; + /** + * Sets or retrieves the width of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/width) + */ + width: string; + getSVGDocument(): Document | null; + addEventListener( + type: K, + listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLEmbedElement: { - prototype: HTMLEmbedElement; - new(): HTMLEmbedElement; + prototype: HTMLEmbedElement; + new (): HTMLEmbedElement; }; /** @@ -10614,70 +11891,86 @@ declare var HTMLEmbedElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement) */ interface HTMLFieldSetElement extends HTMLElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/disabled) */ - disabled: boolean; - /** - * Returns an HTMLCollection of the form controls in the element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/elements) - */ - readonly elements: HTMLCollection; - /** - * Retrieves a reference to the form that the object is embedded in. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/form) - */ - readonly form: HTMLFormElement | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/name) */ - name: string; - /** - * Returns the string "fieldset". - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/type) - */ - readonly type: string; - /** - * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/validationMessage) - */ - readonly validationMessage: string; - /** - * Returns a ValidityState object that represents the validity states of an element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/validity) - */ - readonly validity: ValidityState; - /** - * Returns whether an element will successfully validate based on forms validation rules and constraints. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/willValidate) - */ - readonly willValidate: boolean; - /** - * Returns whether a form will validate when it is submitted, without having to submit it. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/checkValidity) - */ - checkValidity(): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/reportValidity) */ - reportValidity(): boolean; - /** - * Sets a custom error message that is displayed when a form is submitted. - * @param error Sets a custom error message that is displayed when a form is submitted. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/setCustomValidity) - */ - setCustomValidity(error: string): void; - addEventListener(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/disabled) */ + disabled: boolean; + /** + * Returns an HTMLCollection of the form controls in the element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/elements) + */ + readonly elements: HTMLCollection; + /** + * Retrieves a reference to the form that the object is embedded in. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/form) + */ + readonly form: HTMLFormElement | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/name) */ + name: string; + /** + * Returns the string "fieldset". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/type) + */ + readonly type: string; + /** + * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/validationMessage) + */ + readonly validationMessage: string; + /** + * Returns a ValidityState object that represents the validity states of an element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/validity) + */ + readonly validity: ValidityState; + /** + * Returns whether an element will successfully validate based on forms validation rules and constraints. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/willValidate) + */ + readonly willValidate: boolean; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/checkValidity) + */ + checkValidity(): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/reportValidity) */ + reportValidity(): boolean; + /** + * Sets a custom error message that is displayed when a form is submitted. + * @param error Sets a custom error message that is displayed when a form is submitted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/setCustomValidity) + */ + setCustomValidity(error: string): void; + addEventListener( + type: K, + listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLFieldSetElement: { - prototype: HTMLFieldSetElement; - new(): HTMLFieldSetElement; + prototype: HTMLFieldSetElement; + new (): HTMLFieldSetElement; }; /** @@ -10687,35 +11980,51 @@ declare var HTMLFieldSetElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement) */ interface HTMLFontElement extends HTMLElement { - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/color) - */ - color: string; - /** - * Sets or retrieves the current typeface family. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/face) - */ - face: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/size) - */ - size: string; - addEventListener(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/color) + */ + color: string; + /** + * Sets or retrieves the current typeface family. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/face) + */ + face: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/size) + */ + size: string; + addEventListener( + type: K, + listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } /** @deprecated */ declare var HTMLFontElement: { - prototype: HTMLFontElement; - new(): HTMLFontElement; + prototype: HTMLFontElement; + new (): HTMLFontElement; }; /** @@ -10724,19 +12033,19 @@ declare var HTMLFontElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormControlsCollection) */ interface HTMLFormControlsCollection extends HTMLCollectionBase { - /** - * Returns the item with ID or name name from the collection. - * - * If there are multiple matching items, then a RadioNodeList object containing all those elements is returned. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormControlsCollection/namedItem) - */ - namedItem(name: string): RadioNodeList | Element | null; + /** + * Returns the item with ID or name name from the collection. + * + * If there are multiple matching items, then a RadioNodeList object containing all those elements is returned. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormControlsCollection/namedItem) + */ + namedItem(name: string): RadioNodeList | Element | null; } declare var HTMLFormControlsCollection: { - prototype: HTMLFormControlsCollection; - new(): HTMLFormControlsCollection; + prototype: HTMLFormControlsCollection; + new (): HTMLFormControlsCollection; }; /** @@ -10745,171 +12054,203 @@ declare var HTMLFormControlsCollection: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement) */ interface HTMLFormElement extends HTMLElement { - /** - * Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/acceptCharset) - */ - acceptCharset: string; - /** - * Sets or retrieves the URL to which the form content is sent for processing. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/action) - */ - action: string; - /** - * Specifies whether autocomplete is applied to an editable text field. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/autocomplete) - */ - autocomplete: AutoFillBase; - /** - * Retrieves a collection, in source order, of all controls in a given form. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/elements) - */ - readonly elements: HTMLFormControlsCollection; - /** - * Sets or retrieves the MIME encoding for the form. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/encoding) - */ - encoding: string; - /** - * Sets or retrieves the encoding type for the form. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/enctype) - */ - enctype: string; - /** - * Sets or retrieves the number of objects in a collection. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/length) - */ - readonly length: number; - /** - * Sets or retrieves how to send the form data to the server. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/method) - */ - method: string; - /** - * Sets or retrieves the name of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/name) - */ - name: string; - /** Designates a form that is not validated when submitted. */ - noValidate: boolean; - rel: string; - readonly relList: DOMTokenList; - /** - * Sets or retrieves the window or frame at which to target content. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/target) - */ - target: string; - /** - * Returns whether a form will validate when it is submitted, without having to submit it. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/checkValidity) - */ - checkValidity(): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reportValidity) */ - reportValidity(): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/requestSubmit) */ - requestSubmit(submitter?: HTMLElement | null): void; - /** - * Fires when the user resets a form. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset) - */ - reset(): void; - /** - * Fires when a FORM is about to be submitted. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit) - */ - submit(): void; - addEventListener(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; - [index: number]: Element; - [name: string]: any; + /** + * Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/acceptCharset) + */ + acceptCharset: string; + /** + * Sets or retrieves the URL to which the form content is sent for processing. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/action) + */ + action: string; + /** + * Specifies whether autocomplete is applied to an editable text field. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/autocomplete) + */ + autocomplete: AutoFillBase; + /** + * Retrieves a collection, in source order, of all controls in a given form. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/elements) + */ + readonly elements: HTMLFormControlsCollection; + /** + * Sets or retrieves the MIME encoding for the form. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/encoding) + */ + encoding: string; + /** + * Sets or retrieves the encoding type for the form. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/enctype) + */ + enctype: string; + /** + * Sets or retrieves the number of objects in a collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/length) + */ + readonly length: number; + /** + * Sets or retrieves how to send the form data to the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/method) + */ + method: string; + /** + * Sets or retrieves the name of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/name) + */ + name: string; + /** Designates a form that is not validated when submitted. */ + noValidate: boolean; + rel: string; + readonly relList: DOMTokenList; + /** + * Sets or retrieves the window or frame at which to target content. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/target) + */ + target: string; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/checkValidity) + */ + checkValidity(): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reportValidity) */ + reportValidity(): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/requestSubmit) */ + requestSubmit(submitter?: HTMLElement | null): void; + /** + * Fires when the user resets a form. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset) + */ + reset(): void; + /** + * Fires when a FORM is about to be submitted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit) + */ + submit(): void; + addEventListener( + type: K, + listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; + [index: number]: Element; + [name: string]: any; } declare var HTMLFormElement: { - prototype: HTMLFormElement; - new(): HTMLFormElement; + prototype: HTMLFormElement; + new (): HTMLFormElement; }; /** @deprecated */ interface HTMLFrameElement extends HTMLElement { - /** - * Retrieves the document object of the page or frame. - * @deprecated - */ - readonly contentDocument: Document | null; - /** - * Retrieves the object of the specified. - * @deprecated - */ - readonly contentWindow: WindowProxy | null; - /** - * Sets or retrieves whether to display a border for the frame. - * @deprecated - */ - frameBorder: string; - /** - * Sets or retrieves a URI to a long description of the object. - * @deprecated - */ - longDesc: string; - /** - * Sets or retrieves the top and bottom margin heights before displaying the text in a frame. - * @deprecated - */ - marginHeight: string; - /** - * Sets or retrieves the left and right margin widths before displaying the text in a frame. - * @deprecated - */ - marginWidth: string; - /** - * Sets or retrieves the frame name. - * @deprecated - */ - name: string; - /** - * Sets or retrieves whether the user can resize the frame. - * @deprecated - */ - noResize: boolean; - /** - * Sets or retrieves whether the frame can be scrolled. - * @deprecated - */ - scrolling: string; - /** - * Sets or retrieves a URL to be loaded by the object. - * @deprecated - */ - src: string; - addEventListener(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Retrieves the document object of the page or frame. + * @deprecated + */ + readonly contentDocument: Document | null; + /** + * Retrieves the object of the specified. + * @deprecated + */ + readonly contentWindow: WindowProxy | null; + /** + * Sets or retrieves whether to display a border for the frame. + * @deprecated + */ + frameBorder: string; + /** + * Sets or retrieves a URI to a long description of the object. + * @deprecated + */ + longDesc: string; + /** + * Sets or retrieves the top and bottom margin heights before displaying the text in a frame. + * @deprecated + */ + marginHeight: string; + /** + * Sets or retrieves the left and right margin widths before displaying the text in a frame. + * @deprecated + */ + marginWidth: string; + /** + * Sets or retrieves the frame name. + * @deprecated + */ + name: string; + /** + * Sets or retrieves whether the user can resize the frame. + * @deprecated + */ + noResize: boolean; + /** + * Sets or retrieves whether the frame can be scrolled. + * @deprecated + */ + scrolling: string; + /** + * Sets or retrieves a URL to be loaded by the object. + * @deprecated + */ + src: string; + addEventListener( + type: K, + listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } /** @deprecated */ declare var HTMLFrameElement: { - prototype: HTMLFrameElement; - new(): HTMLFrameElement; + prototype: HTMLFrameElement; + new (): HTMLFrameElement; }; -interface HTMLFrameSetElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap { -} +interface HTMLFrameSetElementEventMap + extends HTMLElementEventMap, WindowEventHandlersEventMap {} /** * Provides special properties (beyond those of the regular HTMLElement interface they also inherit) for manipulating elements. @@ -10918,26 +12259,48 @@ interface HTMLFrameSetElementEventMap extends HTMLElementEventMap, WindowEventHa * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameSetElement) */ interface HTMLFrameSetElement extends HTMLElement, WindowEventHandlers { - /** - * Sets or retrieves the frame widths of the object. - * @deprecated - */ - cols: string; - /** - * Sets or retrieves the frame heights of the object. - * @deprecated - */ - rows: string; - addEventListener(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Sets or retrieves the frame widths of the object. + * @deprecated + */ + cols: string; + /** + * Sets or retrieves the frame heights of the object. + * @deprecated + */ + rows: string; + addEventListener( + type: K, + listener: ( + this: HTMLFrameSetElement, + ev: HTMLFrameSetElementEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: HTMLFrameSetElement, + ev: HTMLFrameSetElementEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } /** @deprecated */ declare var HTMLFrameSetElement: { - prototype: HTMLFrameSetElement; - new(): HTMLFrameSetElement; + prototype: HTMLFrameSetElement; + new (): HTMLFrameSetElement; }; /** @@ -10946,34 +12309,50 @@ declare var HTMLFrameSetElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHRElement) */ interface HTMLHRElement extends HTMLElement { - /** - * Sets or retrieves how the object is aligned with adjacent text. - * @deprecated - */ - align: string; - /** @deprecated */ - color: string; - /** - * Sets or retrieves whether the horizontal rule is drawn with 3-D shading. - * @deprecated - */ - noShade: boolean; - /** @deprecated */ - size: string; - /** - * Sets or retrieves the width of the object. - * @deprecated - */ - width: string; - addEventListener(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Sets or retrieves how the object is aligned with adjacent text. + * @deprecated + */ + align: string; + /** @deprecated */ + color: string; + /** + * Sets or retrieves whether the horizontal rule is drawn with 3-D shading. + * @deprecated + */ + noShade: boolean; + /** @deprecated */ + size: string; + /** + * Sets or retrieves the width of the object. + * @deprecated + */ + width: string; + addEventListener( + type: K, + listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLHRElement: { - prototype: HTMLHRElement; - new(): HTMLHRElement; + prototype: HTMLHRElement; + new (): HTMLHRElement; }; /** @@ -10982,15 +12361,31 @@ declare var HTMLHRElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHeadElement) */ interface HTMLHeadElement extends HTMLElement { - addEventListener(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLHeadElement: { - prototype: HTMLHeadElement; - new(): HTMLHeadElement; + prototype: HTMLHeadElement; + new (): HTMLHeadElement; }; /** @@ -10999,20 +12394,36 @@ declare var HTMLHeadElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHeadingElement) */ interface HTMLHeadingElement extends HTMLElement { - /** - * Sets or retrieves a value that indicates the table alignment. - * @deprecated - */ - align: string; - addEventListener(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Sets or retrieves a value that indicates the table alignment. + * @deprecated + */ + align: string; + addEventListener( + type: K, + listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLHeadingElement: { - prototype: HTMLHeadingElement; - new(): HTMLHeadingElement; + prototype: HTMLHeadingElement; + new (): HTMLHeadingElement; }; /** @@ -11021,112 +12432,128 @@ declare var HTMLHeadingElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHtmlElement) */ interface HTMLHtmlElement extends HTMLElement { - /** - * Sets or retrieves the DTD version that governs the current document. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHtmlElement/version) - */ - version: string; - addEventListener(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Sets or retrieves the DTD version that governs the current document. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHtmlElement/version) + */ + version: string; + addEventListener( + type: K, + listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLHtmlElement: { - prototype: HTMLHtmlElement; - new(): HTMLHtmlElement; + prototype: HTMLHtmlElement; + new (): HTMLHtmlElement; }; interface HTMLHyperlinkElementUtils { - /** - * Returns the hyperlink's URL's fragment (includes leading "#" if non-empty). - * - * Can be set, to change the URL's fragment (ignores leading "#"). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hash) - */ - hash: string; - /** - * Returns the hyperlink's URL's host and port (if different from the default port for the scheme). - * - * Can be set, to change the URL's host and port. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/host) - */ - host: string; - /** - * Returns the hyperlink's URL's host. - * - * Can be set, to change the URL's host. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hostname) - */ - hostname: string; - /** - * Returns the hyperlink's URL. - * - * Can be set, to change the URL. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/href) - */ - href: string; - toString(): string; - /** - * Returns the hyperlink's URL's origin. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/origin) - */ - readonly origin: string; - /** - * Returns the hyperlink's URL's password. - * - * Can be set, to change the URL's password. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/password) - */ - password: string; - /** - * Returns the hyperlink's URL's path. - * - * Can be set, to change the URL's path. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/pathname) - */ - pathname: string; - /** - * Returns the hyperlink's URL's port. - * - * Can be set, to change the URL's port. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/port) - */ - port: string; - /** - * Returns the hyperlink's URL's scheme. - * - * Can be set, to change the URL's scheme. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/protocol) - */ - protocol: string; - /** - * Returns the hyperlink's URL's query (includes leading "?" if non-empty). - * - * Can be set, to change the URL's query (ignores leading "?"). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/search) - */ - search: string; - /** - * Returns the hyperlink's URL's username. - * - * Can be set, to change the URL's username. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/username) - */ - username: string; + /** + * Returns the hyperlink's URL's fragment (includes leading "#" if non-empty). + * + * Can be set, to change the URL's fragment (ignores leading "#"). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hash) + */ + hash: string; + /** + * Returns the hyperlink's URL's host and port (if different from the default port for the scheme). + * + * Can be set, to change the URL's host and port. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/host) + */ + host: string; + /** + * Returns the hyperlink's URL's host. + * + * Can be set, to change the URL's host. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hostname) + */ + hostname: string; + /** + * Returns the hyperlink's URL. + * + * Can be set, to change the URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/href) + */ + href: string; + toString(): string; + /** + * Returns the hyperlink's URL's origin. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/origin) + */ + readonly origin: string; + /** + * Returns the hyperlink's URL's password. + * + * Can be set, to change the URL's password. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/password) + */ + password: string; + /** + * Returns the hyperlink's URL's path. + * + * Can be set, to change the URL's path. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/pathname) + */ + pathname: string; + /** + * Returns the hyperlink's URL's port. + * + * Can be set, to change the URL's port. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/port) + */ + port: string; + /** + * Returns the hyperlink's URL's scheme. + * + * Can be set, to change the URL's scheme. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/protocol) + */ + protocol: string; + /** + * Returns the hyperlink's URL's query (includes leading "?" if non-empty). + * + * Can be set, to change the URL's query (ignores leading "?"). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/search) + */ + search: string; + /** + * Returns the hyperlink's URL's username. + * + * Can be set, to change the URL's username. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/username) + */ + username: string; } /** @@ -11135,98 +12562,114 @@ interface HTMLHyperlinkElementUtils { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement) */ interface HTMLIFrameElement extends HTMLElement { - /** - * Sets or retrieves how the object is aligned with adjacent text. - * @deprecated - */ - align: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/allow) */ - allow: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/allowFullscreen) */ - allowFullscreen: boolean; - /** - * Retrieves the document object of the page or frame. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/contentDocument) - */ - readonly contentDocument: Document | null; - /** - * Retrieves the object of the specified. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/contentWindow) - */ - readonly contentWindow: WindowProxy | null; - /** - * Sets or retrieves whether to display a border for the frame. - * @deprecated - */ - frameBorder: string; - /** - * Sets or retrieves the height of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/height) - */ - height: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/loading) */ - loading: string; - /** - * Sets or retrieves a URI to a long description of the object. - * @deprecated - */ - longDesc: string; - /** - * Sets or retrieves the top and bottom margin heights before displaying the text in a frame. - * @deprecated - */ - marginHeight: string; - /** - * Sets or retrieves the left and right margin widths before displaying the text in a frame. - * @deprecated - */ - marginWidth: string; - /** - * Sets or retrieves the frame name. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/name) - */ - name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/referrerPolicy) */ - referrerPolicy: ReferrerPolicy; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/sandbox) */ - readonly sandbox: DOMTokenList; - /** - * Sets or retrieves whether the frame can be scrolled. - * @deprecated - */ - scrolling: string; - /** - * Sets or retrieves a URL to be loaded by the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/src) - */ - src: string; - /** - * Sets or retrives the content of the page that is to contain. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/srcdoc) - */ - srcdoc: string; - /** - * Sets or retrieves the width of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/width) - */ - width: string; - getSVGDocument(): Document | null; - addEventListener(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Sets or retrieves how the object is aligned with adjacent text. + * @deprecated + */ + align: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/allow) */ + allow: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/allowFullscreen) */ + allowFullscreen: boolean; + /** + * Retrieves the document object of the page or frame. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/contentDocument) + */ + readonly contentDocument: Document | null; + /** + * Retrieves the object of the specified. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/contentWindow) + */ + readonly contentWindow: WindowProxy | null; + /** + * Sets or retrieves whether to display a border for the frame. + * @deprecated + */ + frameBorder: string; + /** + * Sets or retrieves the height of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/height) + */ + height: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/loading) */ + loading: string; + /** + * Sets or retrieves a URI to a long description of the object. + * @deprecated + */ + longDesc: string; + /** + * Sets or retrieves the top and bottom margin heights before displaying the text in a frame. + * @deprecated + */ + marginHeight: string; + /** + * Sets or retrieves the left and right margin widths before displaying the text in a frame. + * @deprecated + */ + marginWidth: string; + /** + * Sets or retrieves the frame name. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/name) + */ + name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/referrerPolicy) */ + referrerPolicy: ReferrerPolicy; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/sandbox) */ + readonly sandbox: DOMTokenList; + /** + * Sets or retrieves whether the frame can be scrolled. + * @deprecated + */ + scrolling: string; + /** + * Sets or retrieves a URL to be loaded by the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/src) + */ + src: string; + /** + * Sets or retrives the content of the page that is to contain. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/srcdoc) + */ + srcdoc: string; + /** + * Sets or retrieves the width of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/width) + */ + width: string; + getSVGDocument(): Document | null; + addEventListener( + type: K, + listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLIFrameElement: { - prototype: HTMLIFrameElement; - new(): HTMLIFrameElement; + prototype: HTMLIFrameElement; + new (): HTMLIFrameElement; }; /** @@ -11235,139 +12678,155 @@ declare var HTMLIFrameElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement) */ interface HTMLImageElement extends HTMLElement { - /** - * Sets or retrieves how the object is aligned with adjacent text. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/align) - */ - align: string; - /** - * Sets or retrieves a text alternative to the graphic. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/alt) - */ - alt: string; - /** - * Specifies the properties of a border drawn around an object. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/border) - */ - border: string; - /** - * Retrieves whether the object is fully loaded. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/complete) - */ - readonly complete: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/crossOrigin) */ - crossOrigin: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/currentSrc) */ - readonly currentSrc: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decoding) */ - decoding: "async" | "sync" | "auto"; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/fetchPriority) */ - fetchPriority: string; - /** - * Sets or retrieves the height of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/height) - */ - height: number; - /** - * Sets or retrieves the width of the border to draw around the object. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/hspace) - */ - hspace: number; - /** - * Sets or retrieves whether the image is a server-side image map. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/isMap) - */ - isMap: boolean; - /** - * Sets or retrieves the policy for loading image elements that are outside the viewport. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/loading) - */ - loading: "eager" | "lazy"; - /** - * Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/longDesc) - */ - longDesc: string; - /** @deprecated */ - lowsrc: string; - /** - * Sets or retrieves the name of the object. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/name) - */ - name: string; - /** - * The original height of the image resource before sizing. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/naturalHeight) - */ - readonly naturalHeight: number; - /** - * The original width of the image resource before sizing. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/naturalWidth) - */ - readonly naturalWidth: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/referrerPolicy) */ - referrerPolicy: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/sizes) */ - sizes: string; - /** - * The address or URL of the a media resource that is to be considered. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/src) - */ - src: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/srcset) */ - srcset: string; - /** - * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/useMap) - */ - useMap: string; - /** - * Sets or retrieves the vertical margin for the object. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/vspace) - */ - vspace: number; - /** - * Sets or retrieves the width of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/width) - */ - width: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/x) */ - readonly x: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/y) */ - readonly y: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decode) */ - decode(): Promise; - addEventListener(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Sets or retrieves how the object is aligned with adjacent text. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/align) + */ + align: string; + /** + * Sets or retrieves a text alternative to the graphic. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/alt) + */ + alt: string; + /** + * Specifies the properties of a border drawn around an object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/border) + */ + border: string; + /** + * Retrieves whether the object is fully loaded. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/complete) + */ + readonly complete: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/crossOrigin) */ + crossOrigin: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/currentSrc) */ + readonly currentSrc: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decoding) */ + decoding: "async" | "sync" | "auto"; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/fetchPriority) */ + fetchPriority: string; + /** + * Sets or retrieves the height of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/height) + */ + height: number; + /** + * Sets or retrieves the width of the border to draw around the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/hspace) + */ + hspace: number; + /** + * Sets or retrieves whether the image is a server-side image map. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/isMap) + */ + isMap: boolean; + /** + * Sets or retrieves the policy for loading image elements that are outside the viewport. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/loading) + */ + loading: "eager" | "lazy"; + /** + * Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/longDesc) + */ + longDesc: string; + /** @deprecated */ + lowsrc: string; + /** + * Sets or retrieves the name of the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/name) + */ + name: string; + /** + * The original height of the image resource before sizing. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/naturalHeight) + */ + readonly naturalHeight: number; + /** + * The original width of the image resource before sizing. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/naturalWidth) + */ + readonly naturalWidth: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/referrerPolicy) */ + referrerPolicy: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/sizes) */ + sizes: string; + /** + * The address or URL of the a media resource that is to be considered. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/src) + */ + src: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/srcset) */ + srcset: string; + /** + * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/useMap) + */ + useMap: string; + /** + * Sets or retrieves the vertical margin for the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/vspace) + */ + vspace: number; + /** + * Sets or retrieves the width of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/width) + */ + width: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/x) */ + readonly x: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/y) */ + readonly y: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decode) */ + decode(): Promise; + addEventListener( + type: K, + listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLImageElement: { - prototype: HTMLImageElement; - new(): HTMLImageElement; + prototype: HTMLImageElement; + new (): HTMLImageElement; }; /** @@ -11376,301 +12835,326 @@ declare var HTMLImageElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement) */ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement { - /** - * Sets or retrieves a comma-separated list of content types. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/accept) - */ - accept: string; - /** - * Sets or retrieves how the object is aligned with adjacent text. - * @deprecated - */ - align: string; - /** - * Sets or retrieves a text alternative to the graphic. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/alt) - */ - alt: string; - /** - * Specifies whether autocomplete is applied to an editable text field. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/autocomplete) - */ - autocomplete: AutoFill; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/capture) */ - capture: string; - /** - * Sets or retrieves the state of the check box or radio button. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/checked) - */ - checked: boolean; - /** - * Sets or retrieves the state of the check box or radio button. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/defaultChecked) - */ - defaultChecked: boolean; - /** - * Sets or retrieves the initial contents of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/defaultValue) - */ - defaultValue: string; - dirName: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/disabled) */ - disabled: boolean; - /** - * Returns a FileList object on a file type input object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/files) - */ - files: FileList | null; - /** - * Retrieves a reference to the form that the object is embedded in. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/form) - */ - readonly form: HTMLFormElement | null; - /** - * Overrides the action attribute (where the data on a form is sent) on the parent form element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formAction) - */ - formAction: string; - /** - * Used to override the encoding (formEnctype attribute) specified on the form element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formEnctype) - */ - formEnctype: string; - /** - * Overrides the submit method attribute previously specified on a form element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formMethod) - */ - formMethod: string; - /** Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. */ - formNoValidate: boolean; - /** Overrides the target attribute on a form element. */ - formTarget: string; - /** - * Sets or retrieves the height of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/height) - */ - height: number; - /** - * When set, overrides the rendering of checkbox controls so that the current value is not visible. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/indeterminate) - */ - indeterminate: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/labels) */ - readonly labels: NodeListOf | null; - /** - * Specifies the ID of a pre-defined datalist of options for an input element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/list) - */ - readonly list: HTMLDataListElement | null; - /** - * Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/max) - */ - max: string; - /** - * Sets or retrieves the maximum number of characters that the user can enter in a text control. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/maxLength) - */ - maxLength: number; - /** - * Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/min) - */ - min: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/minLength) */ - minLength: number; - /** - * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/multiple) - */ - multiple: boolean; - /** - * Sets or retrieves the name of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/name) - */ - name: string; - /** - * Gets or sets a string containing a regular expression that the user's input must match. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/pattern) - */ - pattern: string; - /** - * Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/placeholder) - */ - placeholder: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/readOnly) */ - readOnly: boolean; - /** - * When present, marks an element that can't be submitted without a value. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/required) - */ - required: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionDirection) */ - selectionDirection: "forward" | "backward" | "none" | null; - /** - * Gets or sets the end position or offset of a text selection. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionEnd) - */ - selectionEnd: number | null; - /** - * Gets or sets the starting position or offset of a text selection. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionStart) - */ - selectionStart: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/size) */ - size: number; - /** - * The address or URL of the a media resource that is to be considered. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/src) - */ - src: string; - /** - * Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/step) - */ - step: string; - /** - * Returns the content type of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/type) - */ - type: string; - /** - * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. - * @deprecated - */ - useMap: string; - /** - * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validationMessage) - */ - readonly validationMessage: string; - /** - * Returns a ValidityState object that represents the validity states of an element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validity) - */ - readonly validity: ValidityState; - /** - * Returns the value of the data at the cursor's current position. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/value) - */ - value: string; - /** - * Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/valueAsDate) - */ - valueAsDate: Date | null; - /** - * Returns the input field value as a number. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/valueAsNumber) - */ - valueAsNumber: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitEntries) */ - readonly webkitEntries: ReadonlyArray; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitdirectory) */ - webkitdirectory: boolean; - /** - * Sets or retrieves the width of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/width) - */ - width: number; - /** - * Returns whether an element will successfully validate based on forms validation rules and constraints. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/willValidate) - */ - readonly willValidate: boolean; - /** - * Returns whether a form will validate when it is submitted, without having to submit it. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/checkValidity) - */ - checkValidity(): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/reportValidity) */ - reportValidity(): boolean; - /** - * Makes the selection equal to the current object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select) - */ - select(): void; - /** - * Sets a custom error message that is displayed when a form is submitted. - * @param error Sets a custom error message that is displayed when a form is submitted. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setCustomValidity) - */ - setCustomValidity(error: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setRangeText) */ - setRangeText(replacement: string): void; - setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void; - /** - * Sets the start and end positions of a selection in a text field. - * @param start The offset into the text field for the start of the selection. - * @param end The offset into the text field for the end of the selection. - * @param direction The direction in which the selection is performed. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setSelectionRange) - */ - setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/showPicker) */ - showPicker(): void; - /** - * Decrements a range input control's value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control's step value multiplied by the parameter's value. - * @param n Value to decrement the value by. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/stepDown) - */ - stepDown(n?: number): void; - /** - * Increments a range input control's value by the value given by the Step attribute. If the optional parameter is used, will increment the input control's value by that value. - * @param n Value to increment the value by. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/stepUp) - */ - stepUp(n?: number): void; - addEventListener(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Sets or retrieves a comma-separated list of content types. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/accept) + */ + accept: string; + /** + * Sets or retrieves how the object is aligned with adjacent text. + * @deprecated + */ + align: string; + /** + * Sets or retrieves a text alternative to the graphic. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/alt) + */ + alt: string; + /** + * Specifies whether autocomplete is applied to an editable text field. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/autocomplete) + */ + autocomplete: AutoFill; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/capture) */ + capture: string; + /** + * Sets or retrieves the state of the check box or radio button. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/checked) + */ + checked: boolean; + /** + * Sets or retrieves the state of the check box or radio button. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/defaultChecked) + */ + defaultChecked: boolean; + /** + * Sets or retrieves the initial contents of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/defaultValue) + */ + defaultValue: string; + dirName: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/disabled) */ + disabled: boolean; + /** + * Returns a FileList object on a file type input object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/files) + */ + files: FileList | null; + /** + * Retrieves a reference to the form that the object is embedded in. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/form) + */ + readonly form: HTMLFormElement | null; + /** + * Overrides the action attribute (where the data on a form is sent) on the parent form element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formAction) + */ + formAction: string; + /** + * Used to override the encoding (formEnctype attribute) specified on the form element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formEnctype) + */ + formEnctype: string; + /** + * Overrides the submit method attribute previously specified on a form element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formMethod) + */ + formMethod: string; + /** Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. */ + formNoValidate: boolean; + /** Overrides the target attribute on a form element. */ + formTarget: string; + /** + * Sets or retrieves the height of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/height) + */ + height: number; + /** + * When set, overrides the rendering of checkbox controls so that the current value is not visible. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/indeterminate) + */ + indeterminate: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/labels) */ + readonly labels: NodeListOf | null; + /** + * Specifies the ID of a pre-defined datalist of options for an input element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/list) + */ + readonly list: HTMLDataListElement | null; + /** + * Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/max) + */ + max: string; + /** + * Sets or retrieves the maximum number of characters that the user can enter in a text control. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/maxLength) + */ + maxLength: number; + /** + * Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/min) + */ + min: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/minLength) */ + minLength: number; + /** + * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/multiple) + */ + multiple: boolean; + /** + * Sets or retrieves the name of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/name) + */ + name: string; + /** + * Gets or sets a string containing a regular expression that the user's input must match. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/pattern) + */ + pattern: string; + /** + * Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/placeholder) + */ + placeholder: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/readOnly) */ + readOnly: boolean; + /** + * When present, marks an element that can't be submitted without a value. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/required) + */ + required: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionDirection) */ + selectionDirection: "forward" | "backward" | "none" | null; + /** + * Gets or sets the end position or offset of a text selection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionEnd) + */ + selectionEnd: number | null; + /** + * Gets or sets the starting position or offset of a text selection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionStart) + */ + selectionStart: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/size) */ + size: number; + /** + * The address or URL of the a media resource that is to be considered. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/src) + */ + src: string; + /** + * Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/step) + */ + step: string; + /** + * Returns the content type of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/type) + */ + type: string; + /** + * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. + * @deprecated + */ + useMap: string; + /** + * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validationMessage) + */ + readonly validationMessage: string; + /** + * Returns a ValidityState object that represents the validity states of an element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validity) + */ + readonly validity: ValidityState; + /** + * Returns the value of the data at the cursor's current position. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/value) + */ + value: string; + /** + * Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/valueAsDate) + */ + valueAsDate: Date | null; + /** + * Returns the input field value as a number. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/valueAsNumber) + */ + valueAsNumber: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitEntries) */ + readonly webkitEntries: ReadonlyArray; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitdirectory) */ + webkitdirectory: boolean; + /** + * Sets or retrieves the width of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/width) + */ + width: number; + /** + * Returns whether an element will successfully validate based on forms validation rules and constraints. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/willValidate) + */ + readonly willValidate: boolean; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/checkValidity) + */ + checkValidity(): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/reportValidity) */ + reportValidity(): boolean; + /** + * Makes the selection equal to the current object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select) + */ + select(): void; + /** + * Sets a custom error message that is displayed when a form is submitted. + * @param error Sets a custom error message that is displayed when a form is submitted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setCustomValidity) + */ + setCustomValidity(error: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setRangeText) */ + setRangeText(replacement: string): void; + setRangeText( + replacement: string, + start: number, + end: number, + selectionMode?: SelectionMode, + ): void; + /** + * Sets the start and end positions of a selection in a text field. + * @param start The offset into the text field for the start of the selection. + * @param end The offset into the text field for the end of the selection. + * @param direction The direction in which the selection is performed. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setSelectionRange) + */ + setSelectionRange( + start: number | null, + end: number | null, + direction?: "forward" | "backward" | "none", + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/showPicker) */ + showPicker(): void; + /** + * Decrements a range input control's value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control's step value multiplied by the parameter's value. + * @param n Value to decrement the value by. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/stepDown) + */ + stepDown(n?: number): void; + /** + * Increments a range input control's value by the value given by the Step attribute. If the optional parameter is used, will increment the input control's value by that value. + * @param n Value to increment the value by. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/stepUp) + */ + stepUp(n?: number): void; + addEventListener( + type: K, + listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLInputElement: { - prototype: HTMLInputElement; - new(): HTMLInputElement; + prototype: HTMLInputElement; + new (): HTMLInputElement; }; /** @@ -11679,19 +13163,35 @@ declare var HTMLInputElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLIElement) */ interface HTMLLIElement extends HTMLElement { - /** @deprecated */ - type: string; - /** Sets or retrieves the value of a list item. */ - value: number; - addEventListener(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** @deprecated */ + type: string; + /** Sets or retrieves the value of a list item. */ + value: number; + addEventListener( + type: K, + listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLLIElement: { - prototype: HTMLLIElement; - new(): HTMLLIElement; + prototype: HTMLLIElement; + new (): HTMLLIElement; }; /** @@ -11700,33 +13200,49 @@ declare var HTMLLIElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement) */ interface HTMLLabelElement extends HTMLElement { - /** - * Returns the form control that is associated with this element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/control) - */ - readonly control: HTMLElement | null; - /** - * Retrieves a reference to the form that the object is embedded in. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/form) - */ - readonly form: HTMLFormElement | null; - /** - * Sets or retrieves the object to which the given label object is assigned. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/htmlFor) - */ - htmlFor: string; - addEventListener(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Returns the form control that is associated with this element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/control) + */ + readonly control: HTMLElement | null; + /** + * Retrieves a reference to the form that the object is embedded in. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/form) + */ + readonly form: HTMLFormElement | null; + /** + * Sets or retrieves the object to which the given label object is assigned. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/htmlFor) + */ + htmlFor: string; + addEventListener( + type: K, + listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLLabelElement: { - prototype: HTMLLabelElement; - new(): HTMLLabelElement; + prototype: HTMLLabelElement; + new (): HTMLLabelElement; }; /** @@ -11735,23 +13251,39 @@ declare var HTMLLabelElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLegendElement) */ interface HTMLLegendElement extends HTMLElement { - /** @deprecated */ - align: string; - /** - * Retrieves a reference to the form that the object is embedded in. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLegendElement/form) - */ - readonly form: HTMLFormElement | null; - addEventListener(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** @deprecated */ + align: string; + /** + * Retrieves a reference to the form that the object is embedded in. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLegendElement/form) + */ + readonly form: HTMLFormElement | null; + addEventListener( + type: K, + listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLLegendElement: { - prototype: HTMLLegendElement; - new(): HTMLLegendElement; + prototype: HTMLLegendElement; + new (): HTMLLegendElement; }; /** @@ -11760,77 +13292,93 @@ declare var HTMLLegendElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement) */ interface HTMLLinkElement extends HTMLElement, LinkStyle { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/as) */ - as: string; - /** - * Sets or retrieves the character set used to encode the object. - * @deprecated - */ - charset: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/crossOrigin) */ - crossOrigin: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/disabled) */ - disabled: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/fetchPriority) */ - fetchPriority: string; - /** - * Sets or retrieves a destination URL or an anchor point. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/href) - */ - href: string; - /** - * Sets or retrieves the language code of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/hreflang) - */ - hreflang: string; - imageSizes: string; - imageSrcset: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/integrity) */ - integrity: string; - /** - * Sets or retrieves the media type. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/media) - */ - media: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/referrerPolicy) */ - referrerPolicy: string; - /** - * Sets or retrieves the relationship between the object and the destination of the link. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/rel) - */ - rel: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/relList) */ - readonly relList: DOMTokenList; - /** - * Sets or retrieves the relationship between the object and the destination of the link. - * @deprecated - */ - rev: string; - readonly sizes: DOMTokenList; - /** - * Sets or retrieves the window or frame at which to target content. - * @deprecated - */ - target: string; - /** - * Sets or retrieves the MIME type of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/type) - */ - type: string; - addEventListener(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/as) */ + as: string; + /** + * Sets or retrieves the character set used to encode the object. + * @deprecated + */ + charset: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/crossOrigin) */ + crossOrigin: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/disabled) */ + disabled: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/fetchPriority) */ + fetchPriority: string; + /** + * Sets or retrieves a destination URL or an anchor point. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/href) + */ + href: string; + /** + * Sets or retrieves the language code of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/hreflang) + */ + hreflang: string; + imageSizes: string; + imageSrcset: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/integrity) */ + integrity: string; + /** + * Sets or retrieves the media type. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/media) + */ + media: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/referrerPolicy) */ + referrerPolicy: string; + /** + * Sets or retrieves the relationship between the object and the destination of the link. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/rel) + */ + rel: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/relList) */ + readonly relList: DOMTokenList; + /** + * Sets or retrieves the relationship between the object and the destination of the link. + * @deprecated + */ + rev: string; + readonly sizes: DOMTokenList; + /** + * Sets or retrieves the window or frame at which to target content. + * @deprecated + */ + target: string; + /** + * Sets or retrieves the MIME type of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/type) + */ + type: string; + addEventListener( + type: K, + listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLLinkElement: { - prototype: HTMLLinkElement; - new(): HTMLLinkElement; + prototype: HTMLLinkElement; + new (): HTMLLinkElement; }; /** @@ -11839,27 +13387,43 @@ declare var HTMLLinkElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMapElement) */ interface HTMLMapElement extends HTMLElement { - /** - * Retrieves a collection of the area objects defined for the given map object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMapElement/areas) - */ - readonly areas: HTMLCollection; - /** - * Sets or retrieves the name of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMapElement/name) - */ - name: string; - addEventListener(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Retrieves a collection of the area objects defined for the given map object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMapElement/areas) + */ + readonly areas: HTMLCollection; + /** + * Sets or retrieves the name of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMapElement/name) + */ + name: string; + addEventListener( + type: K, + listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLMapElement: { - prototype: HTMLMapElement; - new(): HTMLMapElement; + prototype: HTMLMapElement; + new (): HTMLMapElement; }; /** @@ -11869,47 +13433,63 @@ declare var HTMLMapElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMarqueeElement) */ interface HTMLMarqueeElement extends HTMLElement { - /** @deprecated */ - behavior: string; - /** @deprecated */ - bgColor: string; - /** @deprecated */ - direction: string; - /** @deprecated */ - height: string; - /** @deprecated */ - hspace: number; - /** @deprecated */ - loop: number; - /** @deprecated */ - scrollAmount: number; - /** @deprecated */ - scrollDelay: number; - /** @deprecated */ - trueSpeed: boolean; - /** @deprecated */ - vspace: number; - /** @deprecated */ - width: string; - /** @deprecated */ - start(): void; - /** @deprecated */ - stop(): void; - addEventListener(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** @deprecated */ + behavior: string; + /** @deprecated */ + bgColor: string; + /** @deprecated */ + direction: string; + /** @deprecated */ + height: string; + /** @deprecated */ + hspace: number; + /** @deprecated */ + loop: number; + /** @deprecated */ + scrollAmount: number; + /** @deprecated */ + scrollDelay: number; + /** @deprecated */ + trueSpeed: boolean; + /** @deprecated */ + vspace: number; + /** @deprecated */ + width: string; + /** @deprecated */ + start(): void; + /** @deprecated */ + stop(): void; + addEventListener( + type: K, + listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } /** @deprecated */ declare var HTMLMarqueeElement: { - prototype: HTMLMarqueeElement; - new(): HTMLMarqueeElement; + prototype: HTMLMarqueeElement; + new (): HTMLMarqueeElement; }; interface HTMLMediaElementEventMap extends HTMLElementEventMap { - "encrypted": MediaEncryptedEvent; - "waitingforkey": Event; + encrypted: MediaEncryptedEvent; + waitingforkey: Event; } /** @@ -11918,231 +13498,269 @@ interface HTMLMediaElementEventMap extends HTMLElementEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement) */ interface HTMLMediaElement extends HTMLElement { - /** - * Gets or sets a value that indicates whether to start playing the media automatically. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/autoplay) - */ - autoplay: boolean; - /** - * Gets a collection of buffered time ranges. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/buffered) - */ - readonly buffered: TimeRanges; - /** - * Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/controls) - */ - controls: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/crossOrigin) */ - crossOrigin: string | null; - /** - * Gets the address or URL of the current media resource that is selected by IHTMLMediaElement. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/currentSrc) - */ - readonly currentSrc: string; - /** - * Gets or sets the current playback position, in seconds. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/currentTime) - */ - currentTime: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/defaultMuted) */ - defaultMuted: boolean; - /** - * Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/defaultPlaybackRate) - */ - defaultPlaybackRate: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/disableRemotePlayback) */ - disableRemotePlayback: boolean; - /** - * Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/duration) - */ - readonly duration: number; - /** - * Gets information about whether the playback has ended or not. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended) - */ - readonly ended: boolean; - /** - * Returns an object representing the current error state of the audio or video element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/error) - */ - readonly error: MediaError | null; - /** - * Gets or sets a flag to specify whether playback should restart after it completes. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loop) - */ - loop: boolean; - /** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/mediaKeys) - */ - readonly mediaKeys: MediaKeys | null; - /** - * Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/muted) - */ - muted: boolean; - /** - * Gets the current network activity for the element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/networkState) - */ - readonly networkState: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/encrypted_event) */ - onencrypted: ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null; - onwaitingforkey: ((this: HTMLMediaElement, ev: Event) => any) | null; - /** - * Gets a flag that specifies whether playback is paused. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/paused) - */ - readonly paused: boolean; - /** - * Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playbackRate) - */ - playbackRate: number; - /** Gets TimeRanges for the current media resource that has been played. */ - readonly played: TimeRanges; - /** - * Gets or sets a value indicating what data should be preloaded, if any. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/preload) - */ - preload: "none" | "metadata" | "auto" | ""; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/preservesPitch) */ - preservesPitch: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/readyState) */ - readonly readyState: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/remote) */ - readonly remote: RemotePlayback; - /** - * Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seekable) - */ - readonly seekable: TimeRanges; - /** Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource. */ - readonly seeking: boolean; - /** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/sinkId) - */ - readonly sinkId: string; - /** - * The address or URL of the a media resource that is to be considered. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/src) - */ - src: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/srcObject) */ - srcObject: MediaProvider | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/textTracks) */ - readonly textTracks: TextTrackList; - /** - * Gets or sets the volume level for audio portions of the media element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volume) - */ - volume: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/addTextTrack) */ - addTextTrack(kind: TextTrackKind, label?: string, language?: string): TextTrack; - /** - * Returns a string that specifies whether the client can play a given media resource type. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canPlayType) - */ - canPlayType(type: string): CanPlayTypeResult; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/fastSeek) */ - fastSeek(time: number): void; - /** - * Resets the audio or video object and loads a new media resource. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/load) - */ - load(): void; - /** - * Pauses the current playback and sets paused to TRUE. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause) - */ - pause(): void; - /** - * Loads and starts playback of a media resource. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play) - */ - play(): Promise; - /** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/setMediaKeys) - */ - setMediaKeys(mediaKeys: MediaKeys | null): Promise; - /** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/setSinkId) - */ - setSinkId(sinkId: string): Promise; - readonly NETWORK_EMPTY: 0; - readonly NETWORK_IDLE: 1; - readonly NETWORK_LOADING: 2; - readonly NETWORK_NO_SOURCE: 3; - readonly HAVE_NOTHING: 0; - readonly HAVE_METADATA: 1; - readonly HAVE_CURRENT_DATA: 2; - readonly HAVE_FUTURE_DATA: 3; - readonly HAVE_ENOUGH_DATA: 4; - addEventListener(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Gets or sets a value that indicates whether to start playing the media automatically. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/autoplay) + */ + autoplay: boolean; + /** + * Gets a collection of buffered time ranges. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/buffered) + */ + readonly buffered: TimeRanges; + /** + * Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/controls) + */ + controls: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/crossOrigin) */ + crossOrigin: string | null; + /** + * Gets the address or URL of the current media resource that is selected by IHTMLMediaElement. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/currentSrc) + */ + readonly currentSrc: string; + /** + * Gets or sets the current playback position, in seconds. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/currentTime) + */ + currentTime: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/defaultMuted) */ + defaultMuted: boolean; + /** + * Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/defaultPlaybackRate) + */ + defaultPlaybackRate: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/disableRemotePlayback) */ + disableRemotePlayback: boolean; + /** + * Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/duration) + */ + readonly duration: number; + /** + * Gets information about whether the playback has ended or not. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended) + */ + readonly ended: boolean; + /** + * Returns an object representing the current error state of the audio or video element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/error) + */ + readonly error: MediaError | null; + /** + * Gets or sets a flag to specify whether playback should restart after it completes. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loop) + */ + loop: boolean; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/mediaKeys) + */ + readonly mediaKeys: MediaKeys | null; + /** + * Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/muted) + */ + muted: boolean; + /** + * Gets the current network activity for the element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/networkState) + */ + readonly networkState: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/encrypted_event) */ + onencrypted: + | ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) + | null; + onwaitingforkey: ((this: HTMLMediaElement, ev: Event) => any) | null; + /** + * Gets a flag that specifies whether playback is paused. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/paused) + */ + readonly paused: boolean; + /** + * Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playbackRate) + */ + playbackRate: number; + /** Gets TimeRanges for the current media resource that has been played. */ + readonly played: TimeRanges; + /** + * Gets or sets a value indicating what data should be preloaded, if any. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/preload) + */ + preload: "none" | "metadata" | "auto" | ""; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/preservesPitch) */ + preservesPitch: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/readyState) */ + readonly readyState: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/remote) */ + readonly remote: RemotePlayback; + /** + * Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seekable) + */ + readonly seekable: TimeRanges; + /** Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource. */ + readonly seeking: boolean; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/sinkId) + */ + readonly sinkId: string; + /** + * The address or URL of the a media resource that is to be considered. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/src) + */ + src: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/srcObject) */ + srcObject: MediaProvider | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/textTracks) */ + readonly textTracks: TextTrackList; + /** + * Gets or sets the volume level for audio portions of the media element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volume) + */ + volume: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/addTextTrack) */ + addTextTrack( + kind: TextTrackKind, + label?: string, + language?: string, + ): TextTrack; + /** + * Returns a string that specifies whether the client can play a given media resource type. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canPlayType) + */ + canPlayType(type: string): CanPlayTypeResult; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/fastSeek) */ + fastSeek(time: number): void; + /** + * Resets the audio or video object and loads a new media resource. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/load) + */ + load(): void; + /** + * Pauses the current playback and sets paused to TRUE. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause) + */ + pause(): void; + /** + * Loads and starts playback of a media resource. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play) + */ + play(): Promise; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/setMediaKeys) + */ + setMediaKeys(mediaKeys: MediaKeys | null): Promise; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/setSinkId) + */ + setSinkId(sinkId: string): Promise; + readonly NETWORK_EMPTY: 0; + readonly NETWORK_IDLE: 1; + readonly NETWORK_LOADING: 2; + readonly NETWORK_NO_SOURCE: 3; + readonly HAVE_NOTHING: 0; + readonly HAVE_METADATA: 1; + readonly HAVE_CURRENT_DATA: 2; + readonly HAVE_FUTURE_DATA: 3; + readonly HAVE_ENOUGH_DATA: 4; + addEventListener( + type: K, + listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLMediaElement: { - prototype: HTMLMediaElement; - new(): HTMLMediaElement; - readonly NETWORK_EMPTY: 0; - readonly NETWORK_IDLE: 1; - readonly NETWORK_LOADING: 2; - readonly NETWORK_NO_SOURCE: 3; - readonly HAVE_NOTHING: 0; - readonly HAVE_METADATA: 1; - readonly HAVE_CURRENT_DATA: 2; - readonly HAVE_FUTURE_DATA: 3; - readonly HAVE_ENOUGH_DATA: 4; + prototype: HTMLMediaElement; + new (): HTMLMediaElement; + readonly NETWORK_EMPTY: 0; + readonly NETWORK_IDLE: 1; + readonly NETWORK_LOADING: 2; + readonly NETWORK_NO_SOURCE: 3; + readonly HAVE_NOTHING: 0; + readonly HAVE_METADATA: 1; + readonly HAVE_CURRENT_DATA: 2; + readonly HAVE_FUTURE_DATA: 3; + readonly HAVE_ENOUGH_DATA: 4; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMenuElement) */ interface HTMLMenuElement extends HTMLElement { - /** @deprecated */ - compact: boolean; - addEventListener(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** @deprecated */ + compact: boolean; + addEventListener( + type: K, + listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLMenuElement: { - prototype: HTMLMenuElement; - new(): HTMLMenuElement; + prototype: HTMLMenuElement; + new (): HTMLMenuElement; }; /** @@ -12151,42 +13769,58 @@ declare var HTMLMenuElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement) */ interface HTMLMetaElement extends HTMLElement { - /** - * Gets or sets meta-information to associate with httpEquiv or name. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/content) - */ - content: string; - /** - * Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/httpEquiv) - */ - httpEquiv: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/media) */ - media: string; - /** - * Sets or retrieves the value specified in the content attribute of the meta object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/name) - */ - name: string; - /** - * Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/scheme) - */ - scheme: string; - addEventListener(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Gets or sets meta-information to associate with httpEquiv or name. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/content) + */ + content: string; + /** + * Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/httpEquiv) + */ + httpEquiv: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/media) */ + media: string; + /** + * Sets or retrieves the value specified in the content attribute of the meta object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/name) + */ + name: string; + /** + * Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/scheme) + */ + scheme: string; + addEventListener( + type: K, + listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLMetaElement: { - prototype: HTMLMetaElement; - new(): HTMLMetaElement; + prototype: HTMLMetaElement; + new (): HTMLMetaElement; }; /** @@ -12195,29 +13829,45 @@ declare var HTMLMetaElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement) */ interface HTMLMeterElement extends HTMLElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/high) */ - high: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/labels) */ - readonly labels: NodeListOf; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/low) */ - low: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/max) */ - max: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/min) */ - min: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/optimum) */ - optimum: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/value) */ - value: number; - addEventListener(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/high) */ + high: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/labels) */ + readonly labels: NodeListOf; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/low) */ + low: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/max) */ + max: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/min) */ + min: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/optimum) */ + optimum: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/value) */ + value: number; + addEventListener( + type: K, + listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLMeterElement: { - prototype: HTMLMeterElement; - new(): HTMLMeterElement; + prototype: HTMLMeterElement; + new (): HTMLMeterElement; }; /** @@ -12226,19 +13876,35 @@ declare var HTMLMeterElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLModElement) */ interface HTMLModElement extends HTMLElement { - /** Sets or retrieves reference information about the object. */ - cite: string; - /** Sets or retrieves the date and time of a modification to the object. */ - dateTime: string; - addEventListener(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** Sets or retrieves reference information about the object. */ + cite: string; + /** Sets or retrieves the date and time of a modification to the object. */ + dateTime: string; + addEventListener( + type: K, + listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLModElement: { - prototype: HTMLModElement; - new(): HTMLModElement; + prototype: HTMLModElement; + new (): HTMLModElement; }; /** @@ -12247,27 +13913,43 @@ declare var HTMLModElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement) */ interface HTMLOListElement extends HTMLElement { - /** @deprecated */ - compact: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/reversed) */ - reversed: boolean; - /** - * The starting number. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/start) - */ - start: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/type) */ - type: string; - addEventListener(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** @deprecated */ + compact: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/reversed) */ + reversed: boolean; + /** + * The starting number. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/start) + */ + start: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/type) */ + type: string; + addEventListener( + type: K, + listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLOListElement: { - prototype: HTMLOListElement; - new(): HTMLOListElement; + prototype: HTMLOListElement; + new (): HTMLOListElement; }; /** @@ -12276,135 +13958,151 @@ declare var HTMLOListElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement) */ interface HTMLObjectElement extends HTMLElement { - /** @deprecated */ - align: string; - /** - * Sets or retrieves a character string that can be used to implement your own archive functionality for the object. - * @deprecated - */ - archive: string; - /** @deprecated */ - border: string; - /** - * Sets or retrieves the URL of the file containing the compiled Java class. - * @deprecated - */ - code: string; - /** - * Sets or retrieves the URL of the component. - * @deprecated - */ - codeBase: string; - /** - * Sets or retrieves the Internet media type for the code associated with the object. - * @deprecated - */ - codeType: string; - /** - * Retrieves the document object of the page or frame. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/contentDocument) - */ - readonly contentDocument: Document | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/contentWindow) */ - readonly contentWindow: WindowProxy | null; - /** - * Sets or retrieves the URL that references the data of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/data) - */ - data: string; - /** @deprecated */ - declare: boolean; - /** - * Retrieves a reference to the form that the object is embedded in. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/form) - */ - readonly form: HTMLFormElement | null; - /** - * Sets or retrieves the height of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/height) - */ - height: string; - /** @deprecated */ - hspace: number; - /** - * Sets or retrieves the name of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/name) - */ - name: string; - /** - * Sets or retrieves a message to be displayed while an object is loading. - * @deprecated - */ - standby: string; - /** - * Sets or retrieves the MIME type of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/type) - */ - type: string; - /** - * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/useMap) - */ - useMap: string; - /** - * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/validationMessage) - */ - readonly validationMessage: string; - /** - * Returns a ValidityState object that represents the validity states of an element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/validity) - */ - readonly validity: ValidityState; - /** @deprecated */ - vspace: number; - /** - * Sets or retrieves the width of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/width) - */ - width: string; - /** - * Returns whether an element will successfully validate based on forms validation rules and constraints. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/willValidate) - */ - readonly willValidate: boolean; - /** - * Returns whether a form will validate when it is submitted, without having to submit it. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/checkValidity) - */ - checkValidity(): boolean; - getSVGDocument(): Document | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/reportValidity) */ - reportValidity(): boolean; - /** - * Sets a custom error message that is displayed when a form is submitted. - * @param error Sets a custom error message that is displayed when a form is submitted. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/setCustomValidity) - */ - setCustomValidity(error: string): void; - addEventListener(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** @deprecated */ + align: string; + /** + * Sets or retrieves a character string that can be used to implement your own archive functionality for the object. + * @deprecated + */ + archive: string; + /** @deprecated */ + border: string; + /** + * Sets or retrieves the URL of the file containing the compiled Java class. + * @deprecated + */ + code: string; + /** + * Sets or retrieves the URL of the component. + * @deprecated + */ + codeBase: string; + /** + * Sets or retrieves the Internet media type for the code associated with the object. + * @deprecated + */ + codeType: string; + /** + * Retrieves the document object of the page or frame. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/contentDocument) + */ + readonly contentDocument: Document | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/contentWindow) */ + readonly contentWindow: WindowProxy | null; + /** + * Sets or retrieves the URL that references the data of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/data) + */ + data: string; + /** @deprecated */ + declare: boolean; + /** + * Retrieves a reference to the form that the object is embedded in. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/form) + */ + readonly form: HTMLFormElement | null; + /** + * Sets or retrieves the height of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/height) + */ + height: string; + /** @deprecated */ + hspace: number; + /** + * Sets or retrieves the name of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/name) + */ + name: string; + /** + * Sets or retrieves a message to be displayed while an object is loading. + * @deprecated + */ + standby: string; + /** + * Sets or retrieves the MIME type of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/type) + */ + type: string; + /** + * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/useMap) + */ + useMap: string; + /** + * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/validationMessage) + */ + readonly validationMessage: string; + /** + * Returns a ValidityState object that represents the validity states of an element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/validity) + */ + readonly validity: ValidityState; + /** @deprecated */ + vspace: number; + /** + * Sets or retrieves the width of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/width) + */ + width: string; + /** + * Returns whether an element will successfully validate based on forms validation rules and constraints. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/willValidate) + */ + readonly willValidate: boolean; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/checkValidity) + */ + checkValidity(): boolean; + getSVGDocument(): Document | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/reportValidity) */ + reportValidity(): boolean; + /** + * Sets a custom error message that is displayed when a form is submitted. + * @param error Sets a custom error message that is displayed when a form is submitted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/setCustomValidity) + */ + setCustomValidity(error: string): void; + addEventListener( + type: K, + listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLObjectElement: { - prototype: HTMLObjectElement; - new(): HTMLObjectElement; + prototype: HTMLObjectElement; + new (): HTMLObjectElement; }; /** @@ -12413,23 +14111,39 @@ declare var HTMLObjectElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement) */ interface HTMLOptGroupElement extends HTMLElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement/disabled) */ - disabled: boolean; - /** - * Sets or retrieves a value that you can use to implement your own label functionality for the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement/label) - */ - label: string; - addEventListener(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement/disabled) */ + disabled: boolean; + /** + * Sets or retrieves a value that you can use to implement your own label functionality for the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement/label) + */ + label: string; + addEventListener( + type: K, + listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLOptGroupElement: { - prototype: HTMLOptGroupElement; - new(): HTMLOptGroupElement; + prototype: HTMLOptGroupElement; + new (): HTMLOptGroupElement; }; /** @@ -12438,59 +14152,75 @@ declare var HTMLOptGroupElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement) */ interface HTMLOptionElement extends HTMLElement { - /** - * Sets or retrieves the status of an option. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/defaultSelected) - */ - defaultSelected: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/disabled) */ - disabled: boolean; - /** - * Retrieves a reference to the form that the object is embedded in. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/form) - */ - readonly form: HTMLFormElement | null; - /** - * Sets or retrieves the ordinal position of an option in a list box. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/index) - */ - readonly index: number; - /** - * Sets or retrieves a value that you can use to implement your own label functionality for the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/label) - */ - label: string; - /** - * Sets or retrieves whether the option in the list box is the default item. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/selected) - */ - selected: boolean; - /** - * Sets or retrieves the text string specified by the option tag. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/text) - */ - text: string; - /** - * Sets or retrieves the value which is returned to the server when the form control is submitted. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/value) - */ - value: string; - addEventListener(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Sets or retrieves the status of an option. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/defaultSelected) + */ + defaultSelected: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/disabled) */ + disabled: boolean; + /** + * Retrieves a reference to the form that the object is embedded in. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/form) + */ + readonly form: HTMLFormElement | null; + /** + * Sets or retrieves the ordinal position of an option in a list box. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/index) + */ + readonly index: number; + /** + * Sets or retrieves a value that you can use to implement your own label functionality for the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/label) + */ + label: string; + /** + * Sets or retrieves whether the option in the list box is the default item. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/selected) + */ + selected: boolean; + /** + * Sets or retrieves the text string specified by the option tag. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/text) + */ + text: string; + /** + * Sets or retrieves the value which is returned to the server when the form control is submitted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/value) + */ + value: string; + addEventListener( + type: K, + listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLOptionElement: { - prototype: HTMLOptionElement; - new(): HTMLOptionElement; + prototype: HTMLOptionElement; + new (): HTMLOptionElement; }; /** @@ -12499,62 +14229,65 @@ declare var HTMLOptionElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection) */ interface HTMLOptionsCollection extends HTMLCollectionOf { - /** - * Returns the number of elements in the collection. - * - * When set to a smaller number, truncates the number of option elements in the corresponding container. - * - * When set to a greater number, adds new blank option elements to that container. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/length) - */ - length: number; - /** - * Returns the index of the first selected item, if any, or −1 if there is no selected item. - * - * Can be set, to change the selection. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/selectedIndex) - */ - selectedIndex: number; - /** - * Inserts element before the node given by before. - * - * The before argument can be a number, in which case element is inserted before the item with that number, or an element from the collection, in which case element is inserted before that element. - * - * If before is omitted, null, or a number out of range, then element will be added at the end of the list. - * - * This method will throw a "HierarchyRequestError" DOMException if element is an ancestor of the element into which it is to be inserted. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/add) - */ - add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void; - /** - * Removes the item with index index from the collection. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/remove) - */ - remove(index: number): void; + /** + * Returns the number of elements in the collection. + * + * When set to a smaller number, truncates the number of option elements in the corresponding container. + * + * When set to a greater number, adds new blank option elements to that container. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/length) + */ + length: number; + /** + * Returns the index of the first selected item, if any, or −1 if there is no selected item. + * + * Can be set, to change the selection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/selectedIndex) + */ + selectedIndex: number; + /** + * Inserts element before the node given by before. + * + * The before argument can be a number, in which case element is inserted before the item with that number, or an element from the collection, in which case element is inserted before that element. + * + * If before is omitted, null, or a number out of range, then element will be added at the end of the list. + * + * This method will throw a "HierarchyRequestError" DOMException if element is an ancestor of the element into which it is to be inserted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/add) + */ + add( + element: HTMLOptionElement | HTMLOptGroupElement, + before?: HTMLElement | number | null, + ): void; + /** + * Removes the item with index index from the collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/remove) + */ + remove(index: number): void; } declare var HTMLOptionsCollection: { - prototype: HTMLOptionsCollection; - new(): HTMLOptionsCollection; + prototype: HTMLOptionsCollection; + new (): HTMLOptionsCollection; }; interface HTMLOrSVGElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autofocus) */ - autofocus: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dataset) */ - readonly dataset: DOMStringMap; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/nonce) */ - nonce?: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/tabIndex) */ - tabIndex: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/blur) */ - blur(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/focus) */ - focus(options?: FocusOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autofocus) */ + autofocus: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dataset) */ + readonly dataset: DOMStringMap; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/nonce) */ + nonce?: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/tabIndex) */ + tabIndex: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/blur) */ + blur(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/focus) */ + focus(options?: FocusOptions): void; } /** @@ -12563,51 +14296,67 @@ interface HTMLOrSVGElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement) */ interface HTMLOutputElement extends HTMLElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/defaultValue) */ - defaultValue: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/form) */ - readonly form: HTMLFormElement | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/htmlFor) */ - readonly htmlFor: DOMTokenList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/labels) */ - readonly labels: NodeListOf; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/name) */ - name: string; - /** - * Returns the string "output". - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/type) - */ - readonly type: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/validationMessage) */ - readonly validationMessage: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/validity) */ - readonly validity: ValidityState; - /** - * Returns the element's current value. - * - * Can be set, to change the value. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/value) - */ - value: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/willValidate) */ - readonly willValidate: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/checkValidity) */ - checkValidity(): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/reportValidity) */ - reportValidity(): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/setCustomValidity) */ - setCustomValidity(error: string): void; - addEventListener(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/defaultValue) */ + defaultValue: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/form) */ + readonly form: HTMLFormElement | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/htmlFor) */ + readonly htmlFor: DOMTokenList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/labels) */ + readonly labels: NodeListOf; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/name) */ + name: string; + /** + * Returns the string "output". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/type) + */ + readonly type: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/validationMessage) */ + readonly validationMessage: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/validity) */ + readonly validity: ValidityState; + /** + * Returns the element's current value. + * + * Can be set, to change the value. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/value) + */ + value: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/willValidate) */ + readonly willValidate: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/checkValidity) */ + checkValidity(): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/reportValidity) */ + reportValidity(): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/setCustomValidity) */ + setCustomValidity(error: string): void; + addEventListener( + type: K, + listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLOutputElement: { - prototype: HTMLOutputElement; - new(): HTMLOutputElement; + prototype: HTMLOutputElement; + new (): HTMLOutputElement; }; /** @@ -12616,20 +14365,36 @@ declare var HTMLOutputElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParagraphElement) */ interface HTMLParagraphElement extends HTMLElement { - /** - * Sets or retrieves how the object is aligned with adjacent text. - * @deprecated - */ - align: string; - addEventListener(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Sets or retrieves how the object is aligned with adjacent text. + * @deprecated + */ + align: string; + addEventListener( + type: K, + listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLParagraphElement: { - prototype: HTMLParagraphElement; - new(): HTMLParagraphElement; + prototype: HTMLParagraphElement; + new (): HTMLParagraphElement; }; /** @@ -12639,36 +14404,52 @@ declare var HTMLParagraphElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement) */ interface HTMLParamElement extends HTMLElement { - /** - * Sets or retrieves the name of an input parameter for an element. - * @deprecated - */ - name: string; - /** - * Sets or retrieves the content type of the resource designated by the value attribute. - * @deprecated - */ - type: string; - /** - * Sets or retrieves the value of an input parameter for an element. - * @deprecated - */ - value: string; - /** - * Sets or retrieves the data type of the value attribute. - * @deprecated - */ - valueType: string; - addEventListener(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Sets or retrieves the name of an input parameter for an element. + * @deprecated + */ + name: string; + /** + * Sets or retrieves the content type of the resource designated by the value attribute. + * @deprecated + */ + type: string; + /** + * Sets or retrieves the value of an input parameter for an element. + * @deprecated + */ + value: string; + /** + * Sets or retrieves the data type of the value attribute. + * @deprecated + */ + valueType: string; + addEventListener( + type: K, + listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } /** @deprecated */ declare var HTMLParamElement: { - prototype: HTMLParamElement; - new(): HTMLParamElement; + prototype: HTMLParamElement; + new (): HTMLParamElement; }; /** @@ -12677,15 +14458,31 @@ declare var HTMLParamElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLPictureElement) */ interface HTMLPictureElement extends HTMLElement { - addEventListener(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLPictureElement: { - prototype: HTMLPictureElement; - new(): HTMLPictureElement; + prototype: HTMLPictureElement; + new (): HTMLPictureElement; }; /** @@ -12694,20 +14491,36 @@ declare var HTMLPictureElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLPreElement) */ interface HTMLPreElement extends HTMLElement { - /** - * Sets or gets a value that you can use to implement your own width functionality for the object. - * @deprecated - */ - width: number; - addEventListener(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Sets or gets a value that you can use to implement your own width functionality for the object. + * @deprecated + */ + width: number; + addEventListener( + type: K, + listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLPreElement: { - prototype: HTMLPreElement; - new(): HTMLPreElement; + prototype: HTMLPreElement; + new (): HTMLPreElement; }; /** @@ -12716,35 +14529,51 @@ declare var HTMLPreElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement) */ interface HTMLProgressElement extends HTMLElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/labels) */ - readonly labels: NodeListOf; - /** - * Defines the maximum, or "done" value for a progress element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/max) - */ - max: number; - /** - * Returns the quotient of value/max when the value attribute is set (determinate progress bar), or -1 when the value attribute is missing (indeterminate progress bar). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/position) - */ - readonly position: number; - /** - * Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/value) - */ - value: number; - addEventListener(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/labels) */ + readonly labels: NodeListOf; + /** + * Defines the maximum, or "done" value for a progress element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/max) + */ + max: number; + /** + * Returns the quotient of value/max when the value attribute is set (determinate progress bar), or -1 when the value attribute is missing (indeterminate progress bar). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/position) + */ + readonly position: number; + /** + * Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/value) + */ + value: number; + addEventListener( + type: K, + listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLProgressElement: { - prototype: HTMLProgressElement; - new(): HTMLProgressElement; + prototype: HTMLProgressElement; + new (): HTMLProgressElement; }; /** @@ -12753,17 +14582,33 @@ declare var HTMLProgressElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLQuoteElement) */ interface HTMLQuoteElement extends HTMLElement { - /** Sets or retrieves reference information about the object. */ - cite: string; - addEventListener(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** Sets or retrieves reference information about the object. */ + cite: string; + addEventListener( + type: K, + listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLQuoteElement: { - prototype: HTMLQuoteElement; - new(): HTMLQuoteElement; + prototype: HTMLQuoteElement; + new (): HTMLQuoteElement; }; /** @@ -12772,68 +14617,84 @@ declare var HTMLQuoteElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement) */ interface HTMLScriptElement extends HTMLElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/async) */ - async: boolean; - /** - * Sets or retrieves the character set used to encode the object. - * @deprecated - */ - charset: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/crossOrigin) */ - crossOrigin: string | null; - /** - * Sets or retrieves the status of the script. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/defer) - */ - defer: boolean; - /** - * Sets or retrieves the event for which the script is written. - * @deprecated - */ - event: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/fetchPriority) */ - fetchPriority: string; - /** - * Sets or retrieves the object that is bound to the event script. - * @deprecated - */ - htmlFor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/integrity) */ - integrity: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/noModule) */ - noModule: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/referrerPolicy) */ - referrerPolicy: string; - /** - * Retrieves the URL to an external file that contains the source code or data. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/src) - */ - src: string; - /** - * Retrieves or sets the text of the object as a string. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/text) - */ - text: string; - /** - * Sets or retrieves the MIME type for the associated scripting engine. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/type) - */ - type: string; - addEventListener(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/async) */ + async: boolean; + /** + * Sets or retrieves the character set used to encode the object. + * @deprecated + */ + charset: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/crossOrigin) */ + crossOrigin: string | null; + /** + * Sets or retrieves the status of the script. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/defer) + */ + defer: boolean; + /** + * Sets or retrieves the event for which the script is written. + * @deprecated + */ + event: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/fetchPriority) */ + fetchPriority: string; + /** + * Sets or retrieves the object that is bound to the event script. + * @deprecated + */ + htmlFor: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/integrity) */ + integrity: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/noModule) */ + noModule: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/referrerPolicy) */ + referrerPolicy: string; + /** + * Retrieves the URL to an external file that contains the source code or data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/src) + */ + src: string; + /** + * Retrieves or sets the text of the object as a string. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/text) + */ + text: string; + /** + * Sets or retrieves the MIME type for the associated scripting engine. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/type) + */ + type: string; + addEventListener( + type: K, + listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLScriptElement: { - prototype: HTMLScriptElement; - new(): HTMLScriptElement; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/supports_static) */ - supports(type: string): boolean; + prototype: HTMLScriptElement; + new (): HTMLScriptElement; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/supports_static) */ + supports(type: string): boolean; }; /** @@ -12842,170 +14703,205 @@ declare var HTMLScriptElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement) */ interface HTMLSelectElement extends HTMLElement { - autocomplete: AutoFill; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/disabled) */ - disabled: boolean; - /** - * Retrieves a reference to the form that the object is embedded in. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/form) - */ - readonly form: HTMLFormElement | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/labels) */ - readonly labels: NodeListOf; - /** - * Sets or retrieves the number of objects in a collection. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/length) - */ - length: number; - /** - * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/multiple) - */ - multiple: boolean; - /** - * Sets or retrieves the name of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/name) - */ - name: string; - /** - * Returns an HTMLOptionsCollection of the list of options. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/options) - */ - readonly options: HTMLOptionsCollection; - /** - * When present, marks an element that can't be submitted without a value. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/required) - */ - required: boolean; - /** - * Sets or retrieves the index of the selected option in a select object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/selectedIndex) - */ - selectedIndex: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/selectedOptions) */ - readonly selectedOptions: HTMLCollectionOf; - /** - * Sets or retrieves the number of rows in the list box. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/size) - */ - size: number; - /** - * Retrieves the type of select control based on the value of the MULTIPLE attribute. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/type) - */ - readonly type: "select-one" | "select-multiple"; - /** - * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/validationMessage) - */ - readonly validationMessage: string; - /** - * Returns a ValidityState object that represents the validity states of an element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/validity) - */ - readonly validity: ValidityState; - /** - * Sets or retrieves the value which is returned to the server when the form control is submitted. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/value) - */ - value: string; - /** - * Returns whether an element will successfully validate based on forms validation rules and constraints. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/willValidate) - */ - readonly willValidate: boolean; - /** - * Adds an element to the areas, controlRange, or options collection. - * @param element Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection. - * @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/add) - */ - add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void; - /** - * Returns whether a form will validate when it is submitted, without having to submit it. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/checkValidity) - */ - checkValidity(): boolean; - /** - * Retrieves a select object or an object from an options collection. - * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made. - * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/item) - */ - item(index: number): HTMLOptionElement | null; - /** - * Retrieves a select object or an object from an options collection. - * @param namedItem A String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/namedItem) - */ - namedItem(name: string): HTMLOptionElement | null; - /** - * Removes an element from the collection. - * @param index Number that specifies the zero-based index of the element to remove from the collection. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/remove) - */ - remove(): void; - remove(index: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/reportValidity) */ - reportValidity(): boolean; - /** - * Sets a custom error message that is displayed when a form is submitted. - * @param error Sets a custom error message that is displayed when a form is submitted. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/setCustomValidity) - */ - setCustomValidity(error: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/showPicker) */ - showPicker(): void; - addEventListener(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; - [name: number]: HTMLOptionElement | HTMLOptGroupElement; + autocomplete: AutoFill; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/disabled) */ + disabled: boolean; + /** + * Retrieves a reference to the form that the object is embedded in. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/form) + */ + readonly form: HTMLFormElement | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/labels) */ + readonly labels: NodeListOf; + /** + * Sets or retrieves the number of objects in a collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/length) + */ + length: number; + /** + * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/multiple) + */ + multiple: boolean; + /** + * Sets or retrieves the name of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/name) + */ + name: string; + /** + * Returns an HTMLOptionsCollection of the list of options. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/options) + */ + readonly options: HTMLOptionsCollection; + /** + * When present, marks an element that can't be submitted without a value. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/required) + */ + required: boolean; + /** + * Sets or retrieves the index of the selected option in a select object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/selectedIndex) + */ + selectedIndex: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/selectedOptions) */ + readonly selectedOptions: HTMLCollectionOf; + /** + * Sets or retrieves the number of rows in the list box. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/size) + */ + size: number; + /** + * Retrieves the type of select control based on the value of the MULTIPLE attribute. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/type) + */ + readonly type: "select-one" | "select-multiple"; + /** + * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/validationMessage) + */ + readonly validationMessage: string; + /** + * Returns a ValidityState object that represents the validity states of an element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/validity) + */ + readonly validity: ValidityState; + /** + * Sets or retrieves the value which is returned to the server when the form control is submitted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/value) + */ + value: string; + /** + * Returns whether an element will successfully validate based on forms validation rules and constraints. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/willValidate) + */ + readonly willValidate: boolean; + /** + * Adds an element to the areas, controlRange, or options collection. + * @param element Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection. + * @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/add) + */ + add( + element: HTMLOptionElement | HTMLOptGroupElement, + before?: HTMLElement | number | null, + ): void; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/checkValidity) + */ + checkValidity(): boolean; + /** + * Retrieves a select object or an object from an options collection. + * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made. + * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/item) + */ + item(index: number): HTMLOptionElement | null; + /** + * Retrieves a select object or an object from an options collection. + * @param namedItem A String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/namedItem) + */ + namedItem(name: string): HTMLOptionElement | null; + /** + * Removes an element from the collection. + * @param index Number that specifies the zero-based index of the element to remove from the collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/remove) + */ + remove(): void; + remove(index: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/reportValidity) */ + reportValidity(): boolean; + /** + * Sets a custom error message that is displayed when a form is submitted. + * @param error Sets a custom error message that is displayed when a form is submitted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/setCustomValidity) + */ + setCustomValidity(error: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/showPicker) */ + showPicker(): void; + addEventListener( + type: K, + listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; + [name: number]: HTMLOptionElement | HTMLOptGroupElement; } declare var HTMLSelectElement: { - prototype: HTMLSelectElement; - new(): HTMLSelectElement; + prototype: HTMLSelectElement; + new (): HTMLSelectElement; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement) */ interface HTMLSlotElement extends HTMLElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/name) */ - name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assign) */ - assign(...nodes: (Element | Text)[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assignedElements) */ - assignedElements(options?: AssignedNodesOptions): Element[]; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assignedNodes) */ - assignedNodes(options?: AssignedNodesOptions): Node[]; - addEventListener(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/name) */ + name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assign) */ + assign(...nodes: (Element | Text)[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assignedElements) */ + assignedElements(options?: AssignedNodesOptions): Element[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assignedNodes) */ + assignedNodes(options?: AssignedNodesOptions): Node[]; + addEventListener( + type: K, + listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLSlotElement: { - prototype: HTMLSlotElement; - new(): HTMLSlotElement; + prototype: HTMLSlotElement; + new (): HTMLSlotElement; }; /** @@ -13014,27 +14910,43 @@ declare var HTMLSlotElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement) */ interface HTMLSourceElement extends HTMLElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/height) */ - height: number; - /** Gets or sets the intended media type of the media source. */ - media: string; - sizes: string; - /** The address or URL of the a media resource that is to be considered. */ - src: string; - srcset: string; - /** Gets or sets the MIME type of a media resource. */ - type: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/width) */ - width: number; - addEventListener(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/height) */ + height: number; + /** Gets or sets the intended media type of the media source. */ + media: string; + sizes: string; + /** The address or URL of the a media resource that is to be considered. */ + src: string; + srcset: string; + /** Gets or sets the MIME type of a media resource. */ + type: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/width) */ + width: number; + addEventListener( + type: K, + listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLSourceElement: { - prototype: HTMLSourceElement; - new(): HTMLSourceElement; + prototype: HTMLSourceElement; + new (): HTMLSourceElement; }; /** @@ -13043,15 +14955,31 @@ declare var HTMLSourceElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSpanElement) */ interface HTMLSpanElement extends HTMLElement { - addEventListener(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLSpanElement: { - prototype: HTMLSpanElement; - new(): HTMLSpanElement; + prototype: HTMLSpanElement; + new (): HTMLSpanElement; }; /** @@ -13060,34 +14988,50 @@ declare var HTMLSpanElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement) */ interface HTMLStyleElement extends HTMLElement, LinkStyle { - /** - * Enables or disables the style sheet. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/disabled) - */ - disabled: boolean; - /** - * Sets or retrieves the media type. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/media) - */ - media: string; - /** - * Retrieves the CSS language in which the style sheet is written. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/type) - */ - type: string; - addEventListener(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Enables or disables the style sheet. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/disabled) + */ + disabled: boolean; + /** + * Sets or retrieves the media type. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/media) + */ + media: string; + /** + * Retrieves the CSS language in which the style sheet is written. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/type) + */ + type: string; + addEventListener( + type: K, + listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLStyleElement: { - prototype: HTMLStyleElement; - new(): HTMLStyleElement; + prototype: HTMLStyleElement; + new (): HTMLStyleElement; }; /** @@ -13096,22 +15040,44 @@ declare var HTMLStyleElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCaptionElement) */ interface HTMLTableCaptionElement extends HTMLElement { - /** - * Sets or retrieves the alignment of the caption or legend. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCaptionElement/align) - */ - align: string; - addEventListener(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Sets or retrieves the alignment of the caption or legend. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCaptionElement/align) + */ + align: string; + addEventListener( + type: K, + listener: ( + this: HTMLTableCaptionElement, + ev: HTMLElementEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: HTMLTableCaptionElement, + ev: HTMLElementEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLTableCaptionElement: { - prototype: HTMLTableCaptionElement; - new(): HTMLTableCaptionElement; + prototype: HTMLTableCaptionElement; + new (): HTMLTableCaptionElement; }; /** @@ -13120,104 +15086,120 @@ declare var HTMLTableCaptionElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement) */ interface HTMLTableCellElement extends HTMLElement { - /** - * Sets or retrieves abbreviated text for the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/abbr) - */ - abbr: string; - /** - * Sets or retrieves how the object is aligned with adjacent text. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/align) - */ - align: string; - /** - * Sets or retrieves a comma-delimited list of conceptual categories associated with the object. - * @deprecated - */ - axis: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/bgColor) - */ - bgColor: string; - /** - * Retrieves the position of the object in the cells collection of a row. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/cellIndex) - */ - readonly cellIndex: number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/ch) - */ - ch: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/chOff) - */ - chOff: string; - /** - * Sets or retrieves the number columns in the table that the object should span. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/colSpan) - */ - colSpan: number; - /** - * Sets or retrieves a list of header cells that provide information for the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/headers) - */ - headers: string; - /** - * Sets or retrieves the height of the object. - * @deprecated - */ - height: string; - /** - * Sets or retrieves whether the browser automatically performs wordwrap. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/noWrap) - */ - noWrap: boolean; - /** - * Sets or retrieves how many rows in a table the cell should span. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/rowSpan) - */ - rowSpan: number; - /** - * Sets or retrieves the group of cells in a table to which the object's information applies. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/scope) - */ - scope: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/vAlign) - */ - vAlign: string; - /** - * Sets or retrieves the width of the object. - * @deprecated - */ - width: string; - addEventListener(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Sets or retrieves abbreviated text for the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/abbr) + */ + abbr: string; + /** + * Sets or retrieves how the object is aligned with adjacent text. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/align) + */ + align: string; + /** + * Sets or retrieves a comma-delimited list of conceptual categories associated with the object. + * @deprecated + */ + axis: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/bgColor) + */ + bgColor: string; + /** + * Retrieves the position of the object in the cells collection of a row. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/cellIndex) + */ + readonly cellIndex: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/ch) + */ + ch: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/chOff) + */ + chOff: string; + /** + * Sets or retrieves the number columns in the table that the object should span. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/colSpan) + */ + colSpan: number; + /** + * Sets or retrieves a list of header cells that provide information for the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/headers) + */ + headers: string; + /** + * Sets or retrieves the height of the object. + * @deprecated + */ + height: string; + /** + * Sets or retrieves whether the browser automatically performs wordwrap. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/noWrap) + */ + noWrap: boolean; + /** + * Sets or retrieves how many rows in a table the cell should span. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/rowSpan) + */ + rowSpan: number; + /** + * Sets or retrieves the group of cells in a table to which the object's information applies. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/scope) + */ + scope: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/vAlign) + */ + vAlign: string; + /** + * Sets or retrieves the width of the object. + * @deprecated + */ + width: string; + addEventListener( + type: K, + listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLTableCellElement: { - prototype: HTMLTableCellElement; - new(): HTMLTableCellElement; + prototype: HTMLTableCellElement; + new (): HTMLTableCellElement; }; /** @@ -13226,59 +15208,97 @@ declare var HTMLTableCellElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement) */ interface HTMLTableColElement extends HTMLElement { - /** - * Sets or retrieves the alignment of the object relative to the display or table. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/align) - */ - align: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/ch) - */ - ch: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/chOff) - */ - chOff: string; - /** - * Sets or retrieves the number of columns in the group. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/span) - */ - span: number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/vAlign) - */ - vAlign: string; - /** - * Sets or retrieves the width of the object. - * @deprecated - */ - width: string; - addEventListener(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Sets or retrieves the alignment of the object relative to the display or table. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/align) + */ + align: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/ch) + */ + ch: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/chOff) + */ + chOff: string; + /** + * Sets or retrieves the number of columns in the group. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/span) + */ + span: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/vAlign) + */ + vAlign: string; + /** + * Sets or retrieves the width of the object. + * @deprecated + */ + width: string; + addEventListener( + type: K, + listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLTableColElement: { - prototype: HTMLTableColElement; - new(): HTMLTableColElement; + prototype: HTMLTableColElement; + new (): HTMLTableColElement; }; /** @deprecated prefer HTMLTableCellElement */ interface HTMLTableDataCellElement extends HTMLTableCellElement { - addEventListener(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: ( + this: HTMLTableDataCellElement, + ev: HTMLElementEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: HTMLTableDataCellElement, + ev: HTMLElementEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } /** @@ -13287,171 +15307,209 @@ interface HTMLTableDataCellElement extends HTMLTableCellElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement) */ interface HTMLTableElement extends HTMLElement { - /** - * Sets or retrieves a value that indicates the table alignment. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/align) - */ - align: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/bgColor) - */ - bgColor: string; - /** - * Sets or retrieves the width of the border to draw around the object. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/border) - */ - border: string; - /** - * Retrieves the caption object of a table. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/caption) - */ - caption: HTMLTableCaptionElement | null; - /** - * Sets or retrieves the amount of space between the border of the cell and the content of the cell. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/cellPadding) - */ - cellPadding: string; - /** - * Sets or retrieves the amount of space between cells in a table. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/cellSpacing) - */ - cellSpacing: string; - /** - * Sets or retrieves the way the border frame around the table is displayed. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/frame) - */ - frame: string; - /** - * Sets or retrieves the number of horizontal rows contained in the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/rows) - */ - readonly rows: HTMLCollectionOf; - /** - * Sets or retrieves which dividing lines (inner borders) are displayed. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/rules) - */ - rules: string; - /** - * Sets or retrieves a description and/or structure of the object. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/summary) - */ - summary: string; - /** - * Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tBodies) - */ - readonly tBodies: HTMLCollectionOf; - /** - * Retrieves the tFoot object of the table. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tFoot) - */ - tFoot: HTMLTableSectionElement | null; - /** - * Retrieves the tHead object of the table. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tHead) - */ - tHead: HTMLTableSectionElement | null; - /** - * Sets or retrieves the width of the object. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/width) - */ - width: string; - /** - * Creates an empty caption element in the table. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createCaption) - */ - createCaption(): HTMLTableCaptionElement; - /** - * Creates an empty tBody element in the table. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTBody) - */ - createTBody(): HTMLTableSectionElement; - /** - * Creates an empty tFoot element in the table. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTFoot) - */ - createTFoot(): HTMLTableSectionElement; - /** - * Returns the tHead element object if successful, or null otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTHead) - */ - createTHead(): HTMLTableSectionElement; - /** - * Deletes the caption element and its contents from the table. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteCaption) - */ - deleteCaption(): void; - /** - * Removes the specified row (tr) from the element and from the rows collection. - * @param index Number that specifies the zero-based position in the rows collection of the row to remove. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteRow) - */ - deleteRow(index: number): void; - /** - * Deletes the tFoot element and its contents from the table. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteTFoot) - */ - deleteTFoot(): void; - /** - * Deletes the tHead element and its contents from the table. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteTHead) - */ - deleteTHead(): void; - /** - * Creates a new row (tr) in the table, and adds the row to the rows collection. - * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/insertRow) - */ - insertRow(index?: number): HTMLTableRowElement; - addEventListener(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Sets or retrieves a value that indicates the table alignment. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/align) + */ + align: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/bgColor) + */ + bgColor: string; + /** + * Sets or retrieves the width of the border to draw around the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/border) + */ + border: string; + /** + * Retrieves the caption object of a table. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/caption) + */ + caption: HTMLTableCaptionElement | null; + /** + * Sets or retrieves the amount of space between the border of the cell and the content of the cell. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/cellPadding) + */ + cellPadding: string; + /** + * Sets or retrieves the amount of space between cells in a table. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/cellSpacing) + */ + cellSpacing: string; + /** + * Sets or retrieves the way the border frame around the table is displayed. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/frame) + */ + frame: string; + /** + * Sets or retrieves the number of horizontal rows contained in the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/rows) + */ + readonly rows: HTMLCollectionOf; + /** + * Sets or retrieves which dividing lines (inner borders) are displayed. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/rules) + */ + rules: string; + /** + * Sets or retrieves a description and/or structure of the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/summary) + */ + summary: string; + /** + * Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tBodies) + */ + readonly tBodies: HTMLCollectionOf; + /** + * Retrieves the tFoot object of the table. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tFoot) + */ + tFoot: HTMLTableSectionElement | null; + /** + * Retrieves the tHead object of the table. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tHead) + */ + tHead: HTMLTableSectionElement | null; + /** + * Sets or retrieves the width of the object. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/width) + */ + width: string; + /** + * Creates an empty caption element in the table. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createCaption) + */ + createCaption(): HTMLTableCaptionElement; + /** + * Creates an empty tBody element in the table. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTBody) + */ + createTBody(): HTMLTableSectionElement; + /** + * Creates an empty tFoot element in the table. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTFoot) + */ + createTFoot(): HTMLTableSectionElement; + /** + * Returns the tHead element object if successful, or null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTHead) + */ + createTHead(): HTMLTableSectionElement; + /** + * Deletes the caption element and its contents from the table. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteCaption) + */ + deleteCaption(): void; + /** + * Removes the specified row (tr) from the element and from the rows collection. + * @param index Number that specifies the zero-based position in the rows collection of the row to remove. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteRow) + */ + deleteRow(index: number): void; + /** + * Deletes the tFoot element and its contents from the table. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteTFoot) + */ + deleteTFoot(): void; + /** + * Deletes the tHead element and its contents from the table. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteTHead) + */ + deleteTHead(): void; + /** + * Creates a new row (tr) in the table, and adds the row to the rows collection. + * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/insertRow) + */ + insertRow(index?: number): HTMLTableRowElement; + addEventListener( + type: K, + listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLTableElement: { - prototype: HTMLTableElement; - new(): HTMLTableElement; + prototype: HTMLTableElement; + new (): HTMLTableElement; }; /** @deprecated prefer HTMLTableCellElement */ interface HTMLTableHeaderCellElement extends HTMLTableCellElement { - addEventListener(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: ( + this: HTMLTableHeaderCellElement, + ev: HTMLElementEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: HTMLTableHeaderCellElement, + ev: HTMLElementEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } /** @@ -13460,78 +15518,94 @@ interface HTMLTableHeaderCellElement extends HTMLTableCellElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement) */ interface HTMLTableRowElement extends HTMLElement { - /** - * Sets or retrieves how the object is aligned with adjacent text. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/align) - */ - align: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/bgColor) - */ - bgColor: string; - /** - * Retrieves a collection of all cells in the table row. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/cells) - */ - readonly cells: HTMLCollectionOf; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/ch) - */ - ch: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/chOff) - */ - chOff: string; - /** - * Retrieves the position of the object in the rows collection for the table. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/rowIndex) - */ - readonly rowIndex: number; - /** - * Retrieves the position of the object in the collection. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/sectionRowIndex) - */ - readonly sectionRowIndex: number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/vAlign) - */ - vAlign: string; - /** - * Removes the specified cell from the table row, as well as from the cells collection. - * @param index Number that specifies the zero-based position of the cell to remove from the table row. If no value is provided, the last cell in the cells collection is deleted. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/deleteCell) - */ - deleteCell(index: number): void; - /** - * Creates a new cell in the table row, and adds the cell to the cells collection. - * @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/insertCell) - */ - insertCell(index?: number): HTMLTableCellElement; - addEventListener(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Sets or retrieves how the object is aligned with adjacent text. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/align) + */ + align: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/bgColor) + */ + bgColor: string; + /** + * Retrieves a collection of all cells in the table row. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/cells) + */ + readonly cells: HTMLCollectionOf; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/ch) + */ + ch: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/chOff) + */ + chOff: string; + /** + * Retrieves the position of the object in the rows collection for the table. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/rowIndex) + */ + readonly rowIndex: number; + /** + * Retrieves the position of the object in the collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/sectionRowIndex) + */ + readonly sectionRowIndex: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/vAlign) + */ + vAlign: string; + /** + * Removes the specified cell from the table row, as well as from the cells collection. + * @param index Number that specifies the zero-based position of the cell to remove from the table row. If no value is provided, the last cell in the cells collection is deleted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/deleteCell) + */ + deleteCell(index: number): void; + /** + * Creates a new cell in the table row, and adds the cell to the cells collection. + * @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/insertCell) + */ + insertCell(index?: number): HTMLTableCellElement; + addEventListener( + type: K, + listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLTableRowElement: { - prototype: HTMLTableRowElement; - new(): HTMLTableRowElement; + prototype: HTMLTableRowElement; + new (): HTMLTableRowElement; }; /** @@ -13540,60 +15614,82 @@ declare var HTMLTableRowElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement) */ interface HTMLTableSectionElement extends HTMLElement { - /** - * Sets or retrieves a value that indicates the table alignment. - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/align) - */ - align: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/ch) - */ - ch: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/chOff) - */ - chOff: string; - /** - * Sets or retrieves the number of horizontal rows contained in the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/rows) - */ - readonly rows: HTMLCollectionOf; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/vAlign) - */ - vAlign: string; - /** - * Removes the specified row (tr) from the element and from the rows collection. - * @param index Number that specifies the zero-based position in the rows collection of the row to remove. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/deleteRow) - */ - deleteRow(index: number): void; - /** - * Creates a new row (tr) in the table, and adds the row to the rows collection. - * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/insertRow) - */ - insertRow(index?: number): HTMLTableRowElement; - addEventListener(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Sets or retrieves a value that indicates the table alignment. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/align) + */ + align: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/ch) + */ + ch: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/chOff) + */ + chOff: string; + /** + * Sets or retrieves the number of horizontal rows contained in the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/rows) + */ + readonly rows: HTMLCollectionOf; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/vAlign) + */ + vAlign: string; + /** + * Removes the specified row (tr) from the element and from the rows collection. + * @param index Number that specifies the zero-based position in the rows collection of the row to remove. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/deleteRow) + */ + deleteRow(index: number): void; + /** + * Creates a new row (tr) in the table, and adds the row to the rows collection. + * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/insertRow) + */ + insertRow(index?: number): HTMLTableRowElement; + addEventListener( + type: K, + listener: ( + this: HTMLTableSectionElement, + ev: HTMLElementEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: HTMLTableSectionElement, + ev: HTMLElementEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLTableSectionElement: { - prototype: HTMLTableSectionElement; - new(): HTMLTableSectionElement; + prototype: HTMLTableSectionElement; + new (): HTMLTableSectionElement; }; /** @@ -13602,29 +15698,45 @@ declare var HTMLTableSectionElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement) */ interface HTMLTemplateElement extends HTMLElement { - /** - * Returns the template contents (a DocumentFragment). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/content) - */ - readonly content: DocumentFragment; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootClonable) */ - shadowRootClonable: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootDelegatesFocus) */ - shadowRootDelegatesFocus: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootMode) */ - shadowRootMode: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSerializable) */ - shadowRootSerializable: boolean; - addEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Returns the template contents (a DocumentFragment). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/content) + */ + readonly content: DocumentFragment; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootClonable) */ + shadowRootClonable: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootDelegatesFocus) */ + shadowRootDelegatesFocus: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootMode) */ + shadowRootMode: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSerializable) */ + shadowRootSerializable: boolean; + addEventListener( + type: K, + listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLTemplateElement: { - prototype: HTMLTemplateElement; - new(): HTMLTemplateElement; + prototype: HTMLTemplateElement; + new (): HTMLTemplateElement; }; /** @@ -13633,163 +15745,188 @@ declare var HTMLTemplateElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement) */ interface HTMLTextAreaElement extends HTMLElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/autocomplete) */ - autocomplete: AutoFill; - /** - * Sets or retrieves the width of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/cols) - */ - cols: number; - /** - * Sets or retrieves the initial contents of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/defaultValue) - */ - defaultValue: string; - dirName: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/disabled) */ - disabled: boolean; - /** - * Retrieves a reference to the form that the object is embedded in. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/form) - */ - readonly form: HTMLFormElement | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/labels) */ - readonly labels: NodeListOf; - /** - * Sets or retrieves the maximum number of characters that the user can enter in a text control. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/maxLength) - */ - maxLength: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/minLength) */ - minLength: number; - /** - * Sets or retrieves the name of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/name) - */ - name: string; - /** - * Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/placeholder) - */ - placeholder: string; - /** - * Sets or retrieves the value indicated whether the content of the object is read-only. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/readOnly) - */ - readOnly: boolean; - /** - * When present, marks an element that can't be submitted without a value. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/required) - */ - required: boolean; - /** - * Sets or retrieves the number of horizontal rows contained in the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/rows) - */ - rows: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/selectionDirection) */ - selectionDirection: "forward" | "backward" | "none"; - /** - * Gets or sets the end position or offset of a text selection. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/selectionEnd) - */ - selectionEnd: number; - /** - * Gets or sets the starting position or offset of a text selection. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/selectionStart) - */ - selectionStart: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/textLength) */ - readonly textLength: number; - /** - * Retrieves the type of control. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/type) - */ - readonly type: string; - /** - * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/validationMessage) - */ - readonly validationMessage: string; - /** - * Returns a ValidityState object that represents the validity states of an element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/validity) - */ - readonly validity: ValidityState; - /** - * Retrieves or sets the text in the entry field of the textArea element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/value) - */ - value: string; - /** - * Returns whether an element will successfully validate based on forms validation rules and constraints. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/willValidate) - */ - readonly willValidate: boolean; - /** - * Sets or retrieves how to handle wordwrapping in the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/wrap) - */ - wrap: string; - /** - * Returns whether a form will validate when it is submitted, without having to submit it. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/checkValidity) - */ - checkValidity(): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/reportValidity) */ - reportValidity(): boolean; - /** - * Highlights the input area of a form element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/select) - */ - select(): void; - /** - * Sets a custom error message that is displayed when a form is submitted. - * @param error Sets a custom error message that is displayed when a form is submitted. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setCustomValidity) - */ - setCustomValidity(error: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setRangeText) */ - setRangeText(replacement: string): void; - setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void; - /** - * Sets the start and end positions of a selection in a text field. - * @param start The offset into the text field for the start of the selection. - * @param end The offset into the text field for the end of the selection. - * @param direction The direction in which the selection is performed. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setSelectionRange) - */ - setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void; - addEventListener(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/autocomplete) */ + autocomplete: AutoFill; + /** + * Sets or retrieves the width of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/cols) + */ + cols: number; + /** + * Sets or retrieves the initial contents of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/defaultValue) + */ + defaultValue: string; + dirName: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/disabled) */ + disabled: boolean; + /** + * Retrieves a reference to the form that the object is embedded in. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/form) + */ + readonly form: HTMLFormElement | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/labels) */ + readonly labels: NodeListOf; + /** + * Sets or retrieves the maximum number of characters that the user can enter in a text control. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/maxLength) + */ + maxLength: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/minLength) */ + minLength: number; + /** + * Sets or retrieves the name of the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/name) + */ + name: string; + /** + * Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/placeholder) + */ + placeholder: string; + /** + * Sets or retrieves the value indicated whether the content of the object is read-only. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/readOnly) + */ + readOnly: boolean; + /** + * When present, marks an element that can't be submitted without a value. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/required) + */ + required: boolean; + /** + * Sets or retrieves the number of horizontal rows contained in the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/rows) + */ + rows: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/selectionDirection) */ + selectionDirection: "forward" | "backward" | "none"; + /** + * Gets or sets the end position or offset of a text selection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/selectionEnd) + */ + selectionEnd: number; + /** + * Gets or sets the starting position or offset of a text selection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/selectionStart) + */ + selectionStart: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/textLength) */ + readonly textLength: number; + /** + * Retrieves the type of control. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/type) + */ + readonly type: string; + /** + * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/validationMessage) + */ + readonly validationMessage: string; + /** + * Returns a ValidityState object that represents the validity states of an element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/validity) + */ + readonly validity: ValidityState; + /** + * Retrieves or sets the text in the entry field of the textArea element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/value) + */ + value: string; + /** + * Returns whether an element will successfully validate based on forms validation rules and constraints. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/willValidate) + */ + readonly willValidate: boolean; + /** + * Sets or retrieves how to handle wordwrapping in the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/wrap) + */ + wrap: string; + /** + * Returns whether a form will validate when it is submitted, without having to submit it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/checkValidity) + */ + checkValidity(): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/reportValidity) */ + reportValidity(): boolean; + /** + * Highlights the input area of a form element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/select) + */ + select(): void; + /** + * Sets a custom error message that is displayed when a form is submitted. + * @param error Sets a custom error message that is displayed when a form is submitted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setCustomValidity) + */ + setCustomValidity(error: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setRangeText) */ + setRangeText(replacement: string): void; + setRangeText( + replacement: string, + start: number, + end: number, + selectionMode?: SelectionMode, + ): void; + /** + * Sets the start and end positions of a selection in a text field. + * @param start The offset into the text field for the start of the selection. + * @param end The offset into the text field for the end of the selection. + * @param direction The direction in which the selection is performed. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setSelectionRange) + */ + setSelectionRange( + start: number | null, + end: number | null, + direction?: "forward" | "backward" | "none", + ): void; + addEventListener( + type: K, + listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLTextAreaElement: { - prototype: HTMLTextAreaElement; - new(): HTMLTextAreaElement; + prototype: HTMLTextAreaElement; + new (): HTMLTextAreaElement; }; /** @@ -13798,17 +15935,33 @@ declare var HTMLTextAreaElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTimeElement) */ interface HTMLTimeElement extends HTMLElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTimeElement/dateTime) */ - dateTime: string; - addEventListener(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTimeElement/dateTime) */ + dateTime: string; + addEventListener( + type: K, + listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLTimeElement: { - prototype: HTMLTimeElement; - new(): HTMLTimeElement; + prototype: HTMLTimeElement; + new (): HTMLTimeElement; }; /** @@ -13817,21 +15970,37 @@ declare var HTMLTimeElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTitleElement) */ interface HTMLTitleElement extends HTMLElement { - /** - * Retrieves or sets the text of the object as a string. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTitleElement/text) - */ - text: string; - addEventListener(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Retrieves or sets the text of the object as a string. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTitleElement/text) + */ + text: string; + addEventListener( + type: K, + listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLTitleElement: { - prototype: HTMLTitleElement; - new(): HTMLTitleElement; + prototype: HTMLTitleElement; + new (): HTMLTitleElement; }; /** @@ -13840,32 +16009,48 @@ declare var HTMLTitleElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement) */ interface HTMLTrackElement extends HTMLElement { - default: boolean; - kind: string; - label: string; - readonly readyState: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/src) */ - src: string; - srclang: string; - /** Returns the TextTrack object corresponding to the text track of the track element. */ - readonly track: TextTrack; - readonly NONE: 0; - readonly LOADING: 1; - readonly LOADED: 2; - readonly ERROR: 3; - addEventListener(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + default: boolean; + kind: string; + label: string; + readonly readyState: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/src) */ + src: string; + srclang: string; + /** Returns the TextTrack object corresponding to the text track of the track element. */ + readonly track: TextTrack; + readonly NONE: 0; + readonly LOADING: 1; + readonly LOADED: 2; + readonly ERROR: 3; + addEventListener( + type: K, + listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLTrackElement: { - prototype: HTMLTrackElement; - new(): HTMLTrackElement; - readonly NONE: 0; - readonly LOADING: 1; - readonly LOADED: 2; - readonly ERROR: 3; + prototype: HTMLTrackElement; + new (): HTMLTrackElement; + readonly NONE: 0; + readonly LOADING: 1; + readonly LOADED: 2; + readonly ERROR: 3; }; /** @@ -13874,19 +16059,35 @@ declare var HTMLTrackElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement) */ interface HTMLUListElement extends HTMLElement { - /** @deprecated */ - compact: boolean; - /** @deprecated */ - type: string; - addEventListener(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** @deprecated */ + compact: boolean; + /** @deprecated */ + type: string; + addEventListener( + type: K, + listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLUListElement: { - prototype: HTMLUListElement; - new(): HTMLUListElement; + prototype: HTMLUListElement; + new (): HTMLUListElement; }; /** @@ -13895,20 +16096,36 @@ declare var HTMLUListElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUnknownElement) */ interface HTMLUnknownElement extends HTMLElement { - addEventListener(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLUnknownElement: { - prototype: HTMLUnknownElement; - new(): HTMLUnknownElement; + prototype: HTMLUnknownElement; + new (): HTMLUnknownElement; }; interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap { - "enterpictureinpicture": PictureInPictureEvent; - "leavepictureinpicture": PictureInPictureEvent; + enterpictureinpicture: PictureInPictureEvent; + leavepictureinpicture: PictureInPictureEvent; } /** @@ -13917,61 +16134,81 @@ interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement) */ interface HTMLVideoElement extends HTMLMediaElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/disablePictureInPicture) */ - disablePictureInPicture: boolean; - /** - * Gets or sets the height of the video element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/height) - */ - height: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/enterpictureinpicture_event) */ - onenterpictureinpicture: ((this: HTMLVideoElement, ev: PictureInPictureEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/leavepictureinpicture_event) */ - onleavepictureinpicture: ((this: HTMLVideoElement, ev: PictureInPictureEvent) => any) | null; - /** Gets or sets the playsinline of the video element. for example, On iPhone, video elements will now be allowed to play inline, and will not automatically enter fullscreen mode when playback begins. */ - playsInline: boolean; - /** - * Gets or sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/poster) - */ - poster: string; - /** - * Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/videoHeight) - */ - readonly videoHeight: number; - /** - * Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/videoWidth) - */ - readonly videoWidth: number; - /** - * Gets or sets the width of the video element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/width) - */ - width: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/cancelVideoFrameCallback) */ - cancelVideoFrameCallback(handle: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/getVideoPlaybackQuality) */ - getVideoPlaybackQuality(): VideoPlaybackQuality; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/requestPictureInPicture) */ - requestPictureInPicture(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/requestVideoFrameCallback) */ - requestVideoFrameCallback(callback: VideoFrameRequestCallback): number; - addEventListener(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/disablePictureInPicture) */ + disablePictureInPicture: boolean; + /** + * Gets or sets the height of the video element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/height) + */ + height: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/enterpictureinpicture_event) */ + onenterpictureinpicture: + | ((this: HTMLVideoElement, ev: PictureInPictureEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/leavepictureinpicture_event) */ + onleavepictureinpicture: + | ((this: HTMLVideoElement, ev: PictureInPictureEvent) => any) + | null; + /** Gets or sets the playsinline of the video element. for example, On iPhone, video elements will now be allowed to play inline, and will not automatically enter fullscreen mode when playback begins. */ + playsInline: boolean; + /** + * Gets or sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/poster) + */ + poster: string; + /** + * Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/videoHeight) + */ + readonly videoHeight: number; + /** + * Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/videoWidth) + */ + readonly videoWidth: number; + /** + * Gets or sets the width of the video element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/width) + */ + width: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/cancelVideoFrameCallback) */ + cancelVideoFrameCallback(handle: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/getVideoPlaybackQuality) */ + getVideoPlaybackQuality(): VideoPlaybackQuality; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/requestPictureInPicture) */ + requestPictureInPicture(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/requestVideoFrameCallback) */ + requestVideoFrameCallback(callback: VideoFrameRequestCallback): number; + addEventListener( + type: K, + listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var HTMLVideoElement: { - prototype: HTMLVideoElement; - new(): HTMLVideoElement; + prototype: HTMLVideoElement; + new (): HTMLVideoElement; }; /** @@ -13980,23 +16217,23 @@ declare var HTMLVideoElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HashChangeEvent) */ interface HashChangeEvent extends Event { - /** - * Returns the URL of the session history entry that is now current. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HashChangeEvent/newURL) - */ - readonly newURL: string; - /** - * Returns the URL of the session history entry that was previously current. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HashChangeEvent/oldURL) - */ - readonly oldURL: string; + /** + * Returns the URL of the session history entry that is now current. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HashChangeEvent/newURL) + */ + readonly newURL: string; + /** + * Returns the URL of the session history entry that was previously current. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HashChangeEvent/oldURL) + */ + readonly oldURL: string; } declare var HashChangeEvent: { - prototype: HashChangeEvent; - new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent; + prototype: HashChangeEvent; + new (type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent; }; /** @@ -14005,48 +16242,65 @@ declare var HashChangeEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers) */ interface Headers { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append) */ - append(name: string, value: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete) */ - delete(name: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get) */ - get(name: string): string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie) */ - getSetCookie(): string[]; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has) */ - has(name: string): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set) */ - set(name: string, value: string): void; - forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append) */ + append(name: string, value: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete) */ + delete(name: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get) */ + get(name: string): string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie) */ + getSetCookie(): string[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has) */ + has(name: string): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set) */ + set(name: string, value: string): void; + forEach( + callbackfn: (value: string, key: string, parent: Headers) => void, + thisArg?: any, + ): void; } declare var Headers: { - prototype: Headers; - new(init?: HeadersInit): Headers; + prototype: Headers; + new (init?: HeadersInit): Headers; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight) */ interface Highlight { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/priority) */ - priority: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/type) */ - type: HighlightType; - forEach(callbackfn: (value: AbstractRange, key: AbstractRange, parent: Highlight) => void, thisArg?: any): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/priority) */ + priority: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/type) */ + type: HighlightType; + forEach( + callbackfn: ( + value: AbstractRange, + key: AbstractRange, + parent: Highlight, + ) => void, + thisArg?: any, + ): void; } declare var Highlight: { - prototype: Highlight; - new(...initialRanges: AbstractRange[]): Highlight; + prototype: Highlight; + new (...initialRanges: AbstractRange[]): Highlight; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry) */ interface HighlightRegistry { - forEach(callbackfn: (value: Highlight, key: string, parent: HighlightRegistry) => void, thisArg?: any): void; + forEach( + callbackfn: ( + value: Highlight, + key: string, + parent: HighlightRegistry, + ) => void, + thisArg?: any, + ): void; } declare var HighlightRegistry: { - prototype: HighlightRegistry; - new(): HighlightRegistry; + prototype: HighlightRegistry; + new (): HighlightRegistry; }; /** @@ -14055,27 +16309,27 @@ declare var HighlightRegistry: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/History) */ interface History { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/length) */ - readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/scrollRestoration) */ - scrollRestoration: ScrollRestoration; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/state) */ - readonly state: any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/back) */ - back(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/forward) */ - forward(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/go) */ - go(delta?: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/pushState) */ - pushState(data: any, unused: string, url?: string | URL | null): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/replaceState) */ - replaceState(data: any, unused: string, url?: string | URL | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/scrollRestoration) */ + scrollRestoration: ScrollRestoration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/state) */ + readonly state: any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/back) */ + back(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/forward) */ + forward(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/go) */ + go(delta?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/pushState) */ + pushState(data: any, unused: string, url?: string | URL | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/replaceState) */ + replaceState(data: any, unused: string, url?: string | URL | null): void; } declare var History: { - prototype: History; - new(): History; + prototype: History; + new (): History; }; /** @@ -14084,73 +16338,73 @@ declare var History: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor) */ interface IDBCursor { - /** - * Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/direction) - */ - readonly direction: IDBCursorDirection; - /** - * Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/key) - */ - readonly key: IDBValidKey; - /** - * Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/primaryKey) - */ - readonly primaryKey: IDBValidKey; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/request) */ - readonly request: IDBRequest; - /** - * Returns the IDBObjectStore or IDBIndex the cursor was opened from. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/source) - */ - readonly source: IDBObjectStore | IDBIndex; - /** - * Advances the cursor through the next count records in range. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/advance) - */ - advance(count: number): void; - /** - * Advances the cursor to the next record in range. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continue) - */ - continue(key?: IDBValidKey): void; - /** - * Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continuePrimaryKey) - */ - continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void; - /** - * Delete the record pointed at by the cursor with a new value. - * - * If successful, request's result will be undefined. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/delete) - */ - delete(): IDBRequest; - /** - * Updated the record pointed at by the cursor with a new value. - * - * Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed. - * - * If successful, request's result will be the record's key. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/update) - */ - update(value: any): IDBRequest; + /** + * Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/direction) + */ + readonly direction: IDBCursorDirection; + /** + * Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/key) + */ + readonly key: IDBValidKey; + /** + * Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/primaryKey) + */ + readonly primaryKey: IDBValidKey; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/request) */ + readonly request: IDBRequest; + /** + * Returns the IDBObjectStore or IDBIndex the cursor was opened from. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/source) + */ + readonly source: IDBObjectStore | IDBIndex; + /** + * Advances the cursor through the next count records in range. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/advance) + */ + advance(count: number): void; + /** + * Advances the cursor to the next record in range. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continue) + */ + continue(key?: IDBValidKey): void; + /** + * Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continuePrimaryKey) + */ + continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void; + /** + * Delete the record pointed at by the cursor with a new value. + * + * If successful, request's result will be undefined. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/delete) + */ + delete(): IDBRequest; + /** + * Updated the record pointed at by the cursor with a new value. + * + * Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed. + * + * If successful, request's result will be the record's key. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/update) + */ + update(value: any): IDBRequest; } declare var IDBCursor: { - prototype: IDBCursor; - new(): IDBCursor; + prototype: IDBCursor; + new (): IDBCursor; }; /** @@ -14159,24 +16413,24 @@ declare var IDBCursor: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue) */ interface IDBCursorWithValue extends IDBCursor { - /** - * Returns the cursor's current value. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue/value) - */ - readonly value: any; + /** + * Returns the cursor's current value. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue/value) + */ + readonly value: any; } declare var IDBCursorWithValue: { - prototype: IDBCursorWithValue; - new(): IDBCursorWithValue; + prototype: IDBCursorWithValue; + new (): IDBCursorWithValue; }; interface IDBDatabaseEventMap { - "abort": Event; - "close": Event; - "error": Event; - "versionchange": IDBVersionChangeEvent; + abort: Event; + close: Event; + error: Event; + versionchange: IDBVersionChangeEvent; } /** @@ -14185,67 +16439,92 @@ interface IDBDatabaseEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase) */ interface IDBDatabase extends EventTarget { - /** - * Returns the name of the database. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/name) - */ - readonly name: string; - /** - * Returns a list of the names of object stores in the database. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames) - */ - readonly objectStoreNames: DOMStringList; - 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; - onerror: ((this: IDBDatabase, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/versionchange_event) */ - onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null; - /** - * Returns the version of the database. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/version) - */ - readonly version: number; - /** - * Closes the connection once all running transactions have finished. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close) - */ - close(): void; - /** - * Creates a new object store with the given name and options and returns a new IDBObjectStore. - * - * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/createObjectStore) - */ - createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore; - /** - * Deletes the object store with the given name. - * - * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/deleteObjectStore) - */ - deleteObjectStore(name: string): void; - /** - * Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction) - */ - transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction; - addEventListener(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Returns the name of the database. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/name) + */ + readonly name: string; + /** + * Returns a list of the names of object stores in the database. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames) + */ + readonly objectStoreNames: DOMStringList; + 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; + onerror: ((this: IDBDatabase, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/versionchange_event) */ + onversionchange: + | ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) + | null; + /** + * Returns the version of the database. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/version) + */ + readonly version: number; + /** + * Closes the connection once all running transactions have finished. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close) + */ + close(): void; + /** + * Creates a new object store with the given name and options and returns a new IDBObjectStore. + * + * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/createObjectStore) + */ + createObjectStore( + name: string, + options?: IDBObjectStoreParameters, + ): IDBObjectStore; + /** + * Deletes the object store with the given name. + * + * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/deleteObjectStore) + */ + deleteObjectStore(name: string): void; + /** + * Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction) + */ + transaction( + storeNames: string | string[], + mode?: IDBTransactionMode, + options?: IDBTransactionOptions, + ): IDBTransaction; + addEventListener( + type: K, + listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var IDBDatabase: { - prototype: IDBDatabase; - new(): IDBDatabase; + prototype: IDBDatabase; + new (): IDBDatabase; }; /** @@ -14254,33 +16533,33 @@ declare var IDBDatabase: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory) */ interface IDBFactory { - /** - * Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal. - * - * Throws a "DataError" DOMException if either input is not a valid key. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/cmp) - */ - cmp(first: any, second: any): number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/databases) */ - databases(): Promise; - /** - * Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/deleteDatabase) - */ - deleteDatabase(name: string): IDBOpenDBRequest; - /** - * Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/open) - */ - open(name: string, version?: number): IDBOpenDBRequest; + /** + * Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal. + * + * Throws a "DataError" DOMException if either input is not a valid key. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/cmp) + */ + cmp(first: any, second: any): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/databases) */ + databases(): Promise; + /** + * Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/deleteDatabase) + */ + deleteDatabase(name: string): IDBOpenDBRequest; + /** + * Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/open) + */ + open(name: string, version?: number): IDBOpenDBRequest; } declare var IDBFactory: { - prototype: IDBFactory; - new(): IDBFactory; + prototype: IDBFactory; + new (): IDBFactory; }; /** @@ -14289,85 +16568,97 @@ declare var IDBFactory: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex) */ interface IDBIndex { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/keyPath) */ - readonly keyPath: string | string[]; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/multiEntry) */ - readonly multiEntry: boolean; - /** - * Returns the name of the index. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/name) - */ - name: string; - /** - * Returns the IDBObjectStore the index belongs to. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/objectStore) - */ - readonly objectStore: IDBObjectStore; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/unique) */ - readonly unique: boolean; - /** - * Retrieves the number of records matching the given key or key range in query. - * - * If successful, request's result will be the count. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/count) - */ - count(query?: IDBValidKey | IDBKeyRange): IDBRequest; - /** - * Retrieves the value of the first record matching the given key or key range in query. - * - * If successful, request's result will be the value, or undefined if there was no matching record. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/get) - */ - get(query: IDBValidKey | IDBKeyRange): IDBRequest; - /** - * Retrieves the values of the records matching the given key or key range in query (up to count if given). - * - * If successful, request's result will be an Array of the values. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAll) - */ - getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * Retrieves the keys of records matching the given key or key range in query (up to count if given). - * - * If successful, request's result will be an Array of the keys. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) - */ - getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * Retrieves the key of the first record matching the given key or key range in query. - * - * If successful, request's result will be the key, or undefined if there was no matching record. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getKey) - */ - getKey(query: IDBValidKey | IDBKeyRange): IDBRequest; - /** - * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched. - * - * If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openCursor) - */ - openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest; - /** - * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched. - * - * If successful, request's result will be an IDBCursor, or null if there were no matching records. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openKeyCursor) - */ - openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/keyPath) */ + readonly keyPath: string | string[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/multiEntry) */ + readonly multiEntry: boolean; + /** + * Returns the name of the index. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/name) + */ + name: string; + /** + * Returns the IDBObjectStore the index belongs to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/objectStore) + */ + readonly objectStore: IDBObjectStore; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/unique) */ + readonly unique: boolean; + /** + * Retrieves the number of records matching the given key or key range in query. + * + * If successful, request's result will be the count. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/count) + */ + count(query?: IDBValidKey | IDBKeyRange): IDBRequest; + /** + * Retrieves the value of the first record matching the given key or key range in query. + * + * If successful, request's result will be the value, or undefined if there was no matching record. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/get) + */ + get(query: IDBValidKey | IDBKeyRange): IDBRequest; + /** + * Retrieves the values of the records matching the given key or key range in query (up to count if given). + * + * If successful, request's result will be an Array of the values. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAll) + */ + getAll( + query?: IDBValidKey | IDBKeyRange | null, + count?: number, + ): IDBRequest; + /** + * Retrieves the keys of records matching the given key or key range in query (up to count if given). + * + * If successful, request's result will be an Array of the keys. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys) + */ + getAllKeys( + query?: IDBValidKey | IDBKeyRange | null, + count?: number, + ): IDBRequest; + /** + * Retrieves the key of the first record matching the given key or key range in query. + * + * If successful, request's result will be the key, or undefined if there was no matching record. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getKey) + */ + getKey(query: IDBValidKey | IDBKeyRange): IDBRequest; + /** + * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched. + * + * If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openCursor) + */ + openCursor( + query?: IDBValidKey | IDBKeyRange | null, + direction?: IDBCursorDirection, + ): IDBRequest; + /** + * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched. + * + * If successful, request's result will be an IDBCursor, or null if there were no matching records. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openKeyCursor) + */ + openKeyCursor( + query?: IDBValidKey | IDBKeyRange | null, + direction?: IDBCursorDirection, + ): IDBRequest; } declare var IDBIndex: { - prototype: IDBIndex; - new(): IDBIndex; + prototype: IDBIndex; + new (): IDBIndex; }; /** @@ -14376,65 +16667,70 @@ declare var IDBIndex: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange) */ interface IDBKeyRange { - /** - * Returns lower bound, or undefined if none. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lower) - */ - readonly lower: any; - /** - * Returns true if the lower open flag is set, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerOpen) - */ - readonly lowerOpen: boolean; - /** - * Returns upper bound, or undefined if none. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upper) - */ - readonly upper: any; - /** - * Returns true if the upper open flag is set, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperOpen) - */ - readonly upperOpen: boolean; - /** - * Returns true if key is included in the range, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/includes) - */ - includes(key: any): boolean; + /** + * Returns lower bound, or undefined if none. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lower) + */ + readonly lower: any; + /** + * Returns true if the lower open flag is set, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerOpen) + */ + readonly lowerOpen: boolean; + /** + * Returns upper bound, or undefined if none. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upper) + */ + readonly upper: any; + /** + * Returns true if the upper open flag is set, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperOpen) + */ + readonly upperOpen: boolean; + /** + * Returns true if key is included in the range, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/includes) + */ + includes(key: any): boolean; } declare var IDBKeyRange: { - prototype: IDBKeyRange; - new(): IDBKeyRange; - /** - * Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound_static) - */ - bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange; - /** - * Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound_static) - */ - lowerBound(lower: any, open?: boolean): IDBKeyRange; - /** - * Returns a new IDBKeyRange spanning only key. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only_static) - */ - only(value: any): IDBKeyRange; - /** - * Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound_static) - */ - upperBound(upper: any, open?: boolean): IDBKeyRange; + prototype: IDBKeyRange; + new (): IDBKeyRange; + /** + * Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound_static) + */ + bound( + lower: any, + upper: any, + lowerOpen?: boolean, + upperOpen?: boolean, + ): IDBKeyRange; + /** + * Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound_static) + */ + lowerBound(lower: any, open?: boolean): IDBKeyRange; + /** + * Returns a new IDBKeyRange spanning only key. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only_static) + */ + only(value: any): IDBKeyRange; + /** + * Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound_static) + */ + upperBound(upper: any, open?: boolean): IDBKeyRange; }; /** @@ -14443,160 +16739,176 @@ declare var IDBKeyRange: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore) */ interface IDBObjectStore { - /** - * Returns true if the store has a key generator, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/autoIncrement) - */ - readonly autoIncrement: boolean; - /** - * Returns a list of the names of indexes in the store. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/indexNames) - */ - readonly indexNames: DOMStringList; - /** - * Returns the key path of the store, or null if none. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/keyPath) - */ - readonly keyPath: string | string[]; - /** - * Returns the name of the store. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/name) - */ - name: string; - /** - * Returns the associated transaction. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/transaction) - */ - readonly transaction: IDBTransaction; - /** - * Adds or updates a record in store with the given value and key. - * - * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown. - * - * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException. - * - * If successful, request's result will be the record's key. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/add) - */ - add(value: any, key?: IDBValidKey): IDBRequest; - /** - * Deletes all records in store. - * - * If successful, request's result will be undefined. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/clear) - */ - clear(): IDBRequest; - /** - * Retrieves the number of records matching the given key or key range in query. - * - * If successful, request's result will be the count. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/count) - */ - count(query?: IDBValidKey | IDBKeyRange): IDBRequest; - /** - * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException. - * - * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex) - */ - createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex; - /** - * Deletes records in store with the given key or in the given key range in query. - * - * If successful, request's result will be undefined. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/delete) - */ - delete(query: IDBValidKey | IDBKeyRange): IDBRequest; - /** - * Deletes the index in store with the given name. - * - * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/deleteIndex) - */ - deleteIndex(name: string): void; - /** - * Retrieves the value of the first record matching the given key or key range in query. - * - * If successful, request's result will be the value, or undefined if there was no matching record. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/get) - */ - get(query: IDBValidKey | IDBKeyRange): IDBRequest; - /** - * Retrieves the values of the records matching the given key or key range in query (up to count if given). - * - * If successful, request's result will be an Array of the values. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAll) - */ - getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * Retrieves the keys of records matching the given key or key range in query (up to count if given). - * - * If successful, request's result will be an Array of the keys. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) - */ - getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest; - /** - * Retrieves the key of the first record matching the given key or key range in query. - * - * If successful, request's result will be the key, or undefined if there was no matching record. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getKey) - */ - getKey(query: IDBValidKey | IDBKeyRange): IDBRequest; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/index) */ - index(name: string): IDBIndex; - /** - * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched. - * - * If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openCursor) - */ - openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest; - /** - * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched. - * - * If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openKeyCursor) - */ - openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest; - /** - * Adds or updates a record in store with the given value and key. - * - * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown. - * - * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException. - * - * If successful, request's result will be the record's key. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/put) - */ - put(value: any, key?: IDBValidKey): IDBRequest; + /** + * Returns true if the store has a key generator, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/autoIncrement) + */ + readonly autoIncrement: boolean; + /** + * Returns a list of the names of indexes in the store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/indexNames) + */ + readonly indexNames: DOMStringList; + /** + * Returns the key path of the store, or null if none. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/keyPath) + */ + readonly keyPath: string | string[]; + /** + * Returns the name of the store. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/name) + */ + name: string; + /** + * Returns the associated transaction. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/transaction) + */ + readonly transaction: IDBTransaction; + /** + * Adds or updates a record in store with the given value and key. + * + * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown. + * + * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException. + * + * If successful, request's result will be the record's key. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/add) + */ + add(value: any, key?: IDBValidKey): IDBRequest; + /** + * Deletes all records in store. + * + * If successful, request's result will be undefined. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/clear) + */ + clear(): IDBRequest; + /** + * Retrieves the number of records matching the given key or key range in query. + * + * If successful, request's result will be the count. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/count) + */ + count(query?: IDBValidKey | IDBKeyRange): IDBRequest; + /** + * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException. + * + * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex) + */ + createIndex( + name: string, + keyPath: string | string[], + options?: IDBIndexParameters, + ): IDBIndex; + /** + * Deletes records in store with the given key or in the given key range in query. + * + * If successful, request's result will be undefined. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/delete) + */ + delete(query: IDBValidKey | IDBKeyRange): IDBRequest; + /** + * Deletes the index in store with the given name. + * + * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/deleteIndex) + */ + deleteIndex(name: string): void; + /** + * Retrieves the value of the first record matching the given key or key range in query. + * + * If successful, request's result will be the value, or undefined if there was no matching record. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/get) + */ + get(query: IDBValidKey | IDBKeyRange): IDBRequest; + /** + * Retrieves the values of the records matching the given key or key range in query (up to count if given). + * + * If successful, request's result will be an Array of the values. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAll) + */ + getAll( + query?: IDBValidKey | IDBKeyRange | null, + count?: number, + ): IDBRequest; + /** + * Retrieves the keys of records matching the given key or key range in query (up to count if given). + * + * If successful, request's result will be an Array of the keys. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys) + */ + getAllKeys( + query?: IDBValidKey | IDBKeyRange | null, + count?: number, + ): IDBRequest; + /** + * Retrieves the key of the first record matching the given key or key range in query. + * + * If successful, request's result will be the key, or undefined if there was no matching record. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getKey) + */ + getKey(query: IDBValidKey | IDBKeyRange): IDBRequest; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/index) */ + index(name: string): IDBIndex; + /** + * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched. + * + * If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openCursor) + */ + openCursor( + query?: IDBValidKey | IDBKeyRange | null, + direction?: IDBCursorDirection, + ): IDBRequest; + /** + * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched. + * + * If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openKeyCursor) + */ + openKeyCursor( + query?: IDBValidKey | IDBKeyRange | null, + direction?: IDBCursorDirection, + ): IDBRequest; + /** + * Adds or updates a record in store with the given value and key. + * + * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown. + * + * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException. + * + * If successful, request's result will be the record's key. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/put) + */ + put(value: any, key?: IDBValidKey): IDBRequest; } declare var IDBObjectStore: { - prototype: IDBObjectStore; - new(): IDBObjectStore; + prototype: IDBObjectStore; + new (): IDBObjectStore; }; interface IDBOpenDBRequestEventMap extends IDBRequestEventMap { - "blocked": IDBVersionChangeEvent; - "upgradeneeded": IDBVersionChangeEvent; + blocked: IDBVersionChangeEvent; + upgradeneeded: IDBVersionChangeEvent; } /** @@ -14605,24 +16917,44 @@ interface IDBOpenDBRequestEventMap extends IDBRequestEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest) */ interface IDBOpenDBRequest extends IDBRequest { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/blocked_event) */ - onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/upgradeneeded_event) */ - onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null; - addEventListener(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/blocked_event) */ + onblocked: + | ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/upgradeneeded_event) */ + onupgradeneeded: + | ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) + | null; + addEventListener( + type: K, + listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var IDBOpenDBRequest: { - prototype: IDBOpenDBRequest; - new(): IDBOpenDBRequest; + prototype: IDBOpenDBRequest; + new (): IDBOpenDBRequest; }; interface IDBRequestEventMap { - "error": Event; - "success": Event; + error: Event; + success: Event; } /** @@ -14631,114 +16963,146 @@ interface IDBRequestEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest) */ interface IDBRequest extends EventTarget { - /** - * When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error) - */ - readonly error: DOMException | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error_event) */ - onerror: ((this: IDBRequest, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/success_event) */ - onsuccess: ((this: IDBRequest, ev: Event) => any) | null; - /** - * Returns "pending" until a request is complete, then returns "done". - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/readyState) - */ - readonly readyState: IDBRequestReadyState; - /** - * When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/result) - */ - readonly result: T; - /** - * Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/source) - */ - readonly source: IDBObjectStore | IDBIndex | IDBCursor; - /** - * Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/transaction) - */ - readonly transaction: IDBTransaction | null; - addEventListener(type: K, listener: (this: IDBRequest, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: IDBRequest, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error) + */ + readonly error: DOMException | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error_event) */ + onerror: ((this: IDBRequest, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/success_event) */ + onsuccess: ((this: IDBRequest, ev: Event) => any) | null; + /** + * Returns "pending" until a request is complete, then returns "done". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/readyState) + */ + readonly readyState: IDBRequestReadyState; + /** + * When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/result) + */ + readonly result: T; + /** + * Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/source) + */ + readonly source: IDBObjectStore | IDBIndex | IDBCursor; + /** + * Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/transaction) + */ + readonly transaction: IDBTransaction | null; + addEventListener( + type: K, + listener: (this: IDBRequest, ev: IDBRequestEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: IDBRequest, ev: IDBRequestEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var IDBRequest: { - prototype: IDBRequest; - new(): IDBRequest; + prototype: IDBRequest; + new (): IDBRequest; }; interface IDBTransactionEventMap { - "abort": Event; - "complete": Event; - "error": Event; + abort: Event; + complete: Event; + error: Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction) */ interface IDBTransaction extends EventTarget { - /** - * Returns the transaction's connection. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/db) - */ - readonly db: IDBDatabase; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/durability) */ - readonly durability: IDBTransactionDurability; - /** - * If the transaction was aborted, returns the error (a DOMException) providing the reason. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error) - */ - readonly error: DOMException | null; - /** - * Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/mode) - */ - readonly mode: IDBTransactionMode; - /** - * Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStoreNames) - */ - readonly objectStoreNames: DOMStringList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */ - onabort: ((this: IDBTransaction, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/complete_event) */ - oncomplete: ((this: IDBTransaction, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error_event) */ - onerror: ((this: IDBTransaction, ev: Event) => any) | null; - /** - * Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort) - */ - abort(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/commit) */ - commit(): void; - /** - * Returns an IDBObjectStore in the transaction's scope. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStore) - */ - objectStore(name: string): IDBObjectStore; - addEventListener(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Returns the transaction's connection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/db) + */ + readonly db: IDBDatabase; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/durability) */ + readonly durability: IDBTransactionDurability; + /** + * If the transaction was aborted, returns the error (a DOMException) providing the reason. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error) + */ + readonly error: DOMException | null; + /** + * Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/mode) + */ + readonly mode: IDBTransactionMode; + /** + * Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStoreNames) + */ + readonly objectStoreNames: DOMStringList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */ + onabort: ((this: IDBTransaction, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/complete_event) */ + oncomplete: ((this: IDBTransaction, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error_event) */ + onerror: ((this: IDBTransaction, ev: Event) => any) | null; + /** + * Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort) + */ + abort(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/commit) */ + commit(): void; + /** + * Returns an IDBObjectStore in the transaction's scope. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStore) + */ + objectStore(name: string): IDBObjectStore; + addEventListener( + type: K, + listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var IDBTransaction: { - prototype: IDBTransaction; - new(): IDBTransaction; + prototype: IDBTransaction; + new (): IDBTransaction; }; /** @@ -14747,15 +17111,18 @@ declare var IDBTransaction: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent) */ interface IDBVersionChangeEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/newVersion) */ - readonly newVersion: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/oldVersion) */ - readonly oldVersion: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/newVersion) */ + readonly newVersion: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/oldVersion) */ + readonly oldVersion: number; } declare var IDBVersionChangeEvent: { - prototype: IDBVersionChangeEvent; - new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent; + prototype: IDBVersionChangeEvent; + new ( + type: string, + eventInitDict?: IDBVersionChangeEventInit, + ): IDBVersionChangeEvent; }; /** @@ -14764,74 +17131,78 @@ declare var IDBVersionChangeEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IIRFilterNode) */ interface IIRFilterNode extends AudioNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IIRFilterNode/getFrequencyResponse) */ - getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IIRFilterNode/getFrequencyResponse) */ + getFrequencyResponse( + frequencyHz: Float32Array, + magResponse: Float32Array, + phaseResponse: Float32Array, + ): void; } declare var IIRFilterNode: { - prototype: IIRFilterNode; - new(context: BaseAudioContext, options: IIRFilterOptions): IIRFilterNode; + prototype: IIRFilterNode; + new (context: BaseAudioContext, options: IIRFilterOptions): IIRFilterNode; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline) */ interface IdleDeadline { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline/didTimeout) */ - readonly didTimeout: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline/timeRemaining) */ - timeRemaining(): DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline/didTimeout) */ + readonly didTimeout: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline/timeRemaining) */ + timeRemaining(): DOMHighResTimeStamp; } declare var IdleDeadline: { - prototype: IdleDeadline; - new(): IdleDeadline; + prototype: IdleDeadline; + new (): IdleDeadline; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap) */ interface ImageBitmap { - /** - * Returns the intrinsic height of the image, in CSS pixels. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/height) - */ - readonly height: number; - /** - * Returns the intrinsic width of the image, in CSS pixels. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/width) - */ - readonly width: number; - /** - * Releases imageBitmap's underlying bitmap data. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/close) - */ - close(): void; + /** + * Returns the intrinsic height of the image, in CSS pixels. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/height) + */ + readonly height: number; + /** + * Returns the intrinsic width of the image, in CSS pixels. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/width) + */ + readonly width: number; + /** + * Releases imageBitmap's underlying bitmap data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/close) + */ + close(): void; } declare var ImageBitmap: { - prototype: ImageBitmap; - new(): ImageBitmap; + prototype: ImageBitmap; + new (): ImageBitmap; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext) */ interface ImageBitmapRenderingContext { - /** - * Returns the canvas element that the context is bound to. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/canvas) - */ - readonly canvas: HTMLCanvasElement | OffscreenCanvas; - /** - * Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/transferFromImageBitmap) - */ - transferFromImageBitmap(bitmap: ImageBitmap | null): void; + /** + * Returns the canvas element that the context is bound to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/canvas) + */ + readonly canvas: HTMLCanvasElement | OffscreenCanvas; + /** + * Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/transferFromImageBitmap) + */ + transferFromImageBitmap(bitmap: ImageBitmap | null): void; } declare var ImageBitmapRenderingContext: { - prototype: ImageBitmapRenderingContext; - new(): ImageBitmapRenderingContext; + prototype: ImageBitmapRenderingContext; + new (): ImageBitmapRenderingContext; }; /** @@ -14840,37 +17211,42 @@ declare var ImageBitmapRenderingContext: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData) */ interface ImageData { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/colorSpace) */ - readonly colorSpace: PredefinedColorSpace; - /** - * Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data) - */ - readonly data: Uint8ClampedArray; - /** - * Returns the actual dimensions of the data in the ImageData object, in pixels. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/height) - */ - readonly height: number; - /** - * Returns the actual dimensions of the data in the ImageData object, in pixels. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/width) - */ - readonly width: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/colorSpace) */ + readonly colorSpace: PredefinedColorSpace; + /** + * Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data) + */ + readonly data: Uint8ClampedArray; + /** + * Returns the actual dimensions of the data in the ImageData object, in pixels. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/height) + */ + readonly height: number; + /** + * Returns the actual dimensions of the data in the ImageData object, in pixels. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/width) + */ + readonly width: number; } declare var ImageData: { - prototype: ImageData; - new(sw: number, sh: number, settings?: ImageDataSettings): ImageData; - new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData; + prototype: ImageData; + new (sw: number, sh: number, settings?: ImageDataSettings): ImageData; + new ( + data: Uint8ClampedArray, + sw: number, + sh?: number, + settings?: ImageDataSettings, + ): ImageData; }; interface ImportMeta { - url: string; - resolve(specifier: string): string; + url: string; + resolve(specifier: string): string; } /** @@ -14879,32 +17255,32 @@ interface ImportMeta { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputDeviceInfo) */ interface InputDeviceInfo extends MediaDeviceInfo { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputDeviceInfo/getCapabilities) */ - getCapabilities(): MediaTrackCapabilities; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputDeviceInfo/getCapabilities) */ + getCapabilities(): MediaTrackCapabilities; } declare var InputDeviceInfo: { - prototype: InputDeviceInfo; - new(): InputDeviceInfo; + prototype: InputDeviceInfo; + new (): InputDeviceInfo; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent) */ interface InputEvent extends UIEvent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/data) */ - readonly data: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/dataTransfer) */ - readonly dataTransfer: DataTransfer | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/inputType) */ - readonly inputType: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/isComposing) */ - readonly isComposing: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/getTargetRanges) */ - getTargetRanges(): StaticRange[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/data) */ + readonly data: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/dataTransfer) */ + readonly dataTransfer: DataTransfer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/inputType) */ + readonly inputType: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/isComposing) */ + readonly isComposing: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/getTargetRanges) */ + getTargetRanges(): StaticRange[]; } declare var InputEvent: { - prototype: InputEvent; - new(type: string, eventInitDict?: InputEventInit): InputEvent; + prototype: InputEvent; + new (type: string, eventInitDict?: InputEventInit): InputEvent; }; /** @@ -14913,25 +17289,28 @@ declare var InputEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver) */ interface IntersectionObserver { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/root) */ - readonly root: Element | Document | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/rootMargin) */ - readonly rootMargin: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/thresholds) */ - readonly thresholds: ReadonlyArray; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/disconnect) */ - disconnect(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/observe) */ - observe(target: Element): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/takeRecords) */ - takeRecords(): IntersectionObserverEntry[]; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/unobserve) */ - unobserve(target: Element): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/root) */ + readonly root: Element | Document | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/rootMargin) */ + readonly rootMargin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/thresholds) */ + readonly thresholds: ReadonlyArray; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/disconnect) */ + disconnect(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/observe) */ + observe(target: Element): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/takeRecords) */ + takeRecords(): IntersectionObserverEntry[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/unobserve) */ + unobserve(target: Element): void; } declare var IntersectionObserver: { - prototype: IntersectionObserver; - new(callback: IntersectionObserverCallback, options?: IntersectionObserverInit): IntersectionObserver; + prototype: IntersectionObserver; + new ( + callback: IntersectionObserverCallback, + options?: IntersectionObserverInit, + ): IntersectionObserver; }; /** @@ -14940,30 +17319,30 @@ declare var IntersectionObserver: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry) */ interface IntersectionObserverEntry { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/boundingClientRect) */ - readonly boundingClientRect: DOMRectReadOnly; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRatio) */ - readonly intersectionRatio: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRect) */ - readonly intersectionRect: DOMRectReadOnly; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/isIntersecting) */ - readonly isIntersecting: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/rootBounds) */ - readonly rootBounds: DOMRectReadOnly | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/target) */ - readonly target: Element; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/time) */ - readonly time: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/boundingClientRect) */ + readonly boundingClientRect: DOMRectReadOnly; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRatio) */ + readonly intersectionRatio: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRect) */ + readonly intersectionRect: DOMRectReadOnly; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/isIntersecting) */ + readonly isIntersecting: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/rootBounds) */ + readonly rootBounds: DOMRectReadOnly | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/target) */ + readonly target: Element; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/time) */ + readonly time: DOMHighResTimeStamp; } declare var IntersectionObserverEntry: { - prototype: IntersectionObserverEntry; - new(): IntersectionObserverEntry; + prototype: IntersectionObserverEntry; + new (): IntersectionObserverEntry; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KHR_parallel_shader_compile) */ interface KHR_parallel_shader_compile { - readonly COMPLETION_STATUS_KHR: 0x91B1; + readonly COMPLETION_STATUS_KHR: 0x91b1; } /** @@ -14972,107 +17351,122 @@ interface KHR_parallel_shader_compile { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent) */ interface KeyboardEvent extends UIEvent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/altKey) */ - readonly altKey: boolean; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/charCode) - */ - readonly charCode: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/code) */ - readonly code: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/ctrlKey) */ - readonly ctrlKey: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/isComposing) */ - readonly isComposing: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/key) */ - readonly key: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/keyCode) - */ - readonly keyCode: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/location) */ - readonly location: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/metaKey) */ - readonly metaKey: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/repeat) */ - readonly repeat: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/shiftKey) */ - readonly shiftKey: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/getModifierState) */ - getModifierState(keyArg: string): boolean; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/initKeyboardEvent) - */ - initKeyboardEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, keyArg?: string, locationArg?: number, ctrlKey?: boolean, altKey?: boolean, shiftKey?: boolean, metaKey?: boolean): void; - readonly DOM_KEY_LOCATION_STANDARD: 0x00; - readonly DOM_KEY_LOCATION_LEFT: 0x01; - readonly DOM_KEY_LOCATION_RIGHT: 0x02; - readonly DOM_KEY_LOCATION_NUMPAD: 0x03; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/altKey) */ + readonly altKey: boolean; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/charCode) + */ + readonly charCode: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/code) */ + readonly code: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/ctrlKey) */ + readonly ctrlKey: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/isComposing) */ + readonly isComposing: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/key) */ + readonly key: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/keyCode) + */ + readonly keyCode: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/location) */ + readonly location: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/metaKey) */ + readonly metaKey: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/repeat) */ + readonly repeat: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/shiftKey) */ + readonly shiftKey: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/getModifierState) */ + getModifierState(keyArg: string): boolean; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/initKeyboardEvent) + */ + initKeyboardEvent( + typeArg: string, + bubblesArg?: boolean, + cancelableArg?: boolean, + viewArg?: Window | null, + keyArg?: string, + locationArg?: number, + ctrlKey?: boolean, + altKey?: boolean, + shiftKey?: boolean, + metaKey?: boolean, + ): void; + readonly DOM_KEY_LOCATION_STANDARD: 0x00; + readonly DOM_KEY_LOCATION_LEFT: 0x01; + readonly DOM_KEY_LOCATION_RIGHT: 0x02; + readonly DOM_KEY_LOCATION_NUMPAD: 0x03; } declare var KeyboardEvent: { - prototype: KeyboardEvent; - new(type: string, eventInitDict?: KeyboardEventInit): KeyboardEvent; - readonly DOM_KEY_LOCATION_STANDARD: 0x00; - readonly DOM_KEY_LOCATION_LEFT: 0x01; - readonly DOM_KEY_LOCATION_RIGHT: 0x02; - readonly DOM_KEY_LOCATION_NUMPAD: 0x03; + prototype: KeyboardEvent; + new (type: string, eventInitDict?: KeyboardEventInit): KeyboardEvent; + readonly DOM_KEY_LOCATION_STANDARD: 0x00; + readonly DOM_KEY_LOCATION_LEFT: 0x01; + readonly DOM_KEY_LOCATION_RIGHT: 0x02; + readonly DOM_KEY_LOCATION_NUMPAD: 0x03; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect) */ interface KeyframeEffect extends AnimationEffect { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/composite) */ - composite: CompositeOperation; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/iterationComposite) */ - iterationComposite: IterationCompositeOperation; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/pseudoElement) */ - pseudoElement: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/target) */ - target: Element | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/getKeyframes) */ - getKeyframes(): ComputedKeyframe[]; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/setKeyframes) */ - setKeyframes(keyframes: Keyframe[] | PropertyIndexedKeyframes | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/composite) */ + composite: CompositeOperation; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/iterationComposite) */ + iterationComposite: IterationCompositeOperation; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/pseudoElement) */ + pseudoElement: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/target) */ + target: Element | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/getKeyframes) */ + getKeyframes(): ComputedKeyframe[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/setKeyframes) */ + setKeyframes(keyframes: Keyframe[] | PropertyIndexedKeyframes | null): void; } declare var KeyframeEffect: { - prototype: KeyframeEffect; - new(target: Element | null, keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeEffectOptions): KeyframeEffect; - new(source: KeyframeEffect): KeyframeEffect; + prototype: KeyframeEffect; + new ( + target: Element | null, + keyframes: Keyframe[] | PropertyIndexedKeyframes | null, + options?: number | KeyframeEffectOptions, + ): KeyframeEffect; + new (source: KeyframeEffect): KeyframeEffect; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint) */ interface LargestContentfulPaint extends PerformanceEntry { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/element) */ - readonly element: Element | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/id) */ - readonly id: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/loadTime) */ - readonly loadTime: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/renderTime) */ - readonly renderTime: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/size) */ - readonly size: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/url) */ - readonly url: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/toJSON) */ - toJSON(): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/element) */ + readonly element: Element | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/id) */ + readonly id: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/loadTime) */ + readonly loadTime: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/renderTime) */ + readonly renderTime: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/size) */ + readonly size: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/url) */ + readonly url: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/toJSON) */ + toJSON(): any; } declare var LargestContentfulPaint: { - prototype: LargestContentfulPaint; - new(): LargestContentfulPaint; + prototype: LargestContentfulPaint; + new (): LargestContentfulPaint; }; interface LinkStyle { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sheet) */ - readonly sheet: CSSStyleSheet | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sheet) */ + readonly sheet: CSSStyleSheet | null; } /** @@ -15081,106 +17475,106 @@ interface LinkStyle { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location) */ interface Location { - /** - * Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing context to the top-level browsing context. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/ancestorOrigins) - */ - readonly ancestorOrigins: DOMStringList; - /** - * Returns the Location object's URL's fragment (includes leading "#" if non-empty). - * - * Can be set, to navigate to the same URL with a changed fragment (ignores leading "#"). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/hash) - */ - hash: string; - /** - * Returns the Location object's URL's host and port (if different from the default port for the scheme). - * - * Can be set, to navigate to the same URL with a changed host and port. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/host) - */ - host: string; - /** - * Returns the Location object's URL's host. - * - * Can be set, to navigate to the same URL with a changed host. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/hostname) - */ - hostname: string; - /** - * Returns the Location object's URL. - * - * Can be set, to navigate to the given URL. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/href) - */ - href: string; - toString(): string; - /** - * Returns the Location object's URL's origin. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/origin) - */ - readonly origin: string; - /** - * Returns the Location object's URL's path. - * - * Can be set, to navigate to the same URL with a changed path. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/pathname) - */ - pathname: string; - /** - * Returns the Location object's URL's port. - * - * Can be set, to navigate to the same URL with a changed port. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/port) - */ - port: string; - /** - * Returns the Location object's URL's scheme. - * - * Can be set, to navigate to the same URL with a changed scheme. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/protocol) - */ - protocol: string; - /** - * Returns the Location object's URL's query (includes leading "?" if non-empty). - * - * Can be set, to navigate to the same URL with a changed query (ignores leading "?"). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/search) - */ - search: string; - /** - * Navigates to the given URL. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/assign) - */ - assign(url: string | URL): void; - /** - * Reloads the current page. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/reload) - */ - reload(): void; - /** - * Removes the current page from the session history and navigates to the given URL. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/replace) - */ - replace(url: string | URL): void; + /** + * Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing context to the top-level browsing context. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/ancestorOrigins) + */ + readonly ancestorOrigins: DOMStringList; + /** + * Returns the Location object's URL's fragment (includes leading "#" if non-empty). + * + * Can be set, to navigate to the same URL with a changed fragment (ignores leading "#"). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/hash) + */ + hash: string; + /** + * Returns the Location object's URL's host and port (if different from the default port for the scheme). + * + * Can be set, to navigate to the same URL with a changed host and port. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/host) + */ + host: string; + /** + * Returns the Location object's URL's host. + * + * Can be set, to navigate to the same URL with a changed host. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/hostname) + */ + hostname: string; + /** + * Returns the Location object's URL. + * + * Can be set, to navigate to the given URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/href) + */ + href: string; + toString(): string; + /** + * Returns the Location object's URL's origin. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/origin) + */ + readonly origin: string; + /** + * Returns the Location object's URL's path. + * + * Can be set, to navigate to the same URL with a changed path. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/pathname) + */ + pathname: string; + /** + * Returns the Location object's URL's port. + * + * Can be set, to navigate to the same URL with a changed port. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/port) + */ + port: string; + /** + * Returns the Location object's URL's scheme. + * + * Can be set, to navigate to the same URL with a changed scheme. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/protocol) + */ + protocol: string; + /** + * Returns the Location object's URL's query (includes leading "?" if non-empty). + * + * Can be set, to navigate to the same URL with a changed query (ignores leading "?"). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/search) + */ + search: string; + /** + * Navigates to the given URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/assign) + */ + assign(url: string | URL): void; + /** + * Reloads the current page. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/reload) + */ + reload(): void; + /** + * Removes the current page from the session history and navigates to the given URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/replace) + */ + replace(url: string | URL): void; } declare var Location: { - prototype: Location; - new(): Location; + prototype: Location; + new (): Location; }; /** @@ -15189,15 +17583,15 @@ declare var Location: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock) */ interface Lock { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/mode) */ - readonly mode: LockMode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/name) */ - readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/mode) */ + readonly mode: LockMode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/name) */ + readonly name: string; } declare var Lock: { - prototype: Lock; - new(): Lock; + prototype: Lock; + new (): Lock; }; /** @@ -15206,20 +17600,24 @@ declare var Lock: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager) */ interface LockManager { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */ - query(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */ - request(name: string, callback: LockGrantedCallback): Promise; - request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */ + query(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */ + request(name: string, callback: LockGrantedCallback): Promise; + request( + name: string, + options: LockOptions, + callback: LockGrantedCallback, + ): Promise; } declare var LockManager: { - prototype: LockManager; - new(): LockManager; + prototype: LockManager; + new (): LockManager; }; interface MIDIAccessEventMap { - "statechange": MIDIConnectionEvent; + statechange: MIDIConnectionEvent; } /** @@ -15228,23 +17626,39 @@ interface MIDIAccessEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess) */ interface MIDIAccess extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/inputs) */ - readonly inputs: MIDIInputMap; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/statechange_event) */ - onstatechange: ((this: MIDIAccess, ev: MIDIConnectionEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/outputs) */ - readonly outputs: MIDIOutputMap; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/sysexEnabled) */ - readonly sysexEnabled: boolean; - addEventListener(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/inputs) */ + readonly inputs: MIDIInputMap; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/statechange_event) */ + onstatechange: ((this: MIDIAccess, ev: MIDIConnectionEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/outputs) */ + readonly outputs: MIDIOutputMap; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/sysexEnabled) */ + readonly sysexEnabled: boolean; + addEventListener( + type: K, + listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var MIDIAccess: { - prototype: MIDIAccess; - new(): MIDIAccess; + prototype: MIDIAccess; + new (): MIDIAccess; }; /** @@ -15253,17 +17667,20 @@ declare var MIDIAccess: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIConnectionEvent) */ interface MIDIConnectionEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIConnectionEvent/port) */ - readonly port: MIDIPort | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIConnectionEvent/port) */ + readonly port: MIDIPort | null; } declare var MIDIConnectionEvent: { - prototype: MIDIConnectionEvent; - new(type: string, eventInitDict?: MIDIConnectionEventInit): MIDIConnectionEvent; + prototype: MIDIConnectionEvent; + new ( + type: string, + eventInitDict?: MIDIConnectionEventInit, + ): MIDIConnectionEvent; }; interface MIDIInputEventMap extends MIDIPortEventMap { - "midimessage": MIDIMessageEvent; + midimessage: MIDIMessageEvent; } /** @@ -15272,17 +17689,33 @@ interface MIDIInputEventMap extends MIDIPortEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInput) */ interface MIDIInput extends MIDIPort { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInput/midimessage_event) */ - onmidimessage: ((this: MIDIInput, ev: MIDIMessageEvent) => any) | null; - addEventListener(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInput/midimessage_event) */ + onmidimessage: ((this: MIDIInput, ev: MIDIMessageEvent) => any) | null; + addEventListener( + type: K, + listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var MIDIInput: { - prototype: MIDIInput; - new(): MIDIInput; + prototype: MIDIInput; + new (): MIDIInput; }; /** @@ -15291,12 +17724,15 @@ declare var MIDIInput: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInputMap) */ interface MIDIInputMap { - forEach(callbackfn: (value: MIDIInput, key: string, parent: MIDIInputMap) => void, thisArg?: any): void; + forEach( + callbackfn: (value: MIDIInput, key: string, parent: MIDIInputMap) => void, + thisArg?: any, + ): void; } declare var MIDIInputMap: { - prototype: MIDIInputMap; - new(): MIDIInputMap; + prototype: MIDIInputMap; + new (): MIDIInputMap; }; /** @@ -15305,13 +17741,13 @@ declare var MIDIInputMap: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIMessageEvent) */ interface MIDIMessageEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIMessageEvent/data) */ - readonly data: Uint8Array | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIMessageEvent/data) */ + readonly data: Uint8Array | null; } declare var MIDIMessageEvent: { - prototype: MIDIMessageEvent; - new(type: string, eventInitDict?: MIDIMessageEventInit): MIDIMessageEvent; + prototype: MIDIMessageEvent; + new (type: string, eventInitDict?: MIDIMessageEventInit): MIDIMessageEvent; }; /** @@ -15320,17 +17756,33 @@ declare var MIDIMessageEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput) */ interface MIDIOutput extends MIDIPort { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send) */ - send(data: number[], timestamp?: DOMHighResTimeStamp): void; - addEventListener(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send) */ + send(data: number[], timestamp?: DOMHighResTimeStamp): void; + addEventListener( + type: K, + listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var MIDIOutput: { - prototype: MIDIOutput; - new(): MIDIOutput; + prototype: MIDIOutput; + new (): MIDIOutput; }; /** @@ -15339,16 +17791,19 @@ declare var MIDIOutput: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutputMap) */ interface MIDIOutputMap { - forEach(callbackfn: (value: MIDIOutput, key: string, parent: MIDIOutputMap) => void, thisArg?: any): void; + forEach( + callbackfn: (value: MIDIOutput, key: string, parent: MIDIOutputMap) => void, + thisArg?: any, + ): void; } declare var MIDIOutputMap: { - prototype: MIDIOutputMap; - new(): MIDIOutputMap; + prototype: MIDIOutputMap; + new (): MIDIOutputMap; }; interface MIDIPortEventMap { - "statechange": MIDIConnectionEvent; + statechange: MIDIConnectionEvent; } /** @@ -15357,64 +17812,105 @@ interface MIDIPortEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort) */ interface MIDIPort extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/connection) */ - readonly connection: MIDIPortConnectionState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/id) */ - readonly id: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/manufacturer) */ - readonly manufacturer: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/name) */ - readonly name: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/statechange_event) */ - onstatechange: ((this: MIDIPort, ev: MIDIConnectionEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/state) */ - readonly state: MIDIPortDeviceState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/type) */ - readonly type: MIDIPortType; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/version) */ - readonly version: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/close) */ - close(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/open) */ - open(): Promise; - addEventListener(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/connection) */ + readonly connection: MIDIPortConnectionState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/id) */ + readonly id: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/manufacturer) */ + readonly manufacturer: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/name) */ + readonly name: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/statechange_event) */ + onstatechange: ((this: MIDIPort, ev: MIDIConnectionEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/state) */ + readonly state: MIDIPortDeviceState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/type) */ + readonly type: MIDIPortType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/version) */ + readonly version: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/close) */ + close(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/open) */ + open(): Promise; + addEventListener( + type: K, + listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var MIDIPort: { - prototype: MIDIPort; - new(): MIDIPort; + prototype: MIDIPort; + new (): MIDIPort; }; -interface MathMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap { -} +interface MathMLElementEventMap + extends ElementEventMap, GlobalEventHandlersEventMap {} /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MathMLElement) */ -interface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement { - addEventListener(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +interface MathMLElement + extends + Element, + ElementCSSInlineStyle, + GlobalEventHandlers, + HTMLOrSVGElement { + addEventListener( + type: K, + listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var MathMLElement: { - prototype: MathMLElement; - new(): MathMLElement; + prototype: MathMLElement; + new (): MathMLElement; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities) */ interface MediaCapabilities { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/decodingInfo) */ - decodingInfo(configuration: MediaDecodingConfiguration): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/encodingInfo) */ - encodingInfo(configuration: MediaEncodingConfiguration): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/decodingInfo) */ + decodingInfo( + configuration: MediaDecodingConfiguration, + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/encodingInfo) */ + encodingInfo( + configuration: MediaEncodingConfiguration, + ): Promise; } declare var MediaCapabilities: { - prototype: MediaCapabilities; - new(): MediaCapabilities; + prototype: MediaCapabilities; + new (): MediaCapabilities; }; /** @@ -15424,25 +17920,25 @@ declare var MediaCapabilities: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo) */ interface MediaDeviceInfo { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/deviceId) */ - readonly deviceId: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/groupId) */ - readonly groupId: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/kind) */ - readonly kind: MediaDeviceKind; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/label) */ - readonly label: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/toJSON) */ - toJSON(): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/deviceId) */ + readonly deviceId: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/groupId) */ + readonly groupId: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/kind) */ + readonly kind: MediaDeviceKind; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/label) */ + readonly label: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/toJSON) */ + toJSON(): any; } declare var MediaDeviceInfo: { - prototype: MediaDeviceInfo; - new(): MediaDeviceInfo; + prototype: MediaDeviceInfo; + new (): MediaDeviceInfo; }; interface MediaDevicesEventMap { - "devicechange": Event; + devicechange: Event; } /** @@ -15452,25 +17948,41 @@ interface MediaDevicesEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices) */ interface MediaDevices extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/devicechange_event) */ - ondevicechange: ((this: MediaDevices, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/enumerateDevices) */ - enumerateDevices(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getDisplayMedia) */ - getDisplayMedia(options?: DisplayMediaStreamOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getSupportedConstraints) */ - getSupportedConstraints(): MediaTrackSupportedConstraints; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getUserMedia) */ - getUserMedia(constraints?: MediaStreamConstraints): Promise; - addEventListener(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/devicechange_event) */ + ondevicechange: ((this: MediaDevices, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/enumerateDevices) */ + enumerateDevices(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getDisplayMedia) */ + getDisplayMedia(options?: DisplayMediaStreamOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getSupportedConstraints) */ + getSupportedConstraints(): MediaTrackSupportedConstraints; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getUserMedia) */ + getUserMedia(constraints?: MediaStreamConstraints): Promise; + addEventListener( + type: K, + listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var MediaDevices: { - prototype: MediaDevices; - new(): MediaDevices; + prototype: MediaDevices; + new (): MediaDevices; }; /** @@ -15479,26 +17991,32 @@ declare var MediaDevices: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaElementAudioSourceNode) */ interface MediaElementAudioSourceNode extends AudioNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaElementAudioSourceNode/mediaElement) */ - readonly mediaElement: HTMLMediaElement; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaElementAudioSourceNode/mediaElement) */ + readonly mediaElement: HTMLMediaElement; } declare var MediaElementAudioSourceNode: { - prototype: MediaElementAudioSourceNode; - new(context: AudioContext, options: MediaElementAudioSourceOptions): MediaElementAudioSourceNode; + prototype: MediaElementAudioSourceNode; + new ( + context: AudioContext, + options: MediaElementAudioSourceOptions, + ): MediaElementAudioSourceNode; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent) */ interface MediaEncryptedEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent/initData) */ - readonly initData: ArrayBuffer | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent/initDataType) */ - readonly initDataType: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent/initData) */ + readonly initData: ArrayBuffer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent/initDataType) */ + readonly initDataType: string; } declare var MediaEncryptedEvent: { - prototype: MediaEncryptedEvent; - new(type: string, eventInitDict?: MediaEncryptedEventInit): MediaEncryptedEvent; + prototype: MediaEncryptedEvent; + new ( + type: string, + eventInitDict?: MediaEncryptedEventInit, + ): MediaEncryptedEvent; }; /** @@ -15507,23 +18025,23 @@ declare var MediaEncryptedEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaError) */ interface MediaError { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaError/code) */ - readonly code: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaError/message) */ - readonly message: string; - readonly MEDIA_ERR_ABORTED: 1; - readonly MEDIA_ERR_NETWORK: 2; - readonly MEDIA_ERR_DECODE: 3; - readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaError/code) */ + readonly code: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaError/message) */ + readonly message: string; + readonly MEDIA_ERR_ABORTED: 1; + readonly MEDIA_ERR_NETWORK: 2; + readonly MEDIA_ERR_DECODE: 3; + readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4; } declare var MediaError: { - prototype: MediaError; - new(): MediaError; - readonly MEDIA_ERR_ABORTED: 1; - readonly MEDIA_ERR_NETWORK: 2; - readonly MEDIA_ERR_DECODE: 3; - readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4; + prototype: MediaError; + new (): MediaError; + readonly MEDIA_ERR_ABORTED: 1; + readonly MEDIA_ERR_NETWORK: 2; + readonly MEDIA_ERR_DECODE: 3; + readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4; }; /** @@ -15533,20 +18051,23 @@ declare var MediaError: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent) */ interface MediaKeyMessageEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent/message) */ - readonly message: ArrayBuffer; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent/messageType) */ - readonly messageType: MediaKeyMessageType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent/message) */ + readonly message: ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent/messageType) */ + readonly messageType: MediaKeyMessageType; } declare var MediaKeyMessageEvent: { - prototype: MediaKeyMessageEvent; - new(type: string, eventInitDict: MediaKeyMessageEventInit): MediaKeyMessageEvent; + prototype: MediaKeyMessageEvent; + new ( + type: string, + eventInitDict: MediaKeyMessageEventInit, + ): MediaKeyMessageEvent; }; interface MediaKeySessionEventMap { - "keystatuseschange": Event; - "message": MediaKeyMessageEvent; + keystatuseschange: Event; + message: MediaKeyMessageEvent; } /** @@ -15556,37 +18077,53 @@ interface MediaKeySessionEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession) */ interface MediaKeySession extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/closed) */ - readonly closed: Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/expiration) */ - readonly expiration: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/keyStatuses) */ - readonly keyStatuses: MediaKeyStatusMap; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/keystatuseschange_event) */ - onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/message_event) */ - onmessage: ((this: MediaKeySession, ev: MediaKeyMessageEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/sessionId) */ - readonly sessionId: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/close) */ - close(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/generateRequest) */ - generateRequest(initDataType: string, initData: BufferSource): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/load) */ - load(sessionId: string): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/remove) */ - remove(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/update) */ - update(response: BufferSource): Promise; - addEventListener(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/closed) */ + readonly closed: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/expiration) */ + readonly expiration: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/keyStatuses) */ + readonly keyStatuses: MediaKeyStatusMap; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/keystatuseschange_event) */ + onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/message_event) */ + onmessage: ((this: MediaKeySession, ev: MediaKeyMessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/sessionId) */ + readonly sessionId: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/close) */ + close(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/generateRequest) */ + generateRequest(initDataType: string, initData: BufferSource): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/load) */ + load(sessionId: string): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/remove) */ + remove(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/update) */ + update(response: BufferSource): Promise; + addEventListener( + type: K, + listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var MediaKeySession: { - prototype: MediaKeySession; - new(): MediaKeySession; + prototype: MediaKeySession; + new (): MediaKeySession; }; /** @@ -15596,18 +18133,25 @@ declare var MediaKeySession: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap) */ interface MediaKeyStatusMap { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/size) */ - readonly size: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/get) */ - get(keyId: BufferSource): MediaKeyStatus | undefined; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/has) */ - has(keyId: BufferSource): boolean; - forEach(callbackfn: (value: MediaKeyStatus, key: BufferSource, parent: MediaKeyStatusMap) => void, thisArg?: any): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/size) */ + readonly size: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/get) */ + get(keyId: BufferSource): MediaKeyStatus | undefined; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/has) */ + has(keyId: BufferSource): boolean; + forEach( + callbackfn: ( + value: MediaKeyStatus, + key: BufferSource, + parent: MediaKeyStatusMap, + ) => void, + thisArg?: any, + ): void; } declare var MediaKeyStatusMap: { - prototype: MediaKeyStatusMap; - new(): MediaKeyStatusMap; + prototype: MediaKeyStatusMap; + new (): MediaKeyStatusMap; }; /** @@ -15617,17 +18161,17 @@ declare var MediaKeyStatusMap: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess) */ interface MediaKeySystemAccess { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/keySystem) */ - readonly keySystem: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/createMediaKeys) */ - createMediaKeys(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/getConfiguration) */ - getConfiguration(): MediaKeySystemConfiguration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/keySystem) */ + readonly keySystem: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/createMediaKeys) */ + createMediaKeys(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/getConfiguration) */ + getConfiguration(): MediaKeySystemConfiguration; } declare var MediaKeySystemAccess: { - prototype: MediaKeySystemAccess; - new(): MediaKeySystemAccess; + prototype: MediaKeySystemAccess; + new (): MediaKeySystemAccess; }; /** @@ -15637,59 +18181,59 @@ declare var MediaKeySystemAccess: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys) */ interface MediaKeys { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/createSession) */ - createSession(sessionType?: MediaKeySessionType): MediaKeySession; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/getStatusForPolicy) */ - getStatusForPolicy(policy?: MediaKeysPolicy): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/setServerCertificate) */ - setServerCertificate(serverCertificate: BufferSource): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/createSession) */ + createSession(sessionType?: MediaKeySessionType): MediaKeySession; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/getStatusForPolicy) */ + getStatusForPolicy(policy?: MediaKeysPolicy): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/setServerCertificate) */ + setServerCertificate(serverCertificate: BufferSource): Promise; } declare var MediaKeys: { - prototype: MediaKeys; - new(): MediaKeys; + prototype: MediaKeys; + new (): MediaKeys; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList) */ interface MediaList { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/length) */ - readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/mediaText) */ - mediaText: string; - toString(): string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/appendMedium) */ - appendMedium(medium: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/deleteMedium) */ - deleteMedium(medium: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/item) */ - item(index: number): string | null; - [index: number]: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/mediaText) */ + mediaText: string; + toString(): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/appendMedium) */ + appendMedium(medium: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/deleteMedium) */ + deleteMedium(medium: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/item) */ + item(index: number): string | null; + [index: number]: string; } declare var MediaList: { - prototype: MediaList; - new(): MediaList; + prototype: MediaList; + new (): MediaList; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata) */ interface MediaMetadata { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/album) */ - album: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/artist) */ - artist: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/artwork) */ - artwork: ReadonlyArray; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/title) */ - title: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/album) */ + album: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/artist) */ + artist: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/artwork) */ + artwork: ReadonlyArray; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/title) */ + title: string; } declare var MediaMetadata: { - prototype: MediaMetadata; - new(init?: MediaMetadataInit): MediaMetadata; + prototype: MediaMetadata; + new (init?: MediaMetadataInit): MediaMetadata; }; interface MediaQueryListEventMap { - "change": MediaQueryListEvent; + change: MediaQueryListEvent; } /** @@ -15698,125 +18242,167 @@ interface MediaQueryListEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList) */ interface MediaQueryList extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/matches) */ - readonly matches: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/media) */ - readonly media: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/change_event) */ - onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/addListener) - */ - addListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/removeListener) - */ - removeListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void; - addEventListener(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/matches) */ + readonly matches: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/media) */ + readonly media: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/change_event) */ + onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/addListener) + */ + addListener( + callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null, + ): void; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/removeListener) + */ + removeListener( + callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null, + ): void; + addEventListener( + type: K, + listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var MediaQueryList: { - prototype: MediaQueryList; - new(): MediaQueryList; + prototype: MediaQueryList; + new (): MediaQueryList; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent) */ interface MediaQueryListEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent/matches) */ - readonly matches: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent/media) */ - readonly media: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent/matches) */ + readonly matches: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent/media) */ + readonly media: string; } declare var MediaQueryListEvent: { - prototype: MediaQueryListEvent; - new(type: string, eventInitDict?: MediaQueryListEventInit): MediaQueryListEvent; + prototype: MediaQueryListEvent; + new ( + type: string, + eventInitDict?: MediaQueryListEventInit, + ): MediaQueryListEvent; }; interface MediaRecorderEventMap { - "dataavailable": BlobEvent; - "error": ErrorEvent; - "pause": Event; - "resume": Event; - "start": Event; - "stop": Event; + dataavailable: BlobEvent; + error: ErrorEvent; + pause: Event; + resume: Event; + start: Event; + stop: Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder) */ interface MediaRecorder extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/audioBitsPerSecond) */ - readonly audioBitsPerSecond: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/mimeType) */ - readonly mimeType: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/dataavailable_event) */ - ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/error_event) */ - onerror: ((this: MediaRecorder, ev: ErrorEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/pause_event) */ - onpause: ((this: MediaRecorder, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/resume_event) */ - onresume: ((this: MediaRecorder, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/start_event) */ - onstart: ((this: MediaRecorder, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stop_event) */ - onstop: ((this: MediaRecorder, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/state) */ - readonly state: RecordingState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stream) */ - readonly stream: MediaStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/videoBitsPerSecond) */ - readonly videoBitsPerSecond: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/pause) */ - pause(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/requestData) */ - requestData(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/resume) */ - resume(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/start) */ - start(timeslice?: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stop) */ - stop(): void; - addEventListener(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/audioBitsPerSecond) */ + readonly audioBitsPerSecond: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/mimeType) */ + readonly mimeType: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/dataavailable_event) */ + ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/error_event) */ + onerror: ((this: MediaRecorder, ev: ErrorEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/pause_event) */ + onpause: ((this: MediaRecorder, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/resume_event) */ + onresume: ((this: MediaRecorder, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/start_event) */ + onstart: ((this: MediaRecorder, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stop_event) */ + onstop: ((this: MediaRecorder, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/state) */ + readonly state: RecordingState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stream) */ + readonly stream: MediaStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/videoBitsPerSecond) */ + readonly videoBitsPerSecond: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/pause) */ + pause(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/requestData) */ + requestData(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/resume) */ + resume(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/start) */ + start(timeslice?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stop) */ + stop(): void; + addEventListener( + type: K, + listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var MediaRecorder: { - prototype: MediaRecorder; - new(stream: MediaStream, options?: MediaRecorderOptions): MediaRecorder; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/isTypeSupported_static) */ - isTypeSupported(type: string): boolean; + prototype: MediaRecorder; + new (stream: MediaStream, options?: MediaRecorderOptions): MediaRecorder; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/isTypeSupported_static) */ + isTypeSupported(type: string): boolean; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession) */ interface MediaSession { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/metadata) */ - metadata: MediaMetadata | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/playbackState) */ - playbackState: MediaSessionPlaybackState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setActionHandler) */ - setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler | null): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setPositionState) */ - setPositionState(state?: MediaPositionState): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/metadata) */ + metadata: MediaMetadata | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/playbackState) */ + playbackState: MediaSessionPlaybackState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setActionHandler) */ + setActionHandler( + action: MediaSessionAction, + handler: MediaSessionActionHandler | null, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setPositionState) */ + setPositionState(state?: MediaPositionState): void; } declare var MediaSession: { - prototype: MediaSession; - new(): MediaSession; + prototype: MediaSession; + new (): MediaSession; }; interface MediaSourceEventMap { - "sourceclose": Event; - "sourceended": Event; - "sourceopen": Event; + sourceclose: Event; + sourceended: Event; + sourceopen: Event; } /** @@ -15825,54 +18411,69 @@ interface MediaSourceEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource) */ interface MediaSource extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/activeSourceBuffers) */ - readonly activeSourceBuffers: SourceBufferList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/duration) */ - duration: number; - onsourceclose: ((this: MediaSource, ev: Event) => any) | null; - onsourceended: ((this: MediaSource, ev: Event) => any) | null; - onsourceopen: ((this: MediaSource, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/readyState) */ - readonly readyState: ReadyState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceBuffers) */ - readonly sourceBuffers: SourceBufferList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/addSourceBuffer) */ - addSourceBuffer(type: string): SourceBuffer; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/clearLiveSeekableRange) */ - clearLiveSeekableRange(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/endOfStream) */ - endOfStream(error?: EndOfStreamError): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/removeSourceBuffer) */ - removeSourceBuffer(sourceBuffer: SourceBuffer): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/setLiveSeekableRange) */ - setLiveSeekableRange(start: number, end: number): void; - addEventListener(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/activeSourceBuffers) */ + readonly activeSourceBuffers: SourceBufferList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/duration) */ + duration: number; + onsourceclose: ((this: MediaSource, ev: Event) => any) | null; + onsourceended: ((this: MediaSource, ev: Event) => any) | null; + onsourceopen: ((this: MediaSource, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/readyState) */ + readonly readyState: ReadyState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceBuffers) */ + readonly sourceBuffers: SourceBufferList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/addSourceBuffer) */ + addSourceBuffer(type: string): SourceBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/clearLiveSeekableRange) */ + clearLiveSeekableRange(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/endOfStream) */ + endOfStream(error?: EndOfStreamError): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/removeSourceBuffer) */ + removeSourceBuffer(sourceBuffer: SourceBuffer): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/setLiveSeekableRange) */ + setLiveSeekableRange(start: number, end: number): void; + addEventListener( + type: K, + listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var MediaSource: { - prototype: MediaSource; - new(): MediaSource; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/canConstructInDedicatedWorker_static) */ - readonly canConstructInDedicatedWorker: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/isTypeSupported_static) */ - isTypeSupported(type: string): boolean; + prototype: MediaSource; + new (): MediaSource; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/canConstructInDedicatedWorker_static) */ + readonly canConstructInDedicatedWorker: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/isTypeSupported_static) */ + isTypeSupported(type: string): boolean; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSourceHandle) */ -interface MediaSourceHandle { -} +interface MediaSourceHandle {} declare var MediaSourceHandle: { - prototype: MediaSourceHandle; - new(): MediaSourceHandle; + prototype: MediaSourceHandle; + new (): MediaSourceHandle; }; interface MediaStreamEventMap { - "addtrack": MediaStreamTrackEvent; - "removetrack": MediaStreamTrackEvent; + addtrack: MediaStreamTrackEvent; + removetrack: MediaStreamTrackEvent; } /** @@ -15881,50 +18482,69 @@ interface MediaStreamEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream) */ interface MediaStream extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/active) */ - readonly active: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/id) */ - readonly id: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/addtrack_event) */ - onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/removetrack_event) */ - onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/addTrack) */ - addTrack(track: MediaStreamTrack): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/clone) */ - clone(): MediaStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getAudioTracks) */ - getAudioTracks(): MediaStreamTrack[]; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getTrackById) */ - getTrackById(trackId: string): MediaStreamTrack | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getTracks) */ - getTracks(): MediaStreamTrack[]; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getVideoTracks) */ - getVideoTracks(): MediaStreamTrack[]; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/removeTrack) */ - removeTrack(track: MediaStreamTrack): void; - addEventListener(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/active) */ + readonly active: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/id) */ + readonly id: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/addtrack_event) */ + onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/removetrack_event) */ + onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/addTrack) */ + addTrack(track: MediaStreamTrack): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/clone) */ + clone(): MediaStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getAudioTracks) */ + getAudioTracks(): MediaStreamTrack[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getTrackById) */ + getTrackById(trackId: string): MediaStreamTrack | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getTracks) */ + getTracks(): MediaStreamTrack[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getVideoTracks) */ + getVideoTracks(): MediaStreamTrack[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/removeTrack) */ + removeTrack(track: MediaStreamTrack): void; + addEventListener( + type: K, + listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var MediaStream: { - prototype: MediaStream; - new(): MediaStream; - new(stream: MediaStream): MediaStream; - new(tracks: MediaStreamTrack[]): MediaStream; + prototype: MediaStream; + new (): MediaStream; + new (stream: MediaStream): MediaStream; + new (tracks: MediaStreamTrack[]): MediaStream; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioDestinationNode) */ interface MediaStreamAudioDestinationNode extends AudioNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioDestinationNode/stream) */ - readonly stream: MediaStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioDestinationNode/stream) */ + readonly stream: MediaStream; } declare var MediaStreamAudioDestinationNode: { - prototype: MediaStreamAudioDestinationNode; - new(context: AudioContext, options?: AudioNodeOptions): MediaStreamAudioDestinationNode; + prototype: MediaStreamAudioDestinationNode; + new ( + context: AudioContext, + options?: AudioNodeOptions, + ): MediaStreamAudioDestinationNode; }; /** @@ -15933,19 +18553,22 @@ declare var MediaStreamAudioDestinationNode: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioSourceNode) */ interface MediaStreamAudioSourceNode extends AudioNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioSourceNode/mediaStream) */ - readonly mediaStream: MediaStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioSourceNode/mediaStream) */ + readonly mediaStream: MediaStream; } declare var MediaStreamAudioSourceNode: { - prototype: MediaStreamAudioSourceNode; - new(context: AudioContext, options: MediaStreamAudioSourceOptions): MediaStreamAudioSourceNode; + prototype: MediaStreamAudioSourceNode; + new ( + context: AudioContext, + options: MediaStreamAudioSourceOptions, + ): MediaStreamAudioSourceNode; }; interface MediaStreamTrackEventMap { - "ended": Event; - "mute": Event; - "unmute": Event; + ended: Event; + mute: Event; + unmute: Event; } /** @@ -15954,47 +18577,63 @@ interface MediaStreamTrackEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack) */ interface MediaStreamTrack extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/contentHint) */ - contentHint: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/enabled) */ - enabled: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/id) */ - readonly id: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/kind) */ - readonly kind: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/label) */ - readonly label: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/muted) */ - readonly muted: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/ended_event) */ - onended: ((this: MediaStreamTrack, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/mute_event) */ - onmute: ((this: MediaStreamTrack, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/unmute_event) */ - onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/readyState) */ - readonly readyState: MediaStreamTrackState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/applyConstraints) */ - applyConstraints(constraints?: MediaTrackConstraints): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/clone) */ - clone(): MediaStreamTrack; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getCapabilities) */ - getCapabilities(): MediaTrackCapabilities; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getConstraints) */ - getConstraints(): MediaTrackConstraints; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getSettings) */ - getSettings(): MediaTrackSettings; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/stop) */ - stop(): void; - addEventListener(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/contentHint) */ + contentHint: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/enabled) */ + enabled: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/id) */ + readonly id: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/kind) */ + readonly kind: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/label) */ + readonly label: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/muted) */ + readonly muted: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/ended_event) */ + onended: ((this: MediaStreamTrack, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/mute_event) */ + onmute: ((this: MediaStreamTrack, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/unmute_event) */ + onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/readyState) */ + readonly readyState: MediaStreamTrackState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/applyConstraints) */ + applyConstraints(constraints?: MediaTrackConstraints): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/clone) */ + clone(): MediaStreamTrack; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getCapabilities) */ + getCapabilities(): MediaTrackCapabilities; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getConstraints) */ + getConstraints(): MediaTrackConstraints; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getSettings) */ + getSettings(): MediaTrackSettings; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/stop) */ + stop(): void; + addEventListener( + type: K, + listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var MediaStreamTrack: { - prototype: MediaStreamTrack; - new(): MediaStreamTrack; + prototype: MediaStreamTrack; + new (): MediaStreamTrack; }; /** @@ -16003,13 +18642,16 @@ declare var MediaStreamTrack: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackEvent) */ interface MediaStreamTrackEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackEvent/track) */ - readonly track: MediaStreamTrack; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackEvent/track) */ + readonly track: MediaStreamTrack; } declare var MediaStreamTrackEvent: { - prototype: MediaStreamTrackEvent; - new(type: string, eventInitDict: MediaStreamTrackEventInit): MediaStreamTrackEvent; + prototype: MediaStreamTrackEvent; + new ( + type: string, + eventInitDict: MediaStreamTrackEventInit, + ): MediaStreamTrackEvent; }; /** @@ -16018,23 +18660,23 @@ declare var MediaStreamTrackEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel) */ interface MessageChannel { - /** - * Returns the first MessagePort object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port1) - */ - readonly port1: MessagePort; - /** - * Returns the second MessagePort object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port2) - */ - readonly port2: MessagePort; + /** + * Returns the first MessagePort object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port1) + */ + readonly port1: MessagePort; + /** + * Returns the second MessagePort object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port2) + */ + readonly port2: MessagePort; } declare var MessageChannel: { - prototype: MessageChannel; - new(): MessageChannel; + prototype: MessageChannel; + new (): MessageChannel; }; /** @@ -16043,48 +18685,57 @@ declare var MessageChannel: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent) */ interface MessageEvent extends Event { - /** - * Returns the data of the message. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data) - */ - readonly data: T; - /** - * Returns the last event ID string, for server-sent events. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId) - */ - readonly lastEventId: string; - /** - * Returns the origin of the message, for server-sent events and cross-document messaging. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin) - */ - readonly origin: string; - /** - * Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports) - */ - readonly ports: ReadonlyArray; - /** - * Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source) - */ - readonly source: MessageEventSource | null; - /** @deprecated */ - initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void; + /** + * Returns the data of the message. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data) + */ + readonly data: T; + /** + * Returns the last event ID string, for server-sent events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId) + */ + readonly lastEventId: string; + /** + * Returns the origin of the message, for server-sent events and cross-document messaging. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin) + */ + readonly origin: string; + /** + * Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports) + */ + readonly ports: ReadonlyArray; + /** + * Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source) + */ + readonly source: MessageEventSource | null; + /** @deprecated */ + initMessageEvent( + type: string, + bubbles?: boolean, + cancelable?: boolean, + data?: any, + origin?: string, + lastEventId?: string, + source?: MessageEventSource | null, + ports?: MessagePort[], + ): void; } declare var MessageEvent: { - prototype: MessageEvent; - new(type: string, eventInitDict?: MessageEventInit): MessageEvent; + prototype: MessageEvent; + new (type: string, eventInitDict?: MessageEventInit): MessageEvent; }; interface MessagePortEventMap { - "message": MessageEvent; - "messageerror": MessageEvent; + message: MessageEvent; + messageerror: MessageEvent; } /** @@ -16093,40 +18744,56 @@ interface MessagePortEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort) */ interface MessagePort extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/message_event) */ - onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/messageerror_event) */ - onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null; - /** - * Disconnects the port, so that it is no longer active. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close) - */ - close(): void; - /** - * Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side. - * - * Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage) - */ - postMessage(message: any, transfer: Transferable[]): void; - postMessage(message: any, options?: StructuredSerializeOptions): void; - /** - * Begins dispatching messages received on the port. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/start) - */ - start(): void; - addEventListener(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/message_event) */ + onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/messageerror_event) */ + onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null; + /** + * Disconnects the port, so that it is no longer active. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close) + */ + close(): void; + /** + * Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side. + * + * Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage) + */ + postMessage(message: any, transfer: Transferable[]): void; + postMessage(message: any, options?: StructuredSerializeOptions): void; + /** + * Begins dispatching messages received on the port. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/start) + */ + start(): void; + addEventListener( + type: K, + listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var MessagePort: { - prototype: MessagePort; - new(): MessagePort; + prototype: MessagePort; + new (): MessagePort; }; /** @@ -16136,32 +18803,32 @@ declare var MessagePort: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType) */ interface MimeType { - /** - * Returns the MIME type's description. - * @deprecated - */ - readonly description: string; - /** - * Returns the Plugin object that implements this MIME type. - * @deprecated - */ - readonly enabledPlugin: Plugin; - /** - * Returns the MIME type's typical file extensions, in a comma-separated list. - * @deprecated - */ - readonly suffixes: string; - /** - * Returns the MIME type. - * @deprecated - */ - readonly type: string; + /** + * Returns the MIME type's description. + * @deprecated + */ + readonly description: string; + /** + * Returns the Plugin object that implements this MIME type. + * @deprecated + */ + readonly enabledPlugin: Plugin; + /** + * Returns the MIME type's typical file extensions, in a comma-separated list. + * @deprecated + */ + readonly suffixes: string; + /** + * Returns the MIME type. + * @deprecated + */ + readonly type: string; } /** @deprecated */ declare var MimeType: { - prototype: MimeType; - new(): MimeType; + prototype: MimeType; + new (): MimeType; }; /** @@ -16171,19 +18838,19 @@ declare var MimeType: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray) */ interface MimeTypeArray { - /** @deprecated */ - readonly length: number; - /** @deprecated */ - item(index: number): MimeType | null; - /** @deprecated */ - namedItem(name: string): MimeType | null; - [index: number]: MimeType; + /** @deprecated */ + readonly length: number; + /** @deprecated */ + item(index: number): MimeType | null; + /** @deprecated */ + namedItem(name: string): MimeType | null; + [index: number]: MimeType; } /** @deprecated */ declare var MimeTypeArray: { - prototype: MimeTypeArray; - new(): MimeTypeArray; + prototype: MimeTypeArray; + new (): MimeTypeArray; }; /** @@ -16192,61 +18859,77 @@ declare var MimeTypeArray: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent) */ interface MouseEvent extends UIEvent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/altKey) */ - readonly altKey: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/button) */ - readonly button: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/buttons) */ - readonly buttons: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/clientX) */ - readonly clientX: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/clientY) */ - readonly clientY: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/ctrlKey) */ - readonly ctrlKey: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/layerX) */ - readonly layerX: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/layerY) */ - readonly layerY: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/metaKey) */ - readonly metaKey: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/movementX) */ - readonly movementX: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/movementY) */ - readonly movementY: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/offsetX) */ - readonly offsetX: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/offsetY) */ - readonly offsetY: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/pageX) */ - readonly pageX: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/pageY) */ - readonly pageY: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/relatedTarget) */ - readonly relatedTarget: EventTarget | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/screenX) */ - readonly screenX: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/screenY) */ - readonly screenY: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/shiftKey) */ - readonly shiftKey: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/x) */ - readonly x: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/y) */ - readonly y: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/getModifierState) */ - getModifierState(keyArg: string): boolean; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/initMouseEvent) - */ - initMouseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/altKey) */ + readonly altKey: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/button) */ + readonly button: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/buttons) */ + readonly buttons: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/clientX) */ + readonly clientX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/clientY) */ + readonly clientY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/ctrlKey) */ + readonly ctrlKey: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/layerX) */ + readonly layerX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/layerY) */ + readonly layerY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/metaKey) */ + readonly metaKey: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/movementX) */ + readonly movementX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/movementY) */ + readonly movementY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/offsetX) */ + readonly offsetX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/offsetY) */ + readonly offsetY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/pageX) */ + readonly pageX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/pageY) */ + readonly pageY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/relatedTarget) */ + readonly relatedTarget: EventTarget | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/screenX) */ + readonly screenX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/screenY) */ + readonly screenY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/shiftKey) */ + readonly shiftKey: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/x) */ + readonly x: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/y) */ + readonly y: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/getModifierState) */ + getModifierState(keyArg: string): boolean; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/initMouseEvent) + */ + initMouseEvent( + typeArg: string, + canBubbleArg: boolean, + cancelableArg: boolean, + viewArg: Window, + detailArg: number, + screenXArg: number, + screenYArg: number, + clientXArg: number, + clientYArg: number, + ctrlKeyArg: boolean, + altKeyArg: boolean, + shiftKeyArg: boolean, + metaKeyArg: boolean, + buttonArg: number, + relatedTargetArg: EventTarget | null, + ): void; } declare var MouseEvent: { - prototype: MouseEvent; - new(type: string, eventInitDict?: MouseEventInit): MouseEvent; + prototype: MouseEvent; + new (type: string, eventInitDict?: MouseEventInit): MouseEvent; }; /** @@ -16255,31 +18938,31 @@ declare var MouseEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver) */ interface MutationObserver { - /** - * Stops observer from observing any mutations. Until the observe() method is used again, observer's callback will not be invoked. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/disconnect) - */ - disconnect(): void; - /** - * Instructs the user agent to observe a given target (a node) and report any mutations based on the criteria given by options (an object). - * - * The options argument allows for setting mutation observation options via object members. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/observe) - */ - observe(target: Node, options?: MutationObserverInit): void; - /** - * Empties the record queue and returns what was in there. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/takeRecords) - */ - takeRecords(): MutationRecord[]; + /** + * Stops observer from observing any mutations. Until the observe() method is used again, observer's callback will not be invoked. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/disconnect) + */ + disconnect(): void; + /** + * Instructs the user agent to observe a given target (a node) and report any mutations based on the criteria given by options (an object). + * + * The options argument allows for setting mutation observation options via object members. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/observe) + */ + observe(target: Node, options?: MutationObserverInit): void; + /** + * Empties the record queue and returns what was in there. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/takeRecords) + */ + takeRecords(): MutationRecord[]; } declare var MutationObserver: { - prototype: MutationObserver; - new(callback: MutationCallback): MutationObserver; + prototype: MutationObserver; + new (callback: MutationCallback): MutationObserver; }; /** @@ -16288,65 +18971,65 @@ declare var MutationObserver: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord) */ interface MutationRecord { - /** - * Return the nodes added and removed respectively. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/addedNodes) - */ - readonly addedNodes: NodeList; - /** - * Returns the local name of the changed attribute, and null otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/attributeName) - */ - readonly attributeName: string | null; - /** - * Returns the namespace of the changed attribute, and null otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/attributeNamespace) - */ - readonly attributeNamespace: string | null; - /** - * Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/nextSibling) - */ - readonly nextSibling: Node | null; - /** - * The return value depends on type. For "attributes", it is the value of the changed attribute before the change. For "characterData", it is the data of the changed node before the change. For "childList", it is null. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/oldValue) - */ - readonly oldValue: string | null; - /** - * Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/previousSibling) - */ - readonly previousSibling: Node | null; - /** - * Return the nodes added and removed respectively. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/removedNodes) - */ - readonly removedNodes: NodeList; - /** - * Returns the node the mutation affected, depending on the type. For "attributes", it is the element whose attribute changed. For "characterData", it is the CharacterData node. For "childList", it is the node whose children changed. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/target) - */ - readonly target: Node; - /** - * Returns "attributes" if it was an attribute mutation. "characterData" if it was a mutation to a CharacterData node. And "childList" if it was a mutation to the tree of nodes. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/type) - */ - readonly type: MutationRecordType; + /** + * Return the nodes added and removed respectively. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/addedNodes) + */ + readonly addedNodes: NodeList; + /** + * Returns the local name of the changed attribute, and null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/attributeName) + */ + readonly attributeName: string | null; + /** + * Returns the namespace of the changed attribute, and null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/attributeNamespace) + */ + readonly attributeNamespace: string | null; + /** + * Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/nextSibling) + */ + readonly nextSibling: Node | null; + /** + * The return value depends on type. For "attributes", it is the value of the changed attribute before the change. For "characterData", it is the data of the changed node before the change. For "childList", it is null. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/oldValue) + */ + readonly oldValue: string | null; + /** + * Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/previousSibling) + */ + readonly previousSibling: Node | null; + /** + * Return the nodes added and removed respectively. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/removedNodes) + */ + readonly removedNodes: NodeList; + /** + * Returns the node the mutation affected, depending on the type. For "attributes", it is the element whose attribute changed. For "characterData", it is the CharacterData node. For "childList", it is the node whose children changed. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/target) + */ + readonly target: Node; + /** + * Returns "attributes" if it was an attribute mutation. "characterData" if it was a mutation to a CharacterData node. And "childList" if it was a mutation to the tree of nodes. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/type) + */ + readonly type: MutationRecordType; } declare var MutationRecord: { - prototype: MutationRecord; - new(): MutationRecord; + prototype: MutationRecord; + new (): MutationRecord; }; /** @@ -16355,28 +19038,28 @@ declare var MutationRecord: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap) */ interface NamedNodeMap { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/length) */ - readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/getNamedItem) */ - getNamedItem(qualifiedName: string): Attr | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/getNamedItemNS) */ - getNamedItemNS(namespace: string | null, localName: string): Attr | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/item) */ - item(index: number): Attr | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/removeNamedItem) */ - removeNamedItem(qualifiedName: string): Attr; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/removeNamedItemNS) */ - removeNamedItemNS(namespace: string | null, localName: string): Attr; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/setNamedItem) */ - setNamedItem(attr: Attr): Attr | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/setNamedItemNS) */ - setNamedItemNS(attr: Attr): Attr | null; - [index: number]: Attr; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/getNamedItem) */ + getNamedItem(qualifiedName: string): Attr | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/getNamedItemNS) */ + getNamedItemNS(namespace: string | null, localName: string): Attr | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/item) */ + item(index: number): Attr | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/removeNamedItem) */ + removeNamedItem(qualifiedName: string): Attr; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/removeNamedItemNS) */ + removeNamedItemNS(namespace: string | null, localName: string): Attr; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/setNamedItem) */ + setNamedItem(attr: Attr): Attr | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/setNamedItemNS) */ + setNamedItemNS(attr: Attr): Attr | null; + [index: number]: Attr; } declare var NamedNodeMap: { - prototype: NamedNodeMap; - new(): NamedNodeMap; + prototype: NamedNodeMap; + new (): NamedNodeMap; }; /** @@ -16385,19 +19068,19 @@ declare var NamedNodeMap: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager) */ interface NavigationPreloadManager { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/disable) */ - disable(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/enable) */ - enable(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/getState) */ - getState(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/setHeaderValue) */ - setHeaderValue(value: string): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/disable) */ + disable(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/enable) */ + enable(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/getState) */ + getState(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/setHeaderValue) */ + setHeaderValue(value: string): Promise; } declare var NavigationPreloadManager: { - prototype: NavigationPreloadManager; - new(): NavigationPreloadManager; + prototype: NavigationPreloadManager; + new (): NavigationPreloadManager; }; /** @@ -16405,213 +19088,228 @@ declare var NavigationPreloadManager: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator) */ -interface Navigator extends NavigatorAutomationInformation, NavigatorBadge, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage { - /** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/clipboard) - */ - readonly clipboard: Clipboard; - /** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/credentials) - */ - readonly credentials: CredentialsContainer; - readonly doNotTrack: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/geolocation) */ - readonly geolocation: Geolocation; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/maxTouchPoints) */ - readonly maxTouchPoints: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaCapabilities) */ - readonly mediaCapabilities: MediaCapabilities; - /** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaDevices) - */ - readonly mediaDevices: MediaDevices; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaSession) */ - readonly mediaSession: MediaSession; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/permissions) */ - readonly permissions: Permissions; - /** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/serviceWorker) - */ - readonly serviceWorker: ServiceWorkerContainer; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userActivation) */ - readonly userActivation: UserActivation; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/wakeLock) */ - readonly wakeLock: WakeLock; - /** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/canShare) - */ - canShare(data?: ShareData): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/getGamepads) */ - getGamepads(): (Gamepad | null)[]; - /** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMIDIAccess) - */ - requestMIDIAccess(options?: MIDIOptions): Promise; - /** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMediaKeySystemAccess) - */ - requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/sendBeacon) */ - sendBeacon(url: string | URL, data?: BodyInit | null): boolean; - /** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/share) - */ - share(data?: ShareData): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate) */ - vibrate(pattern: VibratePattern): boolean; +interface Navigator + extends + NavigatorAutomationInformation, + NavigatorBadge, + NavigatorConcurrentHardware, + NavigatorContentUtils, + NavigatorCookies, + NavigatorID, + NavigatorLanguage, + NavigatorLocks, + NavigatorOnLine, + NavigatorPlugins, + NavigatorStorage { + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/clipboard) + */ + readonly clipboard: Clipboard; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/credentials) + */ + readonly credentials: CredentialsContainer; + readonly doNotTrack: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/geolocation) */ + readonly geolocation: Geolocation; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/maxTouchPoints) */ + readonly maxTouchPoints: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaCapabilities) */ + readonly mediaCapabilities: MediaCapabilities; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaDevices) + */ + readonly mediaDevices: MediaDevices; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaSession) */ + readonly mediaSession: MediaSession; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/permissions) */ + readonly permissions: Permissions; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/serviceWorker) + */ + readonly serviceWorker: ServiceWorkerContainer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userActivation) */ + readonly userActivation: UserActivation; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/wakeLock) */ + readonly wakeLock: WakeLock; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/canShare) + */ + canShare(data?: ShareData): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/getGamepads) */ + getGamepads(): (Gamepad | null)[]; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMIDIAccess) + */ + requestMIDIAccess(options?: MIDIOptions): Promise; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMediaKeySystemAccess) + */ + requestMediaKeySystemAccess( + keySystem: string, + supportedConfigurations: MediaKeySystemConfiguration[], + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/sendBeacon) */ + sendBeacon(url: string | URL, data?: BodyInit | null): boolean; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/share) + */ + share(data?: ShareData): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate) */ + vibrate(pattern: VibratePattern): boolean; } declare var Navigator: { - prototype: Navigator; - new(): Navigator; + prototype: Navigator; + new (): Navigator; }; interface NavigatorAutomationInformation { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/webdriver) */ - readonly webdriver: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/webdriver) */ + readonly webdriver: boolean; } /** Available only in secure contexts. */ interface NavigatorBadge { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/clearAppBadge) */ - clearAppBadge(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/setAppBadge) */ - setAppBadge(contents?: number): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/clearAppBadge) */ + clearAppBadge(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/setAppBadge) */ + setAppBadge(contents?: number): Promise; } interface NavigatorConcurrentHardware { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/hardwareConcurrency) */ - readonly hardwareConcurrency: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/hardwareConcurrency) */ + readonly hardwareConcurrency: number; } interface NavigatorContentUtils { - /** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/registerProtocolHandler) - */ - registerProtocolHandler(scheme: string, url: string | URL): void; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/registerProtocolHandler) + */ + registerProtocolHandler(scheme: string, url: string | URL): void; } interface NavigatorCookies { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/cookieEnabled) */ - readonly cookieEnabled: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/cookieEnabled) */ + readonly cookieEnabled: boolean; } interface NavigatorID { - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName) - */ - readonly appCodeName: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName) - */ - readonly appName: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion) - */ - readonly appVersion: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform) - */ - readonly platform: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product) - */ - readonly product: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/productSub) - */ - readonly productSub: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userAgent) */ - readonly userAgent: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vendor) - */ - readonly vendor: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vendorSub) - */ - readonly vendorSub: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName) + */ + readonly appCodeName: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName) + */ + readonly appName: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion) + */ + readonly appVersion: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform) + */ + readonly platform: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product) + */ + readonly product: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/productSub) + */ + readonly productSub: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userAgent) */ + readonly userAgent: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vendor) + */ + readonly vendor: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vendorSub) + */ + readonly vendorSub: string; } interface NavigatorLanguage { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/language) */ - readonly language: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/languages) */ - readonly languages: ReadonlyArray; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/language) */ + readonly language: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/languages) */ + readonly languages: ReadonlyArray; } /** Available only in secure contexts. */ interface NavigatorLocks { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/locks) */ - readonly locks: LockManager; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/locks) */ + readonly locks: LockManager; } interface NavigatorOnLine { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/onLine) */ - readonly onLine: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/onLine) */ + readonly onLine: boolean; } interface NavigatorPlugins { - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mimeTypes) - */ - readonly mimeTypes: MimeTypeArray; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/pdfViewerEnabled) */ - readonly pdfViewerEnabled: boolean; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/plugins) - */ - readonly plugins: PluginArray; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/javaEnabled) - */ - javaEnabled(): boolean; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mimeTypes) + */ + readonly mimeTypes: MimeTypeArray; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/pdfViewerEnabled) */ + readonly pdfViewerEnabled: boolean; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/plugins) + */ + readonly plugins: PluginArray; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/javaEnabled) + */ + javaEnabled(): boolean; } /** Available only in secure contexts. */ interface NavigatorStorage { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/storage) */ - readonly storage: StorageManager; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/storage) */ + readonly storage: StorageManager; } /** @@ -16620,207 +19318,207 @@ interface NavigatorStorage { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node) */ interface Node extends EventTarget { - /** - * Returns node's node document's document base URL. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/baseURI) - */ - readonly baseURI: string; - /** - * Returns the children. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/childNodes) - */ - readonly childNodes: NodeListOf; - /** - * Returns the first child. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/firstChild) - */ - readonly firstChild: ChildNode | null; - /** - * Returns true if node is connected and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isConnected) - */ - readonly isConnected: boolean; - /** - * Returns the last child. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lastChild) - */ - readonly lastChild: ChildNode | null; - /** - * Returns the next sibling. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nextSibling) - */ - readonly nextSibling: ChildNode | null; - /** - * Returns a string appropriate for the type of node. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeName) - */ - readonly nodeName: string; - /** - * Returns the type of node. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeType) - */ - readonly nodeType: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) */ - nodeValue: string | null; - /** - * Returns the node document. Returns null for documents. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument) - */ - readonly ownerDocument: Document | null; - /** - * Returns the parent element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/parentElement) - */ - readonly parentElement: HTMLElement | null; - /** - * Returns the parent. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/parentNode) - */ - readonly parentNode: ParentNode | null; - /** - * Returns the previous sibling. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/previousSibling) - */ - readonly previousSibling: ChildNode | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/textContent) */ - textContent: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/appendChild) */ - appendChild(node: T): T; - /** - * Returns a copy of node. If deep is true, the copy also includes the node's descendants. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/cloneNode) - */ - cloneNode(deep?: boolean): Node; - /** - * Returns a bitmask indicating the position of other relative to node. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/compareDocumentPosition) - */ - compareDocumentPosition(other: Node): number; - /** - * Returns true if other is an inclusive descendant of node, and false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/contains) - */ - contains(other: Node | null): boolean; - /** - * Returns node's root. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/getRootNode) - */ - getRootNode(options?: GetRootNodeOptions): Node; - /** - * Returns whether node has children. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/hasChildNodes) - */ - hasChildNodes(): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/insertBefore) */ - insertBefore(node: T, child: Node | null): T; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isDefaultNamespace) */ - isDefaultNamespace(namespace: string | null): boolean; - /** - * Returns whether node and otherNode have the same properties. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isEqualNode) - */ - isEqualNode(otherNode: Node | null): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isSameNode) */ - isSameNode(otherNode: Node | null): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lookupNamespaceURI) */ - lookupNamespaceURI(prefix: string | null): string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lookupPrefix) */ - lookupPrefix(namespace: string | null): string | null; - /** - * Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/normalize) - */ - normalize(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/removeChild) */ - removeChild(child: T): T; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/replaceChild) */ - replaceChild(node: Node, child: T): T; - /** node is an element. */ - readonly ELEMENT_NODE: 1; - readonly ATTRIBUTE_NODE: 2; - /** node is a Text node. */ - readonly TEXT_NODE: 3; - /** node is a CDATASection node. */ - readonly CDATA_SECTION_NODE: 4; - readonly ENTITY_REFERENCE_NODE: 5; - readonly ENTITY_NODE: 6; - /** node is a ProcessingInstruction node. */ - readonly PROCESSING_INSTRUCTION_NODE: 7; - /** node is a Comment node. */ - readonly COMMENT_NODE: 8; - /** node is a document. */ - readonly DOCUMENT_NODE: 9; - /** node is a doctype. */ - readonly DOCUMENT_TYPE_NODE: 10; - /** node is a DocumentFragment node. */ - readonly DOCUMENT_FRAGMENT_NODE: 11; - readonly NOTATION_NODE: 12; - /** Set when node and other are not in the same tree. */ - readonly DOCUMENT_POSITION_DISCONNECTED: 0x01; - /** Set when other is preceding node. */ - readonly DOCUMENT_POSITION_PRECEDING: 0x02; - /** Set when other is following node. */ - readonly DOCUMENT_POSITION_FOLLOWING: 0x04; - /** Set when other is an ancestor of node. */ - readonly DOCUMENT_POSITION_CONTAINS: 0x08; - /** Set when other is a descendant of node. */ - readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10; - readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20; + /** + * Returns node's node document's document base URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/baseURI) + */ + readonly baseURI: string; + /** + * Returns the children. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/childNodes) + */ + readonly childNodes: NodeListOf; + /** + * Returns the first child. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/firstChild) + */ + readonly firstChild: ChildNode | null; + /** + * Returns true if node is connected and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isConnected) + */ + readonly isConnected: boolean; + /** + * Returns the last child. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lastChild) + */ + readonly lastChild: ChildNode | null; + /** + * Returns the next sibling. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nextSibling) + */ + readonly nextSibling: ChildNode | null; + /** + * Returns a string appropriate for the type of node. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeName) + */ + readonly nodeName: string; + /** + * Returns the type of node. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeType) + */ + readonly nodeType: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) */ + nodeValue: string | null; + /** + * Returns the node document. Returns null for documents. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument) + */ + readonly ownerDocument: Document | null; + /** + * Returns the parent element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/parentElement) + */ + readonly parentElement: HTMLElement | null; + /** + * Returns the parent. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/parentNode) + */ + readonly parentNode: ParentNode | null; + /** + * Returns the previous sibling. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/previousSibling) + */ + readonly previousSibling: ChildNode | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/textContent) */ + textContent: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/appendChild) */ + appendChild(node: T): T; + /** + * Returns a copy of node. If deep is true, the copy also includes the node's descendants. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/cloneNode) + */ + cloneNode(deep?: boolean): Node; + /** + * Returns a bitmask indicating the position of other relative to node. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/compareDocumentPosition) + */ + compareDocumentPosition(other: Node): number; + /** + * Returns true if other is an inclusive descendant of node, and false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/contains) + */ + contains(other: Node | null): boolean; + /** + * Returns node's root. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/getRootNode) + */ + getRootNode(options?: GetRootNodeOptions): Node; + /** + * Returns whether node has children. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/hasChildNodes) + */ + hasChildNodes(): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/insertBefore) */ + insertBefore(node: T, child: Node | null): T; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isDefaultNamespace) */ + isDefaultNamespace(namespace: string | null): boolean; + /** + * Returns whether node and otherNode have the same properties. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isEqualNode) + */ + isEqualNode(otherNode: Node | null): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isSameNode) */ + isSameNode(otherNode: Node | null): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lookupNamespaceURI) */ + lookupNamespaceURI(prefix: string | null): string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lookupPrefix) */ + lookupPrefix(namespace: string | null): string | null; + /** + * Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/normalize) + */ + normalize(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/removeChild) */ + removeChild(child: T): T; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/replaceChild) */ + replaceChild(node: Node, child: T): T; + /** node is an element. */ + readonly ELEMENT_NODE: 1; + readonly ATTRIBUTE_NODE: 2; + /** node is a Text node. */ + readonly TEXT_NODE: 3; + /** node is a CDATASection node. */ + readonly CDATA_SECTION_NODE: 4; + readonly ENTITY_REFERENCE_NODE: 5; + readonly ENTITY_NODE: 6; + /** node is a ProcessingInstruction node. */ + readonly PROCESSING_INSTRUCTION_NODE: 7; + /** node is a Comment node. */ + readonly COMMENT_NODE: 8; + /** node is a document. */ + readonly DOCUMENT_NODE: 9; + /** node is a doctype. */ + readonly DOCUMENT_TYPE_NODE: 10; + /** node is a DocumentFragment node. */ + readonly DOCUMENT_FRAGMENT_NODE: 11; + readonly NOTATION_NODE: 12; + /** Set when node and other are not in the same tree. */ + readonly DOCUMENT_POSITION_DISCONNECTED: 0x01; + /** Set when other is preceding node. */ + readonly DOCUMENT_POSITION_PRECEDING: 0x02; + /** Set when other is following node. */ + readonly DOCUMENT_POSITION_FOLLOWING: 0x04; + /** Set when other is an ancestor of node. */ + readonly DOCUMENT_POSITION_CONTAINS: 0x08; + /** Set when other is a descendant of node. */ + readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10; + readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20; } declare var Node: { - prototype: Node; - new(): Node; - /** node is an element. */ - readonly ELEMENT_NODE: 1; - readonly ATTRIBUTE_NODE: 2; - /** node is a Text node. */ - readonly TEXT_NODE: 3; - /** node is a CDATASection node. */ - readonly CDATA_SECTION_NODE: 4; - readonly ENTITY_REFERENCE_NODE: 5; - readonly ENTITY_NODE: 6; - /** node is a ProcessingInstruction node. */ - readonly PROCESSING_INSTRUCTION_NODE: 7; - /** node is a Comment node. */ - readonly COMMENT_NODE: 8; - /** node is a document. */ - readonly DOCUMENT_NODE: 9; - /** node is a doctype. */ - readonly DOCUMENT_TYPE_NODE: 10; - /** node is a DocumentFragment node. */ - readonly DOCUMENT_FRAGMENT_NODE: 11; - readonly NOTATION_NODE: 12; - /** Set when node and other are not in the same tree. */ - readonly DOCUMENT_POSITION_DISCONNECTED: 0x01; - /** Set when other is preceding node. */ - readonly DOCUMENT_POSITION_PRECEDING: 0x02; - /** Set when other is following node. */ - readonly DOCUMENT_POSITION_FOLLOWING: 0x04; - /** Set when other is an ancestor of node. */ - readonly DOCUMENT_POSITION_CONTAINS: 0x08; - /** Set when other is a descendant of node. */ - readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10; - readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20; + prototype: Node; + new (): Node; + /** node is an element. */ + readonly ELEMENT_NODE: 1; + readonly ATTRIBUTE_NODE: 2; + /** node is a Text node. */ + readonly TEXT_NODE: 3; + /** node is a CDATASection node. */ + readonly CDATA_SECTION_NODE: 4; + readonly ENTITY_REFERENCE_NODE: 5; + readonly ENTITY_NODE: 6; + /** node is a ProcessingInstruction node. */ + readonly PROCESSING_INSTRUCTION_NODE: 7; + /** node is a Comment node. */ + readonly COMMENT_NODE: 8; + /** node is a document. */ + readonly DOCUMENT_NODE: 9; + /** node is a doctype. */ + readonly DOCUMENT_TYPE_NODE: 10; + /** node is a DocumentFragment node. */ + readonly DOCUMENT_FRAGMENT_NODE: 11; + readonly NOTATION_NODE: 12; + /** Set when node and other are not in the same tree. */ + readonly DOCUMENT_POSITION_DISCONNECTED: 0x01; + /** Set when other is preceding node. */ + readonly DOCUMENT_POSITION_PRECEDING: 0x02; + /** Set when other is following node. */ + readonly DOCUMENT_POSITION_FOLLOWING: 0x04; + /** Set when other is an ancestor of node. */ + readonly DOCUMENT_POSITION_CONTAINS: 0x08; + /** Set when other is a descendant of node. */ + readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10; + readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20; }; /** @@ -16829,31 +19527,31 @@ declare var Node: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator) */ interface NodeIterator { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/filter) */ - readonly filter: NodeFilter | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/pointerBeforeReferenceNode) */ - readonly pointerBeforeReferenceNode: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/referenceNode) */ - readonly referenceNode: Node; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/root) */ - readonly root: Node; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/whatToShow) */ - readonly whatToShow: number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/detach) - */ - detach(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/nextNode) */ - nextNode(): Node | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/previousNode) */ - previousNode(): Node | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/filter) */ + readonly filter: NodeFilter | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/pointerBeforeReferenceNode) */ + readonly pointerBeforeReferenceNode: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/referenceNode) */ + readonly referenceNode: Node; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/root) */ + readonly root: Node; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/whatToShow) */ + readonly whatToShow: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/detach) + */ + detach(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/nextNode) */ + nextNode(): Node | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/previousNode) */ + previousNode(): Node | null; } declare var NodeIterator: { - prototype: NodeIterator; - new(): NodeIterator; + prototype: NodeIterator; + new (): NodeIterator; }; /** @@ -16862,72 +19560,78 @@ declare var NodeIterator: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList) */ interface NodeList { - /** - * Returns the number of nodes in the collection. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList/length) - */ - readonly length: number; - /** - * Returns the node with index index from the collection. The nodes are sorted in tree order. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList/item) - */ - item(index: number): Node | null; - /** - * Performs the specified action for each node in an list. - * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. - */ - forEach(callbackfn: (value: Node, key: number, parent: NodeList) => void, thisArg?: any): void; - [index: number]: Node; + /** + * Returns the number of nodes in the collection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList/length) + */ + readonly length: number; + /** + * Returns the node with index index from the collection. The nodes are sorted in tree order. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList/item) + */ + item(index: number): Node | null; + /** + * Performs the specified action for each node in an list. + * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + forEach( + callbackfn: (value: Node, key: number, parent: NodeList) => void, + thisArg?: any, + ): void; + [index: number]: Node; } declare var NodeList: { - prototype: NodeList; - new(): NodeList; + prototype: NodeList; + new (): NodeList; }; interface NodeListOf extends NodeList { - item(index: number): TNode; - /** - * Performs the specified action for each node in an list. - * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. - */ - forEach(callbackfn: (value: TNode, key: number, parent: NodeListOf) => void, thisArg?: any): void; - [index: number]: TNode; + item(index: number): TNode; + /** + * Performs the specified action for each node in an list. + * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + */ + forEach( + callbackfn: (value: TNode, key: number, parent: NodeListOf) => void, + thisArg?: any, + ): void; + [index: number]: TNode; } interface NonDocumentTypeChildNode { - /** - * Returns the first following sibling that is an element, and null otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/nextElementSibling) - */ - readonly nextElementSibling: Element | null; - /** - * Returns the first preceding sibling that is an element, and null otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/previousElementSibling) - */ - readonly previousElementSibling: Element | null; + /** + * Returns the first following sibling that is an element, and null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/nextElementSibling) + */ + readonly nextElementSibling: Element | null; + /** + * Returns the first preceding sibling that is an element, and null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/previousElementSibling) + */ + readonly previousElementSibling: Element | null; } interface NonElementParentNode { - /** - * Returns the first element within node's descendants whose ID is elementId. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementById) - */ - getElementById(elementId: string): Element | null; + /** + * Returns the first element within node's descendants whose ID is elementId. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementById) + */ + getElementById(elementId: string): Element | null; } interface NotificationEventMap { - "click": Event; - "close": Event; - "error": Event; - "show": Event; + click: Event; + close: Event; + error: Event; + show: Event; } /** @@ -16936,67 +19640,101 @@ interface NotificationEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification) */ interface Notification extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge) */ - readonly badge: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/body) */ - readonly body: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/data) */ - readonly data: any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/dir) */ - readonly dir: NotificationDirection; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/icon) */ - readonly icon: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/lang) */ - readonly lang: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/click_event) */ - onclick: ((this: Notification, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close_event) */ - onclose: ((this: Notification, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/error_event) */ - onerror: ((this: Notification, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */ - onshow: ((this: Notification, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction) */ - readonly requireInteraction: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */ - readonly silent: boolean | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */ - readonly tag: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title) */ - readonly title: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close) */ - close(): void; - addEventListener(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge) */ + readonly badge: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/body) */ + readonly body: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/data) */ + readonly data: any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/dir) */ + readonly dir: NotificationDirection; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/icon) */ + readonly icon: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/lang) */ + readonly lang: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/click_event) */ + onclick: ((this: Notification, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close_event) */ + onclose: ((this: Notification, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/error_event) */ + onerror: ((this: Notification, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */ + onshow: ((this: Notification, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction) */ + readonly requireInteraction: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */ + readonly silent: boolean | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */ + readonly tag: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title) */ + readonly title: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close) */ + close(): void; + addEventListener( + type: K, + listener: (this: Notification, ev: NotificationEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: Notification, ev: NotificationEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var Notification: { - prototype: Notification; - new(title: string, options?: NotificationOptions): Notification; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission_static) */ - readonly permission: NotificationPermission; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requestPermission_static) */ - requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise; + prototype: Notification; + new (title: string, options?: NotificationOptions): Notification; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission_static) */ + readonly permission: NotificationPermission; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requestPermission_static) */ + requestPermission( + deprecatedCallback?: NotificationPermissionCallback, + ): Promise; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed) */ interface OES_draw_buffers_indexed { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationSeparateiOES) */ - blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationiOES) */ - blendEquationiOES(buf: GLuint, mode: GLenum): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFuncSeparateiOES) */ - blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFunciOES) */ - blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/colorMaskiOES) */ - colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/disableiOES) */ - disableiOES(target: GLenum, index: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/enableiOES) */ - enableiOES(target: GLenum, index: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationSeparateiOES) */ + blendEquationSeparateiOES( + buf: GLuint, + modeRGB: GLenum, + modeAlpha: GLenum, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationiOES) */ + blendEquationiOES(buf: GLuint, mode: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFuncSeparateiOES) */ + blendFuncSeparateiOES( + buf: GLuint, + srcRGB: GLenum, + dstRGB: GLenum, + srcAlpha: GLenum, + dstAlpha: GLenum, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFunciOES) */ + blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/colorMaskiOES) */ + colorMaskiOES( + buf: GLuint, + r: GLboolean, + g: GLboolean, + b: GLboolean, + a: GLboolean, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/disableiOES) */ + disableiOES(target: GLenum, index: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/enableiOES) */ + enableiOES(target: GLenum, index: GLuint): void; } /** @@ -17004,12 +19742,10 @@ interface OES_draw_buffers_indexed { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_element_index_uint) */ -interface OES_element_index_uint { -} +interface OES_element_index_uint {} /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_fbo_render_mipmap) */ -interface OES_fbo_render_mipmap { -} +interface OES_fbo_render_mipmap {} /** * The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. @@ -17017,7 +19753,7 @@ interface OES_fbo_render_mipmap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_standard_derivatives) */ interface OES_standard_derivatives { - readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 0x8B8B; + readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 0x8b8b; } /** @@ -17025,16 +19761,14 @@ interface OES_standard_derivatives { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float) */ -interface OES_texture_float { -} +interface OES_texture_float {} /** * The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float_linear) */ -interface OES_texture_float_linear { -} +interface OES_texture_float_linear {} /** * The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components. @@ -17042,7 +19776,7 @@ interface OES_texture_float_linear { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float) */ interface OES_texture_half_float { - readonly HALF_FLOAT_OES: 0x8D61; + readonly HALF_FLOAT_OES: 0x8d61; } /** @@ -17050,30 +19784,36 @@ interface OES_texture_half_float { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float_linear) */ -interface OES_texture_half_float_linear { -} +interface OES_texture_half_float_linear {} /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object) */ interface OES_vertex_array_object { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES) */ - bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/createVertexArrayOES) */ - createVertexArrayOES(): WebGLVertexArrayObjectOES; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/deleteVertexArrayOES) */ - deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/isVertexArrayOES) */ - isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean; - readonly VERTEX_ARRAY_BINDING_OES: 0x85B5; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES) */ + bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/createVertexArrayOES) */ + createVertexArrayOES(): WebGLVertexArrayObjectOES; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/deleteVertexArrayOES) */ + deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/isVertexArrayOES) */ + isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean; + readonly VERTEX_ARRAY_BINDING_OES: 0x85b5; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2) */ interface OVR_multiview2 { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2/framebufferTextureMultiviewOVR) */ - framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void; - readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: 0x9630; - readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: 0x9632; - readonly MAX_VIEWS_OVR: 0x9631; - readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: 0x9633; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2/framebufferTextureMultiviewOVR) */ + framebufferTextureMultiviewOVR( + target: GLenum, + attachment: GLenum, + texture: WebGLTexture | null, + level: GLint, + baseViewIndex: GLint, + numViews: GLsizei, + ): void; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: 0x9630; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: 0x9632; + readonly MAX_VIEWS_OVR: 0x9631; + readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: 0x9633; } /** @@ -17082,17 +19822,20 @@ interface OVR_multiview2 { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioCompletionEvent) */ interface OfflineAudioCompletionEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioCompletionEvent/renderedBuffer) */ - readonly renderedBuffer: AudioBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioCompletionEvent/renderedBuffer) */ + readonly renderedBuffer: AudioBuffer; } declare var OfflineAudioCompletionEvent: { - prototype: OfflineAudioCompletionEvent; - new(type: string, eventInitDict: OfflineAudioCompletionEventInit): OfflineAudioCompletionEvent; + prototype: OfflineAudioCompletionEvent; + new ( + type: string, + eventInitDict: OfflineAudioCompletionEventInit, + ): OfflineAudioCompletionEvent; }; interface OfflineAudioContextEventMap extends BaseAudioContextEventMap { - "complete": OfflineAudioCompletionEvent; + complete: OfflineAudioCompletionEvent; } /** @@ -17101,103 +19844,172 @@ interface OfflineAudioContextEventMap extends BaseAudioContextEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext) */ interface OfflineAudioContext extends BaseAudioContext { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/length) */ - readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/complete_event) */ - oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/resume) */ - resume(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/startRendering) */ - startRendering(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/suspend) */ - suspend(suspendTime: number): Promise; - addEventListener(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/complete_event) */ + oncomplete: + | ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/resume) */ + resume(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/startRendering) */ + startRendering(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/suspend) */ + suspend(suspendTime: number): Promise; + addEventListener( + type: K, + listener: ( + this: OfflineAudioContext, + ev: OfflineAudioContextEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: OfflineAudioContext, + ev: OfflineAudioContextEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var OfflineAudioContext: { - prototype: OfflineAudioContext; - new(contextOptions: OfflineAudioContextOptions): OfflineAudioContext; - new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext; + prototype: OfflineAudioContext; + new (contextOptions: OfflineAudioContextOptions): OfflineAudioContext; + new ( + numberOfChannels: number, + length: number, + sampleRate: number, + ): OfflineAudioContext; }; interface OffscreenCanvasEventMap { - "contextlost": Event; - "contextrestored": Event; + contextlost: Event; + contextrestored: Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas) */ interface OffscreenCanvas extends EventTarget { - /** - * These attributes return the dimensions of the OffscreenCanvas object's bitmap. - * - * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/height) - */ - height: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/contextlost_event) */ - oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/contextrestored_event) */ - oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null; - /** - * These attributes return the dimensions of the OffscreenCanvas object's bitmap. - * - * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/width) - */ - width: number; - /** - * Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object. - * - * The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/convertToBlob) - */ - convertToBlob(options?: ImageEncodeOptions): Promise; - /** - * Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API. - * - * This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL] - * - * Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext) - */ - getContext(contextId: "2d", options?: any): OffscreenCanvasRenderingContext2D | null; - getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null; - getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null; - getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; - getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; - /** - * Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) - */ - transferToImageBitmap(): ImageBitmap; - addEventListener(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * These attributes return the dimensions of the OffscreenCanvas object's bitmap. + * + * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/height) + */ + height: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/contextlost_event) */ + oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/contextrestored_event) */ + oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null; + /** + * These attributes return the dimensions of the OffscreenCanvas object's bitmap. + * + * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/width) + */ + width: number; + /** + * Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object. + * + * The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/convertToBlob) + */ + convertToBlob(options?: ImageEncodeOptions): Promise; + /** + * Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API. + * + * This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL] + * + * Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext) + */ + getContext( + contextId: "2d", + options?: any, + ): OffscreenCanvasRenderingContext2D | null; + getContext( + contextId: "bitmaprenderer", + options?: any, + ): ImageBitmapRenderingContext | null; + getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null; + getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; + getContext( + contextId: OffscreenRenderingContextId, + options?: any, + ): OffscreenRenderingContext | null; + /** + * Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) + */ + transferToImageBitmap(): ImageBitmap; + addEventListener( + type: K, + listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var OffscreenCanvas: { - prototype: OffscreenCanvas; - new(width: number, height: number): OffscreenCanvas; + prototype: OffscreenCanvas; + new (width: number, height: number): OffscreenCanvas; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D) */ -interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */ - readonly canvas: OffscreenCanvas; +interface OffscreenCanvasRenderingContext2D + extends + CanvasCompositing, + CanvasDrawImage, + CanvasDrawPath, + CanvasFillStrokeStyles, + CanvasFilters, + CanvasImageData, + CanvasImageSmoothing, + CanvasPath, + CanvasPathDrawingStyles, + CanvasRect, + CanvasShadowStyles, + CanvasState, + CanvasText, + CanvasTextDrawingStyles, + CanvasTransform { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */ + readonly canvas: OffscreenCanvas; } declare var OffscreenCanvasRenderingContext2D: { - prototype: OffscreenCanvasRenderingContext2D; - new(): OffscreenCanvasRenderingContext2D; + prototype: OffscreenCanvasRenderingContext2D; + new (): OffscreenCanvasRenderingContext2D; }; /** @@ -17206,34 +20018,56 @@ declare var OffscreenCanvasRenderingContext2D: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode) */ interface OscillatorNode extends AudioScheduledSourceNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/detune) */ - readonly detune: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/frequency) */ - readonly frequency: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/type) */ - type: OscillatorType; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/setPeriodicWave) */ - setPeriodicWave(periodicWave: PeriodicWave): void; - addEventListener(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/detune) */ + readonly detune: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/frequency) */ + readonly frequency: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/type) */ + type: OscillatorType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/setPeriodicWave) */ + setPeriodicWave(periodicWave: PeriodicWave): void; + addEventListener( + type: K, + listener: ( + this: OscillatorNode, + ev: AudioScheduledSourceNodeEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: OscillatorNode, + ev: AudioScheduledSourceNodeEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var OscillatorNode: { - prototype: OscillatorNode; - new(context: BaseAudioContext, options?: OscillatorOptions): OscillatorNode; + prototype: OscillatorNode; + new (context: BaseAudioContext, options?: OscillatorOptions): OscillatorNode; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError) */ interface OverconstrainedError extends DOMException { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError/constraint) */ - readonly constraint: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError/constraint) */ + readonly constraint: string; } declare var OverconstrainedError: { - prototype: OverconstrainedError; - new(constraint: string, message?: string): OverconstrainedError; + prototype: OverconstrainedError; + new (constraint: string, message?: string): OverconstrainedError; }; /** @@ -17242,26 +20076,29 @@ declare var OverconstrainedError: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageTransitionEvent) */ interface PageTransitionEvent extends Event { - /** - * For the pageshow event, returns false if the page is newly being loaded (and the load event will fire). Otherwise, returns true. - * - * For the pagehide event, returns false if the page is going away for the last time. Otherwise, returns true, meaning that (if nothing conspires to make the page unsalvageable) the page might be reused if the user navigates back to this page. - * - * Things that can cause the page to be unsalvageable include: - * - * The user agent decided to not keep the Document alive in a session history entry after unload - * Having iframes that are not salvageable - * Active WebSocket objects - * Aborting a Document - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageTransitionEvent/persisted) - */ - readonly persisted: boolean; + /** + * For the pageshow event, returns false if the page is newly being loaded (and the load event will fire). Otherwise, returns true. + * + * For the pagehide event, returns false if the page is going away for the last time. Otherwise, returns true, meaning that (if nothing conspires to make the page unsalvageable) the page might be reused if the user navigates back to this page. + * + * Things that can cause the page to be unsalvageable include: + * + * The user agent decided to not keep the Document alive in a session history entry after unload + * Having iframes that are not salvageable + * Active WebSocket objects + * Aborting a Document + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageTransitionEvent/persisted) + */ + readonly persisted: boolean; } declare var PageTransitionEvent: { - prototype: PageTransitionEvent; - new(type: string, eventInitDict?: PageTransitionEventInit): PageTransitionEvent; + prototype: PageTransitionEvent; + new ( + type: string, + eventInitDict?: PageTransitionEventInit, + ): PageTransitionEvent; }; /** @@ -17270,120 +20107,138 @@ declare var PageTransitionEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode) */ interface PannerNode extends AudioNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneInnerAngle) */ - coneInnerAngle: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneOuterAngle) */ - coneOuterAngle: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneOuterGain) */ - coneOuterGain: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/distanceModel) */ - distanceModel: DistanceModelType; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/maxDistance) */ - maxDistance: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationX) */ - readonly orientationX: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationY) */ - readonly orientationY: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationZ) */ - readonly orientationZ: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/panningModel) */ - panningModel: PanningModelType; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionX) */ - readonly positionX: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionY) */ - readonly positionY: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionZ) */ - readonly positionZ: AudioParam; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/refDistance) */ - refDistance: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/rolloffFactor) */ - rolloffFactor: number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/setOrientation) - */ - setOrientation(x: number, y: number, z: number): void; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/setPosition) - */ - setPosition(x: number, y: number, z: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneInnerAngle) */ + coneInnerAngle: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneOuterAngle) */ + coneOuterAngle: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneOuterGain) */ + coneOuterGain: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/distanceModel) */ + distanceModel: DistanceModelType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/maxDistance) */ + maxDistance: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationX) */ + readonly orientationX: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationY) */ + readonly orientationY: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationZ) */ + readonly orientationZ: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/panningModel) */ + panningModel: PanningModelType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionX) */ + readonly positionX: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionY) */ + readonly positionY: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionZ) */ + readonly positionZ: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/refDistance) */ + refDistance: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/rolloffFactor) */ + rolloffFactor: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/setOrientation) + */ + setOrientation(x: number, y: number, z: number): void; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/setPosition) + */ + setPosition(x: number, y: number, z: number): void; } declare var PannerNode: { - prototype: PannerNode; - new(context: BaseAudioContext, options?: PannerOptions): PannerNode; + prototype: PannerNode; + new (context: BaseAudioContext, options?: PannerOptions): PannerNode; }; interface ParentNode extends Node { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/childElementCount) */ - readonly childElementCount: number; - /** - * Returns the child elements. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/children) - */ - readonly children: HTMLCollection; - /** - * Returns the first child that is an element, and null otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/firstElementChild) - */ - readonly firstElementChild: Element | null; - /** - * Returns the last child that is an element, and null otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lastElementChild) - */ - readonly lastElementChild: Element | null; - /** - * Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes. - * - * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/append) - */ - append(...nodes: (Node | string)[]): void; - /** - * Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes. - * - * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/prepend) - */ - prepend(...nodes: (Node | string)[]): void; - /** - * Returns the first element that is a descendant of node that matches selectors. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/querySelector) - */ - querySelector(selectors: K): HTMLElementTagNameMap[K] | null; - querySelector(selectors: K): SVGElementTagNameMap[K] | null; - querySelector(selectors: K): MathMLElementTagNameMap[K] | null; - /** @deprecated */ - querySelector(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null; - querySelector(selectors: string): E | null; - /** - * Returns all element descendants of node that match selectors. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/querySelectorAll) - */ - querySelectorAll(selectors: K): NodeListOf; - querySelectorAll(selectors: K): NodeListOf; - querySelectorAll(selectors: K): NodeListOf; - /** @deprecated */ - querySelectorAll(selectors: K): NodeListOf; - querySelectorAll(selectors: string): NodeListOf; - /** - * Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes. - * - * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/replaceChildren) - */ - replaceChildren(...nodes: (Node | string)[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/childElementCount) */ + readonly childElementCount: number; + /** + * Returns the child elements. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/children) + */ + readonly children: HTMLCollection; + /** + * Returns the first child that is an element, and null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/firstElementChild) + */ + readonly firstElementChild: Element | null; + /** + * Returns the last child that is an element, and null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lastElementChild) + */ + readonly lastElementChild: Element | null; + /** + * Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes. + * + * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/append) + */ + append(...nodes: (Node | string)[]): void; + /** + * Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes. + * + * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/prepend) + */ + prepend(...nodes: (Node | string)[]): void; + /** + * Returns the first element that is a descendant of node that matches selectors. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/querySelector) + */ + querySelector( + selectors: K, + ): HTMLElementTagNameMap[K] | null; + querySelector( + selectors: K, + ): SVGElementTagNameMap[K] | null; + querySelector( + selectors: K, + ): MathMLElementTagNameMap[K] | null; + /** @deprecated */ + querySelector( + selectors: K, + ): HTMLElementDeprecatedTagNameMap[K] | null; + querySelector(selectors: string): E | null; + /** + * Returns all element descendants of node that match selectors. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/querySelectorAll) + */ + querySelectorAll( + selectors: K, + ): NodeListOf; + querySelectorAll( + selectors: K, + ): NodeListOf; + querySelectorAll( + selectors: K, + ): NodeListOf; + /** @deprecated */ + querySelectorAll( + selectors: K, + ): NodeListOf; + querySelectorAll( + selectors: string, + ): NodeListOf; + /** + * Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes. + * + * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/replaceChildren) + */ + replaceChildren(...nodes: (Node | string)[]): void; } /** @@ -17392,48 +20247,48 @@ interface ParentNode extends Node { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D) */ interface Path2D extends CanvasPath { - /** - * Adds to the path the path given by the argument. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D/addPath) - */ - addPath(path: Path2D, transform?: DOMMatrix2DInit): void; + /** + * Adds to the path the path given by the argument. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D/addPath) + */ + addPath(path: Path2D, transform?: DOMMatrix2DInit): void; } declare var Path2D: { - prototype: Path2D; - new(path?: Path2D | string): Path2D; + prototype: Path2D; + new (path?: Path2D | string): Path2D; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress) */ interface PaymentAddress { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/addressLine) */ - readonly addressLine: ReadonlyArray; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/city) */ - readonly city: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/country) */ - readonly country: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/dependentLocality) */ - readonly dependentLocality: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/organization) */ - readonly organization: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/phone) */ - readonly phone: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/postalCode) */ - readonly postalCode: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/recipient) */ - readonly recipient: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/region) */ - readonly region: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/sortingCode) */ - readonly sortingCode: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/toJSON) */ - toJSON(): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/addressLine) */ + readonly addressLine: ReadonlyArray; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/city) */ + readonly city: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/country) */ + readonly country: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/dependentLocality) */ + readonly dependentLocality: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/organization) */ + readonly organization: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/phone) */ + readonly phone: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/postalCode) */ + readonly postalCode: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/recipient) */ + readonly recipient: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/region) */ + readonly region: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/sortingCode) */ + readonly sortingCode: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/toJSON) */ + toJSON(): any; } declare var PaymentAddress: { - prototype: PaymentAddress; - new(): PaymentAddress; + prototype: PaymentAddress; + new (): PaymentAddress; }; /** @@ -17442,21 +20297,24 @@ declare var PaymentAddress: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent) */ interface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent/methodDetails) */ - readonly methodDetails: any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent/methodName) */ - readonly methodName: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent/methodDetails) */ + readonly methodDetails: any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent/methodName) */ + readonly methodName: string; } declare var PaymentMethodChangeEvent: { - prototype: PaymentMethodChangeEvent; - new(type: string, eventInitDict?: PaymentMethodChangeEventInit): PaymentMethodChangeEvent; + prototype: PaymentMethodChangeEvent; + new ( + type: string, + eventInitDict?: PaymentMethodChangeEventInit, + ): PaymentMethodChangeEvent; }; interface PaymentRequestEventMap { - "paymentmethodchange": PaymentMethodChangeEvent; - "shippingaddresschange": PaymentRequestUpdateEvent; - "shippingoptionchange": PaymentRequestUpdateEvent; + paymentmethodchange: PaymentMethodChangeEvent; + shippingaddresschange: PaymentRequestUpdateEvent; + shippingoptionchange: PaymentRequestUpdateEvent; } /** @@ -17466,55 +20324,83 @@ interface PaymentRequestEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest) */ interface PaymentRequest extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/id) */ - readonly id: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/paymentmethodchange_event) */ - onpaymentmethodchange: ((this: PaymentRequest, ev: PaymentMethodChangeEvent) => any) | null; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingaddresschange_event) - */ - onshippingaddresschange: ((this: PaymentRequest, ev: PaymentRequestUpdateEvent) => any) | null; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingoptionchange_event) - */ - onshippingoptionchange: ((this: PaymentRequest, ev: PaymentRequestUpdateEvent) => any) | null; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingAddress) - */ - readonly shippingAddress: PaymentAddress | null; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingOption) - */ - readonly shippingOption: string | null; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingType) - */ - readonly shippingType: PaymentShippingType | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/abort) */ - abort(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/canMakePayment) */ - canMakePayment(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/show) */ - show(detailsPromise?: PaymentDetailsUpdate | PromiseLike): Promise; - addEventListener(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/id) */ + readonly id: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/paymentmethodchange_event) */ + onpaymentmethodchange: + | ((this: PaymentRequest, ev: PaymentMethodChangeEvent) => any) + | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingaddresschange_event) + */ + onshippingaddresschange: + | ((this: PaymentRequest, ev: PaymentRequestUpdateEvent) => any) + | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingoptionchange_event) + */ + onshippingoptionchange: + | ((this: PaymentRequest, ev: PaymentRequestUpdateEvent) => any) + | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingAddress) + */ + readonly shippingAddress: PaymentAddress | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingOption) + */ + readonly shippingOption: string | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingType) + */ + readonly shippingType: PaymentShippingType | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/abort) */ + abort(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/canMakePayment) */ + canMakePayment(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/show) */ + show( + detailsPromise?: PaymentDetailsUpdate | PromiseLike, + ): Promise; + addEventListener( + type: K, + listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var PaymentRequest: { - prototype: PaymentRequest; - new(methodData: PaymentMethodData[], details: PaymentDetailsInit, options?: PaymentOptions): PaymentRequest; + prototype: PaymentRequest; + new ( + methodData: PaymentMethodData[], + details: PaymentDetailsInit, + options?: PaymentOptions, + ): PaymentRequest; }; /** @@ -17524,17 +20410,22 @@ declare var PaymentRequest: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequestUpdateEvent) */ interface PaymentRequestUpdateEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequestUpdateEvent/updateWith) */ - updateWith(detailsPromise: PaymentDetailsUpdate | PromiseLike): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequestUpdateEvent/updateWith) */ + updateWith( + detailsPromise: PaymentDetailsUpdate | PromiseLike, + ): void; } declare var PaymentRequestUpdateEvent: { - prototype: PaymentRequestUpdateEvent; - new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent; + prototype: PaymentRequestUpdateEvent; + new ( + type: string, + eventInitDict?: PaymentRequestUpdateEventInit, + ): PaymentRequestUpdateEvent; }; interface PaymentResponseEventMap { - "payerdetailchange": PaymentRequestUpdateEvent; + payerdetailchange: PaymentRequestUpdateEvent; } /** @@ -17544,43 +20435,61 @@ interface PaymentResponseEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse) */ interface PaymentResponse extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/details) */ - readonly details: any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/methodName) */ - readonly methodName: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerdetailchange_event) */ - onpayerdetailchange: ((this: PaymentResponse, ev: PaymentRequestUpdateEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerEmail) */ - readonly payerEmail: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerName) */ - readonly payerName: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerPhone) */ - readonly payerPhone: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/requestId) */ - readonly requestId: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/shippingAddress) */ - readonly shippingAddress: PaymentAddress | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/shippingOption) */ - readonly shippingOption: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/complete) */ - complete(result?: PaymentComplete): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/retry) */ - retry(errorFields?: PaymentValidationErrors): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/toJSON) */ - toJSON(): any; - addEventListener(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/details) */ + readonly details: any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/methodName) */ + readonly methodName: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerdetailchange_event) */ + onpayerdetailchange: + | ((this: PaymentResponse, ev: PaymentRequestUpdateEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerEmail) */ + readonly payerEmail: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerName) */ + readonly payerName: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerPhone) */ + readonly payerPhone: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/requestId) */ + readonly requestId: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/shippingAddress) */ + readonly shippingAddress: PaymentAddress | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/shippingOption) */ + readonly shippingOption: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/complete) */ + complete(result?: PaymentComplete): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/retry) */ + retry(errorFields?: PaymentValidationErrors): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/toJSON) */ + toJSON(): any; + addEventListener( + type: K, + listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var PaymentResponse: { - prototype: PaymentResponse; - new(): PaymentResponse; + prototype: PaymentResponse; + new (): PaymentResponse; }; interface PerformanceEventMap { - "resourcetimingbufferfull": Event; + resourcetimingbufferfull: Event; } /** @@ -17589,55 +20498,75 @@ interface PerformanceEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance) */ interface Performance extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/eventCounts) */ - readonly eventCounts: EventCounts; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/navigation) - */ - readonly navigation: PerformanceNavigation; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/resourcetimingbufferfull_event) */ - onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timeOrigin) */ - readonly timeOrigin: DOMHighResTimeStamp; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timing) - */ - readonly timing: PerformanceTiming; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMarks) */ - clearMarks(markName?: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMeasures) */ - clearMeasures(measureName?: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearResourceTimings) */ - clearResourceTimings(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntries) */ - getEntries(): PerformanceEntryList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */ - getEntriesByName(name: string, type?: string): PerformanceEntryList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */ - getEntriesByType(type: string): PerformanceEntryList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/mark) */ - mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/measure) */ - measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/now) */ - now(): DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/setResourceTimingBufferSize) */ - setResourceTimingBufferSize(maxSize: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) */ - toJSON(): any; - addEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/eventCounts) */ + readonly eventCounts: EventCounts; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/navigation) + */ + readonly navigation: PerformanceNavigation; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/resourcetimingbufferfull_event) */ + onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timeOrigin) */ + readonly timeOrigin: DOMHighResTimeStamp; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timing) + */ + readonly timing: PerformanceTiming; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMarks) */ + clearMarks(markName?: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMeasures) */ + clearMeasures(measureName?: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearResourceTimings) */ + clearResourceTimings(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntries) */ + getEntries(): PerformanceEntryList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */ + getEntriesByName(name: string, type?: string): PerformanceEntryList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */ + getEntriesByType(type: string): PerformanceEntryList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/mark) */ + mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/measure) */ + measure( + measureName: string, + startOrMeasureOptions?: string | PerformanceMeasureOptions, + endMark?: string, + ): PerformanceMeasure; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/now) */ + now(): DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/setResourceTimingBufferSize) */ + setResourceTimingBufferSize(maxSize: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) */ + toJSON(): any; + addEventListener( + type: K, + listener: (this: Performance, ev: PerformanceEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: Performance, ev: PerformanceEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var Performance: { - prototype: Performance; - new(): Performance; + prototype: Performance; + new (): Performance; }; /** @@ -17646,40 +20575,40 @@ declare var Performance: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry) */ interface PerformanceEntry { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/duration) */ - readonly duration: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/entryType) */ - readonly entryType: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/name) */ - readonly name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/startTime) */ - readonly startTime: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */ - toJSON(): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/duration) */ + readonly duration: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/entryType) */ + readonly entryType: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/startTime) */ + readonly startTime: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */ + toJSON(): any; } declare var PerformanceEntry: { - prototype: PerformanceEntry; - new(): PerformanceEntry; + prototype: PerformanceEntry; + new (): PerformanceEntry; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming) */ interface PerformanceEventTiming extends PerformanceEntry { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/cancelable) */ - readonly cancelable: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/processingEnd) */ - readonly processingEnd: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/processingStart) */ - readonly processingStart: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/target) */ - readonly target: Node | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/toJSON) */ - toJSON(): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/cancelable) */ + readonly cancelable: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/processingEnd) */ + readonly processingEnd: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/processingStart) */ + readonly processingStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/target) */ + readonly target: Node | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/toJSON) */ + toJSON(): any; } declare var PerformanceEventTiming: { - prototype: PerformanceEventTiming; - new(): PerformanceEventTiming; + prototype: PerformanceEventTiming; + new (): PerformanceEventTiming; }; /** @@ -17688,13 +20617,13 @@ declare var PerformanceEventTiming: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark) */ interface PerformanceMark extends PerformanceEntry { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark/detail) */ - readonly detail: any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark/detail) */ + readonly detail: any; } declare var PerformanceMark: { - prototype: PerformanceMark; - new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark; + prototype: PerformanceMark; + new (markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark; }; /** @@ -17703,13 +20632,13 @@ declare var PerformanceMark: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure) */ interface PerformanceMeasure extends PerformanceEntry { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure/detail) */ - readonly detail: any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure/detail) */ + readonly detail: any; } declare var PerformanceMeasure: { - prototype: PerformanceMeasure; - new(): PerformanceMeasure; + prototype: PerformanceMeasure; + new (): PerformanceMeasure; }; /** @@ -17719,38 +20648,38 @@ declare var PerformanceMeasure: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation) */ interface PerformanceNavigation { - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/redirectCount) - */ - readonly redirectCount: number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/type) - */ - readonly type: number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/toJSON) - */ - toJSON(): any; - readonly TYPE_NAVIGATE: 0; - readonly TYPE_RELOAD: 1; - readonly TYPE_BACK_FORWARD: 2; - readonly TYPE_RESERVED: 255; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/redirectCount) + */ + readonly redirectCount: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/type) + */ + readonly type: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/toJSON) + */ + toJSON(): any; + readonly TYPE_NAVIGATE: 0; + readonly TYPE_RELOAD: 1; + readonly TYPE_BACK_FORWARD: 2; + readonly TYPE_RESERVED: 255; } /** @deprecated */ declare var PerformanceNavigation: { - prototype: PerformanceNavigation; - new(): PerformanceNavigation; - readonly TYPE_NAVIGATE: 0; - readonly TYPE_RELOAD: 1; - readonly TYPE_BACK_FORWARD: 2; - readonly TYPE_RESERVED: 255; + prototype: PerformanceNavigation; + new (): PerformanceNavigation; + readonly TYPE_NAVIGATE: 0; + readonly TYPE_RELOAD: 1; + readonly TYPE_BACK_FORWARD: 2; + readonly TYPE_RESERVED: 255; }; /** @@ -17759,74 +20688,73 @@ declare var PerformanceNavigation: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming) */ interface PerformanceNavigationTiming extends PerformanceResourceTiming { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domComplete) */ - readonly domComplete: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventEnd) */ - readonly domContentLoadedEventEnd: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventStart) */ - readonly domContentLoadedEventStart: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domInteractive) */ - readonly domInteractive: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/loadEventEnd) */ - readonly loadEventEnd: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/loadEventStart) */ - readonly loadEventStart: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/redirectCount) */ - readonly redirectCount: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/type) */ - readonly type: NavigationTimingType; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventEnd) */ - readonly unloadEventEnd: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventStart) */ - readonly unloadEventStart: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/toJSON) */ - toJSON(): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domComplete) */ + readonly domComplete: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventEnd) */ + readonly domContentLoadedEventEnd: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventStart) */ + readonly domContentLoadedEventStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domInteractive) */ + readonly domInteractive: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/loadEventEnd) */ + readonly loadEventEnd: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/loadEventStart) */ + readonly loadEventStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/redirectCount) */ + readonly redirectCount: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/type) */ + readonly type: NavigationTimingType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventEnd) */ + readonly unloadEventEnd: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventStart) */ + readonly unloadEventStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/toJSON) */ + toJSON(): any; } declare var PerformanceNavigationTiming: { - prototype: PerformanceNavigationTiming; - new(): PerformanceNavigationTiming; + prototype: PerformanceNavigationTiming; + new (): PerformanceNavigationTiming; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver) */ interface PerformanceObserver { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/disconnect) */ - disconnect(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/observe) */ - observe(options?: PerformanceObserverInit): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/takeRecords) */ - takeRecords(): PerformanceEntryList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/disconnect) */ + disconnect(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/observe) */ + observe(options?: PerformanceObserverInit): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/takeRecords) */ + takeRecords(): PerformanceEntryList; } declare var PerformanceObserver: { - prototype: PerformanceObserver; - new(callback: PerformanceObserverCallback): PerformanceObserver; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes_static) */ - readonly supportedEntryTypes: ReadonlyArray; + prototype: PerformanceObserver; + new (callback: PerformanceObserverCallback): PerformanceObserver; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes_static) */ + readonly supportedEntryTypes: ReadonlyArray; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList) */ interface PerformanceObserverEntryList { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntries) */ - getEntries(): PerformanceEntryList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */ - getEntriesByName(name: string, type?: string): PerformanceEntryList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */ - getEntriesByType(type: string): PerformanceEntryList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntries) */ + getEntries(): PerformanceEntryList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */ + getEntriesByName(name: string, type?: string): PerformanceEntryList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */ + getEntriesByType(type: string): PerformanceEntryList; } declare var PerformanceObserverEntryList: { - prototype: PerformanceObserverEntryList; - new(): PerformanceObserverEntryList; + prototype: PerformanceObserverEntryList; + new (): PerformanceObserverEntryList; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformancePaintTiming) */ -interface PerformancePaintTiming extends PerformanceEntry { -} +interface PerformancePaintTiming extends PerformanceEntry {} declare var PerformancePaintTiming: { - prototype: PerformancePaintTiming; - new(): PerformancePaintTiming; + prototype: PerformancePaintTiming; + new (): PerformancePaintTiming; }; /** @@ -17835,68 +20763,68 @@ declare var PerformancePaintTiming: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming) */ interface PerformanceResourceTiming extends PerformanceEntry { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectEnd) */ - readonly connectEnd: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ - readonly connectStart: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */ - readonly decodedBodySize: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupEnd) */ - readonly domainLookupEnd: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupStart) */ - readonly domainLookupStart: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/encodedBodySize) */ - readonly encodedBodySize: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */ - readonly fetchStart: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/initiatorType) */ - readonly initiatorType: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/nextHopProtocol) */ - readonly nextHopProtocol: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectEnd) */ - readonly redirectEnd: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectStart) */ - readonly redirectStart: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart) */ - readonly requestStart: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseEnd) */ - readonly responseEnd: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStart) */ - readonly responseStart: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStatus) */ - readonly responseStatus: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/secureConnectionStart) */ - readonly secureConnectionStart: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/serverTiming) */ - readonly serverTiming: ReadonlyArray; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ - readonly transferSize: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/workerStart) */ - readonly workerStart: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) */ - toJSON(): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectEnd) */ + readonly connectEnd: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ + readonly connectStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */ + readonly decodedBodySize: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupEnd) */ + readonly domainLookupEnd: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupStart) */ + readonly domainLookupStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/encodedBodySize) */ + readonly encodedBodySize: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */ + readonly fetchStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/initiatorType) */ + readonly initiatorType: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/nextHopProtocol) */ + readonly nextHopProtocol: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectEnd) */ + readonly redirectEnd: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectStart) */ + readonly redirectStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart) */ + readonly requestStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseEnd) */ + readonly responseEnd: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStart) */ + readonly responseStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStatus) */ + readonly responseStatus: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/secureConnectionStart) */ + readonly secureConnectionStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/serverTiming) */ + readonly serverTiming: ReadonlyArray; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */ + readonly transferSize: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/workerStart) */ + readonly workerStart: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) */ + toJSON(): any; } declare var PerformanceResourceTiming: { - prototype: PerformanceResourceTiming; - new(): PerformanceResourceTiming; + prototype: PerformanceResourceTiming; + new (): PerformanceResourceTiming; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming) */ interface PerformanceServerTiming { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/description) */ - readonly description: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/duration) */ - readonly duration: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/name) */ - readonly name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) */ - toJSON(): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/description) */ + readonly description: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/duration) */ + readonly duration: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) */ + toJSON(): any; } declare var PerformanceServerTiming: { - prototype: PerformanceServerTiming; - new(): PerformanceServerTiming; + prototype: PerformanceServerTiming; + new (): PerformanceServerTiming; }; /** @@ -17906,144 +20834,144 @@ declare var PerformanceServerTiming: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming) */ interface PerformanceTiming { - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/connectEnd) - */ - readonly connectEnd: number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/connectStart) - */ - readonly connectStart: number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domComplete) - */ - readonly domComplete: number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domContentLoadedEventEnd) - */ - readonly domContentLoadedEventEnd: number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domContentLoadedEventStart) - */ - readonly domContentLoadedEventStart: number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domInteractive) - */ - readonly domInteractive: number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domLoading) - */ - readonly domLoading: number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domainLookupEnd) - */ - readonly domainLookupEnd: number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domainLookupStart) - */ - readonly domainLookupStart: number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/fetchStart) - */ - readonly fetchStart: number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/loadEventEnd) - */ - readonly loadEventEnd: number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/loadEventStart) - */ - readonly loadEventStart: number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/navigationStart) - */ - readonly navigationStart: number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/redirectEnd) - */ - readonly redirectEnd: number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/redirectStart) - */ - readonly redirectStart: number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/requestStart) - */ - readonly requestStart: number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/responseEnd) - */ - readonly responseEnd: number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/responseStart) - */ - readonly responseStart: number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/secureConnectionStart) - */ - readonly secureConnectionStart: number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/unloadEventEnd) - */ - readonly unloadEventEnd: number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/unloadEventStart) - */ - readonly unloadEventStart: number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/toJSON) - */ - toJSON(): any; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/connectEnd) + */ + readonly connectEnd: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/connectStart) + */ + readonly connectStart: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domComplete) + */ + readonly domComplete: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domContentLoadedEventEnd) + */ + readonly domContentLoadedEventEnd: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domContentLoadedEventStart) + */ + readonly domContentLoadedEventStart: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domInteractive) + */ + readonly domInteractive: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domLoading) + */ + readonly domLoading: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domainLookupEnd) + */ + readonly domainLookupEnd: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domainLookupStart) + */ + readonly domainLookupStart: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/fetchStart) + */ + readonly fetchStart: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/loadEventEnd) + */ + readonly loadEventEnd: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/loadEventStart) + */ + readonly loadEventStart: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/navigationStart) + */ + readonly navigationStart: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/redirectEnd) + */ + readonly redirectEnd: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/redirectStart) + */ + readonly redirectStart: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/requestStart) + */ + readonly requestStart: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/responseEnd) + */ + readonly responseEnd: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/responseStart) + */ + readonly responseStart: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/secureConnectionStart) + */ + readonly secureConnectionStart: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/unloadEventEnd) + */ + readonly unloadEventEnd: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/unloadEventStart) + */ + readonly unloadEventStart: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/toJSON) + */ + toJSON(): any; } /** @deprecated */ declare var PerformanceTiming: { - prototype: PerformanceTiming; - new(): PerformanceTiming; + prototype: PerformanceTiming; + new (): PerformanceTiming; }; /** @@ -18051,80 +20979,120 @@ declare var PerformanceTiming: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PeriodicWave) */ -interface PeriodicWave { -} +interface PeriodicWave {} declare var PeriodicWave: { - prototype: PeriodicWave; - new(context: BaseAudioContext, options?: PeriodicWaveOptions): PeriodicWave; + prototype: PeriodicWave; + new (context: BaseAudioContext, options?: PeriodicWaveOptions): PeriodicWave; }; interface PermissionStatusEventMap { - "change": Event; + change: Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus) */ interface PermissionStatus extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/name) */ - readonly name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/change_event) */ - onchange: ((this: PermissionStatus, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/state) */ - readonly state: PermissionState; - addEventListener(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/change_event) */ + onchange: ((this: PermissionStatus, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/state) */ + readonly state: PermissionState; + addEventListener( + type: K, + listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var PermissionStatus: { - prototype: PermissionStatus; - new(): PermissionStatus; + prototype: PermissionStatus; + new (): PermissionStatus; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions) */ interface Permissions { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions/query) */ - query(permissionDesc: PermissionDescriptor): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions/query) */ + query(permissionDesc: PermissionDescriptor): Promise; } declare var Permissions: { - prototype: Permissions; - new(): Permissions; + prototype: Permissions; + new (): Permissions; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureEvent) */ interface PictureInPictureEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureEvent/pictureInPictureWindow) */ - readonly pictureInPictureWindow: PictureInPictureWindow; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureEvent/pictureInPictureWindow) */ + readonly pictureInPictureWindow: PictureInPictureWindow; } declare var PictureInPictureEvent: { - prototype: PictureInPictureEvent; - new(type: string, eventInitDict: PictureInPictureEventInit): PictureInPictureEvent; + prototype: PictureInPictureEvent; + new ( + type: string, + eventInitDict: PictureInPictureEventInit, + ): PictureInPictureEvent; }; interface PictureInPictureWindowEventMap { - "resize": Event; + resize: Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow) */ interface PictureInPictureWindow extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/height) */ - readonly height: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/resize_event) */ - onresize: ((this: PictureInPictureWindow, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/width) */ - readonly width: number; - addEventListener(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/height) */ + readonly height: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/resize_event) */ + onresize: ((this: PictureInPictureWindow, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/width) */ + readonly width: number; + addEventListener( + type: K, + listener: ( + this: PictureInPictureWindow, + ev: PictureInPictureWindowEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: PictureInPictureWindow, + ev: PictureInPictureWindowEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var PictureInPictureWindow: { - prototype: PictureInPictureWindow; - new(): PictureInPictureWindow; + prototype: PictureInPictureWindow; + new (): PictureInPictureWindow; }; /** @@ -18134,40 +21102,40 @@ declare var PictureInPictureWindow: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin) */ interface Plugin { - /** - * Returns the plugin's description. - * @deprecated - */ - readonly description: string; - /** - * Returns the plugin library's filename, if applicable on the current platform. - * @deprecated - */ - readonly filename: string; - /** - * Returns the number of MIME types, represented by MimeType objects, supported by the plugin. - * @deprecated - */ - readonly length: number; - /** - * Returns the plugin's name. - * @deprecated - */ - readonly name: string; - /** - * Returns the specified MimeType object. - * @deprecated - */ - item(index: number): MimeType | null; - /** @deprecated */ - namedItem(name: string): MimeType | null; - [index: number]: MimeType; + /** + * Returns the plugin's description. + * @deprecated + */ + readonly description: string; + /** + * Returns the plugin library's filename, if applicable on the current platform. + * @deprecated + */ + readonly filename: string; + /** + * Returns the number of MIME types, represented by MimeType objects, supported by the plugin. + * @deprecated + */ + readonly length: number; + /** + * Returns the plugin's name. + * @deprecated + */ + readonly name: string; + /** + * Returns the specified MimeType object. + * @deprecated + */ + item(index: number): MimeType | null; + /** @deprecated */ + namedItem(name: string): MimeType | null; + [index: number]: MimeType; } /** @deprecated */ declare var Plugin: { - prototype: Plugin; - new(): Plugin; + prototype: Plugin; + new (): Plugin; }; /** @@ -18177,21 +21145,21 @@ declare var Plugin: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray) */ interface PluginArray { - /** @deprecated */ - readonly length: number; - /** @deprecated */ - item(index: number): Plugin | null; - /** @deprecated */ - namedItem(name: string): Plugin | null; - /** @deprecated */ - refresh(): void; - [index: number]: Plugin; + /** @deprecated */ + readonly length: number; + /** @deprecated */ + item(index: number): Plugin | null; + /** @deprecated */ + namedItem(name: string): Plugin | null; + /** @deprecated */ + refresh(): void; + [index: number]: Plugin; } /** @deprecated */ declare var PluginArray: { - prototype: PluginArray; - new(): PluginArray; + prototype: PluginArray; + new (): PluginArray; }; /** @@ -18200,43 +21168,43 @@ declare var PluginArray: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent) */ interface PointerEvent extends MouseEvent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/altitudeAngle) */ - readonly altitudeAngle: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/azimuthAngle) */ - readonly azimuthAngle: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/height) */ - readonly height: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/isPrimary) */ - readonly isPrimary: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pointerId) */ - readonly pointerId: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pointerType) */ - readonly pointerType: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pressure) */ - readonly pressure: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tangentialPressure) */ - readonly tangentialPressure: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tiltX) */ - readonly tiltX: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tiltY) */ - readonly tiltY: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/twist) */ - readonly twist: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/width) */ - readonly width: number; - /** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/getCoalescedEvents) - */ - getCoalescedEvents(): PointerEvent[]; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/getPredictedEvents) */ - getPredictedEvents(): PointerEvent[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/altitudeAngle) */ + readonly altitudeAngle: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/azimuthAngle) */ + readonly azimuthAngle: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/height) */ + readonly height: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/isPrimary) */ + readonly isPrimary: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pointerId) */ + readonly pointerId: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pointerType) */ + readonly pointerType: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pressure) */ + readonly pressure: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tangentialPressure) */ + readonly tangentialPressure: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tiltX) */ + readonly tiltX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tiltY) */ + readonly tiltY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/twist) */ + readonly twist: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/width) */ + readonly width: number; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/getCoalescedEvents) + */ + getCoalescedEvents(): PointerEvent[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/getPredictedEvents) */ + getPredictedEvents(): PointerEvent[]; } declare var PointerEvent: { - prototype: PointerEvent; - new(type: string, eventInitDict?: PointerEventInit): PointerEvent; + prototype: PointerEvent; + new (type: string, eventInitDict?: PointerEventInit): PointerEvent; }; /** @@ -18245,25 +21213,25 @@ declare var PointerEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent) */ interface PopStateEvent extends Event { - readonly hasUAVisualTransition: boolean; - /** - * Returns a copy of the information that was provided to pushState() or replaceState(). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent/state) - */ - readonly state: any; + readonly hasUAVisualTransition: boolean; + /** + * Returns a copy of the information that was provided to pushState() or replaceState(). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent/state) + */ + readonly state: any; } declare var PopStateEvent: { - prototype: PopStateEvent; - new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent; + prototype: PopStateEvent; + new (type: string, eventInitDict?: PopStateEventInit): PopStateEvent; }; interface PopoverInvokerElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/popoverTargetAction) */ - popoverTargetAction: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/popoverTargetElement) */ - popoverTargetElement: Element | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/popoverTargetAction) */ + popoverTargetAction: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/popoverTargetElement) */ + popoverTargetElement: Element | null; } /** @@ -18272,14 +21240,14 @@ interface PopoverInvokerElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction) */ interface ProcessingInstruction extends CharacterData, LinkStyle { - readonly ownerDocument: Document; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction/target) */ - readonly target: string; + readonly ownerDocument: Document; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction/target) */ + readonly target: string; } declare var ProcessingInstruction: { - prototype: ProcessingInstruction; - new(): ProcessingInstruction; + prototype: ProcessingInstruction; + new (): ProcessingInstruction; }; /** @@ -18288,31 +21256,34 @@ declare var ProcessingInstruction: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent) */ interface ProgressEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/lengthComputable) */ - readonly lengthComputable: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded) */ - readonly loaded: number; - readonly target: T | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total) */ - readonly total: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/lengthComputable) */ + readonly lengthComputable: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded) */ + readonly loaded: number; + readonly target: T | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total) */ + readonly total: number; } declare var ProgressEvent: { - prototype: ProgressEvent; - new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent; + prototype: ProgressEvent; + new (type: string, eventInitDict?: ProgressEventInit): ProgressEvent; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent) */ interface PromiseRejectionEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise) */ - readonly promise: Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason) */ - readonly reason: any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise) */ + readonly promise: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason) */ + readonly reason: any; } declare var PromiseRejectionEvent: { - prototype: PromiseRejectionEvent; - new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent; + prototype: PromiseRejectionEvent; + new ( + type: string, + eventInitDict: PromiseRejectionEventInit, + ): PromiseRejectionEvent; }; /** @@ -18321,29 +21292,33 @@ declare var PromiseRejectionEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential) */ interface PublicKeyCredential extends Credential { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/authenticatorAttachment) */ - readonly authenticatorAttachment: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/rawId) */ - readonly rawId: ArrayBuffer; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/response) */ - readonly response: AuthenticatorResponse; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/getClientExtensionResults) */ - getClientExtensionResults(): AuthenticationExtensionsClientOutputs; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/toJSON) */ - toJSON(): PublicKeyCredentialJSON; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/authenticatorAttachment) */ + readonly authenticatorAttachment: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/rawId) */ + readonly rawId: ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/response) */ + readonly response: AuthenticatorResponse; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/getClientExtensionResults) */ + getClientExtensionResults(): AuthenticationExtensionsClientOutputs; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/toJSON) */ + toJSON(): PublicKeyCredentialJSON; } declare var PublicKeyCredential: { - prototype: PublicKeyCredential; - new(): PublicKeyCredential; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isConditionalMediationAvailable_static) */ - isConditionalMediationAvailable(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isUserVerifyingPlatformAuthenticatorAvailable_static) */ - isUserVerifyingPlatformAuthenticatorAvailable(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseCreationOptionsFromJSON_static) */ - parseCreationOptionsFromJSON(options: PublicKeyCredentialCreationOptionsJSON): PublicKeyCredentialCreationOptions; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseRequestOptionsFromJSON_static) */ - parseRequestOptionsFromJSON(options: PublicKeyCredentialRequestOptionsJSON): PublicKeyCredentialRequestOptions; + prototype: PublicKeyCredential; + new (): PublicKeyCredential; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isConditionalMediationAvailable_static) */ + isConditionalMediationAvailable(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isUserVerifyingPlatformAuthenticatorAvailable_static) */ + isUserVerifyingPlatformAuthenticatorAvailable(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseCreationOptionsFromJSON_static) */ + parseCreationOptionsFromJSON( + options: PublicKeyCredentialCreationOptionsJSON, + ): PublicKeyCredentialCreationOptions; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseRequestOptionsFromJSON_static) */ + parseRequestOptionsFromJSON( + options: PublicKeyCredentialRequestOptionsJSON, + ): PublicKeyCredentialRequestOptions; }; /** @@ -18353,19 +21328,21 @@ declare var PublicKeyCredential: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager) */ interface PushManager { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/getSubscription) */ - getSubscription(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/permissionState) */ - permissionState(options?: PushSubscriptionOptionsInit): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/subscribe) */ - subscribe(options?: PushSubscriptionOptionsInit): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/getSubscription) */ + getSubscription(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/permissionState) */ + permissionState( + options?: PushSubscriptionOptionsInit, + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/subscribe) */ + subscribe(options?: PushSubscriptionOptionsInit): Promise; } declare var PushManager: { - prototype: PushManager; - new(): PushManager; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings_static) */ - readonly supportedContentEncodings: ReadonlyArray; + prototype: PushManager; + new (): PushManager; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings_static) */ + readonly supportedContentEncodings: ReadonlyArray; }; /** @@ -18375,23 +21352,23 @@ declare var PushManager: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription) */ interface PushSubscription { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/endpoint) */ - readonly endpoint: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/expirationTime) */ - readonly expirationTime: EpochTimeStamp | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/options) */ - readonly options: PushSubscriptionOptions; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/getKey) */ - getKey(name: PushEncryptionKeyName): ArrayBuffer | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/toJSON) */ - toJSON(): PushSubscriptionJSON; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/unsubscribe) */ - unsubscribe(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/endpoint) */ + readonly endpoint: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/expirationTime) */ + readonly expirationTime: EpochTimeStamp | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/options) */ + readonly options: PushSubscriptionOptions; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/getKey) */ + getKey(name: PushEncryptionKeyName): ArrayBuffer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/toJSON) */ + toJSON(): PushSubscriptionJSON; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/unsubscribe) */ + unsubscribe(): Promise; } declare var PushSubscription: { - prototype: PushSubscription; - new(): PushSubscription; + prototype: PushSubscription; + new (): PushSubscription; }; /** @@ -18400,53 +21377,71 @@ declare var PushSubscription: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions) */ interface PushSubscriptionOptions { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/applicationServerKey) */ - readonly applicationServerKey: ArrayBuffer | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/userVisibleOnly) */ - readonly userVisibleOnly: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/applicationServerKey) */ + readonly applicationServerKey: ArrayBuffer | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/userVisibleOnly) */ + readonly userVisibleOnly: boolean; } declare var PushSubscriptionOptions: { - prototype: PushSubscriptionOptions; - new(): PushSubscriptionOptions; + prototype: PushSubscriptionOptions; + new (): PushSubscriptionOptions; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate) */ interface RTCCertificate { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate/expires) */ - readonly expires: EpochTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate/getFingerprints) */ - getFingerprints(): RTCDtlsFingerprint[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate/expires) */ + readonly expires: EpochTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate/getFingerprints) */ + getFingerprints(): RTCDtlsFingerprint[]; } declare var RTCCertificate: { - prototype: RTCCertificate; - new(): RTCCertificate; + prototype: RTCCertificate; + new (): RTCCertificate; }; interface RTCDTMFSenderEventMap { - "tonechange": RTCDTMFToneChangeEvent; + tonechange: RTCDTMFToneChangeEvent; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender) */ interface RTCDTMFSender extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/canInsertDTMF) */ - readonly canInsertDTMF: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/tonechange_event) */ - ontonechange: ((this: RTCDTMFSender, ev: RTCDTMFToneChangeEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/toneBuffer) */ - readonly toneBuffer: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/insertDTMF) */ - insertDTMF(tones: string, duration?: number, interToneGap?: number): void; - addEventListener(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/canInsertDTMF) */ + readonly canInsertDTMF: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/tonechange_event) */ + ontonechange: + | ((this: RTCDTMFSender, ev: RTCDTMFToneChangeEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/toneBuffer) */ + readonly toneBuffer: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/insertDTMF) */ + insertDTMF(tones: string, duration?: number, interToneGap?: number): void; + addEventListener( + type: K, + listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var RTCDTMFSender: { - prototype: RTCDTMFSender; - new(): RTCDTMFSender; + prototype: RTCDTMFSender; + new (): RTCDTMFSender; }; /** @@ -18455,175 +21450,213 @@ declare var RTCDTMFSender: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFToneChangeEvent) */ interface RTCDTMFToneChangeEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFToneChangeEvent/tone) */ - readonly tone: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFToneChangeEvent/tone) */ + readonly tone: string; } declare var RTCDTMFToneChangeEvent: { - prototype: RTCDTMFToneChangeEvent; - new(type: string, eventInitDict?: RTCDTMFToneChangeEventInit): RTCDTMFToneChangeEvent; + prototype: RTCDTMFToneChangeEvent; + new ( + type: string, + eventInitDict?: RTCDTMFToneChangeEventInit, + ): RTCDTMFToneChangeEvent; }; interface RTCDataChannelEventMap { - "bufferedamountlow": Event; - "close": Event; - "closing": Event; - "error": RTCErrorEvent; - "message": MessageEvent; - "open": Event; + bufferedamountlow: Event; + close: Event; + closing: Event; + error: RTCErrorEvent; + message: MessageEvent; + open: Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel) */ interface RTCDataChannel extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/binaryType) */ - binaryType: BinaryType; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmount) */ - readonly bufferedAmount: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmountLowThreshold) */ - bufferedAmountLowThreshold: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/id) */ - readonly id: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/label) */ - readonly label: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxPacketLifeTime) */ - readonly maxPacketLifeTime: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxRetransmits) */ - readonly maxRetransmits: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/negotiated) */ - readonly negotiated: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedamountlow_event) */ - onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close_event) */ - onclose: ((this: RTCDataChannel, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/closing_event) */ - onclosing: ((this: RTCDataChannel, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/error_event) */ - onerror: ((this: RTCDataChannel, ev: RTCErrorEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/message_event) */ - onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/open_event) */ - onopen: ((this: RTCDataChannel, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/ordered) */ - readonly ordered: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/protocol) */ - readonly protocol: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/readyState) */ - readonly readyState: RTCDataChannelState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close) */ - close(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/send) */ - send(data: string): void; - send(data: Blob): void; - send(data: ArrayBuffer): void; - send(data: ArrayBufferView): void; - addEventListener(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/binaryType) */ + binaryType: BinaryType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmount) */ + readonly bufferedAmount: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmountLowThreshold) */ + bufferedAmountLowThreshold: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/id) */ + readonly id: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/label) */ + readonly label: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxPacketLifeTime) */ + readonly maxPacketLifeTime: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxRetransmits) */ + readonly maxRetransmits: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/negotiated) */ + readonly negotiated: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedamountlow_event) */ + onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close_event) */ + onclose: ((this: RTCDataChannel, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/closing_event) */ + onclosing: ((this: RTCDataChannel, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/error_event) */ + onerror: ((this: RTCDataChannel, ev: RTCErrorEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/message_event) */ + onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/open_event) */ + onopen: ((this: RTCDataChannel, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/ordered) */ + readonly ordered: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/protocol) */ + readonly protocol: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/readyState) */ + readonly readyState: RTCDataChannelState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close) */ + close(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/send) */ + send(data: string): void; + send(data: Blob): void; + send(data: ArrayBuffer): void; + send(data: ArrayBufferView): void; + addEventListener( + type: K, + listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var RTCDataChannel: { - prototype: RTCDataChannel; - new(): RTCDataChannel; + prototype: RTCDataChannel; + new (): RTCDataChannel; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannelEvent) */ interface RTCDataChannelEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannelEvent/channel) */ - readonly channel: RTCDataChannel; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannelEvent/channel) */ + readonly channel: RTCDataChannel; } declare var RTCDataChannelEvent: { - prototype: RTCDataChannelEvent; - new(type: string, eventInitDict: RTCDataChannelEventInit): RTCDataChannelEvent; + prototype: RTCDataChannelEvent; + new ( + type: string, + eventInitDict: RTCDataChannelEventInit, + ): RTCDataChannelEvent; }; interface RTCDtlsTransportEventMap { - "error": RTCErrorEvent; - "statechange": Event; + error: RTCErrorEvent; + statechange: Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport) */ interface RTCDtlsTransport extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/iceTransport) */ - readonly iceTransport: RTCIceTransport; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/error_event) */ - onerror: ((this: RTCDtlsTransport, ev: RTCErrorEvent) => any) | null; - onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state) */ - readonly state: RTCDtlsTransportState; - getRemoteCertificates(): ArrayBuffer[]; - addEventListener(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/iceTransport) */ + readonly iceTransport: RTCIceTransport; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/error_event) */ + onerror: ((this: RTCDtlsTransport, ev: RTCErrorEvent) => any) | null; + onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state) */ + readonly state: RTCDtlsTransportState; + getRemoteCertificates(): ArrayBuffer[]; + addEventListener( + type: K, + listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var RTCDtlsTransport: { - prototype: RTCDtlsTransport; - new(): RTCDtlsTransport; + prototype: RTCDtlsTransport; + new (): RTCDtlsTransport; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame) */ interface RTCEncodedAudioFrame { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data) */ - data: ArrayBuffer; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp) */ - readonly timestamp: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/getMetadata) */ - getMetadata(): RTCEncodedAudioFrameMetadata; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data) */ + data: ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp) */ + readonly timestamp: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/getMetadata) */ + getMetadata(): RTCEncodedAudioFrameMetadata; } declare var RTCEncodedAudioFrame: { - prototype: RTCEncodedAudioFrame; - new(): RTCEncodedAudioFrame; + prototype: RTCEncodedAudioFrame; + new (): RTCEncodedAudioFrame; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame) */ interface RTCEncodedVideoFrame { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/data) */ - data: ArrayBuffer; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp) */ - readonly timestamp: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type) */ - readonly type: RTCEncodedVideoFrameType; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/getMetadata) */ - getMetadata(): RTCEncodedVideoFrameMetadata; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/data) */ + data: ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp) */ + readonly timestamp: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type) */ + readonly type: RTCEncodedVideoFrameType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/getMetadata) */ + getMetadata(): RTCEncodedVideoFrameMetadata; } declare var RTCEncodedVideoFrame: { - prototype: RTCEncodedVideoFrame; - new(): RTCEncodedVideoFrame; + prototype: RTCEncodedVideoFrame; + new (): RTCEncodedVideoFrame; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError) */ interface RTCError extends DOMException { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/errorDetail) */ - readonly errorDetail: RTCErrorDetailType; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/receivedAlert) */ - readonly receivedAlert: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sctpCauseCode) */ - readonly sctpCauseCode: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sdpLineNumber) */ - readonly sdpLineNumber: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sentAlert) */ - readonly sentAlert: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/errorDetail) */ + readonly errorDetail: RTCErrorDetailType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/receivedAlert) */ + readonly receivedAlert: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sctpCauseCode) */ + readonly sctpCauseCode: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sdpLineNumber) */ + readonly sdpLineNumber: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sentAlert) */ + readonly sentAlert: number | null; } declare var RTCError: { - prototype: RTCError; - new(init: RTCErrorInit, message?: string): RTCError; + prototype: RTCError; + new (init: RTCErrorInit, message?: string): RTCError; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCErrorEvent) */ interface RTCErrorEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCErrorEvent/error) */ - readonly error: RTCError; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCErrorEvent/error) */ + readonly error: RTCError; } declare var RTCErrorEvent: { - prototype: RTCErrorEvent; - new(type: string, eventInitDict: RTCErrorEventInit): RTCErrorEvent; + prototype: RTCErrorEvent; + new (type: string, eventInitDict: RTCErrorEventInit): RTCErrorEvent; }; /** @@ -18632,52 +21665,52 @@ declare var RTCErrorEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate) */ interface RTCIceCandidate { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/address) */ - readonly address: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/candidate) */ - readonly candidate: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/component) */ - readonly component: RTCIceComponent | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/foundation) */ - readonly foundation: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/port) */ - readonly port: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/priority) */ - readonly priority: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/protocol) */ - readonly protocol: RTCIceProtocol | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/relatedAddress) */ - readonly relatedAddress: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/relatedPort) */ - readonly relatedPort: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/sdpMLineIndex) */ - readonly sdpMLineIndex: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/sdpMid) */ - readonly sdpMid: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/tcpType) */ - readonly tcpType: RTCIceTcpCandidateType | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/type) */ - readonly type: RTCIceCandidateType | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/usernameFragment) */ - readonly usernameFragment: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/toJSON) */ - toJSON(): RTCIceCandidateInit; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/address) */ + readonly address: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/candidate) */ + readonly candidate: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/component) */ + readonly component: RTCIceComponent | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/foundation) */ + readonly foundation: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/port) */ + readonly port: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/priority) */ + readonly priority: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/protocol) */ + readonly protocol: RTCIceProtocol | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/relatedAddress) */ + readonly relatedAddress: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/relatedPort) */ + readonly relatedPort: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/sdpMLineIndex) */ + readonly sdpMLineIndex: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/sdpMid) */ + readonly sdpMid: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/tcpType) */ + readonly tcpType: RTCIceTcpCandidateType | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/type) */ + readonly type: RTCIceCandidateType | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/usernameFragment) */ + readonly usernameFragment: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/toJSON) */ + toJSON(): RTCIceCandidateInit; } declare var RTCIceCandidate: { - prototype: RTCIceCandidate; - new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate; + prototype: RTCIceCandidate; + new (candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate; }; interface RTCIceCandidatePair { - local: RTCIceCandidate; - remote: RTCIceCandidate; + local: RTCIceCandidate; + remote: RTCIceCandidate; } interface RTCIceTransportEventMap { - "gatheringstatechange": Event; - "selectedcandidatepairchange": Event; - "statechange": Event; + gatheringstatechange: Event; + selectedcandidatepairchange: Event; + statechange: Event; } /** @@ -18686,39 +21719,57 @@ interface RTCIceTransportEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport) */ interface RTCIceTransport extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/gatheringState) */ - readonly gatheringState: RTCIceGathererState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/gatheringstatechange_event) */ - ongatheringstatechange: ((this: RTCIceTransport, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/selectedcandidatepairchange_event) */ - onselectedcandidatepairchange: ((this: RTCIceTransport, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/statechange_event) */ - onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/state) */ - readonly state: RTCIceTransportState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/getSelectedCandidatePair) */ - getSelectedCandidatePair(): RTCIceCandidatePair | null; - addEventListener(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/gatheringState) */ + readonly gatheringState: RTCIceGathererState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/gatheringstatechange_event) */ + ongatheringstatechange: ((this: RTCIceTransport, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/selectedcandidatepairchange_event) */ + onselectedcandidatepairchange: + | ((this: RTCIceTransport, ev: Event) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/statechange_event) */ + onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/state) */ + readonly state: RTCIceTransportState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/getSelectedCandidatePair) */ + getSelectedCandidatePair(): RTCIceCandidatePair | null; + addEventListener( + type: K, + listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var RTCIceTransport: { - prototype: RTCIceTransport; - new(): RTCIceTransport; + prototype: RTCIceTransport; + new (): RTCIceTransport; }; interface RTCPeerConnectionEventMap { - "connectionstatechange": Event; - "datachannel": RTCDataChannelEvent; - "icecandidate": RTCPeerConnectionIceEvent; - "icecandidateerror": RTCPeerConnectionIceErrorEvent; - "iceconnectionstatechange": Event; - "icegatheringstatechange": Event; - "negotiationneeded": Event; - "signalingstatechange": Event; - "track": RTCTrackEvent; + connectionstatechange: Event; + datachannel: RTCDataChannelEvent; + icecandidate: RTCPeerConnectionIceEvent; + icecandidateerror: RTCPeerConnectionIceErrorEvent; + iceconnectionstatechange: Event; + icegatheringstatechange: Event; + negotiationneeded: Event; + signalingstatechange: Event; + track: RTCTrackEvent; } /** @@ -18727,118 +21778,182 @@ interface RTCPeerConnectionEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection) */ interface RTCPeerConnection extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/canTrickleIceCandidates) */ - readonly canTrickleIceCandidates: boolean | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/connectionState) */ - readonly connectionState: RTCPeerConnectionState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/currentLocalDescription) */ - readonly currentLocalDescription: RTCSessionDescription | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/currentRemoteDescription) */ - readonly currentRemoteDescription: RTCSessionDescription | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceConnectionState) */ - readonly iceConnectionState: RTCIceConnectionState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceGatheringState) */ - readonly iceGatheringState: RTCIceGatheringState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/localDescription) */ - readonly localDescription: RTCSessionDescription | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/connectionstatechange_event) */ - onconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/datachannel_event) */ - ondatachannel: ((this: RTCPeerConnection, ev: RTCDataChannelEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icecandidate_event) */ - onicecandidate: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icecandidateerror_event) */ - onicecandidateerror: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceErrorEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceconnectionstatechange_event) */ - oniceconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icegatheringstatechange_event) */ - onicegatheringstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/negotiationneeded_event) */ - onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/signalingstatechange_event) */ - onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/track_event) */ - ontrack: ((this: RTCPeerConnection, ev: RTCTrackEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/pendingLocalDescription) */ - readonly pendingLocalDescription: RTCSessionDescription | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/pendingRemoteDescription) */ - readonly pendingRemoteDescription: RTCSessionDescription | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/remoteDescription) */ - readonly remoteDescription: RTCSessionDescription | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/sctp) */ - readonly sctp: RTCSctpTransport | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/signalingState) */ - readonly signalingState: RTCSignalingState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addIceCandidate) */ - addIceCandidate(candidate?: RTCIceCandidateInit | null): Promise; - /** @deprecated */ - addIceCandidate(candidate: RTCIceCandidateInit | null, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addTrack) */ - addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addTransceiver) */ - addTransceiver(trackOrKind: MediaStreamTrack | string, init?: RTCRtpTransceiverInit): RTCRtpTransceiver; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/close) */ - close(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createAnswer) */ - createAnswer(options?: RTCAnswerOptions): Promise; - /** @deprecated */ - createAnswer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createDataChannel) */ - createDataChannel(label: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createOffer) */ - createOffer(options?: RTCOfferOptions): Promise; - /** @deprecated */ - createOffer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback, options?: RTCOfferOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getConfiguration) */ - getConfiguration(): RTCConfiguration; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getReceivers) */ - getReceivers(): RTCRtpReceiver[]; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getSenders) */ - getSenders(): RTCRtpSender[]; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getStats) */ - getStats(selector?: MediaStreamTrack | null): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getTransceivers) */ - getTransceivers(): RTCRtpTransceiver[]; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/removeTrack) */ - removeTrack(sender: RTCRtpSender): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/restartIce) */ - restartIce(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setConfiguration) */ - setConfiguration(configuration?: RTCConfiguration): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setLocalDescription) */ - setLocalDescription(description?: RTCLocalSessionDescriptionInit): Promise; - /** @deprecated */ - setLocalDescription(description: RTCLocalSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setRemoteDescription) */ - setRemoteDescription(description: RTCSessionDescriptionInit): Promise; - /** @deprecated */ - setRemoteDescription(description: RTCSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise; - addEventListener(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/canTrickleIceCandidates) */ + readonly canTrickleIceCandidates: boolean | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/connectionState) */ + readonly connectionState: RTCPeerConnectionState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/currentLocalDescription) */ + readonly currentLocalDescription: RTCSessionDescription | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/currentRemoteDescription) */ + readonly currentRemoteDescription: RTCSessionDescription | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceConnectionState) */ + readonly iceConnectionState: RTCIceConnectionState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceGatheringState) */ + readonly iceGatheringState: RTCIceGatheringState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/localDescription) */ + readonly localDescription: RTCSessionDescription | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/connectionstatechange_event) */ + onconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/datachannel_event) */ + ondatachannel: + | ((this: RTCPeerConnection, ev: RTCDataChannelEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icecandidate_event) */ + onicecandidate: + | ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icecandidateerror_event) */ + onicecandidateerror: + | ((this: RTCPeerConnection, ev: RTCPeerConnectionIceErrorEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceconnectionstatechange_event) */ + oniceconnectionstatechange: + | ((this: RTCPeerConnection, ev: Event) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icegatheringstatechange_event) */ + onicegatheringstatechange: + | ((this: RTCPeerConnection, ev: Event) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/negotiationneeded_event) */ + onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/signalingstatechange_event) */ + onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/track_event) */ + ontrack: ((this: RTCPeerConnection, ev: RTCTrackEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/pendingLocalDescription) */ + readonly pendingLocalDescription: RTCSessionDescription | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/pendingRemoteDescription) */ + readonly pendingRemoteDescription: RTCSessionDescription | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/remoteDescription) */ + readonly remoteDescription: RTCSessionDescription | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/sctp) */ + readonly sctp: RTCSctpTransport | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/signalingState) */ + readonly signalingState: RTCSignalingState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addIceCandidate) */ + addIceCandidate(candidate?: RTCIceCandidateInit | null): Promise; + /** @deprecated */ + addIceCandidate( + candidate: RTCIceCandidateInit | null, + successCallback: VoidFunction, + failureCallback: RTCPeerConnectionErrorCallback, + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addTrack) */ + addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addTransceiver) */ + addTransceiver( + trackOrKind: MediaStreamTrack | string, + init?: RTCRtpTransceiverInit, + ): RTCRtpTransceiver; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/close) */ + close(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createAnswer) */ + createAnswer(options?: RTCAnswerOptions): Promise; + /** @deprecated */ + createAnswer( + successCallback: RTCSessionDescriptionCallback, + failureCallback: RTCPeerConnectionErrorCallback, + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createDataChannel) */ + createDataChannel( + label: string, + dataChannelDict?: RTCDataChannelInit, + ): RTCDataChannel; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createOffer) */ + createOffer(options?: RTCOfferOptions): Promise; + /** @deprecated */ + createOffer( + successCallback: RTCSessionDescriptionCallback, + failureCallback: RTCPeerConnectionErrorCallback, + options?: RTCOfferOptions, + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getConfiguration) */ + getConfiguration(): RTCConfiguration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getReceivers) */ + getReceivers(): RTCRtpReceiver[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getSenders) */ + getSenders(): RTCRtpSender[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getStats) */ + getStats(selector?: MediaStreamTrack | null): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getTransceivers) */ + getTransceivers(): RTCRtpTransceiver[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/removeTrack) */ + removeTrack(sender: RTCRtpSender): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/restartIce) */ + restartIce(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setConfiguration) */ + setConfiguration(configuration?: RTCConfiguration): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setLocalDescription) */ + setLocalDescription( + description?: RTCLocalSessionDescriptionInit, + ): Promise; + /** @deprecated */ + setLocalDescription( + description: RTCLocalSessionDescriptionInit, + successCallback: VoidFunction, + failureCallback: RTCPeerConnectionErrorCallback, + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setRemoteDescription) */ + setRemoteDescription(description: RTCSessionDescriptionInit): Promise; + /** @deprecated */ + setRemoteDescription( + description: RTCSessionDescriptionInit, + successCallback: VoidFunction, + failureCallback: RTCPeerConnectionErrorCallback, + ): Promise; + addEventListener( + type: K, + listener: ( + this: RTCPeerConnection, + ev: RTCPeerConnectionEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: RTCPeerConnection, + ev: RTCPeerConnectionEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var RTCPeerConnection: { - prototype: RTCPeerConnection; - new(configuration?: RTCConfiguration): RTCPeerConnection; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/generateCertificate_static) */ - generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise; + prototype: RTCPeerConnection; + new (configuration?: RTCConfiguration): RTCPeerConnection; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/generateCertificate_static) */ + generateCertificate( + keygenAlgorithm: AlgorithmIdentifier, + ): Promise; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent) */ interface RTCPeerConnectionIceErrorEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/address) */ - readonly address: string | null; - readonly errorCode: number; - readonly errorText: string; - readonly port: number | null; - readonly url: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/address) */ + readonly address: string | null; + readonly errorCode: number; + readonly errorText: string; + readonly port: number | null; + readonly url: string; } declare var RTCPeerConnectionIceErrorEvent: { - prototype: RTCPeerConnectionIceErrorEvent; - new(type: string, eventInitDict: RTCPeerConnectionIceErrorEventInit): RTCPeerConnectionIceErrorEvent; + prototype: RTCPeerConnectionIceErrorEvent; + new ( + type: string, + eventInitDict: RTCPeerConnectionIceErrorEventInit, + ): RTCPeerConnectionIceErrorEvent; }; /** @@ -18847,13 +21962,16 @@ declare var RTCPeerConnectionIceErrorEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceEvent) */ interface RTCPeerConnectionIceEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceEvent/candidate) */ - readonly candidate: RTCIceCandidate | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceEvent/candidate) */ + readonly candidate: RTCIceCandidate | null; } declare var RTCPeerConnectionIceEvent: { - prototype: RTCPeerConnectionIceEvent; - new(type: string, eventInitDict?: RTCPeerConnectionIceEventInit): RTCPeerConnectionIceEvent; + prototype: RTCPeerConnectionIceEvent; + new ( + type: string, + eventInitDict?: RTCPeerConnectionIceEventInit, + ): RTCPeerConnectionIceEvent; }; /** @@ -18862,38 +21980,37 @@ declare var RTCPeerConnectionIceEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver) */ interface RTCRtpReceiver { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/jitterBufferTarget) */ - jitterBufferTarget: DOMHighResTimeStamp | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/track) */ - readonly track: MediaStreamTrack; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transform) */ - transform: RTCRtpTransform | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transport) */ - readonly transport: RTCDtlsTransport | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getContributingSources) */ - getContributingSources(): RTCRtpContributingSource[]; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getParameters) */ - getParameters(): RTCRtpReceiveParameters; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getStats) */ - getStats(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getSynchronizationSources) */ - getSynchronizationSources(): RTCRtpSynchronizationSource[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/jitterBufferTarget) */ + jitterBufferTarget: DOMHighResTimeStamp | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/track) */ + readonly track: MediaStreamTrack; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transform) */ + transform: RTCRtpTransform | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transport) */ + readonly transport: RTCDtlsTransport | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getContributingSources) */ + getContributingSources(): RTCRtpContributingSource[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getParameters) */ + getParameters(): RTCRtpReceiveParameters; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getStats) */ + getStats(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getSynchronizationSources) */ + getSynchronizationSources(): RTCRtpSynchronizationSource[]; } declare var RTCRtpReceiver: { - prototype: RTCRtpReceiver; - new(): RTCRtpReceiver; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getCapabilities_static) */ - getCapabilities(kind: string): RTCRtpCapabilities | null; + prototype: RTCRtpReceiver; + new (): RTCRtpReceiver; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getCapabilities_static) */ + getCapabilities(kind: string): RTCRtpCapabilities | null; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransform) */ -interface RTCRtpScriptTransform { -} +interface RTCRtpScriptTransform {} declare var RTCRtpScriptTransform: { - prototype: RTCRtpScriptTransform; - new(worker: Worker, options?: any, transfer?: any[]): RTCRtpScriptTransform; + prototype: RTCRtpScriptTransform; + new (worker: Worker, options?: any, transfer?: any[]): RTCRtpScriptTransform; }; /** @@ -18902,81 +22019,100 @@ declare var RTCRtpScriptTransform: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender) */ interface RTCRtpSender { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/dtmf) */ - readonly dtmf: RTCDTMFSender | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/track) */ - readonly track: MediaStreamTrack | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/transform) */ - transform: RTCRtpTransform | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/transport) */ - readonly transport: RTCDtlsTransport | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getParameters) */ - getParameters(): RTCRtpSendParameters; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getStats) */ - getStats(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/replaceTrack) */ - replaceTrack(withTrack: MediaStreamTrack | null): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/setParameters) */ - setParameters(parameters: RTCRtpSendParameters, setParameterOptions?: RTCSetParameterOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/setStreams) */ - setStreams(...streams: MediaStream[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/dtmf) */ + readonly dtmf: RTCDTMFSender | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/track) */ + readonly track: MediaStreamTrack | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/transform) */ + transform: RTCRtpTransform | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/transport) */ + readonly transport: RTCDtlsTransport | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getParameters) */ + getParameters(): RTCRtpSendParameters; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getStats) */ + getStats(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/replaceTrack) */ + replaceTrack(withTrack: MediaStreamTrack | null): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/setParameters) */ + setParameters( + parameters: RTCRtpSendParameters, + setParameterOptions?: RTCSetParameterOptions, + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/setStreams) */ + setStreams(...streams: MediaStream[]): void; } declare var RTCRtpSender: { - prototype: RTCRtpSender; - new(): RTCRtpSender; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getCapabilities_static) */ - getCapabilities(kind: string): RTCRtpCapabilities | null; + prototype: RTCRtpSender; + new (): RTCRtpSender; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getCapabilities_static) */ + getCapabilities(kind: string): RTCRtpCapabilities | null; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver) */ interface RTCRtpTransceiver { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/currentDirection) */ - readonly currentDirection: RTCRtpTransceiverDirection | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/direction) */ - direction: RTCRtpTransceiverDirection; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/mid) */ - readonly mid: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/receiver) */ - readonly receiver: RTCRtpReceiver; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/sender) */ - readonly sender: RTCRtpSender; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */ - setCodecPreferences(codecs: RTCRtpCodec[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/stop) */ - stop(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/currentDirection) */ + readonly currentDirection: RTCRtpTransceiverDirection | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/direction) */ + direction: RTCRtpTransceiverDirection; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/mid) */ + readonly mid: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/receiver) */ + readonly receiver: RTCRtpReceiver; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/sender) */ + readonly sender: RTCRtpSender; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */ + setCodecPreferences(codecs: RTCRtpCodec[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/stop) */ + stop(): void; } declare var RTCRtpTransceiver: { - prototype: RTCRtpTransceiver; - new(): RTCRtpTransceiver; + prototype: RTCRtpTransceiver; + new (): RTCRtpTransceiver; }; interface RTCSctpTransportEventMap { - "statechange": Event; + statechange: Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport) */ interface RTCSctpTransport extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/maxChannels) */ - readonly maxChannels: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/maxMessageSize) */ - readonly maxMessageSize: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/statechange_event) */ - onstatechange: ((this: RTCSctpTransport, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/state) */ - readonly state: RTCSctpTransportState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/transport) */ - readonly transport: RTCDtlsTransport; - addEventListener(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/maxChannels) */ + readonly maxChannels: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/maxMessageSize) */ + readonly maxMessageSize: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/statechange_event) */ + onstatechange: ((this: RTCSctpTransport, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/state) */ + readonly state: RTCSctpTransportState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/transport) */ + readonly transport: RTCDtlsTransport; + addEventListener( + type: K, + listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var RTCSctpTransport: { - prototype: RTCSctpTransport; - new(): RTCSctpTransport; + prototype: RTCSctpTransport; + new (): RTCSctpTransport; }; /** @@ -18985,55 +22121,58 @@ declare var RTCSctpTransport: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription) */ interface RTCSessionDescription { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/sdp) */ - readonly sdp: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/type) */ - readonly type: RTCSdpType; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/toJSON) */ - toJSON(): RTCSessionDescriptionInit; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/sdp) */ + readonly sdp: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/type) */ + readonly type: RTCSdpType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/toJSON) */ + toJSON(): RTCSessionDescriptionInit; } declare var RTCSessionDescription: { - prototype: RTCSessionDescription; - new(descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription; + prototype: RTCSessionDescription; + new (descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCStatsReport) */ interface RTCStatsReport { - forEach(callbackfn: (value: any, key: string, parent: RTCStatsReport) => void, thisArg?: any): void; + forEach( + callbackfn: (value: any, key: string, parent: RTCStatsReport) => void, + thisArg?: any, + ): void; } declare var RTCStatsReport: { - prototype: RTCStatsReport; - new(): RTCStatsReport; + prototype: RTCStatsReport; + new (): RTCStatsReport; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent) */ interface RTCTrackEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/receiver) */ - readonly receiver: RTCRtpReceiver; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/streams) */ - readonly streams: ReadonlyArray; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/track) */ - readonly track: MediaStreamTrack; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/transceiver) */ - readonly transceiver: RTCRtpTransceiver; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/receiver) */ + readonly receiver: RTCRtpReceiver; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/streams) */ + readonly streams: ReadonlyArray; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/track) */ + readonly track: MediaStreamTrack; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/transceiver) */ + readonly transceiver: RTCRtpTransceiver; } declare var RTCTrackEvent: { - prototype: RTCTrackEvent; - new(type: string, eventInitDict: RTCTrackEventInit): RTCTrackEvent; + prototype: RTCTrackEvent; + new (type: string, eventInitDict: RTCTrackEventInit): RTCTrackEvent; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RadioNodeList) */ interface RadioNodeList extends NodeList { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RadioNodeList/value) */ - value: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RadioNodeList/value) */ + value: string; } declare var RadioNodeList: { - prototype: RadioNodeList; - new(): RadioNodeList; + prototype: RadioNodeList; + new (): RadioNodeList; }; /** @@ -19042,99 +22181,99 @@ declare var RadioNodeList: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range) */ interface Range extends AbstractRange { - /** - * Returns the node, furthest away from the document, that is an ancestor of both range's start node and end node. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/commonAncestorContainer) - */ - readonly commonAncestorContainer: Node; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/cloneContents) */ - cloneContents(): DocumentFragment; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/cloneRange) */ - cloneRange(): Range; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/collapse) */ - collapse(toStart?: boolean): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/compareBoundaryPoints) */ - compareBoundaryPoints(how: number, sourceRange: Range): number; - /** - * Returns −1 if the point is before the range, 0 if the point is in the range, and 1 if the point is after the range. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/comparePoint) - */ - comparePoint(node: Node, offset: number): number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/createContextualFragment) */ - createContextualFragment(string: string): DocumentFragment; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/deleteContents) */ - deleteContents(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/detach) */ - detach(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/extractContents) */ - extractContents(): DocumentFragment; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/getBoundingClientRect) */ - getBoundingClientRect(): DOMRect; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/getClientRects) */ - getClientRects(): DOMRectList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/insertNode) */ - insertNode(node: Node): void; - /** - * Returns whether range intersects node. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/intersectsNode) - */ - intersectsNode(node: Node): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/isPointInRange) */ - isPointInRange(node: Node, offset: number): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/selectNode) */ - selectNode(node: Node): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/selectNodeContents) */ - selectNodeContents(node: Node): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEnd) */ - setEnd(node: Node, offset: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEndAfter) */ - setEndAfter(node: Node): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEndBefore) */ - setEndBefore(node: Node): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStart) */ - setStart(node: Node, offset: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStartAfter) */ - setStartAfter(node: Node): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStartBefore) */ - setStartBefore(node: Node): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/surroundContents) */ - surroundContents(newParent: Node): void; - toString(): string; - readonly START_TO_START: 0; - readonly START_TO_END: 1; - readonly END_TO_END: 2; - readonly END_TO_START: 3; + /** + * Returns the node, furthest away from the document, that is an ancestor of both range's start node and end node. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/commonAncestorContainer) + */ + readonly commonAncestorContainer: Node; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/cloneContents) */ + cloneContents(): DocumentFragment; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/cloneRange) */ + cloneRange(): Range; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/collapse) */ + collapse(toStart?: boolean): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/compareBoundaryPoints) */ + compareBoundaryPoints(how: number, sourceRange: Range): number; + /** + * Returns −1 if the point is before the range, 0 if the point is in the range, and 1 if the point is after the range. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/comparePoint) + */ + comparePoint(node: Node, offset: number): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/createContextualFragment) */ + createContextualFragment(string: string): DocumentFragment; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/deleteContents) */ + deleteContents(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/detach) */ + detach(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/extractContents) */ + extractContents(): DocumentFragment; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/getBoundingClientRect) */ + getBoundingClientRect(): DOMRect; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/getClientRects) */ + getClientRects(): DOMRectList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/insertNode) */ + insertNode(node: Node): void; + /** + * Returns whether range intersects node. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/intersectsNode) + */ + intersectsNode(node: Node): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/isPointInRange) */ + isPointInRange(node: Node, offset: number): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/selectNode) */ + selectNode(node: Node): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/selectNodeContents) */ + selectNodeContents(node: Node): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEnd) */ + setEnd(node: Node, offset: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEndAfter) */ + setEndAfter(node: Node): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEndBefore) */ + setEndBefore(node: Node): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStart) */ + setStart(node: Node, offset: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStartAfter) */ + setStartAfter(node: Node): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStartBefore) */ + setStartBefore(node: Node): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/surroundContents) */ + surroundContents(newParent: Node): void; + toString(): string; + readonly START_TO_START: 0; + readonly START_TO_END: 1; + readonly END_TO_END: 2; + readonly END_TO_START: 3; } declare var Range: { - prototype: Range; - new(): Range; - readonly START_TO_START: 0; - readonly START_TO_END: 1; - readonly END_TO_END: 2; - readonly END_TO_START: 3; + prototype: Range; + new (): Range; + readonly START_TO_START: 0; + readonly START_TO_END: 1; + readonly END_TO_END: 2; + readonly END_TO_START: 3; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController) */ interface ReadableByteStreamController { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest) */ - readonly byobRequest: ReadableStreamBYOBRequest | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize) */ - readonly desiredSize: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close) */ - close(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue) */ - enqueue(chunk: ArrayBufferView): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error) */ - error(e?: any): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest) */ + readonly byobRequest: ReadableStreamBYOBRequest | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize) */ + readonly desiredSize: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close) */ + close(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue) */ + enqueue(chunk: ArrayBufferView): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error) */ + error(e?: any): void; } declare var ReadableByteStreamController: { - prototype: ReadableByteStreamController; - new(): ReadableByteStreamController; + prototype: ReadableByteStreamController; + new (): ReadableByteStreamController; }; /** @@ -19143,167 +22282,207 @@ declare var ReadableByteStreamController: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream) */ interface ReadableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked) */ - readonly locked: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel) */ - cancel(reason?: any): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) */ - getReader(options: { mode: "byob" }): ReadableStreamBYOBReader; - getReader(): ReadableStreamDefaultReader; - getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough) */ - pipeThrough(transform: ReadableWritablePair, options?: StreamPipeOptions): ReadableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo) */ - pipeTo(destination: WritableStream, options?: StreamPipeOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee) */ - tee(): [ReadableStream, ReadableStream]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked) */ + readonly locked: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel) */ + cancel(reason?: any): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) */ + getReader(options: { mode: "byob" }): ReadableStreamBYOBReader; + getReader(): ReadableStreamDefaultReader; + getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough) */ + pipeThrough( + transform: ReadableWritablePair, + options?: StreamPipeOptions, + ): ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo) */ + pipeTo( + destination: WritableStream, + options?: StreamPipeOptions, + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee) */ + tee(): [ReadableStream, ReadableStream]; } declare var ReadableStream: { - prototype: ReadableStream; - new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream; - new(underlyingSource: UnderlyingDefaultSource, strategy?: QueuingStrategy): ReadableStream; - new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + prototype: ReadableStream; + new ( + underlyingSource: UnderlyingByteSource, + strategy?: { highWaterMark?: number }, + ): ReadableStream; + new ( + underlyingSource: UnderlyingDefaultSource, + strategy?: QueuingStrategy, + ): ReadableStream; + new ( + underlyingSource?: UnderlyingSource, + strategy?: QueuingStrategy, + ): ReadableStream; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */ - read(view: T): Promise>; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */ - releaseLock(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */ + read( + view: T, + ): Promise>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */ + releaseLock(): void; } declare var ReadableStreamBYOBReader: { - prototype: ReadableStreamBYOBReader; - new(stream: ReadableStream): ReadableStreamBYOBReader; + prototype: ReadableStreamBYOBReader; + new (stream: ReadableStream): ReadableStreamBYOBReader; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */ interface ReadableStreamBYOBRequest { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) */ - readonly view: ArrayBufferView | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) */ - respond(bytesWritten: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView) */ - respondWithNewView(view: ArrayBufferView): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) */ + readonly view: ArrayBufferView | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) */ + respond(bytesWritten: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView) */ + respondWithNewView(view: ArrayBufferView): void; } declare var ReadableStreamBYOBRequest: { - prototype: ReadableStreamBYOBRequest; - new(): ReadableStreamBYOBRequest; + prototype: ReadableStreamBYOBRequest; + new (): ReadableStreamBYOBRequest; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController) */ interface ReadableStreamDefaultController { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize) */ - readonly desiredSize: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close) */ - close(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue) */ - enqueue(chunk?: R): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error) */ - error(e?: any): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize) */ + readonly desiredSize: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close) */ + close(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue) */ + enqueue(chunk?: R): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error) */ + error(e?: any): void; } declare var ReadableStreamDefaultController: { - prototype: ReadableStreamDefaultController; - new(): ReadableStreamDefaultController; + prototype: ReadableStreamDefaultController; + new (): ReadableStreamDefaultController; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader) */ -interface ReadableStreamDefaultReader extends ReadableStreamGenericReader { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read) */ - read(): Promise>; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/releaseLock) */ - releaseLock(): void; +interface ReadableStreamDefaultReader< + R = any, +> extends ReadableStreamGenericReader { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read) */ + read(): Promise>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/releaseLock) */ + releaseLock(): void; } declare var ReadableStreamDefaultReader: { - prototype: ReadableStreamDefaultReader; - new(stream: ReadableStream): ReadableStreamDefaultReader; + prototype: ReadableStreamDefaultReader; + new (stream: ReadableStream): ReadableStreamDefaultReader; }; interface ReadableStreamGenericReader { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/closed) */ - readonly closed: Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/cancel) */ - cancel(reason?: any): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/closed) */ + readonly closed: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/cancel) */ + cancel(reason?: any): Promise; } interface RemotePlaybackEventMap { - "connect": Event; - "connecting": Event; - "disconnect": Event; + connect: Event; + connecting: Event; + disconnect: Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback) */ interface RemotePlayback extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/connect_event) */ - onconnect: ((this: RemotePlayback, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/connecting_event) */ - onconnecting: ((this: RemotePlayback, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/disconnect_event) */ - ondisconnect: ((this: RemotePlayback, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/state) */ - readonly state: RemotePlaybackState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/cancelWatchAvailability) */ - cancelWatchAvailability(id?: number): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/prompt) */ - prompt(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/watchAvailability) */ - watchAvailability(callback: RemotePlaybackAvailabilityCallback): Promise; - addEventListener(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/connect_event) */ + onconnect: ((this: RemotePlayback, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/connecting_event) */ + onconnecting: ((this: RemotePlayback, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/disconnect_event) */ + ondisconnect: ((this: RemotePlayback, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/state) */ + readonly state: RemotePlaybackState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/cancelWatchAvailability) */ + cancelWatchAvailability(id?: number): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/prompt) */ + prompt(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/watchAvailability) */ + watchAvailability( + callback: RemotePlaybackAvailabilityCallback, + ): Promise; + addEventListener( + type: K, + listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var RemotePlayback: { - prototype: RemotePlayback; - new(): RemotePlayback; + prototype: RemotePlayback; + new (): RemotePlayback; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report) */ interface Report { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body) */ - readonly body: ReportBody | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type) */ - readonly type: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url) */ - readonly url: string; - toJSON(): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body) */ + readonly body: ReportBody | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type) */ + readonly type: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url) */ + readonly url: string; + toJSON(): any; } declare var Report: { - prototype: Report; - new(): Report; + prototype: Report; + new (): Report; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody) */ interface ReportBody { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON) */ - toJSON(): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON) */ + toJSON(): any; } declare var ReportBody: { - prototype: ReportBody; - new(): ReportBody; + prototype: ReportBody; + new (): ReportBody; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver) */ interface ReportingObserver { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/disconnect) */ - disconnect(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/observe) */ - observe(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/takeRecords) */ - takeRecords(): ReportList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/disconnect) */ + disconnect(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/observe) */ + observe(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/takeRecords) */ + takeRecords(): ReportList; } declare var ReportingObserver: { - prototype: ReportingObserver; - new(callback: ReportingObserverCallback, options?: ReportingObserverOptions): ReportingObserver; + prototype: ReportingObserver; + new ( + callback: ReportingObserverCallback, + options?: ReportingObserverOptions, + ): ReportingObserver; }; /** @@ -19312,138 +22491,138 @@ declare var ReportingObserver: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request) */ interface Request extends Body { - /** - * Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache) - */ - readonly cache: RequestCache; - /** - * Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/credentials) - */ - readonly credentials: RequestCredentials; - /** - * Returns the kind of resource requested by request, e.g., "document" or "script". - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/destination) - */ - readonly destination: RequestDestination; - /** - * Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/headers) - */ - readonly headers: Headers; - /** - * Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI] - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity) - */ - readonly integrity: string; - /** - * Returns a boolean indicating whether or not request can outlive the global in which it was created. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive) - */ - readonly keepalive: boolean; - /** - * Returns request's HTTP method, which is "GET" by default. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/method) - */ - readonly method: string; - /** - * Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/mode) - */ - readonly mode: RequestMode; - /** - * Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/redirect) - */ - readonly redirect: RequestRedirect; - /** - * Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the `Referer` header of the request being made. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrer) - */ - readonly referrer: string; - /** - * Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrerPolicy) - */ - readonly referrerPolicy: ReferrerPolicy; - /** - * Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/signal) - */ - readonly signal: AbortSignal; - /** - * Returns the URL of request as a string. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/url) - */ - readonly url: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/clone) */ - clone(): Request; + /** + * Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache) + */ + readonly cache: RequestCache; + /** + * Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/credentials) + */ + readonly credentials: RequestCredentials; + /** + * Returns the kind of resource requested by request, e.g., "document" or "script". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/destination) + */ + readonly destination: RequestDestination; + /** + * Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/headers) + */ + readonly headers: Headers; + /** + * Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI] + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity) + */ + readonly integrity: string; + /** + * Returns a boolean indicating whether or not request can outlive the global in which it was created. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive) + */ + readonly keepalive: boolean; + /** + * Returns request's HTTP method, which is "GET" by default. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/method) + */ + readonly method: string; + /** + * Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/mode) + */ + readonly mode: RequestMode; + /** + * Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/redirect) + */ + readonly redirect: RequestRedirect; + /** + * Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the `Referer` header of the request being made. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrer) + */ + readonly referrer: string; + /** + * Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrerPolicy) + */ + readonly referrerPolicy: ReferrerPolicy; + /** + * Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/signal) + */ + readonly signal: AbortSignal; + /** + * Returns the URL of request as a string. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/url) + */ + readonly url: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/clone) */ + clone(): Request; } declare var Request: { - prototype: Request; - new(input: RequestInfo | URL, init?: RequestInit): Request; + prototype: Request; + new (input: RequestInfo | URL, init?: RequestInit): Request; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver) */ interface ResizeObserver { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/disconnect) */ - disconnect(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/observe) */ - observe(target: Element, options?: ResizeObserverOptions): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/unobserve) */ - unobserve(target: Element): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/disconnect) */ + disconnect(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/observe) */ + observe(target: Element, options?: ResizeObserverOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/unobserve) */ + unobserve(target: Element): void; } declare var ResizeObserver: { - prototype: ResizeObserver; - new(callback: ResizeObserverCallback): ResizeObserver; + prototype: ResizeObserver; + new (callback: ResizeObserverCallback): ResizeObserver; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry) */ interface ResizeObserverEntry { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/borderBoxSize) */ - readonly borderBoxSize: ReadonlyArray; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/contentBoxSize) */ - readonly contentBoxSize: ReadonlyArray; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/contentRect) */ - readonly contentRect: DOMRectReadOnly; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/devicePixelContentBoxSize) */ - readonly devicePixelContentBoxSize: ReadonlyArray; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/target) */ - readonly target: Element; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/borderBoxSize) */ + readonly borderBoxSize: ReadonlyArray; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/contentBoxSize) */ + readonly contentBoxSize: ReadonlyArray; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/contentRect) */ + readonly contentRect: DOMRectReadOnly; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/devicePixelContentBoxSize) */ + readonly devicePixelContentBoxSize: ReadonlyArray; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/target) */ + readonly target: Element; } declare var ResizeObserverEntry: { - prototype: ResizeObserverEntry; - new(): ResizeObserverEntry; + prototype: ResizeObserverEntry; + new (): ResizeObserverEntry; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize) */ interface ResizeObserverSize { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize/blockSize) */ - readonly blockSize: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize/inlineSize) */ - readonly inlineSize: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize/blockSize) */ + readonly blockSize: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize/inlineSize) */ + readonly inlineSize: number; } declare var ResizeObserverSize: { - prototype: ResizeObserverSize; - new(): ResizeObserverSize; + prototype: ResizeObserverSize; + new (): ResizeObserverSize; }; /** @@ -19452,33 +22631,33 @@ declare var ResizeObserverSize: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response) */ interface Response extends Body { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers) */ - readonly headers: Headers; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok) */ - readonly ok: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected) */ - readonly redirected: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status) */ - readonly status: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText) */ - readonly statusText: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type) */ - readonly type: ResponseType; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url) */ - readonly url: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/clone) */ - clone(): Response; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers) */ + readonly headers: Headers; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok) */ + readonly ok: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected) */ + readonly redirected: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status) */ + readonly status: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText) */ + readonly statusText: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type) */ + readonly type: ResponseType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url) */ + readonly url: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/clone) */ + clone(): Response; } declare var Response: { - prototype: Response; - new(body?: BodyInit | null, init?: ResponseInit): Response; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static) */ - error(): Response; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static) */ - json(data: any, init?: ResponseInit): Response; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static) */ - redirect(url: string | URL, status?: number): Response; + prototype: Response; + new (body?: BodyInit | null, init?: ResponseInit): Response; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static) */ + error(): Response; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static) */ + json(data: any, init?: ResponseInit): Response; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static) */ + redirect(url: string | URL, status?: number): Response; }; /** @@ -19487,19 +22666,35 @@ declare var Response: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement) */ interface SVGAElement extends SVGGraphicsElement, SVGURIReference { - rel: string; - readonly relList: DOMTokenList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/target) */ - readonly target: SVGAnimatedString; - addEventListener(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + rel: string; + readonly relList: DOMTokenList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/target) */ + readonly target: SVGAnimatedString; + addEventListener( + type: K, + listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGAElement: { - prototype: SVGAElement; - new(): SVGAElement; + prototype: SVGAElement; + new (): SVGAElement; }; /** @@ -19508,66 +22703,120 @@ declare var SVGAElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle) */ interface SVGAngle { - readonly unitType: number; - value: number; - valueAsString: string; - valueInSpecifiedUnits: number; - convertToSpecifiedUnits(unitType: number): void; - newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void; - readonly SVG_ANGLETYPE_UNKNOWN: 0; - readonly SVG_ANGLETYPE_UNSPECIFIED: 1; - readonly SVG_ANGLETYPE_DEG: 2; - readonly SVG_ANGLETYPE_RAD: 3; - readonly SVG_ANGLETYPE_GRAD: 4; + readonly unitType: number; + value: number; + valueAsString: string; + valueInSpecifiedUnits: number; + convertToSpecifiedUnits(unitType: number): void; + newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void; + readonly SVG_ANGLETYPE_UNKNOWN: 0; + readonly SVG_ANGLETYPE_UNSPECIFIED: 1; + readonly SVG_ANGLETYPE_DEG: 2; + readonly SVG_ANGLETYPE_RAD: 3; + readonly SVG_ANGLETYPE_GRAD: 4; } declare var SVGAngle: { - prototype: SVGAngle; - new(): SVGAngle; - readonly SVG_ANGLETYPE_UNKNOWN: 0; - readonly SVG_ANGLETYPE_UNSPECIFIED: 1; - readonly SVG_ANGLETYPE_DEG: 2; - readonly SVG_ANGLETYPE_RAD: 3; - readonly SVG_ANGLETYPE_GRAD: 4; + prototype: SVGAngle; + new (): SVGAngle; + readonly SVG_ANGLETYPE_UNKNOWN: 0; + readonly SVG_ANGLETYPE_UNSPECIFIED: 1; + readonly SVG_ANGLETYPE_DEG: 2; + readonly SVG_ANGLETYPE_RAD: 3; + readonly SVG_ANGLETYPE_GRAD: 4; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimateElement) */ interface SVGAnimateElement extends SVGAnimationElement { - addEventListener(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGAnimateElement: { - prototype: SVGAnimateElement; - new(): SVGAnimateElement; + prototype: SVGAnimateElement; + new (): SVGAnimateElement; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimateMotionElement) */ interface SVGAnimateMotionElement extends SVGAnimationElement { - addEventListener(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGAnimateMotionElement: { - prototype: SVGAnimateMotionElement; - new(): SVGAnimateMotionElement; + prototype: SVGAnimateMotionElement; + new (): SVGAnimateMotionElement; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimateTransformElement) */ interface SVGAnimateTransformElement extends SVGAnimationElement { - addEventListener(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: ( + this: SVGAnimateTransformElement, + ev: SVGElementEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: SVGAnimateTransformElement, + ev: SVGElementEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGAnimateTransformElement: { - prototype: SVGAnimateTransformElement; - new(): SVGAnimateTransformElement; + prototype: SVGAnimateTransformElement; + new (): SVGAnimateTransformElement; }; /** @@ -19576,13 +22825,13 @@ declare var SVGAnimateTransformElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedAngle) */ interface SVGAnimatedAngle { - readonly animVal: SVGAngle; - readonly baseVal: SVGAngle; + readonly animVal: SVGAngle; + readonly baseVal: SVGAngle; } declare var SVGAnimatedAngle: { - prototype: SVGAnimatedAngle; - new(): SVGAnimatedAngle; + prototype: SVGAnimatedAngle; + new (): SVGAnimatedAngle; }; /** @@ -19591,13 +22840,13 @@ declare var SVGAnimatedAngle: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedBoolean) */ interface SVGAnimatedBoolean { - readonly animVal: boolean; - baseVal: boolean; + readonly animVal: boolean; + baseVal: boolean; } declare var SVGAnimatedBoolean: { - prototype: SVGAnimatedBoolean; - new(): SVGAnimatedBoolean; + prototype: SVGAnimatedBoolean; + new (): SVGAnimatedBoolean; }; /** @@ -19606,15 +22855,15 @@ declare var SVGAnimatedBoolean: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedEnumeration) */ interface SVGAnimatedEnumeration { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedEnumeration/animVal) */ - readonly animVal: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedEnumeration/baseVal) */ - baseVal: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedEnumeration/animVal) */ + readonly animVal: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedEnumeration/baseVal) */ + baseVal: number; } declare var SVGAnimatedEnumeration: { - prototype: SVGAnimatedEnumeration; - new(): SVGAnimatedEnumeration; + prototype: SVGAnimatedEnumeration; + new (): SVGAnimatedEnumeration; }; /** @@ -19623,13 +22872,13 @@ declare var SVGAnimatedEnumeration: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedInteger) */ interface SVGAnimatedInteger { - readonly animVal: number; - baseVal: number; + readonly animVal: number; + baseVal: number; } declare var SVGAnimatedInteger: { - prototype: SVGAnimatedInteger; - new(): SVGAnimatedInteger; + prototype: SVGAnimatedInteger; + new (): SVGAnimatedInteger; }; /** @@ -19638,15 +22887,15 @@ declare var SVGAnimatedInteger: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLength) */ interface SVGAnimatedLength { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLength/animVal) */ - readonly animVal: SVGLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLength/baseVal) */ - readonly baseVal: SVGLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLength/animVal) */ + readonly animVal: SVGLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLength/baseVal) */ + readonly baseVal: SVGLength; } declare var SVGAnimatedLength: { - prototype: SVGAnimatedLength; - new(): SVGAnimatedLength; + prototype: SVGAnimatedLength; + new (): SVGAnimatedLength; }; /** @@ -19655,13 +22904,13 @@ declare var SVGAnimatedLength: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLengthList) */ interface SVGAnimatedLengthList { - readonly animVal: SVGLengthList; - readonly baseVal: SVGLengthList; + readonly animVal: SVGLengthList; + readonly baseVal: SVGLengthList; } declare var SVGAnimatedLengthList: { - prototype: SVGAnimatedLengthList; - new(): SVGAnimatedLengthList; + prototype: SVGAnimatedLengthList; + new (): SVGAnimatedLengthList; }; /** @@ -19670,13 +22919,13 @@ declare var SVGAnimatedLengthList: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumber) */ interface SVGAnimatedNumber { - readonly animVal: number; - baseVal: number; + readonly animVal: number; + baseVal: number; } declare var SVGAnimatedNumber: { - prototype: SVGAnimatedNumber; - new(): SVGAnimatedNumber; + prototype: SVGAnimatedNumber; + new (): SVGAnimatedNumber; }; /** @@ -19685,18 +22934,18 @@ declare var SVGAnimatedNumber: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumberList) */ interface SVGAnimatedNumberList { - readonly animVal: SVGNumberList; - readonly baseVal: SVGNumberList; + readonly animVal: SVGNumberList; + readonly baseVal: SVGNumberList; } declare var SVGAnimatedNumberList: { - prototype: SVGAnimatedNumberList; - new(): SVGAnimatedNumberList; + prototype: SVGAnimatedNumberList; + new (): SVGAnimatedNumberList; }; interface SVGAnimatedPoints { - readonly animatedPoints: SVGPointList; - readonly points: SVGPointList; + readonly animatedPoints: SVGPointList; + readonly points: SVGPointList; } /** @@ -19705,13 +22954,13 @@ interface SVGAnimatedPoints { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedPreserveAspectRatio) */ interface SVGAnimatedPreserveAspectRatio { - readonly animVal: SVGPreserveAspectRatio; - readonly baseVal: SVGPreserveAspectRatio; + readonly animVal: SVGPreserveAspectRatio; + readonly baseVal: SVGPreserveAspectRatio; } declare var SVGAnimatedPreserveAspectRatio: { - prototype: SVGAnimatedPreserveAspectRatio; - new(): SVGAnimatedPreserveAspectRatio; + prototype: SVGAnimatedPreserveAspectRatio; + new (): SVGAnimatedPreserveAspectRatio; }; /** @@ -19720,13 +22969,13 @@ declare var SVGAnimatedPreserveAspectRatio: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect) */ interface SVGAnimatedRect { - readonly animVal: DOMRectReadOnly; - readonly baseVal: DOMRect; + readonly animVal: DOMRectReadOnly; + readonly baseVal: DOMRect; } declare var SVGAnimatedRect: { - prototype: SVGAnimatedRect; - new(): SVGAnimatedRect; + prototype: SVGAnimatedRect; + new (): SVGAnimatedRect; }; /** @@ -19735,15 +22984,15 @@ declare var SVGAnimatedRect: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString) */ interface SVGAnimatedString { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString/animVal) */ - readonly animVal: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString/baseVal) */ - baseVal: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString/animVal) */ + readonly animVal: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString/baseVal) */ + baseVal: string; } declare var SVGAnimatedString: { - prototype: SVGAnimatedString; - new(): SVGAnimatedString; + prototype: SVGAnimatedString; + new (): SVGAnimatedString; }; /** @@ -19752,35 +23001,51 @@ declare var SVGAnimatedString: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedTransformList) */ interface SVGAnimatedTransformList { - readonly animVal: SVGTransformList; - readonly baseVal: SVGTransformList; + readonly animVal: SVGTransformList; + readonly baseVal: SVGTransformList; } declare var SVGAnimatedTransformList: { - prototype: SVGAnimatedTransformList; - new(): SVGAnimatedTransformList; + prototype: SVGAnimatedTransformList; + new (): SVGAnimatedTransformList; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement) */ interface SVGAnimationElement extends SVGElement, SVGTests { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/targetElement) */ - readonly targetElement: SVGElement | null; - beginElement(): void; - beginElementAt(offset: number): void; - endElement(): void; - endElementAt(offset: number): void; - getCurrentTime(): number; - getSimpleDuration(): number; - getStartTime(): number; - addEventListener(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/targetElement) */ + readonly targetElement: SVGElement | null; + beginElement(): void; + beginElementAt(offset: number): void; + endElement(): void; + endElementAt(offset: number): void; + getCurrentTime(): number; + getSimpleDuration(): number; + getStartTime(): number; + addEventListener( + type: K, + listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGAnimationElement: { - prototype: SVGAnimationElement; - new(): SVGAnimationElement; + prototype: SVGAnimationElement; + new (): SVGAnimationElement; }; /** @@ -19789,21 +23054,37 @@ declare var SVGAnimationElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement) */ interface SVGCircleElement extends SVGGeometryElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/cx) */ - readonly cx: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/cy) */ - readonly cy: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/r) */ - readonly r: SVGAnimatedLength; - addEventListener(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/cx) */ + readonly cx: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/cy) */ + readonly cy: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/r) */ + readonly r: SVGAnimatedLength; + addEventListener( + type: K, + listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGCircleElement: { - prototype: SVGCircleElement; - new(): SVGCircleElement; + prototype: SVGCircleElement; + new (): SVGCircleElement; }; /** @@ -19812,19 +23093,35 @@ declare var SVGCircleElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGClipPathElement) */ interface SVGClipPathElement extends SVGElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGClipPathElement/clipPathUnits) */ - readonly clipPathUnits: SVGAnimatedEnumeration; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGClipPathElement/transform) */ - readonly transform: SVGAnimatedTransformList; - addEventListener(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGClipPathElement/clipPathUnits) */ + readonly clipPathUnits: SVGAnimatedEnumeration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGClipPathElement/transform) */ + readonly transform: SVGAnimatedTransformList; + addEventListener( + type: K, + listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGClipPathElement: { - prototype: SVGClipPathElement; - new(): SVGClipPathElement; + prototype: SVGClipPathElement; + new (): SVGClipPathElement; }; /** @@ -19833,34 +23130,56 @@ declare var SVGClipPathElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement) */ interface SVGComponentTransferFunctionElement extends SVGElement { - readonly amplitude: SVGAnimatedNumber; - readonly exponent: SVGAnimatedNumber; - readonly intercept: SVGAnimatedNumber; - readonly offset: SVGAnimatedNumber; - readonly slope: SVGAnimatedNumber; - readonly tableValues: SVGAnimatedNumberList; - readonly type: SVGAnimatedEnumeration; - readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0; - readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1; - readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2; - readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3; - readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4; - readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5; - addEventListener(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + readonly amplitude: SVGAnimatedNumber; + readonly exponent: SVGAnimatedNumber; + readonly intercept: SVGAnimatedNumber; + readonly offset: SVGAnimatedNumber; + readonly slope: SVGAnimatedNumber; + readonly tableValues: SVGAnimatedNumberList; + readonly type: SVGAnimatedEnumeration; + readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0; + readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1; + readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2; + readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3; + readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4; + readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5; + addEventListener( + type: K, + listener: ( + this: SVGComponentTransferFunctionElement, + ev: SVGElementEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: SVGComponentTransferFunctionElement, + ev: SVGElementEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGComponentTransferFunctionElement: { - prototype: SVGComponentTransferFunctionElement; - new(): SVGComponentTransferFunctionElement; - readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0; - readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1; - readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2; - readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3; - readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4; - readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5; + prototype: SVGComponentTransferFunctionElement; + new (): SVGComponentTransferFunctionElement; + readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0; + readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1; + readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2; + readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3; + readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4; + readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5; }; /** @@ -19869,15 +23188,31 @@ declare var SVGComponentTransferFunctionElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGDefsElement) */ interface SVGDefsElement extends SVGGraphicsElement { - addEventListener(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGDefsElement: { - prototype: SVGDefsElement; - new(): SVGDefsElement; + prototype: SVGDefsElement; + new (): SVGDefsElement; }; /** @@ -19886,39 +23221,76 @@ declare var SVGDefsElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGDescElement) */ interface SVGDescElement extends SVGElement { - addEventListener(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGDescElement: { - prototype: SVGDescElement; - new(): SVGDescElement; + prototype: SVGDescElement; + new (): SVGDescElement; }; -interface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap { -} +interface SVGElementEventMap + extends ElementEventMap, GlobalEventHandlersEventMap {} /** * All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement) */ -interface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement { - /** @deprecated */ - readonly className: any; - readonly ownerSVGElement: SVGSVGElement | null; - readonly viewportElement: SVGElement | null; - addEventListener(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +interface SVGElement + extends + Element, + ElementCSSInlineStyle, + GlobalEventHandlers, + HTMLOrSVGElement { + /** @deprecated */ + readonly className: any; + readonly ownerSVGElement: SVGSVGElement | null; + readonly viewportElement: SVGElement | null; + addEventListener( + type: K, + listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGElement: { - prototype: SVGElement; - new(): SVGElement; + prototype: SVGElement; + new (): SVGElement; }; /** @@ -19927,19 +23299,35 @@ declare var SVGElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGEllipseElement) */ interface SVGEllipseElement extends SVGGeometryElement { - readonly cx: SVGAnimatedLength; - readonly cy: SVGAnimatedLength; - readonly rx: SVGAnimatedLength; - readonly ry: SVGAnimatedLength; - addEventListener(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + readonly cx: SVGAnimatedLength; + readonly cy: SVGAnimatedLength; + readonly rx: SVGAnimatedLength; + readonly ry: SVGAnimatedLength; + addEventListener( + type: K, + listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGEllipseElement: { - prototype: SVGEllipseElement; - new(): SVGEllipseElement; + prototype: SVGEllipseElement; + new (): SVGEllipseElement; }; /** @@ -19947,53 +23335,70 @@ declare var SVGEllipseElement: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement) */ -interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - readonly in1: SVGAnimatedString; - readonly in2: SVGAnimatedString; - readonly mode: SVGAnimatedEnumeration; - readonly SVG_FEBLEND_MODE_UNKNOWN: 0; - readonly SVG_FEBLEND_MODE_NORMAL: 1; - readonly SVG_FEBLEND_MODE_MULTIPLY: 2; - readonly SVG_FEBLEND_MODE_SCREEN: 3; - readonly SVG_FEBLEND_MODE_DARKEN: 4; - readonly SVG_FEBLEND_MODE_LIGHTEN: 5; - readonly SVG_FEBLEND_MODE_OVERLAY: 6; - readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7; - readonly SVG_FEBLEND_MODE_COLOR_BURN: 8; - readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9; - readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10; - readonly SVG_FEBLEND_MODE_DIFFERENCE: 11; - readonly SVG_FEBLEND_MODE_EXCLUSION: 12; - readonly SVG_FEBLEND_MODE_HUE: 13; - readonly SVG_FEBLEND_MODE_SATURATION: 14; - readonly SVG_FEBLEND_MODE_COLOR: 15; - readonly SVG_FEBLEND_MODE_LUMINOSITY: 16; - addEventListener(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +interface SVGFEBlendElement + extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly in1: SVGAnimatedString; + readonly in2: SVGAnimatedString; + readonly mode: SVGAnimatedEnumeration; + readonly SVG_FEBLEND_MODE_UNKNOWN: 0; + readonly SVG_FEBLEND_MODE_NORMAL: 1; + readonly SVG_FEBLEND_MODE_MULTIPLY: 2; + readonly SVG_FEBLEND_MODE_SCREEN: 3; + readonly SVG_FEBLEND_MODE_DARKEN: 4; + readonly SVG_FEBLEND_MODE_LIGHTEN: 5; + readonly SVG_FEBLEND_MODE_OVERLAY: 6; + readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7; + readonly SVG_FEBLEND_MODE_COLOR_BURN: 8; + readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9; + readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10; + readonly SVG_FEBLEND_MODE_DIFFERENCE: 11; + readonly SVG_FEBLEND_MODE_EXCLUSION: 12; + readonly SVG_FEBLEND_MODE_HUE: 13; + readonly SVG_FEBLEND_MODE_SATURATION: 14; + readonly SVG_FEBLEND_MODE_COLOR: 15; + readonly SVG_FEBLEND_MODE_LUMINOSITY: 16; + addEventListener( + type: K, + listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGFEBlendElement: { - prototype: SVGFEBlendElement; - new(): SVGFEBlendElement; - readonly SVG_FEBLEND_MODE_UNKNOWN: 0; - readonly SVG_FEBLEND_MODE_NORMAL: 1; - readonly SVG_FEBLEND_MODE_MULTIPLY: 2; - readonly SVG_FEBLEND_MODE_SCREEN: 3; - readonly SVG_FEBLEND_MODE_DARKEN: 4; - readonly SVG_FEBLEND_MODE_LIGHTEN: 5; - readonly SVG_FEBLEND_MODE_OVERLAY: 6; - readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7; - readonly SVG_FEBLEND_MODE_COLOR_BURN: 8; - readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9; - readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10; - readonly SVG_FEBLEND_MODE_DIFFERENCE: 11; - readonly SVG_FEBLEND_MODE_EXCLUSION: 12; - readonly SVG_FEBLEND_MODE_HUE: 13; - readonly SVG_FEBLEND_MODE_SATURATION: 14; - readonly SVG_FEBLEND_MODE_COLOR: 15; - readonly SVG_FEBLEND_MODE_LUMINOSITY: 16; + prototype: SVGFEBlendElement; + new (): SVGFEBlendElement; + readonly SVG_FEBLEND_MODE_UNKNOWN: 0; + readonly SVG_FEBLEND_MODE_NORMAL: 1; + readonly SVG_FEBLEND_MODE_MULTIPLY: 2; + readonly SVG_FEBLEND_MODE_SCREEN: 3; + readonly SVG_FEBLEND_MODE_DARKEN: 4; + readonly SVG_FEBLEND_MODE_LIGHTEN: 5; + readonly SVG_FEBLEND_MODE_OVERLAY: 6; + readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7; + readonly SVG_FEBLEND_MODE_COLOR_BURN: 8; + readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9; + readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10; + readonly SVG_FEBLEND_MODE_DIFFERENCE: 11; + readonly SVG_FEBLEND_MODE_EXCLUSION: 12; + readonly SVG_FEBLEND_MODE_HUE: 13; + readonly SVG_FEBLEND_MODE_SATURATION: 14; + readonly SVG_FEBLEND_MODE_COLOR: 15; + readonly SVG_FEBLEND_MODE_LUMINOSITY: 16; }; /** @@ -20001,29 +23406,46 @@ declare var SVGFEBlendElement: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement) */ -interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - readonly in1: SVGAnimatedString; - readonly type: SVGAnimatedEnumeration; - readonly values: SVGAnimatedNumberList; - readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0; - readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1; - readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2; - readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3; - readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4; - addEventListener(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +interface SVGFEColorMatrixElement + extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly in1: SVGAnimatedString; + readonly type: SVGAnimatedEnumeration; + readonly values: SVGAnimatedNumberList; + readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0; + readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1; + readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2; + readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3; + readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4; + addEventListener( + type: K, + listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGFEColorMatrixElement: { - prototype: SVGFEColorMatrixElement; - new(): SVGFEColorMatrixElement; - readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0; - readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1; - readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2; - readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3; - readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4; + prototype: SVGFEColorMatrixElement; + new (): SVGFEColorMatrixElement; + readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0; + readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1; + readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2; + readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3; + readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4; }; /** @@ -20031,17 +23453,40 @@ declare var SVGFEColorMatrixElement: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEComponentTransferElement) */ -interface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - readonly in1: SVGAnimatedString; - addEventListener(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +interface SVGFEComponentTransferElement + extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly in1: SVGAnimatedString; + addEventListener( + type: K, + listener: ( + this: SVGFEComponentTransferElement, + ev: SVGElementEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: SVGFEComponentTransferElement, + ev: SVGElementEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGFEComponentTransferElement: { - prototype: SVGFEComponentTransferElement; - new(): SVGFEComponentTransferElement; + prototype: SVGFEComponentTransferElement; + new (): SVGFEComponentTransferElement; }; /** @@ -20049,37 +23494,54 @@ declare var SVGFEComponentTransferElement: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement) */ -interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - readonly in1: SVGAnimatedString; - readonly in2: SVGAnimatedString; - readonly k1: SVGAnimatedNumber; - readonly k2: SVGAnimatedNumber; - readonly k3: SVGAnimatedNumber; - readonly k4: SVGAnimatedNumber; - readonly operator: SVGAnimatedEnumeration; - readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0; - readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1; - readonly SVG_FECOMPOSITE_OPERATOR_IN: 2; - readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3; - readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4; - readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5; - readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6; - addEventListener(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +interface SVGFECompositeElement + extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly in1: SVGAnimatedString; + readonly in2: SVGAnimatedString; + readonly k1: SVGAnimatedNumber; + readonly k2: SVGAnimatedNumber; + readonly k3: SVGAnimatedNumber; + readonly k4: SVGAnimatedNumber; + readonly operator: SVGAnimatedEnumeration; + readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0; + readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1; + readonly SVG_FECOMPOSITE_OPERATOR_IN: 2; + readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3; + readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4; + readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5; + readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6; + addEventListener( + type: K, + listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGFECompositeElement: { - prototype: SVGFECompositeElement; - new(): SVGFECompositeElement; - readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0; - readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1; - readonly SVG_FECOMPOSITE_OPERATOR_IN: 2; - readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3; - readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4; - readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5; - readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6; + prototype: SVGFECompositeElement; + new (): SVGFECompositeElement; + readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0; + readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1; + readonly SVG_FECOMPOSITE_OPERATOR_IN: 2; + readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3; + readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4; + readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5; + readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6; }; /** @@ -20087,36 +23549,59 @@ declare var SVGFECompositeElement: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement) */ -interface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - readonly bias: SVGAnimatedNumber; - readonly divisor: SVGAnimatedNumber; - readonly edgeMode: SVGAnimatedEnumeration; - readonly in1: SVGAnimatedString; - readonly kernelMatrix: SVGAnimatedNumberList; - readonly kernelUnitLengthX: SVGAnimatedNumber; - readonly kernelUnitLengthY: SVGAnimatedNumber; - readonly orderX: SVGAnimatedInteger; - readonly orderY: SVGAnimatedInteger; - readonly preserveAlpha: SVGAnimatedBoolean; - readonly targetX: SVGAnimatedInteger; - readonly targetY: SVGAnimatedInteger; - readonly SVG_EDGEMODE_UNKNOWN: 0; - readonly SVG_EDGEMODE_DUPLICATE: 1; - readonly SVG_EDGEMODE_WRAP: 2; - readonly SVG_EDGEMODE_NONE: 3; - addEventListener(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +interface SVGFEConvolveMatrixElement + extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly bias: SVGAnimatedNumber; + readonly divisor: SVGAnimatedNumber; + readonly edgeMode: SVGAnimatedEnumeration; + readonly in1: SVGAnimatedString; + readonly kernelMatrix: SVGAnimatedNumberList; + readonly kernelUnitLengthX: SVGAnimatedNumber; + readonly kernelUnitLengthY: SVGAnimatedNumber; + readonly orderX: SVGAnimatedInteger; + readonly orderY: SVGAnimatedInteger; + readonly preserveAlpha: SVGAnimatedBoolean; + readonly targetX: SVGAnimatedInteger; + readonly targetY: SVGAnimatedInteger; + readonly SVG_EDGEMODE_UNKNOWN: 0; + readonly SVG_EDGEMODE_DUPLICATE: 1; + readonly SVG_EDGEMODE_WRAP: 2; + readonly SVG_EDGEMODE_NONE: 3; + addEventListener( + type: K, + listener: ( + this: SVGFEConvolveMatrixElement, + ev: SVGElementEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: SVGFEConvolveMatrixElement, + ev: SVGElementEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGFEConvolveMatrixElement: { - prototype: SVGFEConvolveMatrixElement; - new(): SVGFEConvolveMatrixElement; - readonly SVG_EDGEMODE_UNKNOWN: 0; - readonly SVG_EDGEMODE_DUPLICATE: 1; - readonly SVG_EDGEMODE_WRAP: 2; - readonly SVG_EDGEMODE_NONE: 3; + prototype: SVGFEConvolveMatrixElement; + new (): SVGFEConvolveMatrixElement; + readonly SVG_EDGEMODE_UNKNOWN: 0; + readonly SVG_EDGEMODE_DUPLICATE: 1; + readonly SVG_EDGEMODE_WRAP: 2; + readonly SVG_EDGEMODE_NONE: 3; }; /** @@ -20124,21 +23609,44 @@ declare var SVGFEConvolveMatrixElement: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement) */ -interface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - readonly diffuseConstant: SVGAnimatedNumber; - readonly in1: SVGAnimatedString; - readonly kernelUnitLengthX: SVGAnimatedNumber; - readonly kernelUnitLengthY: SVGAnimatedNumber; - readonly surfaceScale: SVGAnimatedNumber; - addEventListener(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +interface SVGFEDiffuseLightingElement + extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly diffuseConstant: SVGAnimatedNumber; + readonly in1: SVGAnimatedString; + readonly kernelUnitLengthX: SVGAnimatedNumber; + readonly kernelUnitLengthY: SVGAnimatedNumber; + readonly surfaceScale: SVGAnimatedNumber; + addEventListener( + type: K, + listener: ( + this: SVGFEDiffuseLightingElement, + ev: SVGElementEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: SVGFEDiffuseLightingElement, + ev: SVGElementEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGFEDiffuseLightingElement: { - prototype: SVGFEDiffuseLightingElement; - new(): SVGFEDiffuseLightingElement; + prototype: SVGFEDiffuseLightingElement; + new (): SVGFEDiffuseLightingElement; }; /** @@ -20146,31 +23654,54 @@ declare var SVGFEDiffuseLightingElement: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDisplacementMapElement) */ -interface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - readonly in1: SVGAnimatedString; - readonly in2: SVGAnimatedString; - readonly scale: SVGAnimatedNumber; - readonly xChannelSelector: SVGAnimatedEnumeration; - readonly yChannelSelector: SVGAnimatedEnumeration; - readonly SVG_CHANNEL_UNKNOWN: 0; - readonly SVG_CHANNEL_R: 1; - readonly SVG_CHANNEL_G: 2; - readonly SVG_CHANNEL_B: 3; - readonly SVG_CHANNEL_A: 4; - addEventListener(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +interface SVGFEDisplacementMapElement + extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly in1: SVGAnimatedString; + readonly in2: SVGAnimatedString; + readonly scale: SVGAnimatedNumber; + readonly xChannelSelector: SVGAnimatedEnumeration; + readonly yChannelSelector: SVGAnimatedEnumeration; + readonly SVG_CHANNEL_UNKNOWN: 0; + readonly SVG_CHANNEL_R: 1; + readonly SVG_CHANNEL_G: 2; + readonly SVG_CHANNEL_B: 3; + readonly SVG_CHANNEL_A: 4; + addEventListener( + type: K, + listener: ( + this: SVGFEDisplacementMapElement, + ev: SVGElementEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: SVGFEDisplacementMapElement, + ev: SVGElementEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGFEDisplacementMapElement: { - prototype: SVGFEDisplacementMapElement; - new(): SVGFEDisplacementMapElement; - readonly SVG_CHANNEL_UNKNOWN: 0; - readonly SVG_CHANNEL_R: 1; - readonly SVG_CHANNEL_G: 2; - readonly SVG_CHANNEL_B: 3; - readonly SVG_CHANNEL_A: 4; + prototype: SVGFEDisplacementMapElement; + new (): SVGFEDisplacementMapElement; + readonly SVG_CHANNEL_UNKNOWN: 0; + readonly SVG_CHANNEL_R: 1; + readonly SVG_CHANNEL_G: 2; + readonly SVG_CHANNEL_B: 3; + readonly SVG_CHANNEL_A: 4; }; /** @@ -20179,36 +23710,75 @@ declare var SVGFEDisplacementMapElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDistantLightElement) */ interface SVGFEDistantLightElement extends SVGElement { - readonly azimuth: SVGAnimatedNumber; - readonly elevation: SVGAnimatedNumber; - addEventListener(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + readonly azimuth: SVGAnimatedNumber; + readonly elevation: SVGAnimatedNumber; + addEventListener( + type: K, + listener: ( + this: SVGFEDistantLightElement, + ev: SVGElementEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: SVGFEDistantLightElement, + ev: SVGElementEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGFEDistantLightElement: { - prototype: SVGFEDistantLightElement; - new(): SVGFEDistantLightElement; + prototype: SVGFEDistantLightElement; + new (): SVGFEDistantLightElement; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement) */ -interface SVGFEDropShadowElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - readonly dx: SVGAnimatedNumber; - readonly dy: SVGAnimatedNumber; - readonly in1: SVGAnimatedString; - readonly stdDeviationX: SVGAnimatedNumber; - readonly stdDeviationY: SVGAnimatedNumber; - setStdDeviation(stdDeviationX: number, stdDeviationY: number): void; - addEventListener(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +interface SVGFEDropShadowElement + extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly dx: SVGAnimatedNumber; + readonly dy: SVGAnimatedNumber; + readonly in1: SVGAnimatedString; + readonly stdDeviationX: SVGAnimatedNumber; + readonly stdDeviationY: SVGAnimatedNumber; + setStdDeviation(stdDeviationX: number, stdDeviationY: number): void; + addEventListener( + type: K, + listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGFEDropShadowElement: { - prototype: SVGFEDropShadowElement; - new(): SVGFEDropShadowElement; + prototype: SVGFEDropShadowElement; + new (): SVGFEDropShadowElement; }; /** @@ -20216,16 +23786,33 @@ declare var SVGFEDropShadowElement: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFloodElement) */ -interface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - addEventListener(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +interface SVGFEFloodElement + extends SVGElement, SVGFilterPrimitiveStandardAttributes { + addEventListener( + type: K, + listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGFEFloodElement: { - prototype: SVGFEFloodElement; - new(): SVGFEFloodElement; + prototype: SVGFEFloodElement; + new (): SVGFEFloodElement; }; /** @@ -20234,15 +23821,31 @@ declare var SVGFEFloodElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncAElement) */ interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement { - addEventListener(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGFEFuncAElement: { - prototype: SVGFEFuncAElement; - new(): SVGFEFuncAElement; + prototype: SVGFEFuncAElement; + new (): SVGFEFuncAElement; }; /** @@ -20251,15 +23854,31 @@ declare var SVGFEFuncAElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncBElement) */ interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement { - addEventListener(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGFEFuncBElement: { - prototype: SVGFEFuncBElement; - new(): SVGFEFuncBElement; + prototype: SVGFEFuncBElement; + new (): SVGFEFuncBElement; }; /** @@ -20268,15 +23887,31 @@ declare var SVGFEFuncBElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncGElement) */ interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement { - addEventListener(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGFEFuncGElement: { - prototype: SVGFEFuncGElement; - new(): SVGFEFuncGElement; + prototype: SVGFEFuncGElement; + new (): SVGFEFuncGElement; }; /** @@ -20285,15 +23920,31 @@ declare var SVGFEFuncGElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncRElement) */ interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement { - addEventListener(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGFEFuncRElement: { - prototype: SVGFEFuncRElement; - new(): SVGFEFuncRElement; + prototype: SVGFEFuncRElement; + new (): SVGFEFuncRElement; }; /** @@ -20301,20 +23952,43 @@ declare var SVGFEFuncRElement: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement) */ -interface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - readonly in1: SVGAnimatedString; - readonly stdDeviationX: SVGAnimatedNumber; - readonly stdDeviationY: SVGAnimatedNumber; - setStdDeviation(stdDeviationX: number, stdDeviationY: number): void; - addEventListener(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +interface SVGFEGaussianBlurElement + extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly in1: SVGAnimatedString; + readonly stdDeviationX: SVGAnimatedNumber; + readonly stdDeviationY: SVGAnimatedNumber; + setStdDeviation(stdDeviationX: number, stdDeviationY: number): void; + addEventListener( + type: K, + listener: ( + this: SVGFEGaussianBlurElement, + ev: SVGElementEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: SVGFEGaussianBlurElement, + ev: SVGElementEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGFEGaussianBlurElement: { - prototype: SVGFEGaussianBlurElement; - new(): SVGFEGaussianBlurElement; + prototype: SVGFEGaussianBlurElement; + new (): SVGFEGaussianBlurElement; }; /** @@ -20322,17 +23996,34 @@ declare var SVGFEGaussianBlurElement: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEImageElement) */ -interface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGURIReference { - readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio; - addEventListener(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +interface SVGFEImageElement + extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGURIReference { + readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio; + addEventListener( + type: K, + listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGFEImageElement: { - prototype: SVGFEImageElement; - new(): SVGFEImageElement; + prototype: SVGFEImageElement; + new (): SVGFEImageElement; }; /** @@ -20340,16 +24031,33 @@ declare var SVGFEImageElement: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMergeElement) */ -interface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - addEventListener(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +interface SVGFEMergeElement + extends SVGElement, SVGFilterPrimitiveStandardAttributes { + addEventListener( + type: K, + listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGFEMergeElement: { - prototype: SVGFEMergeElement; - new(): SVGFEMergeElement; + prototype: SVGFEMergeElement; + new (): SVGFEMergeElement; }; /** @@ -20358,16 +24066,32 @@ declare var SVGFEMergeElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMergeNodeElement) */ interface SVGFEMergeNodeElement extends SVGElement { - readonly in1: SVGAnimatedString; - addEventListener(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + readonly in1: SVGAnimatedString; + addEventListener( + type: K, + listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGFEMergeNodeElement: { - prototype: SVGFEMergeNodeElement; - new(): SVGFEMergeNodeElement; + prototype: SVGFEMergeNodeElement; + new (): SVGFEMergeNodeElement; }; /** @@ -20375,26 +24099,43 @@ declare var SVGFEMergeNodeElement: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement) */ -interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - readonly in1: SVGAnimatedString; - readonly operator: SVGAnimatedEnumeration; - readonly radiusX: SVGAnimatedNumber; - readonly radiusY: SVGAnimatedNumber; - readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0; - readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1; - readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2; - addEventListener(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +interface SVGFEMorphologyElement + extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly in1: SVGAnimatedString; + readonly operator: SVGAnimatedEnumeration; + readonly radiusX: SVGAnimatedNumber; + readonly radiusY: SVGAnimatedNumber; + readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0; + readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1; + readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2; + addEventListener( + type: K, + listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGFEMorphologyElement: { - prototype: SVGFEMorphologyElement; - new(): SVGFEMorphologyElement; - readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0; - readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1; - readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2; + prototype: SVGFEMorphologyElement; + new (): SVGFEMorphologyElement; + readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0; + readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1; + readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2; }; /** @@ -20402,19 +24143,36 @@ declare var SVGFEMorphologyElement: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEOffsetElement) */ -interface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - readonly dx: SVGAnimatedNumber; - readonly dy: SVGAnimatedNumber; - readonly in1: SVGAnimatedString; - addEventListener(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +interface SVGFEOffsetElement + extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly dx: SVGAnimatedNumber; + readonly dy: SVGAnimatedNumber; + readonly in1: SVGAnimatedString; + addEventListener( + type: K, + listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGFEOffsetElement: { - prototype: SVGFEOffsetElement; - new(): SVGFEOffsetElement; + prototype: SVGFEOffsetElement; + new (): SVGFEOffsetElement; }; /** @@ -20423,18 +24181,34 @@ declare var SVGFEOffsetElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEPointLightElement) */ interface SVGFEPointLightElement extends SVGElement { - readonly x: SVGAnimatedNumber; - readonly y: SVGAnimatedNumber; - readonly z: SVGAnimatedNumber; - addEventListener(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + readonly x: SVGAnimatedNumber; + readonly y: SVGAnimatedNumber; + readonly z: SVGAnimatedNumber; + addEventListener( + type: K, + listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGFEPointLightElement: { - prototype: SVGFEPointLightElement; - new(): SVGFEPointLightElement; + prototype: SVGFEPointLightElement; + new (): SVGFEPointLightElement; }; /** @@ -20442,22 +24216,45 @@ declare var SVGFEPointLightElement: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement) */ -interface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - readonly in1: SVGAnimatedString; - readonly kernelUnitLengthX: SVGAnimatedNumber; - readonly kernelUnitLengthY: SVGAnimatedNumber; - readonly specularConstant: SVGAnimatedNumber; - readonly specularExponent: SVGAnimatedNumber; - readonly surfaceScale: SVGAnimatedNumber; - addEventListener(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +interface SVGFESpecularLightingElement + extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly in1: SVGAnimatedString; + readonly kernelUnitLengthX: SVGAnimatedNumber; + readonly kernelUnitLengthY: SVGAnimatedNumber; + readonly specularConstant: SVGAnimatedNumber; + readonly specularExponent: SVGAnimatedNumber; + readonly surfaceScale: SVGAnimatedNumber; + addEventListener( + type: K, + listener: ( + this: SVGFESpecularLightingElement, + ev: SVGElementEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: SVGFESpecularLightingElement, + ev: SVGElementEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGFESpecularLightingElement: { - prototype: SVGFESpecularLightingElement; - new(): SVGFESpecularLightingElement; + prototype: SVGFESpecularLightingElement; + new (): SVGFESpecularLightingElement; }; /** @@ -20466,23 +24263,39 @@ declare var SVGFESpecularLightingElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement) */ interface SVGFESpotLightElement extends SVGElement { - readonly limitingConeAngle: SVGAnimatedNumber; - readonly pointsAtX: SVGAnimatedNumber; - readonly pointsAtY: SVGAnimatedNumber; - readonly pointsAtZ: SVGAnimatedNumber; - readonly specularExponent: SVGAnimatedNumber; - readonly x: SVGAnimatedNumber; - readonly y: SVGAnimatedNumber; - readonly z: SVGAnimatedNumber; - addEventListener(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + readonly limitingConeAngle: SVGAnimatedNumber; + readonly pointsAtX: SVGAnimatedNumber; + readonly pointsAtY: SVGAnimatedNumber; + readonly pointsAtZ: SVGAnimatedNumber; + readonly specularExponent: SVGAnimatedNumber; + readonly x: SVGAnimatedNumber; + readonly y: SVGAnimatedNumber; + readonly z: SVGAnimatedNumber; + addEventListener( + type: K, + listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGFESpotLightElement: { - prototype: SVGFESpotLightElement; - new(): SVGFESpotLightElement; + prototype: SVGFESpotLightElement; + new (): SVGFESpotLightElement; }; /** @@ -20490,17 +24303,34 @@ declare var SVGFESpotLightElement: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETileElement) */ -interface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - readonly in1: SVGAnimatedString; - addEventListener(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +interface SVGFETileElement + extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly in1: SVGAnimatedString; + addEventListener( + type: K, + listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGFETileElement: { - prototype: SVGFETileElement; - new(): SVGFETileElement; + prototype: SVGFETileElement; + new (): SVGFETileElement; }; /** @@ -20508,34 +24338,51 @@ declare var SVGFETileElement: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETurbulenceElement) */ -interface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - readonly baseFrequencyX: SVGAnimatedNumber; - readonly baseFrequencyY: SVGAnimatedNumber; - readonly numOctaves: SVGAnimatedInteger; - readonly seed: SVGAnimatedNumber; - readonly stitchTiles: SVGAnimatedEnumeration; - readonly type: SVGAnimatedEnumeration; - readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0; - readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1; - readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2; - readonly SVG_STITCHTYPE_UNKNOWN: 0; - readonly SVG_STITCHTYPE_STITCH: 1; - readonly SVG_STITCHTYPE_NOSTITCH: 2; - addEventListener(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +interface SVGFETurbulenceElement + extends SVGElement, SVGFilterPrimitiveStandardAttributes { + readonly baseFrequencyX: SVGAnimatedNumber; + readonly baseFrequencyY: SVGAnimatedNumber; + readonly numOctaves: SVGAnimatedInteger; + readonly seed: SVGAnimatedNumber; + readonly stitchTiles: SVGAnimatedEnumeration; + readonly type: SVGAnimatedEnumeration; + readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0; + readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1; + readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2; + readonly SVG_STITCHTYPE_UNKNOWN: 0; + readonly SVG_STITCHTYPE_STITCH: 1; + readonly SVG_STITCHTYPE_NOSTITCH: 2; + addEventListener( + type: K, + listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGFETurbulenceElement: { - prototype: SVGFETurbulenceElement; - new(): SVGFETurbulenceElement; - readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0; - readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1; - readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2; - readonly SVG_STITCHTYPE_UNKNOWN: 0; - readonly SVG_STITCHTYPE_STITCH: 1; - readonly SVG_STITCHTYPE_NOSTITCH: 2; + prototype: SVGFETurbulenceElement; + new (): SVGFETurbulenceElement; + readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0; + readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1; + readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2; + readonly SVG_STITCHTYPE_UNKNOWN: 0; + readonly SVG_STITCHTYPE_STITCH: 1; + readonly SVG_STITCHTYPE_NOSTITCH: 2; }; /** @@ -20544,36 +24391,52 @@ declare var SVGFETurbulenceElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement) */ interface SVGFilterElement extends SVGElement, SVGURIReference { - readonly filterUnits: SVGAnimatedEnumeration; - readonly height: SVGAnimatedLength; - readonly primitiveUnits: SVGAnimatedEnumeration; - readonly width: SVGAnimatedLength; - readonly x: SVGAnimatedLength; - readonly y: SVGAnimatedLength; - addEventListener(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + readonly filterUnits: SVGAnimatedEnumeration; + readonly height: SVGAnimatedLength; + readonly primitiveUnits: SVGAnimatedEnumeration; + readonly width: SVGAnimatedLength; + readonly x: SVGAnimatedLength; + readonly y: SVGAnimatedLength; + addEventListener( + type: K, + listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGFilterElement: { - prototype: SVGFilterElement; - new(): SVGFilterElement; + prototype: SVGFilterElement; + new (): SVGFilterElement; }; interface SVGFilterPrimitiveStandardAttributes { - readonly height: SVGAnimatedLength; - readonly result: SVGAnimatedString; - readonly width: SVGAnimatedLength; - readonly x: SVGAnimatedLength; - readonly y: SVGAnimatedLength; + readonly height: SVGAnimatedLength; + readonly result: SVGAnimatedString; + readonly width: SVGAnimatedLength; + readonly x: SVGAnimatedLength; + readonly y: SVGAnimatedLength; } interface SVGFitToViewBox { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/preserveAspectRatio) */ - readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/viewBox) */ - readonly viewBox: SVGAnimatedRect; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/preserveAspectRatio) */ + readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/viewBox) */ + readonly viewBox: SVGAnimatedRect; } /** @@ -20582,19 +24445,35 @@ interface SVGFitToViewBox { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGForeignObjectElement) */ interface SVGForeignObjectElement extends SVGGraphicsElement { - readonly height: SVGAnimatedLength; - readonly width: SVGAnimatedLength; - readonly x: SVGAnimatedLength; - readonly y: SVGAnimatedLength; - addEventListener(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + readonly height: SVGAnimatedLength; + readonly width: SVGAnimatedLength; + readonly x: SVGAnimatedLength; + readonly y: SVGAnimatedLength; + addEventListener( + type: K, + listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGForeignObjectElement: { - prototype: SVGForeignObjectElement; - new(): SVGForeignObjectElement; + prototype: SVGForeignObjectElement; + new (): SVGForeignObjectElement; }; /** @@ -20603,38 +24482,70 @@ declare var SVGForeignObjectElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGElement) */ interface SVGGElement extends SVGGraphicsElement { - addEventListener(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGGElement: { - prototype: SVGGElement; - new(): SVGGElement; + prototype: SVGGElement; + new (): SVGGElement; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement) */ interface SVGGeometryElement extends SVGGraphicsElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/pathLength) */ - readonly pathLength: SVGAnimatedNumber; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/getPointAtLength) */ - getPointAtLength(distance: number): DOMPoint; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/getTotalLength) */ - getTotalLength(): number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/isPointInFill) */ - isPointInFill(point?: DOMPointInit): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/isPointInStroke) */ - isPointInStroke(point?: DOMPointInit): boolean; - addEventListener(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/pathLength) */ + readonly pathLength: SVGAnimatedNumber; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/getPointAtLength) */ + getPointAtLength(distance: number): DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/getTotalLength) */ + getTotalLength(): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/isPointInFill) */ + isPointInFill(point?: DOMPointInit): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/isPointInStroke) */ + isPointInStroke(point?: DOMPointInit): boolean; + addEventListener( + type: K, + listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGGeometryElement: { - prototype: SVGGeometryElement; - new(): SVGGeometryElement; + prototype: SVGGeometryElement; + new (): SVGGeometryElement; }; /** @@ -20643,26 +24554,42 @@ declare var SVGGeometryElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGradientElement) */ interface SVGGradientElement extends SVGElement, SVGURIReference { - readonly gradientTransform: SVGAnimatedTransformList; - readonly gradientUnits: SVGAnimatedEnumeration; - readonly spreadMethod: SVGAnimatedEnumeration; - readonly SVG_SPREADMETHOD_UNKNOWN: 0; - readonly SVG_SPREADMETHOD_PAD: 1; - readonly SVG_SPREADMETHOD_REFLECT: 2; - readonly SVG_SPREADMETHOD_REPEAT: 3; - addEventListener(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + readonly gradientTransform: SVGAnimatedTransformList; + readonly gradientUnits: SVGAnimatedEnumeration; + readonly spreadMethod: SVGAnimatedEnumeration; + readonly SVG_SPREADMETHOD_UNKNOWN: 0; + readonly SVG_SPREADMETHOD_PAD: 1; + readonly SVG_SPREADMETHOD_REFLECT: 2; + readonly SVG_SPREADMETHOD_REPEAT: 3; + addEventListener( + type: K, + listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGGradientElement: { - prototype: SVGGradientElement; - new(): SVGGradientElement; - readonly SVG_SPREADMETHOD_UNKNOWN: 0; - readonly SVG_SPREADMETHOD_PAD: 1; - readonly SVG_SPREADMETHOD_REFLECT: 2; - readonly SVG_SPREADMETHOD_REPEAT: 3; + prototype: SVGGradientElement; + new (): SVGGradientElement; + readonly SVG_SPREADMETHOD_UNKNOWN: 0; + readonly SVG_SPREADMETHOD_PAD: 1; + readonly SVG_SPREADMETHOD_REFLECT: 2; + readonly SVG_SPREADMETHOD_REPEAT: 3; }; /** @@ -20671,20 +24598,36 @@ declare var SVGGradientElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement) */ interface SVGGraphicsElement extends SVGElement, SVGTests { - readonly transform: SVGAnimatedTransformList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/getBBox) */ - getBBox(options?: SVGBoundingBoxOptions): DOMRect; - getCTM(): DOMMatrix | null; - getScreenCTM(): DOMMatrix | null; - addEventListener(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + readonly transform: SVGAnimatedTransformList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/getBBox) */ + getBBox(options?: SVGBoundingBoxOptions): DOMRect; + getCTM(): DOMMatrix | null; + getScreenCTM(): DOMMatrix | null; + addEventListener( + type: K, + listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGGraphicsElement: { - prototype: SVGGraphicsElement; - new(): SVGGraphicsElement; + prototype: SVGGraphicsElement; + new (): SVGGraphicsElement; }; /** @@ -20693,26 +24636,42 @@ declare var SVGGraphicsElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement) */ interface SVGImageElement extends SVGGraphicsElement, SVGURIReference { - crossOrigin: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/height) */ - readonly height: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/preserveAspectRatio) */ - readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/width) */ - readonly width: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/x) */ - readonly x: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/y) */ - readonly y: SVGAnimatedLength; - addEventListener(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + crossOrigin: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/height) */ + readonly height: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/preserveAspectRatio) */ + readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/width) */ + readonly width: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/x) */ + readonly x: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/y) */ + readonly y: SVGAnimatedLength; + addEventListener( + type: K, + listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGImageElement: { - prototype: SVGImageElement; - new(): SVGImageElement; + prototype: SVGImageElement; + new (): SVGImageElement; }; /** @@ -20721,39 +24680,39 @@ declare var SVGImageElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLength) */ interface SVGLength { - readonly unitType: number; - value: number; - valueAsString: string; - valueInSpecifiedUnits: number; - convertToSpecifiedUnits(unitType: number): void; - newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void; - readonly SVG_LENGTHTYPE_UNKNOWN: 0; - readonly SVG_LENGTHTYPE_NUMBER: 1; - readonly SVG_LENGTHTYPE_PERCENTAGE: 2; - readonly SVG_LENGTHTYPE_EMS: 3; - readonly SVG_LENGTHTYPE_EXS: 4; - readonly SVG_LENGTHTYPE_PX: 5; - readonly SVG_LENGTHTYPE_CM: 6; - readonly SVG_LENGTHTYPE_MM: 7; - readonly SVG_LENGTHTYPE_IN: 8; - readonly SVG_LENGTHTYPE_PT: 9; - readonly SVG_LENGTHTYPE_PC: 10; + readonly unitType: number; + value: number; + valueAsString: string; + valueInSpecifiedUnits: number; + convertToSpecifiedUnits(unitType: number): void; + newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void; + readonly SVG_LENGTHTYPE_UNKNOWN: 0; + readonly SVG_LENGTHTYPE_NUMBER: 1; + readonly SVG_LENGTHTYPE_PERCENTAGE: 2; + readonly SVG_LENGTHTYPE_EMS: 3; + readonly SVG_LENGTHTYPE_EXS: 4; + readonly SVG_LENGTHTYPE_PX: 5; + readonly SVG_LENGTHTYPE_CM: 6; + readonly SVG_LENGTHTYPE_MM: 7; + readonly SVG_LENGTHTYPE_IN: 8; + readonly SVG_LENGTHTYPE_PT: 9; + readonly SVG_LENGTHTYPE_PC: 10; } declare var SVGLength: { - prototype: SVGLength; - new(): SVGLength; - readonly SVG_LENGTHTYPE_UNKNOWN: 0; - readonly SVG_LENGTHTYPE_NUMBER: 1; - readonly SVG_LENGTHTYPE_PERCENTAGE: 2; - readonly SVG_LENGTHTYPE_EMS: 3; - readonly SVG_LENGTHTYPE_EXS: 4; - readonly SVG_LENGTHTYPE_PX: 5; - readonly SVG_LENGTHTYPE_CM: 6; - readonly SVG_LENGTHTYPE_MM: 7; - readonly SVG_LENGTHTYPE_IN: 8; - readonly SVG_LENGTHTYPE_PT: 9; - readonly SVG_LENGTHTYPE_PC: 10; + prototype: SVGLength; + new (): SVGLength; + readonly SVG_LENGTHTYPE_UNKNOWN: 0; + readonly SVG_LENGTHTYPE_NUMBER: 1; + readonly SVG_LENGTHTYPE_PERCENTAGE: 2; + readonly SVG_LENGTHTYPE_EMS: 3; + readonly SVG_LENGTHTYPE_EXS: 4; + readonly SVG_LENGTHTYPE_PX: 5; + readonly SVG_LENGTHTYPE_CM: 6; + readonly SVG_LENGTHTYPE_MM: 7; + readonly SVG_LENGTHTYPE_IN: 8; + readonly SVG_LENGTHTYPE_PT: 9; + readonly SVG_LENGTHTYPE_PC: 10; }; /** @@ -20762,30 +24721,30 @@ declare var SVGLength: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList) */ interface SVGLengthList { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/length) */ - readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/numberOfItems) */ - readonly numberOfItems: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/appendItem) */ - appendItem(newItem: SVGLength): SVGLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/clear) */ - clear(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/getItem) */ - getItem(index: number): SVGLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/initialize) */ - initialize(newItem: SVGLength): SVGLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/insertItemBefore) */ - insertItemBefore(newItem: SVGLength, index: number): SVGLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/removeItem) */ - removeItem(index: number): SVGLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/replaceItem) */ - replaceItem(newItem: SVGLength, index: number): SVGLength; - [index: number]: SVGLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/numberOfItems) */ + readonly numberOfItems: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/appendItem) */ + appendItem(newItem: SVGLength): SVGLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/clear) */ + clear(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/getItem) */ + getItem(index: number): SVGLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/initialize) */ + initialize(newItem: SVGLength): SVGLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/insertItemBefore) */ + insertItemBefore(newItem: SVGLength, index: number): SVGLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/removeItem) */ + removeItem(index: number): SVGLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/replaceItem) */ + replaceItem(newItem: SVGLength, index: number): SVGLength; + [index: number]: SVGLength; } declare var SVGLengthList: { - prototype: SVGLengthList; - new(): SVGLengthList; + prototype: SVGLengthList; + new (): SVGLengthList; }; /** @@ -20794,19 +24753,35 @@ declare var SVGLengthList: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLineElement) */ interface SVGLineElement extends SVGGeometryElement { - readonly x1: SVGAnimatedLength; - readonly x2: SVGAnimatedLength; - readonly y1: SVGAnimatedLength; - readonly y2: SVGAnimatedLength; - addEventListener(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + readonly x1: SVGAnimatedLength; + readonly x2: SVGAnimatedLength; + readonly y1: SVGAnimatedLength; + readonly y2: SVGAnimatedLength; + addEventListener( + type: K, + listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGLineElement: { - prototype: SVGLineElement; - new(): SVGLineElement; + prototype: SVGLineElement; + new (): SVGLineElement; }; /** @@ -20815,75 +24790,129 @@ declare var SVGLineElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement) */ interface SVGLinearGradientElement extends SVGGradientElement { - readonly x1: SVGAnimatedLength; - readonly x2: SVGAnimatedLength; - readonly y1: SVGAnimatedLength; - readonly y2: SVGAnimatedLength; - addEventListener(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + readonly x1: SVGAnimatedLength; + readonly x2: SVGAnimatedLength; + readonly y1: SVGAnimatedLength; + readonly y2: SVGAnimatedLength; + addEventListener( + type: K, + listener: ( + this: SVGLinearGradientElement, + ev: SVGElementEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: SVGLinearGradientElement, + ev: SVGElementEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGLinearGradientElement: { - prototype: SVGLinearGradientElement; - new(): SVGLinearGradientElement; + prototype: SVGLinearGradientElement; + new (): SVGLinearGradientElement; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMPathElement) */ interface SVGMPathElement extends SVGElement, SVGURIReference { - addEventListener(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGMPathElement: { - prototype: SVGMPathElement; - new(): SVGMPathElement; + prototype: SVGMPathElement; + new (): SVGMPathElement; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement) */ interface SVGMarkerElement extends SVGElement, SVGFitToViewBox { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerHeight) */ - readonly markerHeight: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerUnits) */ - readonly markerUnits: SVGAnimatedEnumeration; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerWidth) */ - readonly markerWidth: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/orientAngle) */ - readonly orientAngle: SVGAnimatedAngle; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/orientType) */ - readonly orientType: SVGAnimatedEnumeration; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/refX) */ - readonly refX: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/refY) */ - readonly refY: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/setOrientToAngle) */ - setOrientToAngle(angle: SVGAngle): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/setOrientToAuto) */ - setOrientToAuto(): void; - readonly SVG_MARKERUNITS_UNKNOWN: 0; - readonly SVG_MARKERUNITS_USERSPACEONUSE: 1; - readonly SVG_MARKERUNITS_STROKEWIDTH: 2; - readonly SVG_MARKER_ORIENT_UNKNOWN: 0; - readonly SVG_MARKER_ORIENT_AUTO: 1; - readonly SVG_MARKER_ORIENT_ANGLE: 2; - 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; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerHeight) */ + readonly markerHeight: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerUnits) */ + readonly markerUnits: SVGAnimatedEnumeration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerWidth) */ + readonly markerWidth: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/orientAngle) */ + readonly orientAngle: SVGAnimatedAngle; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/orientType) */ + readonly orientType: SVGAnimatedEnumeration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/refX) */ + readonly refX: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/refY) */ + readonly refY: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/setOrientToAngle) */ + setOrientToAngle(angle: SVGAngle): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/setOrientToAuto) */ + setOrientToAuto(): void; + readonly SVG_MARKERUNITS_UNKNOWN: 0; + readonly SVG_MARKERUNITS_USERSPACEONUSE: 1; + readonly SVG_MARKERUNITS_STROKEWIDTH: 2; + readonly SVG_MARKER_ORIENT_UNKNOWN: 0; + readonly SVG_MARKER_ORIENT_AUTO: 1; + readonly SVG_MARKER_ORIENT_ANGLE: 2; + 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; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGMarkerElement: { - prototype: SVGMarkerElement; - new(): SVGMarkerElement; - readonly SVG_MARKERUNITS_UNKNOWN: 0; - readonly SVG_MARKERUNITS_USERSPACEONUSE: 1; - readonly SVG_MARKERUNITS_STROKEWIDTH: 2; - readonly SVG_MARKER_ORIENT_UNKNOWN: 0; - readonly SVG_MARKER_ORIENT_AUTO: 1; - readonly SVG_MARKER_ORIENT_ANGLE: 2; + prototype: SVGMarkerElement; + new (): SVGMarkerElement; + readonly SVG_MARKERUNITS_UNKNOWN: 0; + readonly SVG_MARKERUNITS_USERSPACEONUSE: 1; + readonly SVG_MARKERUNITS_STROKEWIDTH: 2; + readonly SVG_MARKER_ORIENT_UNKNOWN: 0; + readonly SVG_MARKER_ORIENT_AUTO: 1; + readonly SVG_MARKER_ORIENT_ANGLE: 2; }; /** @@ -20892,27 +24921,43 @@ declare var SVGMarkerElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement) */ interface SVGMaskElement extends SVGElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/height) */ - readonly height: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/maskContentUnits) */ - readonly maskContentUnits: SVGAnimatedEnumeration; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/maskUnits) */ - readonly maskUnits: SVGAnimatedEnumeration; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/width) */ - readonly width: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/x) */ - readonly x: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/y) */ - readonly y: SVGAnimatedLength; - addEventListener(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/height) */ + readonly height: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/maskContentUnits) */ + readonly maskContentUnits: SVGAnimatedEnumeration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/maskUnits) */ + readonly maskUnits: SVGAnimatedEnumeration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/width) */ + readonly width: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/x) */ + readonly x: SVGAnimatedLength; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/y) */ + readonly y: SVGAnimatedLength; + addEventListener( + type: K, + listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGMaskElement: { - prototype: SVGMaskElement; - new(): SVGMaskElement; + prototype: SVGMaskElement; + new (): SVGMaskElement; }; /** @@ -20921,15 +24966,31 @@ declare var SVGMaskElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMetadataElement) */ interface SVGMetadataElement extends SVGElement { - addEventListener(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGMetadataElement: { - prototype: SVGMetadataElement; - new(): SVGMetadataElement; + prototype: SVGMetadataElement; + new (): SVGMetadataElement; }; /** @@ -20938,12 +24999,12 @@ declare var SVGMetadataElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumber) */ interface SVGNumber { - value: number; + value: number; } declare var SVGNumber: { - prototype: SVGNumber; - new(): SVGNumber; + prototype: SVGNumber; + new (): SVGNumber; }; /** @@ -20952,21 +25013,21 @@ declare var SVGNumber: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList) */ interface SVGNumberList { - readonly length: number; - readonly numberOfItems: number; - appendItem(newItem: SVGNumber): SVGNumber; - clear(): void; - getItem(index: number): SVGNumber; - initialize(newItem: SVGNumber): SVGNumber; - insertItemBefore(newItem: SVGNumber, index: number): SVGNumber; - removeItem(index: number): SVGNumber; - replaceItem(newItem: SVGNumber, index: number): SVGNumber; - [index: number]: SVGNumber; + readonly length: number; + readonly numberOfItems: number; + appendItem(newItem: SVGNumber): SVGNumber; + clear(): void; + getItem(index: number): SVGNumber; + initialize(newItem: SVGNumber): SVGNumber; + insertItemBefore(newItem: SVGNumber, index: number): SVGNumber; + removeItem(index: number): SVGNumber; + replaceItem(newItem: SVGNumber, index: number): SVGNumber; + [index: number]: SVGNumber; } declare var SVGNumberList: { - prototype: SVGNumberList; - new(): SVGNumberList; + prototype: SVGNumberList; + new (): SVGNumberList; }; /** @@ -20975,15 +25036,31 @@ declare var SVGNumberList: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPathElement) */ interface SVGPathElement extends SVGGeometryElement { - addEventListener(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGPathElement: { - prototype: SVGPathElement; - new(): SVGPathElement; + prototype: SVGPathElement; + new (): SVGPathElement; }; /** @@ -20991,51 +25068,68 @@ declare var SVGPathElement: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement) */ -interface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGURIReference { - readonly height: SVGAnimatedLength; - readonly patternContentUnits: SVGAnimatedEnumeration; - readonly patternTransform: SVGAnimatedTransformList; - readonly patternUnits: SVGAnimatedEnumeration; - readonly width: SVGAnimatedLength; - readonly x: SVGAnimatedLength; - readonly y: SVGAnimatedLength; - addEventListener(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +interface SVGPatternElement + extends SVGElement, SVGFitToViewBox, SVGURIReference { + readonly height: SVGAnimatedLength; + readonly patternContentUnits: SVGAnimatedEnumeration; + readonly patternTransform: SVGAnimatedTransformList; + readonly patternUnits: SVGAnimatedEnumeration; + readonly width: SVGAnimatedLength; + readonly x: SVGAnimatedLength; + readonly y: SVGAnimatedLength; + addEventListener( + type: K, + listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGPatternElement: { - prototype: SVGPatternElement; - new(): SVGPatternElement; + prototype: SVGPatternElement; + new (): SVGPatternElement; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList) */ interface SVGPointList { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/length) */ - readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/numberOfItems) */ - readonly numberOfItems: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/appendItem) */ - appendItem(newItem: DOMPoint): DOMPoint; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/clear) */ - clear(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/getItem) */ - getItem(index: number): DOMPoint; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/initialize) */ - initialize(newItem: DOMPoint): DOMPoint; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/insertItemBefore) */ - insertItemBefore(newItem: DOMPoint, index: number): DOMPoint; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/removeItem) */ - removeItem(index: number): DOMPoint; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/replaceItem) */ - replaceItem(newItem: DOMPoint, index: number): DOMPoint; - [index: number]: DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/numberOfItems) */ + readonly numberOfItems: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/appendItem) */ + appendItem(newItem: DOMPoint): DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/clear) */ + clear(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/getItem) */ + getItem(index: number): DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/initialize) */ + initialize(newItem: DOMPoint): DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/insertItemBefore) */ + insertItemBefore(newItem: DOMPoint, index: number): DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/removeItem) */ + removeItem(index: number): DOMPoint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/replaceItem) */ + replaceItem(newItem: DOMPoint, index: number): DOMPoint; + [index: number]: DOMPoint; } declare var SVGPointList: { - prototype: SVGPointList; - new(): SVGPointList; + prototype: SVGPointList; + new (): SVGPointList; }; /** @@ -21044,15 +25138,31 @@ declare var SVGPointList: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPolygonElement) */ interface SVGPolygonElement extends SVGGeometryElement, SVGAnimatedPoints { - addEventListener(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGPolygonElement: { - prototype: SVGPolygonElement; - new(): SVGPolygonElement; + prototype: SVGPolygonElement; + new (): SVGPolygonElement; }; /** @@ -21061,15 +25171,31 @@ declare var SVGPolygonElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPolylineElement) */ interface SVGPolylineElement extends SVGGeometryElement, SVGAnimatedPoints { - addEventListener(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGPolylineElement: { - prototype: SVGPolylineElement; - new(): SVGPolylineElement; + prototype: SVGPolylineElement; + new (): SVGPolylineElement; }; /** @@ -21078,41 +25204,41 @@ declare var SVGPolylineElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPreserveAspectRatio) */ interface SVGPreserveAspectRatio { - align: number; - meetOrSlice: number; - readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0; - readonly SVG_PRESERVEASPECTRATIO_NONE: 1; - readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2; - readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3; - readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4; - readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5; - readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6; - readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7; - readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8; - readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9; - readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10; - readonly SVG_MEETORSLICE_UNKNOWN: 0; - readonly SVG_MEETORSLICE_MEET: 1; - readonly SVG_MEETORSLICE_SLICE: 2; + align: number; + meetOrSlice: number; + readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0; + readonly SVG_PRESERVEASPECTRATIO_NONE: 1; + readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2; + readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3; + readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4; + readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5; + readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6; + readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7; + readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8; + readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9; + readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10; + readonly SVG_MEETORSLICE_UNKNOWN: 0; + readonly SVG_MEETORSLICE_MEET: 1; + readonly SVG_MEETORSLICE_SLICE: 2; } declare var SVGPreserveAspectRatio: { - prototype: SVGPreserveAspectRatio; - new(): SVGPreserveAspectRatio; - readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0; - readonly SVG_PRESERVEASPECTRATIO_NONE: 1; - readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2; - readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3; - readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4; - readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5; - readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6; - readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7; - readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8; - readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9; - readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10; - readonly SVG_MEETORSLICE_UNKNOWN: 0; - readonly SVG_MEETORSLICE_MEET: 1; - readonly SVG_MEETORSLICE_SLICE: 2; + prototype: SVGPreserveAspectRatio; + new (): SVGPreserveAspectRatio; + readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0; + readonly SVG_PRESERVEASPECTRATIO_NONE: 1; + readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2; + readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3; + readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4; + readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5; + readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6; + readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7; + readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8; + readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9; + readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10; + readonly SVG_MEETORSLICE_UNKNOWN: 0; + readonly SVG_MEETORSLICE_MEET: 1; + readonly SVG_MEETORSLICE_SLICE: 2; }; /** @@ -21121,21 +25247,43 @@ declare var SVGPreserveAspectRatio: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement) */ interface SVGRadialGradientElement extends SVGGradientElement { - readonly cx: SVGAnimatedLength; - readonly cy: SVGAnimatedLength; - readonly fr: SVGAnimatedLength; - readonly fx: SVGAnimatedLength; - readonly fy: SVGAnimatedLength; - readonly r: SVGAnimatedLength; - addEventListener(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + readonly cx: SVGAnimatedLength; + readonly cy: SVGAnimatedLength; + readonly fr: SVGAnimatedLength; + readonly fx: SVGAnimatedLength; + readonly fy: SVGAnimatedLength; + readonly r: SVGAnimatedLength; + addEventListener( + type: K, + listener: ( + this: SVGRadialGradientElement, + ev: SVGElementEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: SVGRadialGradientElement, + ev: SVGElementEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGRadialGradientElement: { - prototype: SVGRadialGradientElement; - new(): SVGRadialGradientElement; + prototype: SVGRadialGradientElement; + new (): SVGRadialGradientElement; }; /** @@ -21144,74 +25292,135 @@ declare var SVGRadialGradientElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement) */ interface SVGRectElement extends SVGGeometryElement { - readonly height: SVGAnimatedLength; - readonly rx: SVGAnimatedLength; - readonly ry: SVGAnimatedLength; - readonly width: SVGAnimatedLength; - readonly x: SVGAnimatedLength; - readonly y: SVGAnimatedLength; - addEventListener(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + readonly height: SVGAnimatedLength; + readonly rx: SVGAnimatedLength; + readonly ry: SVGAnimatedLength; + readonly width: SVGAnimatedLength; + readonly x: SVGAnimatedLength; + readonly y: SVGAnimatedLength; + addEventListener( + type: K, + listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGRectElement: { - prototype: SVGRectElement; - new(): SVGRectElement; + prototype: SVGRectElement; + new (): SVGRectElement; }; -interface SVGSVGElementEventMap extends SVGElementEventMap, WindowEventHandlersEventMap { -} +interface SVGSVGElementEventMap + extends SVGElementEventMap, WindowEventHandlersEventMap {} /** * Provides access to the properties of elements, as well as methods to manipulate them. This interface contains also various miscellaneous commonly-used utility methods, such as matrix operations and the ability to control the time of redraw on visual rendering devices. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement) */ -interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEventHandlers { - currentScale: number; - readonly currentTranslate: DOMPointReadOnly; - readonly height: SVGAnimatedLength; - readonly width: SVGAnimatedLength; - readonly x: SVGAnimatedLength; - readonly y: SVGAnimatedLength; - animationsPaused(): boolean; - checkEnclosure(element: SVGElement, rect: DOMRectReadOnly): boolean; - checkIntersection(element: SVGElement, rect: DOMRectReadOnly): boolean; - createSVGAngle(): SVGAngle; - createSVGLength(): SVGLength; - createSVGMatrix(): DOMMatrix; - createSVGNumber(): SVGNumber; - createSVGPoint(): DOMPoint; - createSVGRect(): DOMRect; - createSVGTransform(): SVGTransform; - createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform; - deselectAll(): void; - /** @deprecated */ - forceRedraw(): void; - getCurrentTime(): number; - getElementById(elementId: string): Element; - getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf; - getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf; - pauseAnimations(): void; - setCurrentTime(seconds: number): void; - /** @deprecated */ - suspendRedraw(maxWaitMilliseconds: number): number; - unpauseAnimations(): void; - /** @deprecated */ - unsuspendRedraw(suspendHandleID: number): void; - /** @deprecated */ - unsuspendRedrawAll(): void; - addEventListener(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +interface SVGSVGElement + extends SVGGraphicsElement, SVGFitToViewBox, WindowEventHandlers { + currentScale: number; + readonly currentTranslate: DOMPointReadOnly; + readonly height: SVGAnimatedLength; + readonly width: SVGAnimatedLength; + readonly x: SVGAnimatedLength; + readonly y: SVGAnimatedLength; + animationsPaused(): boolean; + checkEnclosure(element: SVGElement, rect: DOMRectReadOnly): boolean; + checkIntersection(element: SVGElement, rect: DOMRectReadOnly): boolean; + createSVGAngle(): SVGAngle; + createSVGLength(): SVGLength; + createSVGMatrix(): DOMMatrix; + createSVGNumber(): SVGNumber; + createSVGPoint(): DOMPoint; + createSVGRect(): DOMRect; + createSVGTransform(): SVGTransform; + createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform; + deselectAll(): void; + /** @deprecated */ + forceRedraw(): void; + getCurrentTime(): number; + getElementById(elementId: string): Element; + getEnclosureList( + rect: DOMRectReadOnly, + referenceElement: SVGElement | null, + ): NodeListOf< + | SVGCircleElement + | SVGEllipseElement + | SVGImageElement + | SVGLineElement + | SVGPathElement + | SVGPolygonElement + | SVGPolylineElement + | SVGRectElement + | SVGTextElement + | SVGUseElement + >; + getIntersectionList( + rect: DOMRectReadOnly, + referenceElement: SVGElement | null, + ): NodeListOf< + | SVGCircleElement + | SVGEllipseElement + | SVGImageElement + | SVGLineElement + | SVGPathElement + | SVGPolygonElement + | SVGPolylineElement + | SVGRectElement + | SVGTextElement + | SVGUseElement + >; + pauseAnimations(): void; + setCurrentTime(seconds: number): void; + /** @deprecated */ + suspendRedraw(maxWaitMilliseconds: number): number; + unpauseAnimations(): void; + /** @deprecated */ + unsuspendRedraw(suspendHandleID: number): void; + /** @deprecated */ + unsuspendRedrawAll(): void; + addEventListener( + type: K, + listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGSVGElement: { - prototype: SVGSVGElement; - new(): SVGSVGElement; + prototype: SVGSVGElement; + new (): SVGSVGElement; }; /** @@ -21220,29 +25429,61 @@ declare var SVGSVGElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGScriptElement) */ interface SVGScriptElement extends SVGElement, SVGURIReference { - type: string; - addEventListener(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + type: string; + addEventListener( + type: K, + listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGScriptElement: { - prototype: SVGScriptElement; - new(): SVGScriptElement; + prototype: SVGScriptElement; + new (): SVGScriptElement; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSetElement) */ interface SVGSetElement extends SVGAnimationElement { - addEventListener(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGSetElement: { - prototype: SVGSetElement; - new(): SVGSetElement; + prototype: SVGSetElement; + new (): SVGSetElement; }; /** @@ -21251,16 +25492,32 @@ declare var SVGSetElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStopElement) */ interface SVGStopElement extends SVGElement { - readonly offset: SVGAnimatedNumber; - addEventListener(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + readonly offset: SVGAnimatedNumber; + addEventListener( + type: K, + listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGStopElement: { - prototype: SVGStopElement; - new(): SVGStopElement; + prototype: SVGStopElement; + new (): SVGStopElement; }; /** @@ -21269,21 +25526,21 @@ declare var SVGStopElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList) */ interface SVGStringList { - readonly length: number; - readonly numberOfItems: number; - appendItem(newItem: string): string; - clear(): void; - getItem(index: number): string; - initialize(newItem: string): string; - insertItemBefore(newItem: string, index: number): string; - removeItem(index: number): string; - replaceItem(newItem: string, index: number): string; - [index: number]: string; + readonly length: number; + readonly numberOfItems: number; + appendItem(newItem: string): string; + clear(): void; + getItem(index: number): string; + initialize(newItem: string): string; + insertItemBefore(newItem: string, index: number): string; + removeItem(index: number): string; + replaceItem(newItem: string, index: number): string; + [index: number]: string; } declare var SVGStringList: { - prototype: SVGStringList; - new(): SVGStringList; + prototype: SVGStringList; + new (): SVGStringList; }; /** @@ -21292,26 +25549,42 @@ declare var SVGStringList: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement) */ interface SVGStyleElement extends SVGElement, LinkStyle { - disabled: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/media) */ - media: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/title) */ - title: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/type) - */ - type: string; - addEventListener(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + disabled: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/media) */ + media: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/title) */ + title: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/type) + */ + type: string; + addEventListener( + type: K, + listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGStyleElement: { - prototype: SVGStyleElement; - new(): SVGStyleElement; + prototype: SVGStyleElement; + new (): SVGStyleElement; }; /** @@ -21320,15 +25593,31 @@ declare var SVGStyleElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSwitchElement) */ interface SVGSwitchElement extends SVGGraphicsElement { - addEventListener(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGSwitchElement: { - prototype: SVGSwitchElement; - new(): SVGSwitchElement; + prototype: SVGSwitchElement; + new (): SVGSwitchElement; }; /** @@ -21337,15 +25626,31 @@ declare var SVGSwitchElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSymbolElement) */ interface SVGSymbolElement extends SVGElement, SVGFitToViewBox { - addEventListener(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGSymbolElement: { - prototype: SVGSymbolElement; - new(): SVGSymbolElement; + prototype: SVGSymbolElement; + new (): SVGSymbolElement; }; /** @@ -21354,20 +25659,36 @@ declare var SVGSymbolElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTSpanElement) */ interface SVGTSpanElement extends SVGTextPositioningElement { - addEventListener(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGTSpanElement: { - prototype: SVGTSpanElement; - new(): SVGTSpanElement; + prototype: SVGTSpanElement; + new (): SVGTSpanElement; }; interface SVGTests { - readonly requiredExtensions: SVGStringList; - readonly systemLanguage: SVGStringList; + readonly requiredExtensions: SVGStringList; + readonly systemLanguage: SVGStringList; } /** @@ -21376,33 +25697,49 @@ interface SVGTests { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement) */ interface SVGTextContentElement extends SVGGraphicsElement { - readonly lengthAdjust: SVGAnimatedEnumeration; - readonly textLength: SVGAnimatedLength; - getCharNumAtPosition(point?: DOMPointInit): number; - getComputedTextLength(): number; - getEndPositionOfChar(charnum: number): DOMPoint; - getExtentOfChar(charnum: number): DOMRect; - getNumberOfChars(): number; - getRotationOfChar(charnum: number): number; - getStartPositionOfChar(charnum: number): DOMPoint; - getSubStringLength(charnum: number, nchars: number): number; - /** @deprecated */ - selectSubString(charnum: number, nchars: number): void; - readonly LENGTHADJUST_UNKNOWN: 0; - readonly LENGTHADJUST_SPACING: 1; - readonly LENGTHADJUST_SPACINGANDGLYPHS: 2; - addEventListener(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + readonly lengthAdjust: SVGAnimatedEnumeration; + readonly textLength: SVGAnimatedLength; + getCharNumAtPosition(point?: DOMPointInit): number; + getComputedTextLength(): number; + getEndPositionOfChar(charnum: number): DOMPoint; + getExtentOfChar(charnum: number): DOMRect; + getNumberOfChars(): number; + getRotationOfChar(charnum: number): number; + getStartPositionOfChar(charnum: number): DOMPoint; + getSubStringLength(charnum: number, nchars: number): number; + /** @deprecated */ + selectSubString(charnum: number, nchars: number): void; + readonly LENGTHADJUST_UNKNOWN: 0; + readonly LENGTHADJUST_SPACING: 1; + readonly LENGTHADJUST_SPACINGANDGLYPHS: 2; + addEventListener( + type: K, + listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGTextContentElement: { - prototype: SVGTextContentElement; - new(): SVGTextContentElement; - readonly LENGTHADJUST_UNKNOWN: 0; - readonly LENGTHADJUST_SPACING: 1; - readonly LENGTHADJUST_SPACINGANDGLYPHS: 2; + prototype: SVGTextContentElement; + new (): SVGTextContentElement; + readonly LENGTHADJUST_UNKNOWN: 0; + readonly LENGTHADJUST_SPACING: 1; + readonly LENGTHADJUST_SPACINGANDGLYPHS: 2; }; /** @@ -21411,15 +25748,31 @@ declare var SVGTextContentElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextElement) */ interface SVGTextElement extends SVGTextPositioningElement { - addEventListener(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGTextElement: { - prototype: SVGTextElement; - new(): SVGTextElement; + prototype: SVGTextElement; + new (): SVGTextElement; }; /** @@ -21428,30 +25781,46 @@ declare var SVGTextElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPathElement) */ interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference { - readonly method: SVGAnimatedEnumeration; - readonly spacing: SVGAnimatedEnumeration; - readonly startOffset: SVGAnimatedLength; - readonly TEXTPATH_METHODTYPE_UNKNOWN: 0; - readonly TEXTPATH_METHODTYPE_ALIGN: 1; - readonly TEXTPATH_METHODTYPE_STRETCH: 2; - readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0; - readonly TEXTPATH_SPACINGTYPE_AUTO: 1; - readonly TEXTPATH_SPACINGTYPE_EXACT: 2; - addEventListener(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + readonly method: SVGAnimatedEnumeration; + readonly spacing: SVGAnimatedEnumeration; + readonly startOffset: SVGAnimatedLength; + readonly TEXTPATH_METHODTYPE_UNKNOWN: 0; + readonly TEXTPATH_METHODTYPE_ALIGN: 1; + readonly TEXTPATH_METHODTYPE_STRETCH: 2; + readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0; + readonly TEXTPATH_SPACINGTYPE_AUTO: 1; + readonly TEXTPATH_SPACINGTYPE_EXACT: 2; + addEventListener( + type: K, + listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGTextPathElement: { - prototype: SVGTextPathElement; - new(): SVGTextPathElement; - readonly TEXTPATH_METHODTYPE_UNKNOWN: 0; - readonly TEXTPATH_METHODTYPE_ALIGN: 1; - readonly TEXTPATH_METHODTYPE_STRETCH: 2; - readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0; - readonly TEXTPATH_SPACINGTYPE_AUTO: 1; - readonly TEXTPATH_SPACINGTYPE_EXACT: 2; + prototype: SVGTextPathElement; + new (): SVGTextPathElement; + readonly TEXTPATH_METHODTYPE_UNKNOWN: 0; + readonly TEXTPATH_METHODTYPE_ALIGN: 1; + readonly TEXTPATH_METHODTYPE_STRETCH: 2; + readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0; + readonly TEXTPATH_SPACINGTYPE_AUTO: 1; + readonly TEXTPATH_SPACINGTYPE_EXACT: 2; }; /** @@ -21460,20 +25829,42 @@ declare var SVGTextPathElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPositioningElement) */ interface SVGTextPositioningElement extends SVGTextContentElement { - readonly dx: SVGAnimatedLengthList; - readonly dy: SVGAnimatedLengthList; - readonly rotate: SVGAnimatedNumberList; - readonly x: SVGAnimatedLengthList; - readonly y: SVGAnimatedLengthList; - addEventListener(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + readonly dx: SVGAnimatedLengthList; + readonly dy: SVGAnimatedLengthList; + readonly rotate: SVGAnimatedNumberList; + readonly x: SVGAnimatedLengthList; + readonly y: SVGAnimatedLengthList; + addEventListener( + type: K, + listener: ( + this: SVGTextPositioningElement, + ev: SVGElementEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: SVGTextPositioningElement, + ev: SVGElementEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGTextPositioningElement: { - prototype: SVGTextPositioningElement; - new(): SVGTextPositioningElement; + prototype: SVGTextPositioningElement; + new (): SVGTextPositioningElement; }; /** @@ -21482,15 +25873,31 @@ declare var SVGTextPositioningElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTitleElement) */ interface SVGTitleElement extends SVGElement { - addEventListener(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGTitleElement: { - prototype: SVGTitleElement; - new(): SVGTitleElement; + prototype: SVGTitleElement; + new (): SVGTitleElement; }; /** @@ -21499,34 +25906,34 @@ declare var SVGTitleElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform) */ interface SVGTransform { - readonly angle: number; - readonly matrix: DOMMatrix; - readonly type: number; - setMatrix(matrix?: DOMMatrix2DInit): void; - setRotate(angle: number, cx: number, cy: number): void; - setScale(sx: number, sy: number): void; - setSkewX(angle: number): void; - setSkewY(angle: number): void; - setTranslate(tx: number, ty: number): void; - readonly SVG_TRANSFORM_UNKNOWN: 0; - readonly SVG_TRANSFORM_MATRIX: 1; - readonly SVG_TRANSFORM_TRANSLATE: 2; - readonly SVG_TRANSFORM_SCALE: 3; - readonly SVG_TRANSFORM_ROTATE: 4; - readonly SVG_TRANSFORM_SKEWX: 5; - readonly SVG_TRANSFORM_SKEWY: 6; + readonly angle: number; + readonly matrix: DOMMatrix; + readonly type: number; + setMatrix(matrix?: DOMMatrix2DInit): void; + setRotate(angle: number, cx: number, cy: number): void; + setScale(sx: number, sy: number): void; + setSkewX(angle: number): void; + setSkewY(angle: number): void; + setTranslate(tx: number, ty: number): void; + readonly SVG_TRANSFORM_UNKNOWN: 0; + readonly SVG_TRANSFORM_MATRIX: 1; + readonly SVG_TRANSFORM_TRANSLATE: 2; + readonly SVG_TRANSFORM_SCALE: 3; + readonly SVG_TRANSFORM_ROTATE: 4; + readonly SVG_TRANSFORM_SKEWX: 5; + readonly SVG_TRANSFORM_SKEWY: 6; } declare var SVGTransform: { - prototype: SVGTransform; - new(): SVGTransform; - readonly SVG_TRANSFORM_UNKNOWN: 0; - readonly SVG_TRANSFORM_MATRIX: 1; - readonly SVG_TRANSFORM_TRANSLATE: 2; - readonly SVG_TRANSFORM_SCALE: 3; - readonly SVG_TRANSFORM_ROTATE: 4; - readonly SVG_TRANSFORM_SKEWX: 5; - readonly SVG_TRANSFORM_SKEWY: 6; + prototype: SVGTransform; + new (): SVGTransform; + readonly SVG_TRANSFORM_UNKNOWN: 0; + readonly SVG_TRANSFORM_MATRIX: 1; + readonly SVG_TRANSFORM_TRANSLATE: 2; + readonly SVG_TRANSFORM_SCALE: 3; + readonly SVG_TRANSFORM_ROTATE: 4; + readonly SVG_TRANSFORM_SKEWX: 5; + readonly SVG_TRANSFORM_SKEWY: 6; }; /** @@ -21535,27 +25942,27 @@ declare var SVGTransform: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList) */ interface SVGTransformList { - readonly length: number; - readonly numberOfItems: number; - appendItem(newItem: SVGTransform): SVGTransform; - clear(): void; - consolidate(): SVGTransform | null; - createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform; - getItem(index: number): SVGTransform; - initialize(newItem: SVGTransform): SVGTransform; - insertItemBefore(newItem: SVGTransform, index: number): SVGTransform; - removeItem(index: number): SVGTransform; - replaceItem(newItem: SVGTransform, index: number): SVGTransform; - [index: number]: SVGTransform; + readonly length: number; + readonly numberOfItems: number; + appendItem(newItem: SVGTransform): SVGTransform; + clear(): void; + consolidate(): SVGTransform | null; + createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform; + getItem(index: number): SVGTransform; + initialize(newItem: SVGTransform): SVGTransform; + insertItemBefore(newItem: SVGTransform, index: number): SVGTransform; + removeItem(index: number): SVGTransform; + replaceItem(newItem: SVGTransform, index: number): SVGTransform; + [index: number]: SVGTransform; } declare var SVGTransformList: { - prototype: SVGTransformList; - new(): SVGTransformList; + prototype: SVGTransformList; + new (): SVGTransformList; }; interface SVGURIReference { - readonly href: SVGAnimatedString; + readonly href: SVGAnimatedString; } /** @@ -21564,17 +25971,17 @@ interface SVGURIReference { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGUnitTypes) */ interface SVGUnitTypes { - readonly SVG_UNIT_TYPE_UNKNOWN: 0; - readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1; - readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2; + readonly SVG_UNIT_TYPE_UNKNOWN: 0; + readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1; + readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2; } declare var SVGUnitTypes: { - prototype: SVGUnitTypes; - new(): SVGUnitTypes; - readonly SVG_UNIT_TYPE_UNKNOWN: 0; - readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1; - readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2; + prototype: SVGUnitTypes; + new (): SVGUnitTypes; + readonly SVG_UNIT_TYPE_UNKNOWN: 0; + readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1; + readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2; }; /** @@ -21583,19 +25990,35 @@ declare var SVGUnitTypes: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGUseElement) */ interface SVGUseElement extends SVGGraphicsElement, SVGURIReference { - readonly height: SVGAnimatedLength; - readonly width: SVGAnimatedLength; - readonly x: SVGAnimatedLength; - readonly y: SVGAnimatedLength; - addEventListener(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + readonly height: SVGAnimatedLength; + readonly width: SVGAnimatedLength; + readonly x: SVGAnimatedLength; + readonly y: SVGAnimatedLength; + addEventListener( + type: K, + listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGUseElement: { - prototype: SVGUseElement; - new(): SVGUseElement; + prototype: SVGUseElement; + new (): SVGUseElement; }; /** @@ -21604,15 +26027,31 @@ declare var SVGUseElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGViewElement) */ interface SVGViewElement extends SVGElement, SVGFitToViewBox { - addEventListener(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SVGViewElement: { - prototype: SVGViewElement; - new(): SVGViewElement; + prototype: SVGViewElement; + new (): SVGViewElement; }; /** @@ -21621,54 +26060,76 @@ declare var SVGViewElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen) */ interface Screen { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/availHeight) */ - readonly availHeight: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/availWidth) */ - readonly availWidth: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/colorDepth) */ - readonly colorDepth: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/height) */ - readonly height: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/orientation) */ - readonly orientation: ScreenOrientation; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/pixelDepth) */ - readonly pixelDepth: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/width) */ - readonly width: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/availHeight) */ + readonly availHeight: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/availWidth) */ + readonly availWidth: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/colorDepth) */ + readonly colorDepth: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/height) */ + readonly height: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/orientation) */ + readonly orientation: ScreenOrientation; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/pixelDepth) */ + readonly pixelDepth: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/width) */ + readonly width: number; } declare var Screen: { - prototype: Screen; - new(): Screen; + prototype: Screen; + new (): Screen; }; interface ScreenOrientationEventMap { - "change": Event; + change: Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation) */ interface ScreenOrientation extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/angle) */ - readonly angle: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/change_event) */ - onchange: ((this: ScreenOrientation, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/type) */ - readonly type: OrientationType; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/unlock) */ - unlock(): void; - addEventListener(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/angle) */ + readonly angle: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/change_event) */ + onchange: ((this: ScreenOrientation, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/type) */ + readonly type: OrientationType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/unlock) */ + unlock(): void; + addEventListener( + type: K, + listener: ( + this: ScreenOrientation, + ev: ScreenOrientationEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: ScreenOrientation, + ev: ScreenOrientationEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var ScreenOrientation: { - prototype: ScreenOrientation; - new(): ScreenOrientation; + prototype: ScreenOrientation; + new (): ScreenOrientation; }; interface ScriptProcessorNodeEventMap { - "audioprocess": AudioProcessingEvent; + audioprocess: AudioProcessingEvent; } /** @@ -21678,28 +26139,52 @@ interface ScriptProcessorNodeEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScriptProcessorNode) */ interface ScriptProcessorNode extends AudioNode { - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScriptProcessorNode/bufferSize) - */ - readonly bufferSize: number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScriptProcessorNode/audioprocess_event) - */ - onaudioprocess: ((this: ScriptProcessorNode, ev: AudioProcessingEvent) => any) | null; - addEventListener(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScriptProcessorNode/bufferSize) + */ + readonly bufferSize: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScriptProcessorNode/audioprocess_event) + */ + onaudioprocess: + | ((this: ScriptProcessorNode, ev: AudioProcessingEvent) => any) + | null; + addEventListener( + type: K, + listener: ( + this: ScriptProcessorNode, + ev: ScriptProcessorNodeEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: ScriptProcessorNode, + ev: ScriptProcessorNodeEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } /** @deprecated */ declare var ScriptProcessorNode: { - prototype: ScriptProcessorNode; - new(): ScriptProcessorNode; + prototype: ScriptProcessorNode; + new (): ScriptProcessorNode; }; /** @@ -21708,35 +26193,38 @@ declare var ScriptProcessorNode: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent) */ interface SecurityPolicyViolationEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/blockedURI) */ - readonly blockedURI: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ - readonly columnNumber: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/disposition) */ - readonly disposition: SecurityPolicyViolationEventDisposition; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/documentURI) */ - readonly documentURI: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/effectiveDirective) */ - readonly effectiveDirective: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/lineNumber) */ - readonly lineNumber: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/originalPolicy) */ - readonly originalPolicy: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/referrer) */ - readonly referrer: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sample) */ - readonly sample: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sourceFile) */ - readonly sourceFile: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/statusCode) */ - readonly statusCode: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/violatedDirective) */ - readonly violatedDirective: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/blockedURI) */ + readonly blockedURI: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ + readonly columnNumber: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/disposition) */ + readonly disposition: SecurityPolicyViolationEventDisposition; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/documentURI) */ + readonly documentURI: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/effectiveDirective) */ + readonly effectiveDirective: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/lineNumber) */ + readonly lineNumber: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/originalPolicy) */ + readonly originalPolicy: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/referrer) */ + readonly referrer: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sample) */ + readonly sample: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sourceFile) */ + readonly sourceFile: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/statusCode) */ + readonly statusCode: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/violatedDirective) */ + readonly violatedDirective: string; } declare var SecurityPolicyViolationEvent: { - prototype: SecurityPolicyViolationEvent; - new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent; + prototype: SecurityPolicyViolationEvent; + new ( + type: string, + eventInitDict?: SecurityPolicyViolationEventInit, + ): SecurityPolicyViolationEvent; }; /** @@ -21745,62 +26233,67 @@ declare var SecurityPolicyViolationEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection) */ interface Selection { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/anchorNode) */ - readonly anchorNode: Node | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/anchorOffset) */ - readonly anchorOffset: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/direction) */ - readonly direction: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusNode) */ - readonly focusNode: Node | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusOffset) */ - readonly focusOffset: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/isCollapsed) */ - readonly isCollapsed: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/rangeCount) */ - readonly rangeCount: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/type) */ - readonly type: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/addRange) */ - addRange(range: Range): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapse) */ - collapse(node: Node | null, offset?: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapseToEnd) */ - collapseToEnd(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapseToStart) */ - collapseToStart(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/containsNode) */ - containsNode(node: Node, allowPartialContainment?: boolean): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/deleteFromDocument) */ - deleteFromDocument(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeAllRanges) */ - empty(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/extend) */ - extend(node: Node, offset?: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/getRangeAt) */ - getRangeAt(index: number): Range; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/modify) */ - modify(alter?: string, direction?: string, granularity?: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeAllRanges) */ - removeAllRanges(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeRange) */ - removeRange(range: Range): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/selectAllChildren) */ - selectAllChildren(node: Node): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/setBaseAndExtent) */ - setBaseAndExtent(anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapse) */ - setPosition(node: Node | null, offset?: number): void; - toString(): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/anchorNode) */ + readonly anchorNode: Node | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/anchorOffset) */ + readonly anchorOffset: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/direction) */ + readonly direction: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusNode) */ + readonly focusNode: Node | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusOffset) */ + readonly focusOffset: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/isCollapsed) */ + readonly isCollapsed: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/rangeCount) */ + readonly rangeCount: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/type) */ + readonly type: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/addRange) */ + addRange(range: Range): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapse) */ + collapse(node: Node | null, offset?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapseToEnd) */ + collapseToEnd(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapseToStart) */ + collapseToStart(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/containsNode) */ + containsNode(node: Node, allowPartialContainment?: boolean): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/deleteFromDocument) */ + deleteFromDocument(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeAllRanges) */ + empty(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/extend) */ + extend(node: Node, offset?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/getRangeAt) */ + getRangeAt(index: number): Range; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/modify) */ + modify(alter?: string, direction?: string, granularity?: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeAllRanges) */ + removeAllRanges(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeRange) */ + removeRange(range: Range): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/selectAllChildren) */ + selectAllChildren(node: Node): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/setBaseAndExtent) */ + setBaseAndExtent( + anchorNode: Node, + anchorOffset: number, + focusNode: Node, + focusOffset: number, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapse) */ + setPosition(node: Node | null, offset?: number): void; + toString(): string; } declare var Selection: { - prototype: Selection; - new(): Selection; + prototype: Selection; + new (): Selection; }; interface ServiceWorkerEventMap extends AbstractWorkerEventMap { - "statechange": Event; + statechange: Event; } /** @@ -21810,30 +26303,46 @@ interface ServiceWorkerEventMap extends AbstractWorkerEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker) */ interface ServiceWorker extends EventTarget, AbstractWorker { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/statechange_event) */ - onstatechange: ((this: ServiceWorker, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/scriptURL) */ - readonly scriptURL: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/state) */ - readonly state: ServiceWorkerState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/postMessage) */ - postMessage(message: any, transfer: Transferable[]): void; - postMessage(message: any, options?: StructuredSerializeOptions): void; - addEventListener(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/statechange_event) */ + onstatechange: ((this: ServiceWorker, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/scriptURL) */ + readonly scriptURL: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/state) */ + readonly state: ServiceWorkerState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/postMessage) */ + postMessage(message: any, transfer: Transferable[]): void; + postMessage(message: any, options?: StructuredSerializeOptions): void; + addEventListener( + type: K, + listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var ServiceWorker: { - prototype: ServiceWorker; - new(): ServiceWorker; + prototype: ServiceWorker; + new (): ServiceWorker; }; interface ServiceWorkerContainerEventMap { - "controllerchange": Event; - "message": MessageEvent; - "messageerror": MessageEvent; + controllerchange: Event; + message: MessageEvent; + messageerror: MessageEvent; } /** @@ -21843,37 +26352,66 @@ interface ServiceWorkerContainerEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer) */ interface ServiceWorkerContainer extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller) */ - readonly controller: ServiceWorker | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controllerchange_event) */ - oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */ - onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/messageerror_event) */ - onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready) */ - readonly ready: Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistration) */ - getRegistration(clientURL?: string | URL): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistrations) */ - getRegistrations(): Promise>; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/register) */ - register(scriptURL: string | URL, options?: RegistrationOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/startMessages) */ - startMessages(): void; - addEventListener(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller) */ + readonly controller: ServiceWorker | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controllerchange_event) */ + oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */ + onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/messageerror_event) */ + onmessageerror: + | ((this: ServiceWorkerContainer, ev: MessageEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready) */ + readonly ready: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistration) */ + getRegistration( + clientURL?: string | URL, + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistrations) */ + getRegistrations(): Promise>; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/register) */ + register( + scriptURL: string | URL, + options?: RegistrationOptions, + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/startMessages) */ + startMessages(): void; + addEventListener( + type: K, + listener: ( + this: ServiceWorkerContainer, + ev: ServiceWorkerContainerEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: ServiceWorkerContainer, + ev: ServiceWorkerContainerEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var ServiceWorkerContainer: { - prototype: ServiceWorkerContainer; - new(): ServiceWorkerContainer; + prototype: ServiceWorkerContainer; + new (): ServiceWorkerContainer; }; interface ServiceWorkerRegistrationEventMap { - "updatefound": Event; + updatefound: Event; } /** @@ -21883,108 +26421,162 @@ interface ServiceWorkerRegistrationEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration) */ interface ServiceWorkerRegistration extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active) */ - readonly active: ServiceWorker | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/installing) */ - readonly installing: ServiceWorker | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/navigationPreload) */ - readonly navigationPreload: NavigationPreloadManager; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */ - onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */ - readonly pushManager: PushManager; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/scope) */ - readonly scope: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updateViaCache) */ - readonly updateViaCache: ServiceWorkerUpdateViaCache; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/waiting) */ - readonly waiting: ServiceWorker | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/getNotifications) */ - getNotifications(filter?: GetNotificationOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/showNotification) */ - showNotification(title: string, options?: NotificationOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/unregister) */ - unregister(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/update) */ - update(): Promise; - addEventListener(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active) */ + readonly active: ServiceWorker | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/installing) */ + readonly installing: ServiceWorker | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/navigationPreload) */ + readonly navigationPreload: NavigationPreloadManager; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */ + onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */ + readonly pushManager: PushManager; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/scope) */ + readonly scope: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updateViaCache) */ + readonly updateViaCache: ServiceWorkerUpdateViaCache; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/waiting) */ + readonly waiting: ServiceWorker | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/getNotifications) */ + getNotifications(filter?: GetNotificationOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/showNotification) */ + showNotification(title: string, options?: NotificationOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/unregister) */ + unregister(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/update) */ + update(): Promise; + addEventListener( + type: K, + listener: ( + this: ServiceWorkerRegistration, + ev: ServiceWorkerRegistrationEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: ServiceWorkerRegistration, + ev: ServiceWorkerRegistrationEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var ServiceWorkerRegistration: { - prototype: ServiceWorkerRegistration; - new(): ServiceWorkerRegistration; + prototype: ServiceWorkerRegistration; + new (): ServiceWorkerRegistration; }; interface ShadowRootEventMap { - "slotchange": Event; + slotchange: Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot) */ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/clonable) */ - readonly clonable: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/delegatesFocus) */ - readonly delegatesFocus: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/host) */ - readonly host: Element; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/innerHTML) */ - innerHTML: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/mode) */ - readonly mode: ShadowRootMode; - onslotchange: ((this: ShadowRoot, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/serializable) */ - readonly serializable: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/slotAssignment) */ - readonly slotAssignment: SlotAssignmentMode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/getHTML) */ - getHTML(options?: GetHTMLOptions): string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTMLUnsafe) */ - setHTMLUnsafe(html: string): void; - /** Throws a "NotSupportedError" DOMException if context object is a shadow root. */ - addEventListener(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/clonable) */ + readonly clonable: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/delegatesFocus) */ + readonly delegatesFocus: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/host) */ + readonly host: Element; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/innerHTML) */ + innerHTML: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/mode) */ + readonly mode: ShadowRootMode; + onslotchange: ((this: ShadowRoot, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/serializable) */ + readonly serializable: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/slotAssignment) */ + readonly slotAssignment: SlotAssignmentMode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/getHTML) */ + getHTML(options?: GetHTMLOptions): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTMLUnsafe) */ + setHTMLUnsafe(html: string): void; + /** Throws a "NotSupportedError" DOMException if context object is a shadow root. */ + addEventListener( + type: K, + listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var ShadowRoot: { - prototype: ShadowRoot; - new(): ShadowRoot; + prototype: ShadowRoot; + new (): ShadowRoot; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorker) */ interface SharedWorker extends EventTarget, AbstractWorker { - /** - * Returns sharedWorker's MessagePort object which can be used to communicate with the global environment. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorker/port) - */ - readonly port: MessagePort; - addEventListener(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Returns sharedWorker's MessagePort object which can be used to communicate with the global environment. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorker/port) + */ + readonly port: MessagePort; + addEventListener( + type: K, + listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SharedWorker: { - prototype: SharedWorker; - new(scriptURL: string | URL, options?: string | WorkerOptions): SharedWorker; + prototype: SharedWorker; + new (scriptURL: string | URL, options?: string | WorkerOptions): SharedWorker; }; interface Slottable { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/assignedSlot) */ - readonly assignedSlot: HTMLSlotElement | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/assignedSlot) */ + readonly assignedSlot: HTMLSlotElement | null; } interface SourceBufferEventMap { - "abort": Event; - "error": Event; - "update": Event; - "updateend": Event; - "updatestart": Event; + abort: Event; + error: Event; + update: Event; + updateend: Event; + updatestart: Event; } /** @@ -21993,45 +26585,61 @@ interface SourceBufferEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer) */ interface SourceBuffer extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendWindowEnd) */ - appendWindowEnd: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendWindowStart) */ - appendWindowStart: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/buffered) */ - readonly buffered: TimeRanges; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/mode) */ - mode: AppendMode; - onabort: ((this: SourceBuffer, ev: Event) => any) | null; - onerror: ((this: SourceBuffer, ev: Event) => any) | null; - onupdate: ((this: SourceBuffer, ev: Event) => any) | null; - onupdateend: ((this: SourceBuffer, ev: Event) => any) | null; - onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/timestampOffset) */ - timestampOffset: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updating) */ - readonly updating: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/abort) */ - abort(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendBuffer) */ - appendBuffer(data: BufferSource): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/changeType) */ - changeType(type: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/remove) */ - remove(start: number, end: number): void; - addEventListener(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendWindowEnd) */ + appendWindowEnd: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendWindowStart) */ + appendWindowStart: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/buffered) */ + readonly buffered: TimeRanges; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/mode) */ + mode: AppendMode; + onabort: ((this: SourceBuffer, ev: Event) => any) | null; + onerror: ((this: SourceBuffer, ev: Event) => any) | null; + onupdate: ((this: SourceBuffer, ev: Event) => any) | null; + onupdateend: ((this: SourceBuffer, ev: Event) => any) | null; + onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/timestampOffset) */ + timestampOffset: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updating) */ + readonly updating: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/abort) */ + abort(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendBuffer) */ + appendBuffer(data: BufferSource): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/changeType) */ + changeType(type: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/remove) */ + remove(start: number, end: number): void; + addEventListener( + type: K, + listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SourceBuffer: { - prototype: SourceBuffer; - new(): SourceBuffer; + prototype: SourceBuffer; + new (): SourceBuffer; }; interface SourceBufferListEventMap { - "addsourcebuffer": Event; - "removesourcebuffer": Event; + addsourcebuffer: Event; + removesourcebuffer: Event; } /** @@ -22040,67 +26648,83 @@ interface SourceBufferListEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList) */ interface SourceBufferList extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/length) */ - readonly length: number; - onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null; - onremovesourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null; - addEventListener(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; - [index: number]: SourceBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/length) */ + readonly length: number; + onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null; + onremovesourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null; + addEventListener( + type: K, + listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; + [index: number]: SourceBuffer; } declare var SourceBufferList: { - prototype: SourceBufferList; - new(): SourceBufferList; + prototype: SourceBufferList; + new (): SourceBufferList; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative) */ interface SpeechRecognitionAlternative { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/confidence) */ - readonly confidence: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/transcript) */ - readonly transcript: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/confidence) */ + readonly confidence: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/transcript) */ + readonly transcript: string; } declare var SpeechRecognitionAlternative: { - prototype: SpeechRecognitionAlternative; - new(): SpeechRecognitionAlternative; + prototype: SpeechRecognitionAlternative; + new (): SpeechRecognitionAlternative; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult) */ interface SpeechRecognitionResult { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/isFinal) */ - readonly isFinal: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/length) */ - readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/item) */ - item(index: number): SpeechRecognitionAlternative; - [index: number]: SpeechRecognitionAlternative; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/isFinal) */ + readonly isFinal: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/item) */ + item(index: number): SpeechRecognitionAlternative; + [index: number]: SpeechRecognitionAlternative; } declare var SpeechRecognitionResult: { - prototype: SpeechRecognitionResult; - new(): SpeechRecognitionResult; + prototype: SpeechRecognitionResult; + new (): SpeechRecognitionResult; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList) */ interface SpeechRecognitionResultList { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList/length) */ - readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList/item) */ - item(index: number): SpeechRecognitionResult; - [index: number]: SpeechRecognitionResult; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList/item) */ + item(index: number): SpeechRecognitionResult; + [index: number]: SpeechRecognitionResult; } declare var SpeechRecognitionResultList: { - prototype: SpeechRecognitionResultList; - new(): SpeechRecognitionResultList; + prototype: SpeechRecognitionResultList; + new (): SpeechRecognitionResultList; }; interface SpeechSynthesisEventMap { - "voiceschanged": Event; + voiceschanged: Event; } /** @@ -22109,44 +26733,63 @@ interface SpeechSynthesisEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis) */ interface SpeechSynthesis extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/voiceschanged_event) */ - onvoiceschanged: ((this: SpeechSynthesis, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/paused) */ - readonly paused: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/pending) */ - readonly pending: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/speaking) */ - readonly speaking: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/cancel) */ - cancel(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/getVoices) */ - getVoices(): SpeechSynthesisVoice[]; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/pause) */ - pause(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/resume) */ - resume(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/speak) */ - speak(utterance: SpeechSynthesisUtterance): void; - addEventListener(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/voiceschanged_event) */ + onvoiceschanged: ((this: SpeechSynthesis, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/paused) */ + readonly paused: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/pending) */ + readonly pending: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/speaking) */ + readonly speaking: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/cancel) */ + cancel(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/getVoices) */ + getVoices(): SpeechSynthesisVoice[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/pause) */ + pause(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/resume) */ + resume(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/speak) */ + speak(utterance: SpeechSynthesisUtterance): void; + addEventListener( + type: K, + listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SpeechSynthesis: { - prototype: SpeechSynthesis; - new(): SpeechSynthesis; + prototype: SpeechSynthesis; + new (): SpeechSynthesis; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisErrorEvent) */ interface SpeechSynthesisErrorEvent extends SpeechSynthesisEvent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisErrorEvent/error) */ - readonly error: SpeechSynthesisErrorCode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisErrorEvent/error) */ + readonly error: SpeechSynthesisErrorCode; } declare var SpeechSynthesisErrorEvent: { - prototype: SpeechSynthesisErrorEvent; - new(type: string, eventInitDict: SpeechSynthesisErrorEventInit): SpeechSynthesisErrorEvent; + prototype: SpeechSynthesisErrorEvent; + new ( + type: string, + eventInitDict: SpeechSynthesisErrorEventInit, + ): SpeechSynthesisErrorEvent; }; /** @@ -22155,31 +26798,34 @@ declare var SpeechSynthesisErrorEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent) */ interface SpeechSynthesisEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/charIndex) */ - readonly charIndex: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/charLength) */ - readonly charLength: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/elapsedTime) */ - readonly elapsedTime: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/name) */ - readonly name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/utterance) */ - readonly utterance: SpeechSynthesisUtterance; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/charIndex) */ + readonly charIndex: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/charLength) */ + readonly charLength: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/elapsedTime) */ + readonly elapsedTime: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/utterance) */ + readonly utterance: SpeechSynthesisUtterance; } declare var SpeechSynthesisEvent: { - prototype: SpeechSynthesisEvent; - new(type: string, eventInitDict: SpeechSynthesisEventInit): SpeechSynthesisEvent; + prototype: SpeechSynthesisEvent; + new ( + type: string, + eventInitDict: SpeechSynthesisEventInit, + ): SpeechSynthesisEvent; }; interface SpeechSynthesisUtteranceEventMap { - "boundary": SpeechSynthesisEvent; - "end": SpeechSynthesisEvent; - "error": SpeechSynthesisErrorEvent; - "mark": SpeechSynthesisEvent; - "pause": SpeechSynthesisEvent; - "resume": SpeechSynthesisEvent; - "start": SpeechSynthesisEvent; + boundary: SpeechSynthesisEvent; + end: SpeechSynthesisEvent; + error: SpeechSynthesisErrorEvent; + mark: SpeechSynthesisEvent; + pause: SpeechSynthesisEvent; + resume: SpeechSynthesisEvent; + start: SpeechSynthesisEvent; } /** @@ -22188,41 +26834,77 @@ interface SpeechSynthesisUtteranceEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance) */ interface SpeechSynthesisUtterance extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/lang) */ - lang: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/boundary_event) */ - onboundary: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/end_event) */ - onend: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/error_event) */ - onerror: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisErrorEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/mark_event) */ - onmark: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/pause_event) */ - onpause: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/resume_event) */ - onresume: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/start_event) */ - onstart: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/pitch) */ - pitch: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/rate) */ - rate: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/text) */ - text: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/voice) */ - voice: SpeechSynthesisVoice | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/volume) */ - volume: number; - addEventListener(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/lang) */ + lang: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/boundary_event) */ + onboundary: + | ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/end_event) */ + onend: + | ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/error_event) */ + onerror: + | ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisErrorEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/mark_event) */ + onmark: + | ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/pause_event) */ + onpause: + | ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/resume_event) */ + onresume: + | ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/start_event) */ + onstart: + | ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/pitch) */ + pitch: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/rate) */ + rate: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/text) */ + text: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/voice) */ + voice: SpeechSynthesisVoice | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/volume) */ + volume: number; + addEventListener( + type: K, + listener: ( + this: SpeechSynthesisUtterance, + ev: SpeechSynthesisUtteranceEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: SpeechSynthesisUtterance, + ev: SpeechSynthesisUtteranceEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var SpeechSynthesisUtterance: { - prototype: SpeechSynthesisUtterance; - new(text?: string): SpeechSynthesisUtterance; + prototype: SpeechSynthesisUtterance; + new (text?: string): SpeechSynthesisUtterance; }; /** @@ -22231,30 +26913,29 @@ declare var SpeechSynthesisUtterance: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice) */ interface SpeechSynthesisVoice { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/default) */ - readonly default: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/lang) */ - readonly lang: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/localService) */ - readonly localService: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/name) */ - readonly name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/voiceURI) */ - readonly voiceURI: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/default) */ + readonly default: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/lang) */ + readonly lang: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/localService) */ + readonly localService: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/voiceURI) */ + readonly voiceURI: string; } declare var SpeechSynthesisVoice: { - prototype: SpeechSynthesisVoice; - new(): SpeechSynthesisVoice; + prototype: SpeechSynthesisVoice; + new (): SpeechSynthesisVoice; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StaticRange) */ -interface StaticRange extends AbstractRange { -} +interface StaticRange extends AbstractRange {} declare var StaticRange: { - prototype: StaticRange; - new(init: StaticRangeInit): StaticRange; + prototype: StaticRange; + new (init: StaticRangeInit): StaticRange; }; /** @@ -22263,13 +26944,16 @@ declare var StaticRange: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StereoPannerNode) */ interface StereoPannerNode extends AudioNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StereoPannerNode/pan) */ - readonly pan: AudioParam; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StereoPannerNode/pan) */ + readonly pan: AudioParam; } declare var StereoPannerNode: { - prototype: StereoPannerNode; - new(context: BaseAudioContext, options?: StereoPannerOptions): StereoPannerNode; + prototype: StereoPannerNode; + new ( + context: BaseAudioContext, + options?: StereoPannerOptions, + ): StereoPannerNode; }; /** @@ -22278,56 +26962,56 @@ declare var StereoPannerNode: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage) */ interface Storage { - /** - * Returns the number of key/value pairs. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/length) - */ - readonly length: number; - /** - * Removes all key/value pairs, if there are any. - * - * Dispatches a storage event on Window objects holding an equivalent Storage object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/clear) - */ - clear(): void; - /** - * Returns the current value associated with the given key, or null if the given key does not exist. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/getItem) - */ - getItem(key: string): string | null; - /** - * Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/key) - */ - key(index: number): string | null; - /** - * Removes the key/value pair with the given key, if a key/value pair with the given key exists. - * - * Dispatches a storage event on Window objects holding an equivalent Storage object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/removeItem) - */ - removeItem(key: string): void; - /** - * Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously. - * - * Throws a "QuotaExceededError" DOMException exception if the new value couldn't be set. (Setting could fail if, e.g., the user has disabled storage for the site, or if the quota has been exceeded.) - * - * Dispatches a storage event on Window objects holding an equivalent Storage object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/setItem) - */ - setItem(key: string, value: string): void; - [name: string]: any; + /** + * Returns the number of key/value pairs. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/length) + */ + readonly length: number; + /** + * Removes all key/value pairs, if there are any. + * + * Dispatches a storage event on Window objects holding an equivalent Storage object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/clear) + */ + clear(): void; + /** + * Returns the current value associated with the given key, or null if the given key does not exist. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/getItem) + */ + getItem(key: string): string | null; + /** + * Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/key) + */ + key(index: number): string | null; + /** + * Removes the key/value pair with the given key, if a key/value pair with the given key exists. + * + * Dispatches a storage event on Window objects holding an equivalent Storage object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/removeItem) + */ + removeItem(key: string): void; + /** + * Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously. + * + * Throws a "QuotaExceededError" DOMException exception if the new value couldn't be set. (Setting could fail if, e.g., the user has disabled storage for the site, or if the quota has been exceeded.) + * + * Dispatches a storage event on Window objects holding an equivalent Storage object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/setItem) + */ + setItem(key: string, value: string): void; + [name: string]: any; } declare var Storage: { - prototype: Storage; - new(): Storage; + prototype: Storage; + new (): Storage; }; /** @@ -22336,47 +27020,56 @@ declare var Storage: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent) */ interface StorageEvent extends Event { - /** - * Returns the key of the storage item being changed. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/key) - */ - readonly key: string | null; - /** - * Returns the new value of the key of the storage item whose value is being changed. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/newValue) - */ - readonly newValue: string | null; - /** - * Returns the old value of the key of the storage item whose value is being changed. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/oldValue) - */ - readonly oldValue: string | null; - /** - * Returns the Storage object that was affected. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/storageArea) - */ - readonly storageArea: Storage | null; - /** - * Returns the URL of the document whose storage item changed. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/url) - */ - readonly url: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/initStorageEvent) - */ - initStorageEvent(type: string, bubbles?: boolean, cancelable?: boolean, key?: string | null, oldValue?: string | null, newValue?: string | null, url?: string | URL, storageArea?: Storage | null): void; + /** + * Returns the key of the storage item being changed. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/key) + */ + readonly key: string | null; + /** + * Returns the new value of the key of the storage item whose value is being changed. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/newValue) + */ + readonly newValue: string | null; + /** + * Returns the old value of the key of the storage item whose value is being changed. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/oldValue) + */ + readonly oldValue: string | null; + /** + * Returns the Storage object that was affected. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/storageArea) + */ + readonly storageArea: Storage | null; + /** + * Returns the URL of the document whose storage item changed. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/url) + */ + readonly url: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/initStorageEvent) + */ + initStorageEvent( + type: string, + bubbles?: boolean, + cancelable?: boolean, + key?: string | null, + oldValue?: string | null, + newValue?: string | null, + url?: string | URL, + storageArea?: Storage | null, + ): void; } declare var StorageEvent: { - prototype: StorageEvent; - new(type: string, eventInitDict?: StorageEventInit): StorageEvent; + prototype: StorageEvent; + new (type: string, eventInitDict?: StorageEventInit): StorageEvent; }; /** @@ -22385,60 +27078,67 @@ declare var StorageEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager) */ interface StorageManager { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/estimate) */ - estimate(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/getDirectory) */ - getDirectory(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persist) */ - persist(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persisted) */ - persisted(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/estimate) */ + estimate(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/getDirectory) */ + getDirectory(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persist) */ + persist(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persisted) */ + persisted(): Promise; } declare var StorageManager: { - prototype: StorageManager; - new(): StorageManager; + prototype: StorageManager; + new (): StorageManager; }; /** @deprecated */ interface StyleMedia { - type: string; - matchMedium(mediaquery: string): boolean; + type: string; + matchMedium(mediaquery: string): boolean; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap) */ interface StylePropertyMap extends StylePropertyMapReadOnly { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/append) */ - append(property: string, ...values: (CSSStyleValue | string)[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/clear) */ - clear(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/delete) */ - delete(property: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/set) */ - set(property: string, ...values: (CSSStyleValue | string)[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/append) */ + append(property: string, ...values: (CSSStyleValue | string)[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/clear) */ + clear(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/delete) */ + delete(property: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/set) */ + set(property: string, ...values: (CSSStyleValue | string)[]): void; } declare var StylePropertyMap: { - prototype: StylePropertyMap; - new(): StylePropertyMap; + prototype: StylePropertyMap; + new (): StylePropertyMap; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly) */ interface StylePropertyMapReadOnly { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/size) */ - readonly size: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/get) */ - get(property: string): undefined | CSSStyleValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/getAll) */ - getAll(property: string): CSSStyleValue[]; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/has) */ - has(property: string): boolean; - forEach(callbackfn: (value: CSSStyleValue[], key: string, parent: StylePropertyMapReadOnly) => void, thisArg?: any): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/size) */ + readonly size: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/get) */ + get(property: string): undefined | CSSStyleValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/getAll) */ + getAll(property: string): CSSStyleValue[]; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/has) */ + has(property: string): boolean; + forEach( + callbackfn: ( + value: CSSStyleValue[], + key: string, + parent: StylePropertyMapReadOnly, + ) => void, + thisArg?: any, + ): void; } declare var StylePropertyMapReadOnly: { - prototype: StylePropertyMapReadOnly; - new(): StylePropertyMapReadOnly; + prototype: StylePropertyMapReadOnly; + new (): StylePropertyMapReadOnly; }; /** @@ -22447,25 +27147,25 @@ declare var StylePropertyMapReadOnly: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet) */ interface StyleSheet { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/disabled) */ - disabled: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/href) */ - readonly href: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/media) */ - readonly media: MediaList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/ownerNode) */ - readonly ownerNode: Element | ProcessingInstruction | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/parentStyleSheet) */ - readonly parentStyleSheet: CSSStyleSheet | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/title) */ - readonly title: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/type) */ - readonly type: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/disabled) */ + disabled: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/href) */ + readonly href: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/media) */ + readonly media: MediaList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/ownerNode) */ + readonly ownerNode: Element | ProcessingInstruction | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/parentStyleSheet) */ + readonly parentStyleSheet: CSSStyleSheet | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/title) */ + readonly title: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/type) */ + readonly type: string; } declare var StyleSheet: { - prototype: StyleSheet; - new(): StyleSheet; + prototype: StyleSheet; + new (): StyleSheet; }; /** @@ -22474,31 +27174,31 @@ declare var StyleSheet: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList) */ interface StyleSheetList { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList/length) */ - readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList/item) */ - item(index: number): CSSStyleSheet | null; - [index: number]: CSSStyleSheet; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList/item) */ + item(index: number): CSSStyleSheet | null; + [index: number]: CSSStyleSheet; } declare var StyleSheetList: { - prototype: StyleSheetList; - new(): StyleSheetList; + prototype: StyleSheetList; + new (): StyleSheetList; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubmitEvent) */ interface SubmitEvent extends Event { - /** - * Returns the element representing the submit button that triggered the form submission, or null if the submission was not triggered by a button. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubmitEvent/submitter) - */ - readonly submitter: HTMLElement | null; + /** + * Returns the element representing the submit button that triggered the form submission, or null if the submission was not triggered by a button. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubmitEvent/submitter) + */ + readonly submitter: HTMLElement | null; } declare var SubmitEvent: { - prototype: SubmitEvent; - new(type: string, eventInitDict?: SubmitEventInit): SubmitEvent; + prototype: SubmitEvent; + new (type: string, eventInitDict?: SubmitEventInit): SubmitEvent; }; /** @@ -22508,41 +27208,166 @@ declare var SubmitEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto) */ interface SubtleCrypto { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt) */ - decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits) */ - deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length?: number | null): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */ - deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest) */ - digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt) */ - encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey) */ - exportKey(format: "jwk", key: CryptoKey): Promise; - exportKey(format: Exclude, key: CryptoKey): Promise; - exportKey(format: KeyFormat, key: CryptoKey): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */ - generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise; - generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray): Promise; - generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray): Promise; - generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */ - importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray): Promise; - importKey(format: Exclude, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign) */ - sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */ - unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify) */ - verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey) */ - wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt) */ + decrypt( + algorithm: + | AlgorithmIdentifier + | RsaOaepParams + | AesCtrParams + | AesCbcParams + | AesGcmParams, + key: CryptoKey, + data: BufferSource, + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits) */ + deriveBits( + algorithm: + | AlgorithmIdentifier + | EcdhKeyDeriveParams + | HkdfParams + | Pbkdf2Params, + baseKey: CryptoKey, + length?: number | null, + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */ + deriveKey( + algorithm: + | AlgorithmIdentifier + | EcdhKeyDeriveParams + | HkdfParams + | Pbkdf2Params, + baseKey: CryptoKey, + derivedKeyType: + | AlgorithmIdentifier + | AesDerivedKeyParams + | HmacImportParams + | HkdfParams + | Pbkdf2Params, + extractable: boolean, + keyUsages: KeyUsage[], + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest) */ + digest( + algorithm: AlgorithmIdentifier, + data: BufferSource, + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt) */ + encrypt( + algorithm: + | AlgorithmIdentifier + | RsaOaepParams + | AesCtrParams + | AesCbcParams + | AesGcmParams, + key: CryptoKey, + data: BufferSource, + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey) */ + exportKey(format: "jwk", key: CryptoKey): Promise; + exportKey( + format: Exclude, + key: CryptoKey, + ): Promise; + exportKey( + format: KeyFormat, + key: CryptoKey, + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */ + generateKey( + algorithm: "Ed25519", + extractable: boolean, + keyUsages: ReadonlyArray<"sign" | "verify">, + ): Promise; + generateKey( + algorithm: RsaHashedKeyGenParams | EcKeyGenParams, + extractable: boolean, + keyUsages: ReadonlyArray, + ): Promise; + generateKey( + algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, + extractable: boolean, + keyUsages: ReadonlyArray, + ): Promise; + generateKey( + algorithm: AlgorithmIdentifier, + extractable: boolean, + keyUsages: KeyUsage[], + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */ + importKey( + format: "jwk", + keyData: JsonWebKey, + algorithm: + | AlgorithmIdentifier + | RsaHashedImportParams + | EcKeyImportParams + | HmacImportParams + | AesKeyAlgorithm, + extractable: boolean, + keyUsages: ReadonlyArray, + ): Promise; + importKey( + format: Exclude, + keyData: BufferSource, + algorithm: + | AlgorithmIdentifier + | RsaHashedImportParams + | EcKeyImportParams + | HmacImportParams + | AesKeyAlgorithm, + extractable: boolean, + keyUsages: KeyUsage[], + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign) */ + sign( + algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, + key: CryptoKey, + data: BufferSource, + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */ + unwrapKey( + format: KeyFormat, + wrappedKey: BufferSource, + unwrappingKey: CryptoKey, + unwrapAlgorithm: + | AlgorithmIdentifier + | RsaOaepParams + | AesCtrParams + | AesCbcParams + | AesGcmParams, + unwrappedKeyAlgorithm: + | AlgorithmIdentifier + | RsaHashedImportParams + | EcKeyImportParams + | HmacImportParams + | AesKeyAlgorithm, + extractable: boolean, + keyUsages: KeyUsage[], + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify) */ + verify( + algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, + key: CryptoKey, + signature: BufferSource, + data: BufferSource, + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey) */ + wrapKey( + format: KeyFormat, + key: CryptoKey, + wrappingKey: CryptoKey, + wrapAlgorithm: + | AlgorithmIdentifier + | RsaOaepParams + | AesCtrParams + | AesCbcParams + | AesGcmParams, + ): Promise; } declare var SubtleCrypto: { - prototype: SubtleCrypto; - new(): SubtleCrypto; + prototype: SubtleCrypto; + new (): SubtleCrypto; }; /** @@ -22551,23 +27376,23 @@ declare var SubtleCrypto: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text) */ interface Text extends CharacterData, Slottable { - /** - * Returns the combined data of all direct Text node siblings. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text/wholeText) - */ - readonly wholeText: string; - /** - * Splits data at the given offset and returns the remainder as Text node. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text/splitText) - */ - splitText(offset: number): Text; + /** + * Returns the combined data of all direct Text node siblings. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text/wholeText) + */ + readonly wholeText: string; + /** + * Splits data at the given offset and returns the remainder as Text node. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text/splitText) + */ + splitText(offset: number): Text; } declare var Text: { - prototype: Text; - new(data?: string): Text; + prototype: Text; + new (data?: string): Text; }; /** @@ -22576,59 +27401,59 @@ declare var Text: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder) */ interface TextDecoder extends TextDecoderCommon { - /** - * Returns the result of running encoding's decoder. The method can be invoked zero or more times with options's stream set to true, and then once without options's stream (or set to false), to process a fragmented input. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments. - * - * ``` - * var string = "", decoder = new TextDecoder(encoding), buffer; - * while(buffer = next_chunk()) { - * string += decoder.decode(buffer, {stream:true}); - * } - * string += decoder.decode(); // end-of-queue - * ``` - * - * If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode) - */ - decode(input?: AllowSharedBufferSource, options?: TextDecodeOptions): string; + /** + * Returns the result of running encoding's decoder. The method can be invoked zero or more times with options's stream set to true, and then once without options's stream (or set to false), to process a fragmented input. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments. + * + * ``` + * var string = "", decoder = new TextDecoder(encoding), buffer; + * while(buffer = next_chunk()) { + * string += decoder.decode(buffer, {stream:true}); + * } + * string += decoder.decode(); // end-of-queue + * ``` + * + * If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode) + */ + decode(input?: AllowSharedBufferSource, options?: TextDecodeOptions): string; } declare var TextDecoder: { - prototype: TextDecoder; - new(label?: string, options?: TextDecoderOptions): TextDecoder; + prototype: TextDecoder; + new (label?: string, options?: TextDecoderOptions): TextDecoder; }; interface TextDecoderCommon { - /** - * Returns encoding's name, lowercased. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/encoding) - */ - readonly encoding: string; - /** - * Returns true if error mode is "fatal", otherwise false. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/fatal) - */ - readonly fatal: boolean; - /** - * Returns the value of ignore BOM. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/ignoreBOM) - */ - readonly ignoreBOM: boolean; + /** + * Returns encoding's name, lowercased. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/encoding) + */ + readonly encoding: string; + /** + * Returns true if error mode is "fatal", otherwise false. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/fatal) + */ + readonly fatal: boolean; + /** + * Returns the value of ignore BOM. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/ignoreBOM) + */ + readonly ignoreBOM: boolean; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream) */ interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon { - readonly readable: ReadableStream; - readonly writable: WritableStream; + readonly readable: ReadableStream; + readonly writable: WritableStream; } declare var TextDecoderStream: { - prototype: TextDecoderStream; - new(label?: string, options?: TextDecoderOptions): TextDecoderStream; + prototype: TextDecoderStream; + new (label?: string, options?: TextDecoderOptions): TextDecoderStream; }; /** @@ -22637,43 +27462,46 @@ declare var TextDecoderStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder) */ interface TextEncoder extends TextEncoderCommon { - /** - * Returns the result of running UTF-8's encoder. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode) - */ - encode(input?: string): Uint8Array; - /** - * Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto) - */ - encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult; + /** + * Returns the result of running UTF-8's encoder. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode) + */ + encode(input?: string): Uint8Array; + /** + * Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto) + */ + encodeInto( + source: string, + destination: Uint8Array, + ): TextEncoderEncodeIntoResult; } declare var TextEncoder: { - prototype: TextEncoder; - new(): TextEncoder; + prototype: TextEncoder; + new (): TextEncoder; }; interface TextEncoderCommon { - /** - * Returns "utf-8". - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encoding) - */ - readonly encoding: string; + /** + * Returns "utf-8". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encoding) + */ + readonly encoding: string; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream) */ interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon { - readonly readable: ReadableStream; - readonly writable: WritableStream; + readonly readable: ReadableStream; + readonly writable: WritableStream; } declare var TextEncoderStream: { - prototype: TextEncoderStream; - new(): TextEncoderStream; + prototype: TextEncoderStream; + new (): TextEncoderStream; }; /** @@ -22682,24 +27510,30 @@ declare var TextEncoderStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEvent) */ interface TextEvent extends UIEvent { - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEvent/data) - */ - readonly data: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEvent/initTextEvent) - */ - initTextEvent(type: string, bubbles?: boolean, cancelable?: boolean, view?: Window | null, data?: string): void; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEvent/data) + */ + readonly data: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEvent/initTextEvent) + */ + initTextEvent( + type: string, + bubbles?: boolean, + cancelable?: boolean, + view?: Window | null, + data?: string, + ): void; } /** @deprecated */ declare var TextEvent: { - prototype: TextEvent; - new(): TextEvent; + prototype: TextEvent; + new (): TextEvent; }; /** @@ -22708,87 +27542,87 @@ declare var TextEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics) */ interface TextMetrics { - /** - * Returns the measurement described below. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxAscent) - */ - readonly actualBoundingBoxAscent: number; - /** - * Returns the measurement described below. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxDescent) - */ - readonly actualBoundingBoxDescent: number; - /** - * Returns the measurement described below. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxLeft) - */ - readonly actualBoundingBoxLeft: number; - /** - * Returns the measurement described below. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxRight) - */ - readonly actualBoundingBoxRight: number; - /** - * Returns the measurement described below. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/alphabeticBaseline) - */ - readonly alphabeticBaseline: number; - /** - * Returns the measurement described below. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightAscent) - */ - readonly emHeightAscent: number; - /** - * Returns the measurement described below. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightDescent) - */ - readonly emHeightDescent: number; - /** - * Returns the measurement described below. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxAscent) - */ - readonly fontBoundingBoxAscent: number; - /** - * Returns the measurement described below. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxDescent) - */ - readonly fontBoundingBoxDescent: number; - /** - * Returns the measurement described below. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/hangingBaseline) - */ - readonly hangingBaseline: number; - /** - * Returns the measurement described below. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/ideographicBaseline) - */ - readonly ideographicBaseline: number; - /** - * Returns the measurement described below. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/width) - */ - readonly width: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxAscent) + */ + readonly actualBoundingBoxAscent: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxDescent) + */ + readonly actualBoundingBoxDescent: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxLeft) + */ + readonly actualBoundingBoxLeft: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxRight) + */ + readonly actualBoundingBoxRight: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/alphabeticBaseline) + */ + readonly alphabeticBaseline: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightAscent) + */ + readonly emHeightAscent: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightDescent) + */ + readonly emHeightDescent: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxAscent) + */ + readonly fontBoundingBoxAscent: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxDescent) + */ + readonly fontBoundingBoxDescent: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/hangingBaseline) + */ + readonly hangingBaseline: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/ideographicBaseline) + */ + readonly ideographicBaseline: number; + /** + * Returns the measurement described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/width) + */ + readonly width: number; } declare var TextMetrics: { - prototype: TextMetrics; - new(): TextMetrics; + prototype: TextMetrics; + new (): TextMetrics; }; interface TextTrackEventMap { - "cuechange": Event; + cuechange: Event; } /** @@ -22797,88 +27631,104 @@ interface TextTrackEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack) */ interface TextTrack extends EventTarget { - /** - * Returns the text track cues from the text track list of cues that are currently active (i.e. that start before the current playback position and end after it), as a TextTrackCueList object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/activeCues) - */ - readonly activeCues: TextTrackCueList | null; - /** - * Returns the text track list of cues, as a TextTrackCueList object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/cues) - */ - readonly cues: TextTrackCueList | null; - /** - * Returns the ID of the given track. - * - * For in-band tracks, this is the ID that can be used with a fragment if the format supports media fragment syntax, and that can be used with the getTrackById() method. - * - * For TextTrack objects corresponding to track elements, this is the ID of the track element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/id) - */ - readonly id: string; - /** - * Returns the text track in-band metadata track dispatch type string. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/inBandMetadataTrackDispatchType) - */ - readonly inBandMetadataTrackDispatchType: string; - /** - * Returns the text track kind string. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/kind) - */ - readonly kind: TextTrackKind; - /** - * Returns the text track label, if there is one, or the empty string otherwise (indicating that a custom label probably needs to be generated from the other attributes of the object if the object is exposed to the user). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/label) - */ - readonly label: string; - /** - * Returns the text track language string. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/language) - */ - readonly language: string; - /** - * Returns the text track mode, represented by a string from the following list: - * - * Can be set, to change the mode. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/mode) - */ - mode: TextTrackMode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/cuechange_event) */ - oncuechange: ((this: TextTrack, ev: Event) => any) | null; - /** - * Adds the given cue to textTrack's text track list of cues. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/addCue) - */ - addCue(cue: TextTrackCue): void; - /** - * Removes the given cue from textTrack's text track list of cues. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/removeCue) - */ - removeCue(cue: TextTrackCue): void; - addEventListener(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Returns the text track cues from the text track list of cues that are currently active (i.e. that start before the current playback position and end after it), as a TextTrackCueList object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/activeCues) + */ + readonly activeCues: TextTrackCueList | null; + /** + * Returns the text track list of cues, as a TextTrackCueList object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/cues) + */ + readonly cues: TextTrackCueList | null; + /** + * Returns the ID of the given track. + * + * For in-band tracks, this is the ID that can be used with a fragment if the format supports media fragment syntax, and that can be used with the getTrackById() method. + * + * For TextTrack objects corresponding to track elements, this is the ID of the track element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/id) + */ + readonly id: string; + /** + * Returns the text track in-band metadata track dispatch type string. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/inBandMetadataTrackDispatchType) + */ + readonly inBandMetadataTrackDispatchType: string; + /** + * Returns the text track kind string. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/kind) + */ + readonly kind: TextTrackKind; + /** + * Returns the text track label, if there is one, or the empty string otherwise (indicating that a custom label probably needs to be generated from the other attributes of the object if the object is exposed to the user). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/label) + */ + readonly label: string; + /** + * Returns the text track language string. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/language) + */ + readonly language: string; + /** + * Returns the text track mode, represented by a string from the following list: + * + * Can be set, to change the mode. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/mode) + */ + mode: TextTrackMode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/cuechange_event) */ + oncuechange: ((this: TextTrack, ev: Event) => any) | null; + /** + * Adds the given cue to textTrack's text track list of cues. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/addCue) + */ + addCue(cue: TextTrackCue): void; + /** + * Removes the given cue from textTrack's text track list of cues. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/removeCue) + */ + removeCue(cue: TextTrackCue): void; + addEventListener( + type: K, + listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var TextTrack: { - prototype: TextTrack; - new(): TextTrack; + prototype: TextTrack; + new (): TextTrack; }; interface TextTrackCueEventMap { - "enter": Event; - "exit": Event; + enter: Event; + exit: Event; } /** @@ -22887,111 +27737,143 @@ interface TextTrackCueEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue) */ interface TextTrackCue extends EventTarget { - /** - * Returns the text track cue end time, in seconds. - * - * Can be set. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/endTime) - */ - endTime: number; - /** - * Returns the text track cue identifier. - * - * Can be set. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/id) - */ - id: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/enter_event) */ - onenter: ((this: TextTrackCue, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/exit_event) */ - onexit: ((this: TextTrackCue, ev: Event) => any) | null; - /** - * Returns true if the text track cue pause-on-exit flag is set, false otherwise. - * - * Can be set. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/pauseOnExit) - */ - pauseOnExit: boolean; - /** - * Returns the text track cue start time, in seconds. - * - * Can be set. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/startTime) - */ - startTime: number; - /** - * Returns the TextTrack object to which this text track cue belongs, if any, or null otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/track) - */ - readonly track: TextTrack | null; - addEventListener(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Returns the text track cue end time, in seconds. + * + * Can be set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/endTime) + */ + endTime: number; + /** + * Returns the text track cue identifier. + * + * Can be set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/id) + */ + id: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/enter_event) */ + onenter: ((this: TextTrackCue, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/exit_event) */ + onexit: ((this: TextTrackCue, ev: Event) => any) | null; + /** + * Returns true if the text track cue pause-on-exit flag is set, false otherwise. + * + * Can be set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/pauseOnExit) + */ + pauseOnExit: boolean; + /** + * Returns the text track cue start time, in seconds. + * + * Can be set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/startTime) + */ + startTime: number; + /** + * Returns the TextTrack object to which this text track cue belongs, if any, or null otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/track) + */ + readonly track: TextTrack | null; + addEventListener( + type: K, + listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var TextTrackCue: { - prototype: TextTrackCue; - new(): TextTrackCue; + prototype: TextTrackCue; + new (): TextTrackCue; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCueList) */ interface TextTrackCueList { - /** - * Returns the number of cues in the list. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCueList/length) - */ - readonly length: number; - /** - * Returns the first text track cue (in text track cue order) with text track cue identifier id. - * - * Returns null if none of the cues have the given identifier or if the argument is the empty string. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCueList/getCueById) - */ - getCueById(id: string): TextTrackCue | null; - [index: number]: TextTrackCue; + /** + * Returns the number of cues in the list. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCueList/length) + */ + readonly length: number; + /** + * Returns the first text track cue (in text track cue order) with text track cue identifier id. + * + * Returns null if none of the cues have the given identifier or if the argument is the empty string. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCueList/getCueById) + */ + getCueById(id: string): TextTrackCue | null; + [index: number]: TextTrackCue; } declare var TextTrackCueList: { - prototype: TextTrackCueList; - new(): TextTrackCueList; + prototype: TextTrackCueList; + new (): TextTrackCueList; }; interface TextTrackListEventMap { - "addtrack": TrackEvent; - "change": Event; - "removetrack": TrackEvent; + addtrack: TrackEvent; + change: Event; + removetrack: TrackEvent; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList) */ interface TextTrackList extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/length) */ - readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/addtrack_event) */ - onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/change_event) */ - onchange: ((this: TextTrackList, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/removetrack_event) */ - onremovetrack: ((this: TextTrackList, ev: TrackEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/getTrackById) */ - getTrackById(id: string): TextTrack | null; - addEventListener(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; - [index: number]: TextTrack; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/addtrack_event) */ + onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/change_event) */ + onchange: ((this: TextTrackList, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/removetrack_event) */ + onremovetrack: ((this: TextTrackList, ev: TrackEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/getTrackById) */ + getTrackById(id: string): TextTrack | null; + addEventListener( + type: K, + listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; + [index: number]: TextTrack; } declare var TextTrackList: { - prototype: TextTrackList; - new(): TextTrackList; + prototype: TextTrackList; + new (): TextTrackList; }; /** @@ -23000,46 +27882,46 @@ declare var TextTrackList: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges) */ interface TimeRanges { - /** - * Returns the number of ranges in the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/length) - */ - readonly length: number; - /** - * Returns the time for the end of the range with the given index. - * - * Throws an "IndexSizeError" DOMException if the index is out of range. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/end) - */ - end(index: number): number; - /** - * Returns the time for the start of the range with the given index. - * - * Throws an "IndexSizeError" DOMException if the index is out of range. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/start) - */ - start(index: number): number; + /** + * Returns the number of ranges in the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/length) + */ + readonly length: number; + /** + * Returns the time for the end of the range with the given index. + * + * Throws an "IndexSizeError" DOMException if the index is out of range. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/end) + */ + end(index: number): number; + /** + * Returns the time for the start of the range with the given index. + * + * Throws an "IndexSizeError" DOMException if the index is out of range. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/start) + */ + start(index: number): number; } declare var TimeRanges: { - prototype: TimeRanges; - new(): TimeRanges; + prototype: TimeRanges; + new (): TimeRanges; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */ interface ToggleEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState) */ - readonly newState: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState) */ - readonly oldState: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState) */ + readonly newState: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState) */ + readonly oldState: string; } declare var ToggleEvent: { - prototype: ToggleEvent; - new(type: string, eventInitDict?: ToggleEventInit): ToggleEvent; + prototype: ToggleEvent; + new (type: string, eventInitDict?: ToggleEventInit): ToggleEvent; }; /** @@ -23048,35 +27930,35 @@ declare var ToggleEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch) */ interface Touch { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/clientX) */ - readonly clientX: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/clientY) */ - readonly clientY: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/force) */ - readonly force: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/identifier) */ - readonly identifier: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/pageX) */ - readonly pageX: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/pageY) */ - readonly pageY: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/radiusX) */ - readonly radiusX: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/radiusY) */ - readonly radiusY: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/rotationAngle) */ - readonly rotationAngle: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/screenX) */ - readonly screenX: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/screenY) */ - readonly screenY: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/target) */ - readonly target: EventTarget; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/clientX) */ + readonly clientX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/clientY) */ + readonly clientY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/force) */ + readonly force: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/identifier) */ + readonly identifier: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/pageX) */ + readonly pageX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/pageY) */ + readonly pageY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/radiusX) */ + readonly radiusX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/radiusY) */ + readonly radiusY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/rotationAngle) */ + readonly rotationAngle: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/screenX) */ + readonly screenX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/screenY) */ + readonly screenY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/target) */ + readonly target: EventTarget; } declare var Touch: { - prototype: Touch; - new(touchInitDict: TouchInit): Touch; + prototype: Touch; + new (touchInitDict: TouchInit): Touch; }; /** @@ -23085,25 +27967,25 @@ declare var Touch: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent) */ interface TouchEvent extends UIEvent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/altKey) */ - readonly altKey: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/changedTouches) */ - readonly changedTouches: TouchList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/ctrlKey) */ - readonly ctrlKey: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/metaKey) */ - readonly metaKey: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/shiftKey) */ - readonly shiftKey: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/targetTouches) */ - readonly targetTouches: TouchList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/touches) */ - readonly touches: TouchList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/altKey) */ + readonly altKey: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/changedTouches) */ + readonly changedTouches: TouchList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/ctrlKey) */ + readonly ctrlKey: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/metaKey) */ + readonly metaKey: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/shiftKey) */ + readonly shiftKey: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/targetTouches) */ + readonly targetTouches: TouchList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/touches) */ + readonly touches: TouchList; } declare var TouchEvent: { - prototype: TouchEvent; - new(type: string, eventInitDict?: TouchEventInit): TouchEvent; + prototype: TouchEvent; + new (type: string, eventInitDict?: TouchEventInit): TouchEvent; }; /** @@ -23112,16 +27994,16 @@ declare var TouchEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList) */ interface TouchList { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList/length) */ - readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList/item) */ - item(index: number): Touch | null; - [index: number]: Touch; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList/item) */ + item(index: number): Touch | null; + [index: number]: Touch; } declare var TouchList: { - prototype: TouchList; - new(): TouchList; + prototype: TouchList; + new (): TouchList; }; /** @@ -23130,47 +28012,51 @@ declare var TouchList: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TrackEvent) */ interface TrackEvent extends Event { - /** - * Returns the track object (TextTrack, AudioTrack, or VideoTrack) to which the event relates. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TrackEvent/track) - */ - readonly track: TextTrack | null; + /** + * Returns the track object (TextTrack, AudioTrack, or VideoTrack) to which the event relates. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TrackEvent/track) + */ + readonly track: TextTrack | null; } declare var TrackEvent: { - prototype: TrackEvent; - new(type: string, eventInitDict?: TrackEventInit): TrackEvent; + prototype: TrackEvent; + new (type: string, eventInitDict?: TrackEventInit): TrackEvent; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream) */ interface TransformStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable) */ - readonly readable: ReadableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable) */ - readonly writable: WritableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable) */ + readonly readable: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable) */ + readonly writable: WritableStream; } declare var TransformStream: { - prototype: TransformStream; - new(transformer?: Transformer, writableStrategy?: QueuingStrategy, readableStrategy?: QueuingStrategy): TransformStream; + prototype: TransformStream; + new ( + transformer?: Transformer, + writableStrategy?: QueuingStrategy, + readableStrategy?: QueuingStrategy, + ): TransformStream; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) */ interface TransformStreamDefaultController { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) */ - readonly desiredSize: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) */ - enqueue(chunk?: O): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error) */ - error(reason?: any): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate) */ - terminate(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) */ + readonly desiredSize: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) */ + enqueue(chunk?: O): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error) */ + error(reason?: any): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate) */ + terminate(): void; } declare var TransformStreamDefaultController: { - prototype: TransformStreamDefaultController; - new(): TransformStreamDefaultController; + prototype: TransformStreamDefaultController; + new (): TransformStreamDefaultController; }; /** @@ -23179,17 +28065,20 @@ declare var TransformStreamDefaultController: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent) */ interface TransitionEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/elapsedTime) */ - readonly elapsedTime: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/propertyName) */ - readonly propertyName: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/pseudoElement) */ - readonly pseudoElement: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/elapsedTime) */ + readonly elapsedTime: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/propertyName) */ + readonly propertyName: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/pseudoElement) */ + readonly pseudoElement: string; } declare var TransitionEvent: { - prototype: TransitionEvent; - new(type: string, transitionEventInitDict?: TransitionEventInit): TransitionEvent; + prototype: TransitionEvent; + new ( + type: string, + transitionEventInitDict?: TransitionEventInit, + ): TransitionEvent; }; /** @@ -23198,33 +28087,33 @@ declare var TransitionEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker) */ interface TreeWalker { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/currentNode) */ - currentNode: Node; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/filter) */ - readonly filter: NodeFilter | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/root) */ - readonly root: Node; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/whatToShow) */ - readonly whatToShow: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/firstChild) */ - firstChild(): Node | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/lastChild) */ - lastChild(): Node | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/nextNode) */ - nextNode(): Node | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/nextSibling) */ - nextSibling(): Node | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/parentNode) */ - parentNode(): Node | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/previousNode) */ - previousNode(): Node | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/previousSibling) */ - previousSibling(): Node | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/currentNode) */ + currentNode: Node; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/filter) */ + readonly filter: NodeFilter | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/root) */ + readonly root: Node; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/whatToShow) */ + readonly whatToShow: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/firstChild) */ + firstChild(): Node | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/lastChild) */ + lastChild(): Node | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/nextNode) */ + nextNode(): Node | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/nextSibling) */ + nextSibling(): Node | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/parentNode) */ + parentNode(): Node | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/previousNode) */ + previousNode(): Node | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/previousSibling) */ + previousSibling(): Node | null; } declare var TreeWalker: { - prototype: TreeWalker; - new(): TreeWalker; + prototype: TreeWalker; + new (): TreeWalker; }; /** @@ -23233,27 +28122,33 @@ declare var TreeWalker: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent) */ interface UIEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/detail) */ - readonly detail: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/view) */ - readonly view: Window | null; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/which) - */ - readonly which: number; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/initUIEvent) - */ - initUIEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, detailArg?: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/detail) */ + readonly detail: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/view) */ + readonly view: Window | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/which) + */ + readonly which: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/initUIEvent) + */ + initUIEvent( + typeArg: string, + bubblesArg?: boolean, + cancelableArg?: boolean, + viewArg?: Window | null, + detailArg?: number, + ): void; } declare var UIEvent: { - prototype: UIEvent; - new(type: string, eventInitDict?: UIEventInit): UIEvent; + prototype: UIEvent; + new (type: string, eventInitDict?: UIEventInit): UIEvent; }; /** @@ -23262,46 +28157,46 @@ declare var UIEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL) */ interface URL { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash) */ - hash: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host) */ - host: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname) */ - hostname: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href) */ - href: string; - toString(): string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin) */ - readonly origin: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password) */ - password: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname) */ - pathname: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port) */ - port: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol) */ - protocol: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search) */ - search: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams) */ - readonly searchParams: URLSearchParams; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username) */ - username: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON) */ - toJSON(): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash) */ + hash: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host) */ + host: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname) */ + hostname: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href) */ + href: string; + toString(): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin) */ + readonly origin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password) */ + password: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname) */ + pathname: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port) */ + port: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol) */ + protocol: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search) */ + search: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams) */ + readonly searchParams: URLSearchParams; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username) */ + username: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON) */ + toJSON(): string; } declare var URL: { - prototype: URL; - new(url: string | URL, base?: string | URL): URL; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */ - canParse(url: string | URL, base?: string | URL): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) */ - createObjectURL(obj: Blob | MediaSource): string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static) */ - parse(url: string | URL, base?: string | URL): URL | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) */ - revokeObjectURL(url: string): void; + prototype: URL; + new (url: string | URL, base?: string | URL): URL; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */ + canParse(url: string | URL, base?: string | URL): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) */ + createObjectURL(obj: Blob | MediaSource): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static) */ + parse(url: string | URL, base?: string | URL): URL | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) */ + revokeObjectURL(url: string): void; }; type webkitURL = URL; @@ -23309,119 +28204,140 @@ declare var webkitURL: typeof URL; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) */ interface URLSearchParams { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size) */ - readonly size: number; - /** - * Appends a specified key/value pair as a new search parameter. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/append) - */ - append(name: string, value: string): void; - /** - * Deletes the given search parameter, and its associated value, from the list of all search parameters. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete) - */ - delete(name: string, value?: string): void; - /** - * Returns the first value associated to the given search parameter. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/get) - */ - get(name: string): string | null; - /** - * Returns all the values association with a given search parameter. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/getAll) - */ - getAll(name: string): string[]; - /** - * Returns a Boolean indicating if such a search parameter exists. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has) - */ - has(name: string, value?: string): boolean; - /** - * Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set) - */ - set(name: string, value: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort) */ - sort(): void; - /** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */ - toString(): string; - forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size) */ + readonly size: number; + /** + * Appends a specified key/value pair as a new search parameter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/append) + */ + append(name: string, value: string): void; + /** + * Deletes the given search parameter, and its associated value, from the list of all search parameters. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete) + */ + delete(name: string, value?: string): void; + /** + * Returns the first value associated to the given search parameter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/get) + */ + get(name: string): string | null; + /** + * Returns all the values association with a given search parameter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/getAll) + */ + getAll(name: string): string[]; + /** + * Returns a Boolean indicating if such a search parameter exists. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has) + */ + has(name: string, value?: string): boolean; + /** + * Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set) + */ + set(name: string, value: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort) */ + sort(): void; + /** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */ + toString(): string; + forEach( + callbackfn: (value: string, key: string, parent: URLSearchParams) => void, + thisArg?: any, + ): void; } declare var URLSearchParams: { - prototype: URLSearchParams; - new(init?: string[][] | Record | string | URLSearchParams): URLSearchParams; + prototype: URLSearchParams; + new ( + init?: string[][] | Record | string | URLSearchParams, + ): URLSearchParams; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation) */ interface UserActivation { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation/hasBeenActive) */ - readonly hasBeenActive: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation/isActive) */ - readonly isActive: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation/hasBeenActive) */ + readonly hasBeenActive: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation/isActive) */ + readonly isActive: boolean; } declare var UserActivation: { - prototype: UserActivation; - new(): UserActivation; + prototype: UserActivation; + new (): UserActivation; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue) */ interface VTTCue extends TextTrackCue { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/align) */ - align: AlignSetting; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/line) */ - line: LineAndPositionSetting; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/lineAlign) */ - lineAlign: LineAlignSetting; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/position) */ - position: LineAndPositionSetting; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/positionAlign) */ - positionAlign: PositionAlignSetting; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/region) */ - region: VTTRegion | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/size) */ - size: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/snapToLines) */ - snapToLines: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/text) */ - text: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/vertical) */ - vertical: DirectionSetting; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/getCueAsHTML) */ - getCueAsHTML(): DocumentFragment; - addEventListener(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/align) */ + align: AlignSetting; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/line) */ + line: LineAndPositionSetting; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/lineAlign) */ + lineAlign: LineAlignSetting; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/position) */ + position: LineAndPositionSetting; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/positionAlign) */ + positionAlign: PositionAlignSetting; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/region) */ + region: VTTRegion | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/size) */ + size: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/snapToLines) */ + snapToLines: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/text) */ + text: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/vertical) */ + vertical: DirectionSetting; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/getCueAsHTML) */ + getCueAsHTML(): DocumentFragment; + addEventListener( + type: K, + listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var VTTCue: { - prototype: VTTCue; - new(startTime: number, endTime: number, text: string): VTTCue; + prototype: VTTCue; + new (startTime: number, endTime: number, text: string): VTTCue; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion) */ interface VTTRegion { - id: string; - lines: number; - regionAnchorX: number; - regionAnchorY: number; - scroll: ScrollSetting; - viewportAnchorX: number; - viewportAnchorY: number; - width: number; + id: string; + lines: number; + regionAnchorX: number; + regionAnchorY: number; + scroll: ScrollSetting; + viewportAnchorX: number; + viewportAnchorY: number; + width: number; } declare var VTTRegion: { - prototype: VTTRegion; - new(): VTTRegion; + prototype: VTTRegion; + new (): VTTRegion; }; /** @@ -23430,56 +28346,56 @@ declare var VTTRegion: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState) */ interface ValidityState { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/badInput) */ - readonly badInput: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/customError) */ - readonly customError: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/patternMismatch) */ - readonly patternMismatch: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/rangeOverflow) */ - readonly rangeOverflow: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/rangeUnderflow) */ - readonly rangeUnderflow: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/stepMismatch) */ - readonly stepMismatch: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/tooLong) */ - readonly tooLong: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/tooShort) */ - readonly tooShort: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/typeMismatch) */ - readonly typeMismatch: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/valid) */ - readonly valid: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/valueMissing) */ - readonly valueMissing: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/badInput) */ + readonly badInput: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/customError) */ + readonly customError: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/patternMismatch) */ + readonly patternMismatch: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/rangeOverflow) */ + readonly rangeOverflow: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/rangeUnderflow) */ + readonly rangeUnderflow: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/stepMismatch) */ + readonly stepMismatch: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/tooLong) */ + readonly tooLong: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/tooShort) */ + readonly tooShort: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/typeMismatch) */ + readonly typeMismatch: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/valid) */ + readonly valid: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/valueMissing) */ + readonly valueMissing: boolean; } declare var ValidityState: { - prototype: ValidityState; - new(): ValidityState; + prototype: ValidityState; + new (): ValidityState; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace) */ interface VideoColorSpace { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/fullRange) */ - readonly fullRange: boolean | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/matrix) */ - readonly matrix: VideoMatrixCoefficients | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/primaries) */ - readonly primaries: VideoColorPrimaries | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/transfer) */ - readonly transfer: VideoTransferCharacteristics | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/toJSON) */ - toJSON(): VideoColorSpaceInit; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/fullRange) */ + readonly fullRange: boolean | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/matrix) */ + readonly matrix: VideoMatrixCoefficients | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/primaries) */ + readonly primaries: VideoColorPrimaries | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/transfer) */ + readonly transfer: VideoTransferCharacteristics | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/toJSON) */ + toJSON(): VideoColorSpaceInit; } declare var VideoColorSpace: { - prototype: VideoColorSpace; - new(init?: VideoColorSpaceInit): VideoColorSpace; + prototype: VideoColorSpace; + new (init?: VideoColorSpaceInit): VideoColorSpace; }; interface VideoDecoderEventMap { - "dequeue": Event; + dequeue: Event; } /** @@ -23488,37 +28404,53 @@ interface VideoDecoderEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder) */ interface VideoDecoder extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decodeQueueSize) */ - readonly decodeQueueSize: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/dequeue_event) */ - ondequeue: ((this: VideoDecoder, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/state) */ - readonly state: CodecState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/close) */ - close(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/configure) */ - configure(config: VideoDecoderConfig): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decode) */ - decode(chunk: EncodedVideoChunk): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/flush) */ - flush(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/reset) */ - reset(): void; - addEventListener(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decodeQueueSize) */ + readonly decodeQueueSize: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/dequeue_event) */ + ondequeue: ((this: VideoDecoder, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/state) */ + readonly state: CodecState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/close) */ + close(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/configure) */ + configure(config: VideoDecoderConfig): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decode) */ + decode(chunk: EncodedVideoChunk): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/flush) */ + flush(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/reset) */ + reset(): void; + addEventListener( + type: K, + listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var VideoDecoder: { - prototype: VideoDecoder; - new(init: VideoDecoderInit): VideoDecoder; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/isConfigSupported_static) */ - isConfigSupported(config: VideoDecoderConfig): Promise; + prototype: VideoDecoder; + new (init: VideoDecoderInit): VideoDecoder; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/isConfigSupported_static) */ + isConfigSupported(config: VideoDecoderConfig): Promise; }; interface VideoEncoderEventMap { - "dequeue": Event; + dequeue: Event; } /** @@ -23527,71 +28459,90 @@ interface VideoEncoderEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder) */ interface VideoEncoder extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encodeQueueSize) */ - readonly encodeQueueSize: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/dequeue_event) */ - ondequeue: ((this: VideoEncoder, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/state) */ - readonly state: CodecState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/close) */ - close(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/configure) */ - configure(config: VideoEncoderConfig): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encode) */ - encode(frame: VideoFrame, options?: VideoEncoderEncodeOptions): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/flush) */ - flush(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/reset) */ - reset(): void; - addEventListener(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encodeQueueSize) */ + readonly encodeQueueSize: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/dequeue_event) */ + ondequeue: ((this: VideoEncoder, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/state) */ + readonly state: CodecState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/close) */ + close(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/configure) */ + configure(config: VideoEncoderConfig): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encode) */ + encode(frame: VideoFrame, options?: VideoEncoderEncodeOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/flush) */ + flush(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/reset) */ + reset(): void; + addEventListener( + type: K, + listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var VideoEncoder: { - prototype: VideoEncoder; - new(init: VideoEncoderInit): VideoEncoder; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/isConfigSupported_static) */ - isConfigSupported(config: VideoEncoderConfig): Promise; + prototype: VideoEncoder; + new (init: VideoEncoderInit): VideoEncoder; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/isConfigSupported_static) */ + isConfigSupported(config: VideoEncoderConfig): Promise; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame) */ interface VideoFrame { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedHeight) */ - readonly codedHeight: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedRect) */ - readonly codedRect: DOMRectReadOnly | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedWidth) */ - readonly codedWidth: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/colorSpace) */ - readonly colorSpace: VideoColorSpace; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayHeight) */ - readonly displayHeight: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayWidth) */ - readonly displayWidth: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/duration) */ - readonly duration: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/format) */ - readonly format: VideoPixelFormat | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/timestamp) */ - readonly timestamp: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/visibleRect) */ - readonly visibleRect: DOMRectReadOnly | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/allocationSize) */ - allocationSize(options?: VideoFrameCopyToOptions): number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/clone) */ - clone(): VideoFrame; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/close) */ - close(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/copyTo) */ - copyTo(destination: AllowSharedBufferSource, options?: VideoFrameCopyToOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedHeight) */ + readonly codedHeight: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedRect) */ + readonly codedRect: DOMRectReadOnly | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedWidth) */ + readonly codedWidth: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/colorSpace) */ + readonly colorSpace: VideoColorSpace; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayHeight) */ + readonly displayHeight: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayWidth) */ + readonly displayWidth: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/duration) */ + readonly duration: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/format) */ + readonly format: VideoPixelFormat | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/timestamp) */ + readonly timestamp: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/visibleRect) */ + readonly visibleRect: DOMRectReadOnly | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/allocationSize) */ + allocationSize(options?: VideoFrameCopyToOptions): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/clone) */ + clone(): VideoFrame; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/close) */ + close(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/copyTo) */ + copyTo( + destination: AllowSharedBufferSource, + options?: VideoFrameCopyToOptions, + ): Promise; } declare var VideoFrame: { - prototype: VideoFrame; - new(image: CanvasImageSource, init?: VideoFrameInit): VideoFrame; - new(data: AllowSharedBufferSource, init: VideoFrameBufferInit): VideoFrame; + prototype: VideoFrame; + new (image: CanvasImageSource, init?: VideoFrameInit): VideoFrame; + new (data: AllowSharedBufferSource, init: VideoFrameBufferInit): VideoFrame; }; /** @@ -23600,144 +28551,160 @@ declare var VideoFrame: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality) */ interface VideoPlaybackQuality { - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/corruptedVideoFrames) - */ - readonly corruptedVideoFrames: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/creationTime) */ - readonly creationTime: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/droppedVideoFrames) */ - readonly droppedVideoFrames: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/totalVideoFrames) */ - readonly totalVideoFrames: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/corruptedVideoFrames) + */ + readonly corruptedVideoFrames: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/creationTime) */ + readonly creationTime: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/droppedVideoFrames) */ + readonly droppedVideoFrames: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/totalVideoFrames) */ + readonly totalVideoFrames: number; } declare var VideoPlaybackQuality: { - prototype: VideoPlaybackQuality; - new(): VideoPlaybackQuality; + prototype: VideoPlaybackQuality; + new (): VideoPlaybackQuality; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition) */ interface ViewTransition { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/finished) */ - readonly finished: Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/ready) */ - readonly ready: Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/updateCallbackDone) */ - readonly updateCallbackDone: Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/skipTransition) */ - skipTransition(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/finished) */ + readonly finished: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/ready) */ + readonly ready: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/updateCallbackDone) */ + readonly updateCallbackDone: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/skipTransition) */ + skipTransition(): void; } declare var ViewTransition: { - prototype: ViewTransition; - new(): ViewTransition; + prototype: ViewTransition; + new (): ViewTransition; }; interface VisualViewportEventMap { - "resize": Event; - "scroll": Event; + resize: Event; + scroll: Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport) */ interface VisualViewport extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/height) */ - readonly height: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/offsetLeft) */ - readonly offsetLeft: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/offsetTop) */ - readonly offsetTop: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/resize_event) */ - onresize: ((this: VisualViewport, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scroll_event) */ - onscroll: ((this: VisualViewport, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/pageLeft) */ - readonly pageLeft: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/pageTop) */ - readonly pageTop: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scale) */ - readonly scale: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/width) */ - readonly width: number; - addEventListener(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/height) */ + readonly height: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/offsetLeft) */ + readonly offsetLeft: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/offsetTop) */ + readonly offsetTop: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/resize_event) */ + onresize: ((this: VisualViewport, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scroll_event) */ + onscroll: ((this: VisualViewport, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/pageLeft) */ + readonly pageLeft: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/pageTop) */ + readonly pageTop: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scale) */ + readonly scale: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/width) */ + readonly width: number; + addEventListener( + type: K, + listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var VisualViewport: { - prototype: VisualViewport; - new(): VisualViewport; + prototype: VisualViewport; + new (): VisualViewport; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_color_buffer_float) */ interface WEBGL_color_buffer_float { - readonly RGBA32F_EXT: 0x8814; - readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211; - readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; + readonly RGBA32F_EXT: 0x8814; + readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211; + readonly UNSIGNED_NORMALIZED_EXT: 0x8c17; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc) */ interface WEBGL_compressed_texture_astc { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc/getSupportedProfiles) */ - getSupportedProfiles(): string[]; - readonly COMPRESSED_RGBA_ASTC_4x4_KHR: 0x93B0; - readonly COMPRESSED_RGBA_ASTC_5x4_KHR: 0x93B1; - readonly COMPRESSED_RGBA_ASTC_5x5_KHR: 0x93B2; - readonly COMPRESSED_RGBA_ASTC_6x5_KHR: 0x93B3; - readonly COMPRESSED_RGBA_ASTC_6x6_KHR: 0x93B4; - readonly COMPRESSED_RGBA_ASTC_8x5_KHR: 0x93B5; - readonly COMPRESSED_RGBA_ASTC_8x6_KHR: 0x93B6; - readonly COMPRESSED_RGBA_ASTC_8x8_KHR: 0x93B7; - readonly COMPRESSED_RGBA_ASTC_10x5_KHR: 0x93B8; - readonly COMPRESSED_RGBA_ASTC_10x6_KHR: 0x93B9; - readonly COMPRESSED_RGBA_ASTC_10x8_KHR: 0x93BA; - readonly COMPRESSED_RGBA_ASTC_10x10_KHR: 0x93BB; - readonly COMPRESSED_RGBA_ASTC_12x10_KHR: 0x93BC; - readonly COMPRESSED_RGBA_ASTC_12x12_KHR: 0x93BD; - readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: 0x93D0; - readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: 0x93D1; - readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: 0x93D2; - readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: 0x93D3; - readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: 0x93D4; - readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: 0x93D5; - readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: 0x93D6; - readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: 0x93D7; - readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: 0x93D8; - readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: 0x93D9; - readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: 0x93DA; - readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: 0x93DB; - readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: 0x93DC; - readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: 0x93DD; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc/getSupportedProfiles) */ + getSupportedProfiles(): string[]; + readonly COMPRESSED_RGBA_ASTC_4x4_KHR: 0x93b0; + readonly COMPRESSED_RGBA_ASTC_5x4_KHR: 0x93b1; + readonly COMPRESSED_RGBA_ASTC_5x5_KHR: 0x93b2; + readonly COMPRESSED_RGBA_ASTC_6x5_KHR: 0x93b3; + readonly COMPRESSED_RGBA_ASTC_6x6_KHR: 0x93b4; + readonly COMPRESSED_RGBA_ASTC_8x5_KHR: 0x93b5; + readonly COMPRESSED_RGBA_ASTC_8x6_KHR: 0x93b6; + readonly COMPRESSED_RGBA_ASTC_8x8_KHR: 0x93b7; + readonly COMPRESSED_RGBA_ASTC_10x5_KHR: 0x93b8; + readonly COMPRESSED_RGBA_ASTC_10x6_KHR: 0x93b9; + readonly COMPRESSED_RGBA_ASTC_10x8_KHR: 0x93ba; + readonly COMPRESSED_RGBA_ASTC_10x10_KHR: 0x93bb; + readonly COMPRESSED_RGBA_ASTC_12x10_KHR: 0x93bc; + readonly COMPRESSED_RGBA_ASTC_12x12_KHR: 0x93bd; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: 0x93d0; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: 0x93d1; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: 0x93d2; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: 0x93d3; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: 0x93d4; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: 0x93d5; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: 0x93d6; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: 0x93d7; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: 0x93d8; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: 0x93d9; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: 0x93da; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: 0x93db; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: 0x93dc; + readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: 0x93dd; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc) */ interface WEBGL_compressed_texture_etc { - readonly COMPRESSED_R11_EAC: 0x9270; - readonly COMPRESSED_SIGNED_R11_EAC: 0x9271; - readonly COMPRESSED_RG11_EAC: 0x9272; - readonly COMPRESSED_SIGNED_RG11_EAC: 0x9273; - readonly COMPRESSED_RGB8_ETC2: 0x9274; - readonly COMPRESSED_SRGB8_ETC2: 0x9275; - readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9276; - readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9277; - readonly COMPRESSED_RGBA8_ETC2_EAC: 0x9278; - readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 0x9279; + readonly COMPRESSED_R11_EAC: 0x9270; + readonly COMPRESSED_SIGNED_R11_EAC: 0x9271; + readonly COMPRESSED_RG11_EAC: 0x9272; + readonly COMPRESSED_SIGNED_RG11_EAC: 0x9273; + readonly COMPRESSED_RGB8_ETC2: 0x9274; + readonly COMPRESSED_SRGB8_ETC2: 0x9275; + readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9276; + readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9277; + readonly COMPRESSED_RGBA8_ETC2_EAC: 0x9278; + readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 0x9279; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc1) */ interface WEBGL_compressed_texture_etc1 { - readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64; + readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8d64; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_pvrtc) */ interface WEBGL_compressed_texture_pvrtc { - readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: 0x8C00; - readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: 0x8C01; - readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: 0x8C02; - readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: 0x8C03; + readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: 0x8c00; + readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: 0x8c01; + readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: 0x8c02; + readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: 0x8c03; } /** @@ -23746,18 +28713,18 @@ interface WEBGL_compressed_texture_pvrtc { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc) */ interface WEBGL_compressed_texture_s3tc { - readonly COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83F0; - readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: 0x83F1; - readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: 0x83F2; - readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: 0x83F3; + readonly COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83f0; + readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: 0x83f1; + readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: 0x83f2; + readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: 0x83f3; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc_srgb) */ interface WEBGL_compressed_texture_s3tc_srgb { - readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: 0x8C4C; - readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: 0x8C4D; - readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: 0x8C4E; - readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: 0x8C4F; + readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: 0x8c4c; + readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: 0x8c4d; + readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: 0x8c4e; + readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: 0x8c4f; } /** @@ -23766,14 +28733,14 @@ interface WEBGL_compressed_texture_s3tc_srgb { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_renderer_info) */ interface WEBGL_debug_renderer_info { - readonly UNMASKED_VENDOR_WEBGL: 0x9245; - readonly UNMASKED_RENDERER_WEBGL: 0x9246; + readonly UNMASKED_VENDOR_WEBGL: 0x9245; + readonly UNMASKED_RENDERER_WEBGL: 0x9246; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders) */ interface WEBGL_debug_shaders { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders/getTranslatedShaderSource) */ - getTranslatedShaderSource(shader: WebGLShader): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders/getTranslatedShaderSource) */ + getTranslatedShaderSource(shader: WebGLShader): string; } /** @@ -23782,67 +28749,101 @@ interface WEBGL_debug_shaders { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_depth_texture) */ interface WEBGL_depth_texture { - readonly UNSIGNED_INT_24_8_WEBGL: 0x84FA; + readonly UNSIGNED_INT_24_8_WEBGL: 0x84fa; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers) */ interface WEBGL_draw_buffers { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */ - drawBuffersWEBGL(buffers: GLenum[]): void; - readonly COLOR_ATTACHMENT0_WEBGL: 0x8CE0; - readonly COLOR_ATTACHMENT1_WEBGL: 0x8CE1; - readonly COLOR_ATTACHMENT2_WEBGL: 0x8CE2; - readonly COLOR_ATTACHMENT3_WEBGL: 0x8CE3; - readonly COLOR_ATTACHMENT4_WEBGL: 0x8CE4; - readonly COLOR_ATTACHMENT5_WEBGL: 0x8CE5; - readonly COLOR_ATTACHMENT6_WEBGL: 0x8CE6; - readonly COLOR_ATTACHMENT7_WEBGL: 0x8CE7; - readonly COLOR_ATTACHMENT8_WEBGL: 0x8CE8; - readonly COLOR_ATTACHMENT9_WEBGL: 0x8CE9; - readonly COLOR_ATTACHMENT10_WEBGL: 0x8CEA; - readonly COLOR_ATTACHMENT11_WEBGL: 0x8CEB; - readonly COLOR_ATTACHMENT12_WEBGL: 0x8CEC; - readonly COLOR_ATTACHMENT13_WEBGL: 0x8CED; - readonly COLOR_ATTACHMENT14_WEBGL: 0x8CEE; - readonly COLOR_ATTACHMENT15_WEBGL: 0x8CEF; - readonly DRAW_BUFFER0_WEBGL: 0x8825; - readonly DRAW_BUFFER1_WEBGL: 0x8826; - readonly DRAW_BUFFER2_WEBGL: 0x8827; - readonly DRAW_BUFFER3_WEBGL: 0x8828; - readonly DRAW_BUFFER4_WEBGL: 0x8829; - readonly DRAW_BUFFER5_WEBGL: 0x882A; - readonly DRAW_BUFFER6_WEBGL: 0x882B; - readonly DRAW_BUFFER7_WEBGL: 0x882C; - readonly DRAW_BUFFER8_WEBGL: 0x882D; - readonly DRAW_BUFFER9_WEBGL: 0x882E; - readonly DRAW_BUFFER10_WEBGL: 0x882F; - readonly DRAW_BUFFER11_WEBGL: 0x8830; - readonly DRAW_BUFFER12_WEBGL: 0x8831; - readonly DRAW_BUFFER13_WEBGL: 0x8832; - readonly DRAW_BUFFER14_WEBGL: 0x8833; - readonly DRAW_BUFFER15_WEBGL: 0x8834; - readonly MAX_COLOR_ATTACHMENTS_WEBGL: 0x8CDF; - readonly MAX_DRAW_BUFFERS_WEBGL: 0x8824; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */ + drawBuffersWEBGL(buffers: GLenum[]): void; + readonly COLOR_ATTACHMENT0_WEBGL: 0x8ce0; + readonly COLOR_ATTACHMENT1_WEBGL: 0x8ce1; + readonly COLOR_ATTACHMENT2_WEBGL: 0x8ce2; + readonly COLOR_ATTACHMENT3_WEBGL: 0x8ce3; + readonly COLOR_ATTACHMENT4_WEBGL: 0x8ce4; + readonly COLOR_ATTACHMENT5_WEBGL: 0x8ce5; + readonly COLOR_ATTACHMENT6_WEBGL: 0x8ce6; + readonly COLOR_ATTACHMENT7_WEBGL: 0x8ce7; + readonly COLOR_ATTACHMENT8_WEBGL: 0x8ce8; + readonly COLOR_ATTACHMENT9_WEBGL: 0x8ce9; + readonly COLOR_ATTACHMENT10_WEBGL: 0x8cea; + readonly COLOR_ATTACHMENT11_WEBGL: 0x8ceb; + readonly COLOR_ATTACHMENT12_WEBGL: 0x8cec; + readonly COLOR_ATTACHMENT13_WEBGL: 0x8ced; + readonly COLOR_ATTACHMENT14_WEBGL: 0x8cee; + readonly COLOR_ATTACHMENT15_WEBGL: 0x8cef; + readonly DRAW_BUFFER0_WEBGL: 0x8825; + readonly DRAW_BUFFER1_WEBGL: 0x8826; + readonly DRAW_BUFFER2_WEBGL: 0x8827; + readonly DRAW_BUFFER3_WEBGL: 0x8828; + readonly DRAW_BUFFER4_WEBGL: 0x8829; + readonly DRAW_BUFFER5_WEBGL: 0x882a; + readonly DRAW_BUFFER6_WEBGL: 0x882b; + readonly DRAW_BUFFER7_WEBGL: 0x882c; + readonly DRAW_BUFFER8_WEBGL: 0x882d; + readonly DRAW_BUFFER9_WEBGL: 0x882e; + readonly DRAW_BUFFER10_WEBGL: 0x882f; + readonly DRAW_BUFFER11_WEBGL: 0x8830; + readonly DRAW_BUFFER12_WEBGL: 0x8831; + readonly DRAW_BUFFER13_WEBGL: 0x8832; + readonly DRAW_BUFFER14_WEBGL: 0x8833; + readonly DRAW_BUFFER15_WEBGL: 0x8834; + readonly MAX_COLOR_ATTACHMENTS_WEBGL: 0x8cdf; + readonly MAX_DRAW_BUFFERS_WEBGL: 0x8824; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context) */ interface WEBGL_lose_context { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) */ - loseContext(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) */ - restoreContext(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) */ + loseContext(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) */ + restoreContext(): void; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw) */ interface WEBGL_multi_draw { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */ - multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */ - multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, drawcount: GLsizei): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */ - multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */ - multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */ + multiDrawArraysInstancedWEBGL( + mode: GLenum, + firstsList: Int32Array | GLint[], + firstsOffset: number, + countsList: Int32Array | GLsizei[], + countsOffset: number, + instanceCountsList: Int32Array | GLsizei[], + instanceCountsOffset: number, + drawcount: GLsizei, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */ + multiDrawArraysWEBGL( + mode: GLenum, + firstsList: Int32Array | GLint[], + firstsOffset: number, + countsList: Int32Array | GLsizei[], + countsOffset: number, + drawcount: GLsizei, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */ + multiDrawElementsInstancedWEBGL( + mode: GLenum, + countsList: Int32Array | GLsizei[], + countsOffset: number, + type: GLenum, + offsetsList: Int32Array | GLsizei[], + offsetsOffset: number, + instanceCountsList: Int32Array | GLsizei[], + instanceCountsOffset: number, + drawcount: GLsizei, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */ + multiDrawElementsWEBGL( + mode: GLenum, + countsList: Int32Array | GLsizei[], + countsOffset: number, + type: GLenum, + offsetsList: Int32Array | GLsizei[], + offsetsOffset: number, + drawcount: GLsizei, + ): void; } /** @@ -23851,17 +28852,17 @@ interface WEBGL_multi_draw { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLock) */ interface WakeLock { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLock/request) */ - request(type?: WakeLockType): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLock/request) */ + request(type?: WakeLockType): Promise; } declare var WakeLock: { - prototype: WakeLock; - new(): WakeLock; + prototype: WakeLock; + new (): WakeLock; }; interface WakeLockSentinelEventMap { - "release": Event; + release: Event; } /** @@ -23870,23 +28871,39 @@ interface WakeLockSentinelEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel) */ interface WakeLockSentinel extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/release_event) */ - onrelease: ((this: WakeLockSentinel, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/released) */ - readonly released: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/type) */ - readonly type: WakeLockType; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/release) */ - release(): Promise; - addEventListener(type: K, listener: (this: WakeLockSentinel, ev: WakeLockSentinelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: WakeLockSentinel, ev: WakeLockSentinelEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/release_event) */ + onrelease: ((this: WakeLockSentinel, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/released) */ + readonly released: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/type) */ + readonly type: WakeLockType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/release) */ + release(): Promise; + addEventListener( + type: K, + listener: (this: WakeLockSentinel, ev: WakeLockSentinelEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: WakeLockSentinel, ev: WakeLockSentinelEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var WakeLockSentinel: { - prototype: WakeLockSentinel; - new(): WakeLockSentinel; + prototype: WakeLockSentinel; + new (): WakeLockSentinel; }; /** @@ -23895,1085 +28912,1684 @@ declare var WakeLockSentinel: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode) */ interface WaveShaperNode extends AudioNode { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode/curve) */ - curve: Float32Array | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode/oversample) */ - oversample: OverSampleType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode/curve) */ + curve: Float32Array | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode/oversample) */ + oversample: OverSampleType; } declare var WaveShaperNode: { - prototype: WaveShaperNode; - new(context: BaseAudioContext, options?: WaveShaperOptions): WaveShaperNode; + prototype: WaveShaperNode; + new (context: BaseAudioContext, options?: WaveShaperOptions): WaveShaperNode; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext) */ -interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase { -} +interface WebGL2RenderingContext + extends + WebGL2RenderingContextBase, + WebGL2RenderingContextOverloads, + WebGLRenderingContextBase {} declare var WebGL2RenderingContext: { - prototype: WebGL2RenderingContext; - new(): WebGL2RenderingContext; - readonly READ_BUFFER: 0x0C02; - readonly UNPACK_ROW_LENGTH: 0x0CF2; - readonly UNPACK_SKIP_ROWS: 0x0CF3; - readonly UNPACK_SKIP_PIXELS: 0x0CF4; - readonly PACK_ROW_LENGTH: 0x0D02; - readonly PACK_SKIP_ROWS: 0x0D03; - readonly PACK_SKIP_PIXELS: 0x0D04; - readonly COLOR: 0x1800; - readonly DEPTH: 0x1801; - readonly STENCIL: 0x1802; - readonly RED: 0x1903; - readonly RGB8: 0x8051; - readonly RGB10_A2: 0x8059; - readonly TEXTURE_BINDING_3D: 0x806A; - readonly UNPACK_SKIP_IMAGES: 0x806D; - readonly UNPACK_IMAGE_HEIGHT: 0x806E; - readonly TEXTURE_3D: 0x806F; - readonly TEXTURE_WRAP_R: 0x8072; - readonly MAX_3D_TEXTURE_SIZE: 0x8073; - readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368; - readonly MAX_ELEMENTS_VERTICES: 0x80E8; - readonly MAX_ELEMENTS_INDICES: 0x80E9; - readonly TEXTURE_MIN_LOD: 0x813A; - readonly TEXTURE_MAX_LOD: 0x813B; - readonly TEXTURE_BASE_LEVEL: 0x813C; - readonly TEXTURE_MAX_LEVEL: 0x813D; - readonly MIN: 0x8007; - readonly MAX: 0x8008; - readonly DEPTH_COMPONENT24: 0x81A6; - readonly MAX_TEXTURE_LOD_BIAS: 0x84FD; - readonly TEXTURE_COMPARE_MODE: 0x884C; - readonly TEXTURE_COMPARE_FUNC: 0x884D; - readonly CURRENT_QUERY: 0x8865; - readonly QUERY_RESULT: 0x8866; - readonly QUERY_RESULT_AVAILABLE: 0x8867; - readonly STREAM_READ: 0x88E1; - readonly STREAM_COPY: 0x88E2; - readonly STATIC_READ: 0x88E5; - readonly STATIC_COPY: 0x88E6; - readonly DYNAMIC_READ: 0x88E9; - readonly DYNAMIC_COPY: 0x88EA; - readonly MAX_DRAW_BUFFERS: 0x8824; - readonly DRAW_BUFFER0: 0x8825; - readonly DRAW_BUFFER1: 0x8826; - readonly DRAW_BUFFER2: 0x8827; - readonly DRAW_BUFFER3: 0x8828; - readonly DRAW_BUFFER4: 0x8829; - readonly DRAW_BUFFER5: 0x882A; - readonly DRAW_BUFFER6: 0x882B; - readonly DRAW_BUFFER7: 0x882C; - readonly DRAW_BUFFER8: 0x882D; - readonly DRAW_BUFFER9: 0x882E; - readonly DRAW_BUFFER10: 0x882F; - readonly DRAW_BUFFER11: 0x8830; - readonly DRAW_BUFFER12: 0x8831; - readonly DRAW_BUFFER13: 0x8832; - readonly DRAW_BUFFER14: 0x8833; - readonly DRAW_BUFFER15: 0x8834; - readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49; - readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A; - readonly SAMPLER_3D: 0x8B5F; - readonly SAMPLER_2D_SHADOW: 0x8B62; - readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B; - readonly PIXEL_PACK_BUFFER: 0x88EB; - readonly PIXEL_UNPACK_BUFFER: 0x88EC; - readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED; - readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF; - readonly FLOAT_MAT2x3: 0x8B65; - readonly FLOAT_MAT2x4: 0x8B66; - readonly FLOAT_MAT3x2: 0x8B67; - readonly FLOAT_MAT3x4: 0x8B68; - readonly FLOAT_MAT4x2: 0x8B69; - readonly FLOAT_MAT4x3: 0x8B6A; - readonly SRGB: 0x8C40; - readonly SRGB8: 0x8C41; - readonly SRGB8_ALPHA8: 0x8C43; - readonly COMPARE_REF_TO_TEXTURE: 0x884E; - readonly RGBA32F: 0x8814; - readonly RGB32F: 0x8815; - readonly RGBA16F: 0x881A; - readonly RGB16F: 0x881B; - readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD; - readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF; - readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904; - readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905; - readonly MAX_VARYING_COMPONENTS: 0x8B4B; - readonly TEXTURE_2D_ARRAY: 0x8C1A; - readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D; - readonly R11F_G11F_B10F: 0x8C3A; - readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B; - readonly RGB9_E5: 0x8C3D; - readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E; - readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F; - readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80; - readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83; - readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84; - readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85; - readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88; - readonly RASTERIZER_DISCARD: 0x8C89; - readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A; - readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B; - readonly INTERLEAVED_ATTRIBS: 0x8C8C; - readonly SEPARATE_ATTRIBS: 0x8C8D; - readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E; - readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F; - readonly RGBA32UI: 0x8D70; - readonly RGB32UI: 0x8D71; - readonly RGBA16UI: 0x8D76; - readonly RGB16UI: 0x8D77; - readonly RGBA8UI: 0x8D7C; - readonly RGB8UI: 0x8D7D; - readonly RGBA32I: 0x8D82; - readonly RGB32I: 0x8D83; - readonly RGBA16I: 0x8D88; - readonly RGB16I: 0x8D89; - readonly RGBA8I: 0x8D8E; - readonly RGB8I: 0x8D8F; - readonly RED_INTEGER: 0x8D94; - readonly RGB_INTEGER: 0x8D98; - readonly RGBA_INTEGER: 0x8D99; - readonly SAMPLER_2D_ARRAY: 0x8DC1; - readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4; - readonly SAMPLER_CUBE_SHADOW: 0x8DC5; - readonly UNSIGNED_INT_VEC2: 0x8DC6; - readonly UNSIGNED_INT_VEC3: 0x8DC7; - readonly UNSIGNED_INT_VEC4: 0x8DC8; - readonly INT_SAMPLER_2D: 0x8DCA; - readonly INT_SAMPLER_3D: 0x8DCB; - readonly INT_SAMPLER_CUBE: 0x8DCC; - readonly INT_SAMPLER_2D_ARRAY: 0x8DCF; - readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2; - readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3; - readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4; - readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7; - readonly DEPTH_COMPONENT32F: 0x8CAC; - readonly DEPTH32F_STENCIL8: 0x8CAD; - readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD; - readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210; - readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211; - readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212; - readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213; - readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214; - readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215; - readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216; - readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217; - readonly FRAMEBUFFER_DEFAULT: 0x8218; - readonly UNSIGNED_INT_24_8: 0x84FA; - readonly DEPTH24_STENCIL8: 0x88F0; - readonly UNSIGNED_NORMALIZED: 0x8C17; - readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6; - readonly READ_FRAMEBUFFER: 0x8CA8; - readonly DRAW_FRAMEBUFFER: 0x8CA9; - readonly READ_FRAMEBUFFER_BINDING: 0x8CAA; - readonly RENDERBUFFER_SAMPLES: 0x8CAB; - readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4; - readonly MAX_COLOR_ATTACHMENTS: 0x8CDF; - readonly COLOR_ATTACHMENT1: 0x8CE1; - readonly COLOR_ATTACHMENT2: 0x8CE2; - readonly COLOR_ATTACHMENT3: 0x8CE3; - readonly COLOR_ATTACHMENT4: 0x8CE4; - readonly COLOR_ATTACHMENT5: 0x8CE5; - readonly COLOR_ATTACHMENT6: 0x8CE6; - readonly COLOR_ATTACHMENT7: 0x8CE7; - readonly COLOR_ATTACHMENT8: 0x8CE8; - readonly COLOR_ATTACHMENT9: 0x8CE9; - readonly COLOR_ATTACHMENT10: 0x8CEA; - readonly COLOR_ATTACHMENT11: 0x8CEB; - readonly COLOR_ATTACHMENT12: 0x8CEC; - readonly COLOR_ATTACHMENT13: 0x8CED; - readonly COLOR_ATTACHMENT14: 0x8CEE; - readonly COLOR_ATTACHMENT15: 0x8CEF; - readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56; - readonly MAX_SAMPLES: 0x8D57; - readonly HALF_FLOAT: 0x140B; - readonly RG: 0x8227; - readonly RG_INTEGER: 0x8228; - readonly R8: 0x8229; - readonly RG8: 0x822B; - readonly R16F: 0x822D; - readonly R32F: 0x822E; - readonly RG16F: 0x822F; - readonly RG32F: 0x8230; - readonly R8I: 0x8231; - readonly R8UI: 0x8232; - readonly R16I: 0x8233; - readonly R16UI: 0x8234; - readonly R32I: 0x8235; - readonly R32UI: 0x8236; - readonly RG8I: 0x8237; - readonly RG8UI: 0x8238; - readonly RG16I: 0x8239; - readonly RG16UI: 0x823A; - readonly RG32I: 0x823B; - readonly RG32UI: 0x823C; - readonly VERTEX_ARRAY_BINDING: 0x85B5; - readonly R8_SNORM: 0x8F94; - readonly RG8_SNORM: 0x8F95; - readonly RGB8_SNORM: 0x8F96; - readonly RGBA8_SNORM: 0x8F97; - readonly SIGNED_NORMALIZED: 0x8F9C; - readonly COPY_READ_BUFFER: 0x8F36; - readonly COPY_WRITE_BUFFER: 0x8F37; - readonly COPY_READ_BUFFER_BINDING: 0x8F36; - readonly COPY_WRITE_BUFFER_BINDING: 0x8F37; - readonly UNIFORM_BUFFER: 0x8A11; - readonly UNIFORM_BUFFER_BINDING: 0x8A28; - readonly UNIFORM_BUFFER_START: 0x8A29; - readonly UNIFORM_BUFFER_SIZE: 0x8A2A; - readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B; - readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D; - readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E; - readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F; - readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30; - readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31; - readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33; - readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34; - readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36; - readonly UNIFORM_TYPE: 0x8A37; - readonly UNIFORM_SIZE: 0x8A38; - readonly UNIFORM_BLOCK_INDEX: 0x8A3A; - readonly UNIFORM_OFFSET: 0x8A3B; - readonly UNIFORM_ARRAY_STRIDE: 0x8A3C; - readonly UNIFORM_MATRIX_STRIDE: 0x8A3D; - readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E; - readonly UNIFORM_BLOCK_BINDING: 0x8A3F; - readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40; - readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42; - readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43; - readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44; - readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46; - readonly INVALID_INDEX: 0xFFFFFFFF; - readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122; - readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125; - readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111; - readonly OBJECT_TYPE: 0x9112; - readonly SYNC_CONDITION: 0x9113; - readonly SYNC_STATUS: 0x9114; - readonly SYNC_FLAGS: 0x9115; - readonly SYNC_FENCE: 0x9116; - readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117; - readonly UNSIGNALED: 0x9118; - readonly SIGNALED: 0x9119; - readonly ALREADY_SIGNALED: 0x911A; - readonly TIMEOUT_EXPIRED: 0x911B; - readonly CONDITION_SATISFIED: 0x911C; - readonly WAIT_FAILED: 0x911D; - readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001; - readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE; - readonly ANY_SAMPLES_PASSED: 0x8C2F; - readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A; - readonly SAMPLER_BINDING: 0x8919; - readonly RGB10_A2UI: 0x906F; - readonly INT_2_10_10_10_REV: 0x8D9F; - readonly TRANSFORM_FEEDBACK: 0x8E22; - readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23; - readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24; - readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25; - readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F; - readonly MAX_ELEMENT_INDEX: 0x8D6B; - readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF; - readonly TIMEOUT_IGNORED: -1; - readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247; - readonly DEPTH_BUFFER_BIT: 0x00000100; - readonly STENCIL_BUFFER_BIT: 0x00000400; - readonly COLOR_BUFFER_BIT: 0x00004000; - readonly POINTS: 0x0000; - readonly LINES: 0x0001; - readonly LINE_LOOP: 0x0002; - readonly LINE_STRIP: 0x0003; - readonly TRIANGLES: 0x0004; - readonly TRIANGLE_STRIP: 0x0005; - readonly TRIANGLE_FAN: 0x0006; - readonly ZERO: 0; - readonly ONE: 1; - readonly SRC_COLOR: 0x0300; - readonly ONE_MINUS_SRC_COLOR: 0x0301; - readonly SRC_ALPHA: 0x0302; - readonly ONE_MINUS_SRC_ALPHA: 0x0303; - readonly DST_ALPHA: 0x0304; - readonly ONE_MINUS_DST_ALPHA: 0x0305; - readonly DST_COLOR: 0x0306; - readonly ONE_MINUS_DST_COLOR: 0x0307; - readonly SRC_ALPHA_SATURATE: 0x0308; - readonly FUNC_ADD: 0x8006; - readonly BLEND_EQUATION: 0x8009; - readonly BLEND_EQUATION_RGB: 0x8009; - readonly BLEND_EQUATION_ALPHA: 0x883D; - readonly FUNC_SUBTRACT: 0x800A; - readonly FUNC_REVERSE_SUBTRACT: 0x800B; - readonly BLEND_DST_RGB: 0x80C8; - readonly BLEND_SRC_RGB: 0x80C9; - readonly BLEND_DST_ALPHA: 0x80CA; - readonly BLEND_SRC_ALPHA: 0x80CB; - readonly CONSTANT_COLOR: 0x8001; - readonly ONE_MINUS_CONSTANT_COLOR: 0x8002; - readonly CONSTANT_ALPHA: 0x8003; - readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004; - readonly BLEND_COLOR: 0x8005; - readonly ARRAY_BUFFER: 0x8892; - readonly ELEMENT_ARRAY_BUFFER: 0x8893; - readonly ARRAY_BUFFER_BINDING: 0x8894; - readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895; - readonly STREAM_DRAW: 0x88E0; - readonly STATIC_DRAW: 0x88E4; - readonly DYNAMIC_DRAW: 0x88E8; - readonly BUFFER_SIZE: 0x8764; - readonly BUFFER_USAGE: 0x8765; - readonly CURRENT_VERTEX_ATTRIB: 0x8626; - readonly FRONT: 0x0404; - readonly BACK: 0x0405; - readonly FRONT_AND_BACK: 0x0408; - readonly CULL_FACE: 0x0B44; - readonly BLEND: 0x0BE2; - readonly DITHER: 0x0BD0; - readonly STENCIL_TEST: 0x0B90; - readonly DEPTH_TEST: 0x0B71; - readonly SCISSOR_TEST: 0x0C11; - readonly POLYGON_OFFSET_FILL: 0x8037; - readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E; - readonly SAMPLE_COVERAGE: 0x80A0; - readonly NO_ERROR: 0; - readonly INVALID_ENUM: 0x0500; - readonly INVALID_VALUE: 0x0501; - readonly INVALID_OPERATION: 0x0502; - readonly OUT_OF_MEMORY: 0x0505; - readonly CW: 0x0900; - readonly CCW: 0x0901; - readonly LINE_WIDTH: 0x0B21; - readonly ALIASED_POINT_SIZE_RANGE: 0x846D; - readonly ALIASED_LINE_WIDTH_RANGE: 0x846E; - readonly CULL_FACE_MODE: 0x0B45; - readonly FRONT_FACE: 0x0B46; - readonly DEPTH_RANGE: 0x0B70; - readonly DEPTH_WRITEMASK: 0x0B72; - readonly DEPTH_CLEAR_VALUE: 0x0B73; - readonly DEPTH_FUNC: 0x0B74; - readonly STENCIL_CLEAR_VALUE: 0x0B91; - readonly STENCIL_FUNC: 0x0B92; - readonly STENCIL_FAIL: 0x0B94; - readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95; - readonly STENCIL_PASS_DEPTH_PASS: 0x0B96; - readonly STENCIL_REF: 0x0B97; - readonly STENCIL_VALUE_MASK: 0x0B93; - readonly STENCIL_WRITEMASK: 0x0B98; - readonly STENCIL_BACK_FUNC: 0x8800; - readonly STENCIL_BACK_FAIL: 0x8801; - readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802; - readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803; - readonly STENCIL_BACK_REF: 0x8CA3; - readonly STENCIL_BACK_VALUE_MASK: 0x8CA4; - readonly STENCIL_BACK_WRITEMASK: 0x8CA5; - readonly VIEWPORT: 0x0BA2; - readonly SCISSOR_BOX: 0x0C10; - readonly COLOR_CLEAR_VALUE: 0x0C22; - readonly COLOR_WRITEMASK: 0x0C23; - readonly UNPACK_ALIGNMENT: 0x0CF5; - readonly PACK_ALIGNMENT: 0x0D05; - readonly MAX_TEXTURE_SIZE: 0x0D33; - readonly MAX_VIEWPORT_DIMS: 0x0D3A; - readonly SUBPIXEL_BITS: 0x0D50; - readonly RED_BITS: 0x0D52; - readonly GREEN_BITS: 0x0D53; - readonly BLUE_BITS: 0x0D54; - readonly ALPHA_BITS: 0x0D55; - readonly DEPTH_BITS: 0x0D56; - readonly STENCIL_BITS: 0x0D57; - readonly POLYGON_OFFSET_UNITS: 0x2A00; - readonly POLYGON_OFFSET_FACTOR: 0x8038; - readonly TEXTURE_BINDING_2D: 0x8069; - readonly SAMPLE_BUFFERS: 0x80A8; - readonly SAMPLES: 0x80A9; - readonly SAMPLE_COVERAGE_VALUE: 0x80AA; - readonly SAMPLE_COVERAGE_INVERT: 0x80AB; - readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3; - readonly DONT_CARE: 0x1100; - readonly FASTEST: 0x1101; - readonly NICEST: 0x1102; - readonly GENERATE_MIPMAP_HINT: 0x8192; - readonly BYTE: 0x1400; - readonly UNSIGNED_BYTE: 0x1401; - readonly SHORT: 0x1402; - readonly UNSIGNED_SHORT: 0x1403; - readonly INT: 0x1404; - readonly UNSIGNED_INT: 0x1405; - readonly FLOAT: 0x1406; - readonly DEPTH_COMPONENT: 0x1902; - readonly ALPHA: 0x1906; - readonly RGB: 0x1907; - readonly RGBA: 0x1908; - readonly LUMINANCE: 0x1909; - readonly LUMINANCE_ALPHA: 0x190A; - readonly UNSIGNED_SHORT_4_4_4_4: 0x8033; - readonly UNSIGNED_SHORT_5_5_5_1: 0x8034; - readonly UNSIGNED_SHORT_5_6_5: 0x8363; - readonly FRAGMENT_SHADER: 0x8B30; - readonly VERTEX_SHADER: 0x8B31; - readonly MAX_VERTEX_ATTRIBS: 0x8869; - readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB; - readonly MAX_VARYING_VECTORS: 0x8DFC; - readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D; - readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C; - readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872; - readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD; - readonly SHADER_TYPE: 0x8B4F; - readonly DELETE_STATUS: 0x8B80; - readonly LINK_STATUS: 0x8B82; - readonly VALIDATE_STATUS: 0x8B83; - readonly ATTACHED_SHADERS: 0x8B85; - readonly ACTIVE_UNIFORMS: 0x8B86; - readonly ACTIVE_ATTRIBUTES: 0x8B89; - readonly SHADING_LANGUAGE_VERSION: 0x8B8C; - readonly CURRENT_PROGRAM: 0x8B8D; - readonly NEVER: 0x0200; - readonly LESS: 0x0201; - readonly EQUAL: 0x0202; - readonly LEQUAL: 0x0203; - readonly GREATER: 0x0204; - readonly NOTEQUAL: 0x0205; - readonly GEQUAL: 0x0206; - readonly ALWAYS: 0x0207; - readonly KEEP: 0x1E00; - readonly REPLACE: 0x1E01; - readonly INCR: 0x1E02; - readonly DECR: 0x1E03; - readonly INVERT: 0x150A; - readonly INCR_WRAP: 0x8507; - readonly DECR_WRAP: 0x8508; - readonly VENDOR: 0x1F00; - readonly RENDERER: 0x1F01; - readonly VERSION: 0x1F02; - readonly NEAREST: 0x2600; - readonly LINEAR: 0x2601; - readonly NEAREST_MIPMAP_NEAREST: 0x2700; - readonly LINEAR_MIPMAP_NEAREST: 0x2701; - readonly NEAREST_MIPMAP_LINEAR: 0x2702; - readonly LINEAR_MIPMAP_LINEAR: 0x2703; - readonly TEXTURE_MAG_FILTER: 0x2800; - readonly TEXTURE_MIN_FILTER: 0x2801; - readonly TEXTURE_WRAP_S: 0x2802; - readonly TEXTURE_WRAP_T: 0x2803; - readonly TEXTURE_2D: 0x0DE1; - readonly TEXTURE: 0x1702; - readonly TEXTURE_CUBE_MAP: 0x8513; - readonly TEXTURE_BINDING_CUBE_MAP: 0x8514; - readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515; - readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516; - readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517; - readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518; - readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519; - readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A; - readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C; - readonly TEXTURE0: 0x84C0; - readonly TEXTURE1: 0x84C1; - readonly TEXTURE2: 0x84C2; - readonly TEXTURE3: 0x84C3; - readonly TEXTURE4: 0x84C4; - readonly TEXTURE5: 0x84C5; - readonly TEXTURE6: 0x84C6; - readonly TEXTURE7: 0x84C7; - readonly TEXTURE8: 0x84C8; - readonly TEXTURE9: 0x84C9; - readonly TEXTURE10: 0x84CA; - readonly TEXTURE11: 0x84CB; - readonly TEXTURE12: 0x84CC; - readonly TEXTURE13: 0x84CD; - readonly TEXTURE14: 0x84CE; - readonly TEXTURE15: 0x84CF; - readonly TEXTURE16: 0x84D0; - readonly TEXTURE17: 0x84D1; - readonly TEXTURE18: 0x84D2; - readonly TEXTURE19: 0x84D3; - readonly TEXTURE20: 0x84D4; - readonly TEXTURE21: 0x84D5; - readonly TEXTURE22: 0x84D6; - readonly TEXTURE23: 0x84D7; - readonly TEXTURE24: 0x84D8; - readonly TEXTURE25: 0x84D9; - readonly TEXTURE26: 0x84DA; - readonly TEXTURE27: 0x84DB; - readonly TEXTURE28: 0x84DC; - readonly TEXTURE29: 0x84DD; - readonly TEXTURE30: 0x84DE; - readonly TEXTURE31: 0x84DF; - readonly ACTIVE_TEXTURE: 0x84E0; - readonly REPEAT: 0x2901; - readonly CLAMP_TO_EDGE: 0x812F; - readonly MIRRORED_REPEAT: 0x8370; - readonly FLOAT_VEC2: 0x8B50; - readonly FLOAT_VEC3: 0x8B51; - readonly FLOAT_VEC4: 0x8B52; - readonly INT_VEC2: 0x8B53; - readonly INT_VEC3: 0x8B54; - readonly INT_VEC4: 0x8B55; - readonly BOOL: 0x8B56; - readonly BOOL_VEC2: 0x8B57; - readonly BOOL_VEC3: 0x8B58; - readonly BOOL_VEC4: 0x8B59; - readonly FLOAT_MAT2: 0x8B5A; - readonly FLOAT_MAT3: 0x8B5B; - readonly FLOAT_MAT4: 0x8B5C; - readonly SAMPLER_2D: 0x8B5E; - readonly SAMPLER_CUBE: 0x8B60; - readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622; - readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623; - readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624; - readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625; - readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A; - readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645; - readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F; - readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A; - readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B; - readonly COMPILE_STATUS: 0x8B81; - readonly LOW_FLOAT: 0x8DF0; - readonly MEDIUM_FLOAT: 0x8DF1; - readonly HIGH_FLOAT: 0x8DF2; - readonly LOW_INT: 0x8DF3; - readonly MEDIUM_INT: 0x8DF4; - readonly HIGH_INT: 0x8DF5; - readonly FRAMEBUFFER: 0x8D40; - readonly RENDERBUFFER: 0x8D41; - readonly RGBA4: 0x8056; - readonly RGB5_A1: 0x8057; - readonly RGBA8: 0x8058; - readonly RGB565: 0x8D62; - readonly DEPTH_COMPONENT16: 0x81A5; - readonly STENCIL_INDEX8: 0x8D48; - readonly DEPTH_STENCIL: 0x84F9; - readonly RENDERBUFFER_WIDTH: 0x8D42; - readonly RENDERBUFFER_HEIGHT: 0x8D43; - readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44; - readonly RENDERBUFFER_RED_SIZE: 0x8D50; - readonly RENDERBUFFER_GREEN_SIZE: 0x8D51; - readonly RENDERBUFFER_BLUE_SIZE: 0x8D52; - readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53; - readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54; - readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55; - readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0; - readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1; - readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2; - readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3; - readonly COLOR_ATTACHMENT0: 0x8CE0; - readonly DEPTH_ATTACHMENT: 0x8D00; - readonly STENCIL_ATTACHMENT: 0x8D20; - readonly DEPTH_STENCIL_ATTACHMENT: 0x821A; - readonly NONE: 0; - readonly FRAMEBUFFER_COMPLETE: 0x8CD5; - readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6; - readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7; - readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9; - readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD; - readonly FRAMEBUFFER_BINDING: 0x8CA6; - readonly RENDERBUFFER_BINDING: 0x8CA7; - readonly MAX_RENDERBUFFER_SIZE: 0x84E8; - readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506; - readonly UNPACK_FLIP_Y_WEBGL: 0x9240; - readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241; - readonly CONTEXT_LOST_WEBGL: 0x9242; - readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243; - readonly BROWSER_DEFAULT_WEBGL: 0x9244; + prototype: WebGL2RenderingContext; + new (): WebGL2RenderingContext; + readonly READ_BUFFER: 0x0c02; + readonly UNPACK_ROW_LENGTH: 0x0cf2; + readonly UNPACK_SKIP_ROWS: 0x0cf3; + readonly UNPACK_SKIP_PIXELS: 0x0cf4; + readonly PACK_ROW_LENGTH: 0x0d02; + readonly PACK_SKIP_ROWS: 0x0d03; + readonly PACK_SKIP_PIXELS: 0x0d04; + readonly COLOR: 0x1800; + readonly DEPTH: 0x1801; + readonly STENCIL: 0x1802; + readonly RED: 0x1903; + readonly RGB8: 0x8051; + readonly RGB10_A2: 0x8059; + readonly TEXTURE_BINDING_3D: 0x806a; + readonly UNPACK_SKIP_IMAGES: 0x806d; + readonly UNPACK_IMAGE_HEIGHT: 0x806e; + readonly TEXTURE_3D: 0x806f; + readonly TEXTURE_WRAP_R: 0x8072; + readonly MAX_3D_TEXTURE_SIZE: 0x8073; + readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368; + readonly MAX_ELEMENTS_VERTICES: 0x80e8; + readonly MAX_ELEMENTS_INDICES: 0x80e9; + readonly TEXTURE_MIN_LOD: 0x813a; + readonly TEXTURE_MAX_LOD: 0x813b; + readonly TEXTURE_BASE_LEVEL: 0x813c; + readonly TEXTURE_MAX_LEVEL: 0x813d; + readonly MIN: 0x8007; + readonly MAX: 0x8008; + readonly DEPTH_COMPONENT24: 0x81a6; + readonly MAX_TEXTURE_LOD_BIAS: 0x84fd; + readonly TEXTURE_COMPARE_MODE: 0x884c; + readonly TEXTURE_COMPARE_FUNC: 0x884d; + readonly CURRENT_QUERY: 0x8865; + readonly QUERY_RESULT: 0x8866; + readonly QUERY_RESULT_AVAILABLE: 0x8867; + readonly STREAM_READ: 0x88e1; + readonly STREAM_COPY: 0x88e2; + readonly STATIC_READ: 0x88e5; + readonly STATIC_COPY: 0x88e6; + readonly DYNAMIC_READ: 0x88e9; + readonly DYNAMIC_COPY: 0x88ea; + readonly MAX_DRAW_BUFFERS: 0x8824; + readonly DRAW_BUFFER0: 0x8825; + readonly DRAW_BUFFER1: 0x8826; + readonly DRAW_BUFFER2: 0x8827; + readonly DRAW_BUFFER3: 0x8828; + readonly DRAW_BUFFER4: 0x8829; + readonly DRAW_BUFFER5: 0x882a; + readonly DRAW_BUFFER6: 0x882b; + readonly DRAW_BUFFER7: 0x882c; + readonly DRAW_BUFFER8: 0x882d; + readonly DRAW_BUFFER9: 0x882e; + readonly DRAW_BUFFER10: 0x882f; + readonly DRAW_BUFFER11: 0x8830; + readonly DRAW_BUFFER12: 0x8831; + readonly DRAW_BUFFER13: 0x8832; + readonly DRAW_BUFFER14: 0x8833; + readonly DRAW_BUFFER15: 0x8834; + readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8b49; + readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8b4a; + readonly SAMPLER_3D: 0x8b5f; + readonly SAMPLER_2D_SHADOW: 0x8b62; + readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8b8b; + readonly PIXEL_PACK_BUFFER: 0x88eb; + readonly PIXEL_UNPACK_BUFFER: 0x88ec; + readonly PIXEL_PACK_BUFFER_BINDING: 0x88ed; + readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88ef; + readonly FLOAT_MAT2x3: 0x8b65; + readonly FLOAT_MAT2x4: 0x8b66; + readonly FLOAT_MAT3x2: 0x8b67; + readonly FLOAT_MAT3x4: 0x8b68; + readonly FLOAT_MAT4x2: 0x8b69; + readonly FLOAT_MAT4x3: 0x8b6a; + readonly SRGB: 0x8c40; + readonly SRGB8: 0x8c41; + readonly SRGB8_ALPHA8: 0x8c43; + readonly COMPARE_REF_TO_TEXTURE: 0x884e; + readonly RGBA32F: 0x8814; + readonly RGB32F: 0x8815; + readonly RGBA16F: 0x881a; + readonly RGB16F: 0x881b; + readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88fd; + readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88ff; + readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904; + readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905; + readonly MAX_VARYING_COMPONENTS: 0x8b4b; + readonly TEXTURE_2D_ARRAY: 0x8c1a; + readonly TEXTURE_BINDING_2D_ARRAY: 0x8c1d; + readonly R11F_G11F_B10F: 0x8c3a; + readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8c3b; + readonly RGB9_E5: 0x8c3d; + readonly UNSIGNED_INT_5_9_9_9_REV: 0x8c3e; + readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8c7f; + readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8c80; + readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8c83; + readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8c84; + readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8c85; + readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8c88; + readonly RASTERIZER_DISCARD: 0x8c89; + readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8c8a; + readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8c8b; + readonly INTERLEAVED_ATTRIBS: 0x8c8c; + readonly SEPARATE_ATTRIBS: 0x8c8d; + readonly TRANSFORM_FEEDBACK_BUFFER: 0x8c8e; + readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8c8f; + readonly RGBA32UI: 0x8d70; + readonly RGB32UI: 0x8d71; + readonly RGBA16UI: 0x8d76; + readonly RGB16UI: 0x8d77; + readonly RGBA8UI: 0x8d7c; + readonly RGB8UI: 0x8d7d; + readonly RGBA32I: 0x8d82; + readonly RGB32I: 0x8d83; + readonly RGBA16I: 0x8d88; + readonly RGB16I: 0x8d89; + readonly RGBA8I: 0x8d8e; + readonly RGB8I: 0x8d8f; + readonly RED_INTEGER: 0x8d94; + readonly RGB_INTEGER: 0x8d98; + readonly RGBA_INTEGER: 0x8d99; + readonly SAMPLER_2D_ARRAY: 0x8dc1; + readonly SAMPLER_2D_ARRAY_SHADOW: 0x8dc4; + readonly SAMPLER_CUBE_SHADOW: 0x8dc5; + readonly UNSIGNED_INT_VEC2: 0x8dc6; + readonly UNSIGNED_INT_VEC3: 0x8dc7; + readonly UNSIGNED_INT_VEC4: 0x8dc8; + readonly INT_SAMPLER_2D: 0x8dca; + readonly INT_SAMPLER_3D: 0x8dcb; + readonly INT_SAMPLER_CUBE: 0x8dcc; + readonly INT_SAMPLER_2D_ARRAY: 0x8dcf; + readonly UNSIGNED_INT_SAMPLER_2D: 0x8dd2; + readonly UNSIGNED_INT_SAMPLER_3D: 0x8dd3; + readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8dd4; + readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8dd7; + readonly DEPTH_COMPONENT32F: 0x8cac; + readonly DEPTH32F_STENCIL8: 0x8cad; + readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8dad; + readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210; + readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211; + readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212; + readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213; + readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214; + readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215; + readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216; + readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217; + readonly FRAMEBUFFER_DEFAULT: 0x8218; + readonly UNSIGNED_INT_24_8: 0x84fa; + readonly DEPTH24_STENCIL8: 0x88f0; + readonly UNSIGNED_NORMALIZED: 0x8c17; + readonly DRAW_FRAMEBUFFER_BINDING: 0x8ca6; + readonly READ_FRAMEBUFFER: 0x8ca8; + readonly DRAW_FRAMEBUFFER: 0x8ca9; + readonly READ_FRAMEBUFFER_BINDING: 0x8caa; + readonly RENDERBUFFER_SAMPLES: 0x8cab; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8cd4; + readonly MAX_COLOR_ATTACHMENTS: 0x8cdf; + readonly COLOR_ATTACHMENT1: 0x8ce1; + readonly COLOR_ATTACHMENT2: 0x8ce2; + readonly COLOR_ATTACHMENT3: 0x8ce3; + readonly COLOR_ATTACHMENT4: 0x8ce4; + readonly COLOR_ATTACHMENT5: 0x8ce5; + readonly COLOR_ATTACHMENT6: 0x8ce6; + readonly COLOR_ATTACHMENT7: 0x8ce7; + readonly COLOR_ATTACHMENT8: 0x8ce8; + readonly COLOR_ATTACHMENT9: 0x8ce9; + readonly COLOR_ATTACHMENT10: 0x8cea; + readonly COLOR_ATTACHMENT11: 0x8ceb; + readonly COLOR_ATTACHMENT12: 0x8cec; + readonly COLOR_ATTACHMENT13: 0x8ced; + readonly COLOR_ATTACHMENT14: 0x8cee; + readonly COLOR_ATTACHMENT15: 0x8cef; + readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8d56; + readonly MAX_SAMPLES: 0x8d57; + readonly HALF_FLOAT: 0x140b; + readonly RG: 0x8227; + readonly RG_INTEGER: 0x8228; + readonly R8: 0x8229; + readonly RG8: 0x822b; + readonly R16F: 0x822d; + readonly R32F: 0x822e; + readonly RG16F: 0x822f; + readonly RG32F: 0x8230; + readonly R8I: 0x8231; + readonly R8UI: 0x8232; + readonly R16I: 0x8233; + readonly R16UI: 0x8234; + readonly R32I: 0x8235; + readonly R32UI: 0x8236; + readonly RG8I: 0x8237; + readonly RG8UI: 0x8238; + readonly RG16I: 0x8239; + readonly RG16UI: 0x823a; + readonly RG32I: 0x823b; + readonly RG32UI: 0x823c; + readonly VERTEX_ARRAY_BINDING: 0x85b5; + readonly R8_SNORM: 0x8f94; + readonly RG8_SNORM: 0x8f95; + readonly RGB8_SNORM: 0x8f96; + readonly RGBA8_SNORM: 0x8f97; + readonly SIGNED_NORMALIZED: 0x8f9c; + readonly COPY_READ_BUFFER: 0x8f36; + readonly COPY_WRITE_BUFFER: 0x8f37; + readonly COPY_READ_BUFFER_BINDING: 0x8f36; + readonly COPY_WRITE_BUFFER_BINDING: 0x8f37; + readonly UNIFORM_BUFFER: 0x8a11; + readonly UNIFORM_BUFFER_BINDING: 0x8a28; + readonly UNIFORM_BUFFER_START: 0x8a29; + readonly UNIFORM_BUFFER_SIZE: 0x8a2a; + readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8a2b; + readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8a2d; + readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8a2e; + readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8a2f; + readonly MAX_UNIFORM_BLOCK_SIZE: 0x8a30; + readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8a31; + readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8a33; + readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8a34; + readonly ACTIVE_UNIFORM_BLOCKS: 0x8a36; + readonly UNIFORM_TYPE: 0x8a37; + readonly UNIFORM_SIZE: 0x8a38; + readonly UNIFORM_BLOCK_INDEX: 0x8a3a; + readonly UNIFORM_OFFSET: 0x8a3b; + readonly UNIFORM_ARRAY_STRIDE: 0x8a3c; + readonly UNIFORM_MATRIX_STRIDE: 0x8a3d; + readonly UNIFORM_IS_ROW_MAJOR: 0x8a3e; + readonly UNIFORM_BLOCK_BINDING: 0x8a3f; + readonly UNIFORM_BLOCK_DATA_SIZE: 0x8a40; + readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8a42; + readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8a43; + readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8a44; + readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8a46; + readonly INVALID_INDEX: 0xffffffff; + readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122; + readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125; + readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111; + readonly OBJECT_TYPE: 0x9112; + readonly SYNC_CONDITION: 0x9113; + readonly SYNC_STATUS: 0x9114; + readonly SYNC_FLAGS: 0x9115; + readonly SYNC_FENCE: 0x9116; + readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117; + readonly UNSIGNALED: 0x9118; + readonly SIGNALED: 0x9119; + readonly ALREADY_SIGNALED: 0x911a; + readonly TIMEOUT_EXPIRED: 0x911b; + readonly CONDITION_SATISFIED: 0x911c; + readonly WAIT_FAILED: 0x911d; + readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001; + readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88fe; + readonly ANY_SAMPLES_PASSED: 0x8c2f; + readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8d6a; + readonly SAMPLER_BINDING: 0x8919; + readonly RGB10_A2UI: 0x906f; + readonly INT_2_10_10_10_REV: 0x8d9f; + readonly TRANSFORM_FEEDBACK: 0x8e22; + readonly TRANSFORM_FEEDBACK_PAUSED: 0x8e23; + readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8e24; + readonly TRANSFORM_FEEDBACK_BINDING: 0x8e25; + readonly TEXTURE_IMMUTABLE_FORMAT: 0x912f; + readonly MAX_ELEMENT_INDEX: 0x8d6b; + readonly TEXTURE_IMMUTABLE_LEVELS: 0x82df; + readonly TIMEOUT_IGNORED: -1; + readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247; + readonly DEPTH_BUFFER_BIT: 0x00000100; + readonly STENCIL_BUFFER_BIT: 0x00000400; + readonly COLOR_BUFFER_BIT: 0x00004000; + readonly POINTS: 0x0000; + readonly LINES: 0x0001; + readonly LINE_LOOP: 0x0002; + readonly LINE_STRIP: 0x0003; + readonly TRIANGLES: 0x0004; + readonly TRIANGLE_STRIP: 0x0005; + readonly TRIANGLE_FAN: 0x0006; + readonly ZERO: 0; + readonly ONE: 1; + readonly SRC_COLOR: 0x0300; + readonly ONE_MINUS_SRC_COLOR: 0x0301; + readonly SRC_ALPHA: 0x0302; + readonly ONE_MINUS_SRC_ALPHA: 0x0303; + readonly DST_ALPHA: 0x0304; + readonly ONE_MINUS_DST_ALPHA: 0x0305; + readonly DST_COLOR: 0x0306; + readonly ONE_MINUS_DST_COLOR: 0x0307; + readonly SRC_ALPHA_SATURATE: 0x0308; + readonly FUNC_ADD: 0x8006; + readonly BLEND_EQUATION: 0x8009; + readonly BLEND_EQUATION_RGB: 0x8009; + readonly BLEND_EQUATION_ALPHA: 0x883d; + readonly FUNC_SUBTRACT: 0x800a; + readonly FUNC_REVERSE_SUBTRACT: 0x800b; + readonly BLEND_DST_RGB: 0x80c8; + readonly BLEND_SRC_RGB: 0x80c9; + readonly BLEND_DST_ALPHA: 0x80ca; + readonly BLEND_SRC_ALPHA: 0x80cb; + readonly CONSTANT_COLOR: 0x8001; + readonly ONE_MINUS_CONSTANT_COLOR: 0x8002; + readonly CONSTANT_ALPHA: 0x8003; + readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004; + readonly BLEND_COLOR: 0x8005; + readonly ARRAY_BUFFER: 0x8892; + readonly ELEMENT_ARRAY_BUFFER: 0x8893; + readonly ARRAY_BUFFER_BINDING: 0x8894; + readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895; + readonly STREAM_DRAW: 0x88e0; + readonly STATIC_DRAW: 0x88e4; + readonly DYNAMIC_DRAW: 0x88e8; + readonly BUFFER_SIZE: 0x8764; + readonly BUFFER_USAGE: 0x8765; + readonly CURRENT_VERTEX_ATTRIB: 0x8626; + readonly FRONT: 0x0404; + readonly BACK: 0x0405; + readonly FRONT_AND_BACK: 0x0408; + readonly CULL_FACE: 0x0b44; + readonly BLEND: 0x0be2; + readonly DITHER: 0x0bd0; + readonly STENCIL_TEST: 0x0b90; + readonly DEPTH_TEST: 0x0b71; + readonly SCISSOR_TEST: 0x0c11; + readonly POLYGON_OFFSET_FILL: 0x8037; + readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809e; + readonly SAMPLE_COVERAGE: 0x80a0; + readonly NO_ERROR: 0; + readonly INVALID_ENUM: 0x0500; + readonly INVALID_VALUE: 0x0501; + readonly INVALID_OPERATION: 0x0502; + readonly OUT_OF_MEMORY: 0x0505; + readonly CW: 0x0900; + readonly CCW: 0x0901; + readonly LINE_WIDTH: 0x0b21; + readonly ALIASED_POINT_SIZE_RANGE: 0x846d; + readonly ALIASED_LINE_WIDTH_RANGE: 0x846e; + readonly CULL_FACE_MODE: 0x0b45; + readonly FRONT_FACE: 0x0b46; + readonly DEPTH_RANGE: 0x0b70; + readonly DEPTH_WRITEMASK: 0x0b72; + readonly DEPTH_CLEAR_VALUE: 0x0b73; + readonly DEPTH_FUNC: 0x0b74; + readonly STENCIL_CLEAR_VALUE: 0x0b91; + readonly STENCIL_FUNC: 0x0b92; + readonly STENCIL_FAIL: 0x0b94; + readonly STENCIL_PASS_DEPTH_FAIL: 0x0b95; + readonly STENCIL_PASS_DEPTH_PASS: 0x0b96; + readonly STENCIL_REF: 0x0b97; + readonly STENCIL_VALUE_MASK: 0x0b93; + readonly STENCIL_WRITEMASK: 0x0b98; + readonly STENCIL_BACK_FUNC: 0x8800; + readonly STENCIL_BACK_FAIL: 0x8801; + readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802; + readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803; + readonly STENCIL_BACK_REF: 0x8ca3; + readonly STENCIL_BACK_VALUE_MASK: 0x8ca4; + readonly STENCIL_BACK_WRITEMASK: 0x8ca5; + readonly VIEWPORT: 0x0ba2; + readonly SCISSOR_BOX: 0x0c10; + readonly COLOR_CLEAR_VALUE: 0x0c22; + readonly COLOR_WRITEMASK: 0x0c23; + readonly UNPACK_ALIGNMENT: 0x0cf5; + readonly PACK_ALIGNMENT: 0x0d05; + readonly MAX_TEXTURE_SIZE: 0x0d33; + readonly MAX_VIEWPORT_DIMS: 0x0d3a; + readonly SUBPIXEL_BITS: 0x0d50; + readonly RED_BITS: 0x0d52; + readonly GREEN_BITS: 0x0d53; + readonly BLUE_BITS: 0x0d54; + readonly ALPHA_BITS: 0x0d55; + readonly DEPTH_BITS: 0x0d56; + readonly STENCIL_BITS: 0x0d57; + readonly POLYGON_OFFSET_UNITS: 0x2a00; + readonly POLYGON_OFFSET_FACTOR: 0x8038; + readonly TEXTURE_BINDING_2D: 0x8069; + readonly SAMPLE_BUFFERS: 0x80a8; + readonly SAMPLES: 0x80a9; + readonly SAMPLE_COVERAGE_VALUE: 0x80aa; + readonly SAMPLE_COVERAGE_INVERT: 0x80ab; + readonly COMPRESSED_TEXTURE_FORMATS: 0x86a3; + readonly DONT_CARE: 0x1100; + readonly FASTEST: 0x1101; + readonly NICEST: 0x1102; + readonly GENERATE_MIPMAP_HINT: 0x8192; + readonly BYTE: 0x1400; + readonly UNSIGNED_BYTE: 0x1401; + readonly SHORT: 0x1402; + readonly UNSIGNED_SHORT: 0x1403; + readonly INT: 0x1404; + readonly UNSIGNED_INT: 0x1405; + readonly FLOAT: 0x1406; + readonly DEPTH_COMPONENT: 0x1902; + readonly ALPHA: 0x1906; + readonly RGB: 0x1907; + readonly RGBA: 0x1908; + readonly LUMINANCE: 0x1909; + readonly LUMINANCE_ALPHA: 0x190a; + readonly UNSIGNED_SHORT_4_4_4_4: 0x8033; + readonly UNSIGNED_SHORT_5_5_5_1: 0x8034; + readonly UNSIGNED_SHORT_5_6_5: 0x8363; + readonly FRAGMENT_SHADER: 0x8b30; + readonly VERTEX_SHADER: 0x8b31; + readonly MAX_VERTEX_ATTRIBS: 0x8869; + readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8dfb; + readonly MAX_VARYING_VECTORS: 0x8dfc; + readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8b4d; + readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8b4c; + readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872; + readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8dfd; + readonly SHADER_TYPE: 0x8b4f; + readonly DELETE_STATUS: 0x8b80; + readonly LINK_STATUS: 0x8b82; + readonly VALIDATE_STATUS: 0x8b83; + readonly ATTACHED_SHADERS: 0x8b85; + readonly ACTIVE_UNIFORMS: 0x8b86; + readonly ACTIVE_ATTRIBUTES: 0x8b89; + readonly SHADING_LANGUAGE_VERSION: 0x8b8c; + readonly CURRENT_PROGRAM: 0x8b8d; + readonly NEVER: 0x0200; + readonly LESS: 0x0201; + readonly EQUAL: 0x0202; + readonly LEQUAL: 0x0203; + readonly GREATER: 0x0204; + readonly NOTEQUAL: 0x0205; + readonly GEQUAL: 0x0206; + readonly ALWAYS: 0x0207; + readonly KEEP: 0x1e00; + readonly REPLACE: 0x1e01; + readonly INCR: 0x1e02; + readonly DECR: 0x1e03; + readonly INVERT: 0x150a; + readonly INCR_WRAP: 0x8507; + readonly DECR_WRAP: 0x8508; + readonly VENDOR: 0x1f00; + readonly RENDERER: 0x1f01; + readonly VERSION: 0x1f02; + readonly NEAREST: 0x2600; + readonly LINEAR: 0x2601; + readonly NEAREST_MIPMAP_NEAREST: 0x2700; + readonly LINEAR_MIPMAP_NEAREST: 0x2701; + readonly NEAREST_MIPMAP_LINEAR: 0x2702; + readonly LINEAR_MIPMAP_LINEAR: 0x2703; + readonly TEXTURE_MAG_FILTER: 0x2800; + readonly TEXTURE_MIN_FILTER: 0x2801; + readonly TEXTURE_WRAP_S: 0x2802; + readonly TEXTURE_WRAP_T: 0x2803; + readonly TEXTURE_2D: 0x0de1; + readonly TEXTURE: 0x1702; + readonly TEXTURE_CUBE_MAP: 0x8513; + readonly TEXTURE_BINDING_CUBE_MAP: 0x8514; + readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515; + readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516; + readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517; + readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518; + readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519; + readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851a; + readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851c; + readonly TEXTURE0: 0x84c0; + readonly TEXTURE1: 0x84c1; + readonly TEXTURE2: 0x84c2; + readonly TEXTURE3: 0x84c3; + readonly TEXTURE4: 0x84c4; + readonly TEXTURE5: 0x84c5; + readonly TEXTURE6: 0x84c6; + readonly TEXTURE7: 0x84c7; + readonly TEXTURE8: 0x84c8; + readonly TEXTURE9: 0x84c9; + readonly TEXTURE10: 0x84ca; + readonly TEXTURE11: 0x84cb; + readonly TEXTURE12: 0x84cc; + readonly TEXTURE13: 0x84cd; + readonly TEXTURE14: 0x84ce; + readonly TEXTURE15: 0x84cf; + readonly TEXTURE16: 0x84d0; + readonly TEXTURE17: 0x84d1; + readonly TEXTURE18: 0x84d2; + readonly TEXTURE19: 0x84d3; + readonly TEXTURE20: 0x84d4; + readonly TEXTURE21: 0x84d5; + readonly TEXTURE22: 0x84d6; + readonly TEXTURE23: 0x84d7; + readonly TEXTURE24: 0x84d8; + readonly TEXTURE25: 0x84d9; + readonly TEXTURE26: 0x84da; + readonly TEXTURE27: 0x84db; + readonly TEXTURE28: 0x84dc; + readonly TEXTURE29: 0x84dd; + readonly TEXTURE30: 0x84de; + readonly TEXTURE31: 0x84df; + readonly ACTIVE_TEXTURE: 0x84e0; + readonly REPEAT: 0x2901; + readonly CLAMP_TO_EDGE: 0x812f; + readonly MIRRORED_REPEAT: 0x8370; + readonly FLOAT_VEC2: 0x8b50; + readonly FLOAT_VEC3: 0x8b51; + readonly FLOAT_VEC4: 0x8b52; + readonly INT_VEC2: 0x8b53; + readonly INT_VEC3: 0x8b54; + readonly INT_VEC4: 0x8b55; + readonly BOOL: 0x8b56; + readonly BOOL_VEC2: 0x8b57; + readonly BOOL_VEC3: 0x8b58; + readonly BOOL_VEC4: 0x8b59; + readonly FLOAT_MAT2: 0x8b5a; + readonly FLOAT_MAT3: 0x8b5b; + readonly FLOAT_MAT4: 0x8b5c; + readonly SAMPLER_2D: 0x8b5e; + readonly SAMPLER_CUBE: 0x8b60; + readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622; + readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623; + readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624; + readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625; + readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886a; + readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645; + readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889f; + readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8b9a; + readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8b9b; + readonly COMPILE_STATUS: 0x8b81; + readonly LOW_FLOAT: 0x8df0; + readonly MEDIUM_FLOAT: 0x8df1; + readonly HIGH_FLOAT: 0x8df2; + readonly LOW_INT: 0x8df3; + readonly MEDIUM_INT: 0x8df4; + readonly HIGH_INT: 0x8df5; + readonly FRAMEBUFFER: 0x8d40; + readonly RENDERBUFFER: 0x8d41; + readonly RGBA4: 0x8056; + readonly RGB5_A1: 0x8057; + readonly RGBA8: 0x8058; + readonly RGB565: 0x8d62; + readonly DEPTH_COMPONENT16: 0x81a5; + readonly STENCIL_INDEX8: 0x8d48; + readonly DEPTH_STENCIL: 0x84f9; + readonly RENDERBUFFER_WIDTH: 0x8d42; + readonly RENDERBUFFER_HEIGHT: 0x8d43; + readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8d44; + readonly RENDERBUFFER_RED_SIZE: 0x8d50; + readonly RENDERBUFFER_GREEN_SIZE: 0x8d51; + readonly RENDERBUFFER_BLUE_SIZE: 0x8d52; + readonly RENDERBUFFER_ALPHA_SIZE: 0x8d53; + readonly RENDERBUFFER_DEPTH_SIZE: 0x8d54; + readonly RENDERBUFFER_STENCIL_SIZE: 0x8d55; + readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8cd0; + readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8cd1; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8cd2; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8cd3; + readonly COLOR_ATTACHMENT0: 0x8ce0; + readonly DEPTH_ATTACHMENT: 0x8d00; + readonly STENCIL_ATTACHMENT: 0x8d20; + readonly DEPTH_STENCIL_ATTACHMENT: 0x821a; + readonly NONE: 0; + readonly FRAMEBUFFER_COMPLETE: 0x8cd5; + readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8cd6; + readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8cd7; + readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8cd9; + readonly FRAMEBUFFER_UNSUPPORTED: 0x8cdd; + readonly FRAMEBUFFER_BINDING: 0x8ca6; + readonly RENDERBUFFER_BINDING: 0x8ca7; + readonly MAX_RENDERBUFFER_SIZE: 0x84e8; + readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506; + readonly UNPACK_FLIP_Y_WEBGL: 0x9240; + readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241; + readonly CONTEXT_LOST_WEBGL: 0x9242; + readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243; + readonly BROWSER_DEFAULT_WEBGL: 0x9244; }; interface WebGL2RenderingContextBase { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginQuery) */ - beginQuery(target: GLenum, query: WebGLQuery): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginTransformFeedback) */ - beginTransformFeedback(primitiveMode: GLenum): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferBase) */ - bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferRange) */ - bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindSampler) */ - bindSampler(unit: GLuint, sampler: WebGLSampler | null): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindTransformFeedback) */ - bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindVertexArray) */ - bindVertexArray(array: WebGLVertexArrayObject | null): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/blitFramebuffer) */ - blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ - clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ - clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ - clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ - clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clientWaitSync) */ - clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */ - compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void; - compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D) */ - compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void; - compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyBufferSubData) */ - copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyTexSubImage3D) */ - copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createQuery) */ - createQuery(): WebGLQuery; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createSampler) */ - createSampler(): WebGLSampler; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createTransformFeedback) */ - createTransformFeedback(): WebGLTransformFeedback; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createVertexArray) */ - createVertexArray(): WebGLVertexArrayObject; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteQuery) */ - deleteQuery(query: WebGLQuery | null): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSampler) */ - deleteSampler(sampler: WebGLSampler | null): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSync) */ - deleteSync(sync: WebGLSync | null): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteTransformFeedback) */ - deleteTransformFeedback(tf: WebGLTransformFeedback | null): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteVertexArray) */ - deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawArraysInstanced) */ - drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */ - drawBuffers(buffers: GLenum[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawElementsInstanced) */ - drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawRangeElements) */ - drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endQuery) */ - endQuery(target: GLenum): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endTransformFeedback) */ - endTransformFeedback(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/fenceSync) */ - fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/framebufferTextureLayer) */ - framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockName) */ - getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockParameter) */ - getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */ - getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getBufferSubData) */ - getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: number, length?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getFragDataLocation) */ - getFragDataLocation(program: WebGLProgram, name: string): GLint; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getIndexedParameter) */ - getIndexedParameter(target: GLenum, index: GLuint): any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getInternalformatParameter) */ - getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQuery) */ - getQuery(target: GLenum, pname: GLenum): WebGLQuery | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQueryParameter) */ - getQueryParameter(query: WebGLQuery, pname: GLenum): any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSamplerParameter) */ - getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSyncParameter) */ - getSyncParameter(sync: WebGLSync, pname: GLenum): any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getTransformFeedbackVarying) */ - getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformBlockIndex) */ - getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */ - getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */ - invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */ - invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isQuery) */ - isQuery(query: WebGLQuery | null): GLboolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSampler) */ - isSampler(sampler: WebGLSampler | null): GLboolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSync) */ - isSync(sync: WebGLSync | null): GLboolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isTransformFeedback) */ - isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isVertexArray) */ - isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/pauseTransformFeedback) */ - pauseTransformFeedback(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/readBuffer) */ - readBuffer(src: GLenum): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/renderbufferStorageMultisample) */ - renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/resumeTransformFeedback) */ - resumeTransformFeedback(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */ - samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */ - samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texImage3D) */ - texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void; - texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; - texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void; - texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage2D) */ - texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage3D) */ - texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texSubImage3D) */ - texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void; - texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void; - texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */ - transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ - uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ - uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ - uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ - uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ - uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ - uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ - uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ - uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformBlockBinding) */ - uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ - uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribDivisor) */ - vertexAttribDivisor(index: GLuint, divisor: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ - vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ - vertexAttribI4iv(index: GLuint, values: Int32List): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ - vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ - vertexAttribI4uiv(index: GLuint, values: Uint32List): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribIPointer) */ - vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/waitSync) */ - waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void; - readonly READ_BUFFER: 0x0C02; - readonly UNPACK_ROW_LENGTH: 0x0CF2; - readonly UNPACK_SKIP_ROWS: 0x0CF3; - readonly UNPACK_SKIP_PIXELS: 0x0CF4; - readonly PACK_ROW_LENGTH: 0x0D02; - readonly PACK_SKIP_ROWS: 0x0D03; - readonly PACK_SKIP_PIXELS: 0x0D04; - readonly COLOR: 0x1800; - readonly DEPTH: 0x1801; - readonly STENCIL: 0x1802; - readonly RED: 0x1903; - readonly RGB8: 0x8051; - readonly RGB10_A2: 0x8059; - readonly TEXTURE_BINDING_3D: 0x806A; - readonly UNPACK_SKIP_IMAGES: 0x806D; - readonly UNPACK_IMAGE_HEIGHT: 0x806E; - readonly TEXTURE_3D: 0x806F; - readonly TEXTURE_WRAP_R: 0x8072; - readonly MAX_3D_TEXTURE_SIZE: 0x8073; - readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368; - readonly MAX_ELEMENTS_VERTICES: 0x80E8; - readonly MAX_ELEMENTS_INDICES: 0x80E9; - readonly TEXTURE_MIN_LOD: 0x813A; - readonly TEXTURE_MAX_LOD: 0x813B; - readonly TEXTURE_BASE_LEVEL: 0x813C; - readonly TEXTURE_MAX_LEVEL: 0x813D; - readonly MIN: 0x8007; - readonly MAX: 0x8008; - readonly DEPTH_COMPONENT24: 0x81A6; - readonly MAX_TEXTURE_LOD_BIAS: 0x84FD; - readonly TEXTURE_COMPARE_MODE: 0x884C; - readonly TEXTURE_COMPARE_FUNC: 0x884D; - readonly CURRENT_QUERY: 0x8865; - readonly QUERY_RESULT: 0x8866; - readonly QUERY_RESULT_AVAILABLE: 0x8867; - readonly STREAM_READ: 0x88E1; - readonly STREAM_COPY: 0x88E2; - readonly STATIC_READ: 0x88E5; - readonly STATIC_COPY: 0x88E6; - readonly DYNAMIC_READ: 0x88E9; - readonly DYNAMIC_COPY: 0x88EA; - readonly MAX_DRAW_BUFFERS: 0x8824; - readonly DRAW_BUFFER0: 0x8825; - readonly DRAW_BUFFER1: 0x8826; - readonly DRAW_BUFFER2: 0x8827; - readonly DRAW_BUFFER3: 0x8828; - readonly DRAW_BUFFER4: 0x8829; - readonly DRAW_BUFFER5: 0x882A; - readonly DRAW_BUFFER6: 0x882B; - readonly DRAW_BUFFER7: 0x882C; - readonly DRAW_BUFFER8: 0x882D; - readonly DRAW_BUFFER9: 0x882E; - readonly DRAW_BUFFER10: 0x882F; - readonly DRAW_BUFFER11: 0x8830; - readonly DRAW_BUFFER12: 0x8831; - readonly DRAW_BUFFER13: 0x8832; - readonly DRAW_BUFFER14: 0x8833; - readonly DRAW_BUFFER15: 0x8834; - readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49; - readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A; - readonly SAMPLER_3D: 0x8B5F; - readonly SAMPLER_2D_SHADOW: 0x8B62; - readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B; - readonly PIXEL_PACK_BUFFER: 0x88EB; - readonly PIXEL_UNPACK_BUFFER: 0x88EC; - readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED; - readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF; - readonly FLOAT_MAT2x3: 0x8B65; - readonly FLOAT_MAT2x4: 0x8B66; - readonly FLOAT_MAT3x2: 0x8B67; - readonly FLOAT_MAT3x4: 0x8B68; - readonly FLOAT_MAT4x2: 0x8B69; - readonly FLOAT_MAT4x3: 0x8B6A; - readonly SRGB: 0x8C40; - readonly SRGB8: 0x8C41; - readonly SRGB8_ALPHA8: 0x8C43; - readonly COMPARE_REF_TO_TEXTURE: 0x884E; - readonly RGBA32F: 0x8814; - readonly RGB32F: 0x8815; - readonly RGBA16F: 0x881A; - readonly RGB16F: 0x881B; - readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD; - readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF; - readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904; - readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905; - readonly MAX_VARYING_COMPONENTS: 0x8B4B; - readonly TEXTURE_2D_ARRAY: 0x8C1A; - readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D; - readonly R11F_G11F_B10F: 0x8C3A; - readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B; - readonly RGB9_E5: 0x8C3D; - readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E; - readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F; - readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80; - readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83; - readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84; - readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85; - readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88; - readonly RASTERIZER_DISCARD: 0x8C89; - readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A; - readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B; - readonly INTERLEAVED_ATTRIBS: 0x8C8C; - readonly SEPARATE_ATTRIBS: 0x8C8D; - readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E; - readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F; - readonly RGBA32UI: 0x8D70; - readonly RGB32UI: 0x8D71; - readonly RGBA16UI: 0x8D76; - readonly RGB16UI: 0x8D77; - readonly RGBA8UI: 0x8D7C; - readonly RGB8UI: 0x8D7D; - readonly RGBA32I: 0x8D82; - readonly RGB32I: 0x8D83; - readonly RGBA16I: 0x8D88; - readonly RGB16I: 0x8D89; - readonly RGBA8I: 0x8D8E; - readonly RGB8I: 0x8D8F; - readonly RED_INTEGER: 0x8D94; - readonly RGB_INTEGER: 0x8D98; - readonly RGBA_INTEGER: 0x8D99; - readonly SAMPLER_2D_ARRAY: 0x8DC1; - readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4; - readonly SAMPLER_CUBE_SHADOW: 0x8DC5; - readonly UNSIGNED_INT_VEC2: 0x8DC6; - readonly UNSIGNED_INT_VEC3: 0x8DC7; - readonly UNSIGNED_INT_VEC4: 0x8DC8; - readonly INT_SAMPLER_2D: 0x8DCA; - readonly INT_SAMPLER_3D: 0x8DCB; - readonly INT_SAMPLER_CUBE: 0x8DCC; - readonly INT_SAMPLER_2D_ARRAY: 0x8DCF; - readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2; - readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3; - readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4; - readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7; - readonly DEPTH_COMPONENT32F: 0x8CAC; - readonly DEPTH32F_STENCIL8: 0x8CAD; - readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD; - readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210; - readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211; - readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212; - readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213; - readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214; - readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215; - readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216; - readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217; - readonly FRAMEBUFFER_DEFAULT: 0x8218; - readonly UNSIGNED_INT_24_8: 0x84FA; - readonly DEPTH24_STENCIL8: 0x88F0; - readonly UNSIGNED_NORMALIZED: 0x8C17; - readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6; - readonly READ_FRAMEBUFFER: 0x8CA8; - readonly DRAW_FRAMEBUFFER: 0x8CA9; - readonly READ_FRAMEBUFFER_BINDING: 0x8CAA; - readonly RENDERBUFFER_SAMPLES: 0x8CAB; - readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4; - readonly MAX_COLOR_ATTACHMENTS: 0x8CDF; - readonly COLOR_ATTACHMENT1: 0x8CE1; - readonly COLOR_ATTACHMENT2: 0x8CE2; - readonly COLOR_ATTACHMENT3: 0x8CE3; - readonly COLOR_ATTACHMENT4: 0x8CE4; - readonly COLOR_ATTACHMENT5: 0x8CE5; - readonly COLOR_ATTACHMENT6: 0x8CE6; - readonly COLOR_ATTACHMENT7: 0x8CE7; - readonly COLOR_ATTACHMENT8: 0x8CE8; - readonly COLOR_ATTACHMENT9: 0x8CE9; - readonly COLOR_ATTACHMENT10: 0x8CEA; - readonly COLOR_ATTACHMENT11: 0x8CEB; - readonly COLOR_ATTACHMENT12: 0x8CEC; - readonly COLOR_ATTACHMENT13: 0x8CED; - readonly COLOR_ATTACHMENT14: 0x8CEE; - readonly COLOR_ATTACHMENT15: 0x8CEF; - readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56; - readonly MAX_SAMPLES: 0x8D57; - readonly HALF_FLOAT: 0x140B; - readonly RG: 0x8227; - readonly RG_INTEGER: 0x8228; - readonly R8: 0x8229; - readonly RG8: 0x822B; - readonly R16F: 0x822D; - readonly R32F: 0x822E; - readonly RG16F: 0x822F; - readonly RG32F: 0x8230; - readonly R8I: 0x8231; - readonly R8UI: 0x8232; - readonly R16I: 0x8233; - readonly R16UI: 0x8234; - readonly R32I: 0x8235; - readonly R32UI: 0x8236; - readonly RG8I: 0x8237; - readonly RG8UI: 0x8238; - readonly RG16I: 0x8239; - readonly RG16UI: 0x823A; - readonly RG32I: 0x823B; - readonly RG32UI: 0x823C; - readonly VERTEX_ARRAY_BINDING: 0x85B5; - readonly R8_SNORM: 0x8F94; - readonly RG8_SNORM: 0x8F95; - readonly RGB8_SNORM: 0x8F96; - readonly RGBA8_SNORM: 0x8F97; - readonly SIGNED_NORMALIZED: 0x8F9C; - readonly COPY_READ_BUFFER: 0x8F36; - readonly COPY_WRITE_BUFFER: 0x8F37; - readonly COPY_READ_BUFFER_BINDING: 0x8F36; - readonly COPY_WRITE_BUFFER_BINDING: 0x8F37; - readonly UNIFORM_BUFFER: 0x8A11; - readonly UNIFORM_BUFFER_BINDING: 0x8A28; - readonly UNIFORM_BUFFER_START: 0x8A29; - readonly UNIFORM_BUFFER_SIZE: 0x8A2A; - readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B; - readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D; - readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E; - readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F; - readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30; - readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31; - readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33; - readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34; - readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36; - readonly UNIFORM_TYPE: 0x8A37; - readonly UNIFORM_SIZE: 0x8A38; - readonly UNIFORM_BLOCK_INDEX: 0x8A3A; - readonly UNIFORM_OFFSET: 0x8A3B; - readonly UNIFORM_ARRAY_STRIDE: 0x8A3C; - readonly UNIFORM_MATRIX_STRIDE: 0x8A3D; - readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E; - readonly UNIFORM_BLOCK_BINDING: 0x8A3F; - readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40; - readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42; - readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43; - readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44; - readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46; - readonly INVALID_INDEX: 0xFFFFFFFF; - readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122; - readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125; - readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111; - readonly OBJECT_TYPE: 0x9112; - readonly SYNC_CONDITION: 0x9113; - readonly SYNC_STATUS: 0x9114; - readonly SYNC_FLAGS: 0x9115; - readonly SYNC_FENCE: 0x9116; - readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117; - readonly UNSIGNALED: 0x9118; - readonly SIGNALED: 0x9119; - readonly ALREADY_SIGNALED: 0x911A; - readonly TIMEOUT_EXPIRED: 0x911B; - readonly CONDITION_SATISFIED: 0x911C; - readonly WAIT_FAILED: 0x911D; - readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001; - readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE; - readonly ANY_SAMPLES_PASSED: 0x8C2F; - readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A; - readonly SAMPLER_BINDING: 0x8919; - readonly RGB10_A2UI: 0x906F; - readonly INT_2_10_10_10_REV: 0x8D9F; - readonly TRANSFORM_FEEDBACK: 0x8E22; - readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23; - readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24; - readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25; - readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F; - readonly MAX_ELEMENT_INDEX: 0x8D6B; - readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF; - readonly TIMEOUT_IGNORED: -1; - readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginQuery) */ + beginQuery(target: GLenum, query: WebGLQuery): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginTransformFeedback) */ + beginTransformFeedback(primitiveMode: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferBase) */ + bindBufferBase( + target: GLenum, + index: GLuint, + buffer: WebGLBuffer | null, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferRange) */ + bindBufferRange( + target: GLenum, + index: GLuint, + buffer: WebGLBuffer | null, + offset: GLintptr, + size: GLsizeiptr, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindSampler) */ + bindSampler(unit: GLuint, sampler: WebGLSampler | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindTransformFeedback) */ + bindTransformFeedback( + target: GLenum, + tf: WebGLTransformFeedback | null, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindVertexArray) */ + bindVertexArray(array: WebGLVertexArrayObject | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/blitFramebuffer) */ + blitFramebuffer( + srcX0: GLint, + srcY0: GLint, + srcX1: GLint, + srcY1: GLint, + dstX0: GLint, + dstY0: GLint, + dstX1: GLint, + dstY1: GLint, + mask: GLbitfield, + filter: GLenum, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ + clearBufferfi( + buffer: GLenum, + drawbuffer: GLint, + depth: GLfloat, + stencil: GLint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ + clearBufferfv( + buffer: GLenum, + drawbuffer: GLint, + values: Float32List, + srcOffset?: number, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ + clearBufferiv( + buffer: GLenum, + drawbuffer: GLint, + values: Int32List, + srcOffset?: number, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */ + clearBufferuiv( + buffer: GLenum, + drawbuffer: GLint, + values: Uint32List, + srcOffset?: number, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clientWaitSync) */ + clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */ + compressedTexImage3D( + target: GLenum, + level: GLint, + internalformat: GLenum, + width: GLsizei, + height: GLsizei, + depth: GLsizei, + border: GLint, + imageSize: GLsizei, + offset: GLintptr, + ): void; + compressedTexImage3D( + target: GLenum, + level: GLint, + internalformat: GLenum, + width: GLsizei, + height: GLsizei, + depth: GLsizei, + border: GLint, + srcData: ArrayBufferView, + srcOffset?: number, + srcLengthOverride?: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D) */ + compressedTexSubImage3D( + target: GLenum, + level: GLint, + xoffset: GLint, + yoffset: GLint, + zoffset: GLint, + width: GLsizei, + height: GLsizei, + depth: GLsizei, + format: GLenum, + imageSize: GLsizei, + offset: GLintptr, + ): void; + compressedTexSubImage3D( + target: GLenum, + level: GLint, + xoffset: GLint, + yoffset: GLint, + zoffset: GLint, + width: GLsizei, + height: GLsizei, + depth: GLsizei, + format: GLenum, + srcData: ArrayBufferView, + srcOffset?: number, + srcLengthOverride?: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyBufferSubData) */ + copyBufferSubData( + readTarget: GLenum, + writeTarget: GLenum, + readOffset: GLintptr, + writeOffset: GLintptr, + size: GLsizeiptr, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyTexSubImage3D) */ + copyTexSubImage3D( + target: GLenum, + level: GLint, + xoffset: GLint, + yoffset: GLint, + zoffset: GLint, + x: GLint, + y: GLint, + width: GLsizei, + height: GLsizei, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createQuery) */ + createQuery(): WebGLQuery; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createSampler) */ + createSampler(): WebGLSampler; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createTransformFeedback) */ + createTransformFeedback(): WebGLTransformFeedback; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createVertexArray) */ + createVertexArray(): WebGLVertexArrayObject; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteQuery) */ + deleteQuery(query: WebGLQuery | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSampler) */ + deleteSampler(sampler: WebGLSampler | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSync) */ + deleteSync(sync: WebGLSync | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteTransformFeedback) */ + deleteTransformFeedback(tf: WebGLTransformFeedback | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteVertexArray) */ + deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawArraysInstanced) */ + drawArraysInstanced( + mode: GLenum, + first: GLint, + count: GLsizei, + instanceCount: GLsizei, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */ + drawBuffers(buffers: GLenum[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawElementsInstanced) */ + drawElementsInstanced( + mode: GLenum, + count: GLsizei, + type: GLenum, + offset: GLintptr, + instanceCount: GLsizei, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawRangeElements) */ + drawRangeElements( + mode: GLenum, + start: GLuint, + end: GLuint, + count: GLsizei, + type: GLenum, + offset: GLintptr, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endQuery) */ + endQuery(target: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endTransformFeedback) */ + endTransformFeedback(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/fenceSync) */ + fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/framebufferTextureLayer) */ + framebufferTextureLayer( + target: GLenum, + attachment: GLenum, + texture: WebGLTexture | null, + level: GLint, + layer: GLint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockName) */ + getActiveUniformBlockName( + program: WebGLProgram, + uniformBlockIndex: GLuint, + ): string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockParameter) */ + getActiveUniformBlockParameter( + program: WebGLProgram, + uniformBlockIndex: GLuint, + pname: GLenum, + ): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */ + getActiveUniforms( + program: WebGLProgram, + uniformIndices: GLuint[], + pname: GLenum, + ): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getBufferSubData) */ + getBufferSubData( + target: GLenum, + srcByteOffset: GLintptr, + dstBuffer: ArrayBufferView, + dstOffset?: number, + length?: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getFragDataLocation) */ + getFragDataLocation(program: WebGLProgram, name: string): GLint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getIndexedParameter) */ + getIndexedParameter(target: GLenum, index: GLuint): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getInternalformatParameter) */ + getInternalformatParameter( + target: GLenum, + internalformat: GLenum, + pname: GLenum, + ): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQuery) */ + getQuery(target: GLenum, pname: GLenum): WebGLQuery | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQueryParameter) */ + getQueryParameter(query: WebGLQuery, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSamplerParameter) */ + getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSyncParameter) */ + getSyncParameter(sync: WebGLSync, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getTransformFeedbackVarying) */ + getTransformFeedbackVarying( + program: WebGLProgram, + index: GLuint, + ): WebGLActiveInfo | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformBlockIndex) */ + getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */ + getUniformIndices( + program: WebGLProgram, + uniformNames: string[], + ): GLuint[] | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */ + invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */ + invalidateSubFramebuffer( + target: GLenum, + attachments: GLenum[], + x: GLint, + y: GLint, + width: GLsizei, + height: GLsizei, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isQuery) */ + isQuery(query: WebGLQuery | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSampler) */ + isSampler(sampler: WebGLSampler | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSync) */ + isSync(sync: WebGLSync | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isTransformFeedback) */ + isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isVertexArray) */ + isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/pauseTransformFeedback) */ + pauseTransformFeedback(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/readBuffer) */ + readBuffer(src: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/renderbufferStorageMultisample) */ + renderbufferStorageMultisample( + target: GLenum, + samples: GLsizei, + internalformat: GLenum, + width: GLsizei, + height: GLsizei, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/resumeTransformFeedback) */ + resumeTransformFeedback(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */ + samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */ + samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texImage3D) */ + texImage3D( + target: GLenum, + level: GLint, + internalformat: GLint, + width: GLsizei, + height: GLsizei, + depth: GLsizei, + border: GLint, + format: GLenum, + type: GLenum, + pboOffset: GLintptr, + ): void; + texImage3D( + target: GLenum, + level: GLint, + internalformat: GLint, + width: GLsizei, + height: GLsizei, + depth: GLsizei, + border: GLint, + format: GLenum, + type: GLenum, + source: TexImageSource, + ): void; + texImage3D( + target: GLenum, + level: GLint, + internalformat: GLint, + width: GLsizei, + height: GLsizei, + depth: GLsizei, + border: GLint, + format: GLenum, + type: GLenum, + srcData: ArrayBufferView | null, + ): void; + texImage3D( + target: GLenum, + level: GLint, + internalformat: GLint, + width: GLsizei, + height: GLsizei, + depth: GLsizei, + border: GLint, + format: GLenum, + type: GLenum, + srcData: ArrayBufferView, + srcOffset: number, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage2D) */ + texStorage2D( + target: GLenum, + levels: GLsizei, + internalformat: GLenum, + width: GLsizei, + height: GLsizei, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage3D) */ + texStorage3D( + target: GLenum, + levels: GLsizei, + internalformat: GLenum, + width: GLsizei, + height: GLsizei, + depth: GLsizei, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texSubImage3D) */ + texSubImage3D( + target: GLenum, + level: GLint, + xoffset: GLint, + yoffset: GLint, + zoffset: GLint, + width: GLsizei, + height: GLsizei, + depth: GLsizei, + format: GLenum, + type: GLenum, + pboOffset: GLintptr, + ): void; + texSubImage3D( + target: GLenum, + level: GLint, + xoffset: GLint, + yoffset: GLint, + zoffset: GLint, + width: GLsizei, + height: GLsizei, + depth: GLsizei, + format: GLenum, + type: GLenum, + source: TexImageSource, + ): void; + texSubImage3D( + target: GLenum, + level: GLint, + xoffset: GLint, + yoffset: GLint, + zoffset: GLint, + width: GLsizei, + height: GLsizei, + depth: GLsizei, + format: GLenum, + type: GLenum, + srcData: ArrayBufferView | null, + srcOffset?: number, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */ + transformFeedbackVaryings( + program: WebGLProgram, + varyings: string[], + bufferMode: GLenum, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform1uiv( + location: WebGLUniformLocation | null, + data: Uint32List, + srcOffset?: number, + srcLength?: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform2ui( + location: WebGLUniformLocation | null, + v0: GLuint, + v1: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform2uiv( + location: WebGLUniformLocation | null, + data: Uint32List, + srcOffset?: number, + srcLength?: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform3ui( + location: WebGLUniformLocation | null, + v0: GLuint, + v1: GLuint, + v2: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform3uiv( + location: WebGLUniformLocation | null, + data: Uint32List, + srcOffset?: number, + srcLength?: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform4ui( + location: WebGLUniformLocation | null, + v0: GLuint, + v1: GLuint, + v2: GLuint, + v3: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */ + uniform4uiv( + location: WebGLUniformLocation | null, + data: Uint32List, + srcOffset?: number, + srcLength?: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformBlockBinding) */ + uniformBlockBinding( + program: WebGLProgram, + uniformBlockIndex: GLuint, + uniformBlockBinding: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + uniformMatrix2x3fv( + location: WebGLUniformLocation | null, + transpose: GLboolean, + data: Float32List, + srcOffset?: number, + srcLength?: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + uniformMatrix2x4fv( + location: WebGLUniformLocation | null, + transpose: GLboolean, + data: Float32List, + srcOffset?: number, + srcLength?: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + uniformMatrix3x2fv( + location: WebGLUniformLocation | null, + transpose: GLboolean, + data: Float32List, + srcOffset?: number, + srcLength?: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + uniformMatrix3x4fv( + location: WebGLUniformLocation | null, + transpose: GLboolean, + data: Float32List, + srcOffset?: number, + srcLength?: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + uniformMatrix4x2fv( + location: WebGLUniformLocation | null, + transpose: GLboolean, + data: Float32List, + srcOffset?: number, + srcLength?: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + uniformMatrix4x3fv( + location: WebGLUniformLocation | null, + transpose: GLboolean, + data: Float32List, + srcOffset?: number, + srcLength?: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribDivisor) */ + vertexAttribDivisor(index: GLuint, divisor: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ + vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ + vertexAttribI4iv(index: GLuint, values: Int32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ + vertexAttribI4ui( + index: GLuint, + x: GLuint, + y: GLuint, + z: GLuint, + w: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */ + vertexAttribI4uiv(index: GLuint, values: Uint32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribIPointer) */ + vertexAttribIPointer( + index: GLuint, + size: GLint, + type: GLenum, + stride: GLsizei, + offset: GLintptr, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/waitSync) */ + waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void; + readonly READ_BUFFER: 0x0c02; + readonly UNPACK_ROW_LENGTH: 0x0cf2; + readonly UNPACK_SKIP_ROWS: 0x0cf3; + readonly UNPACK_SKIP_PIXELS: 0x0cf4; + readonly PACK_ROW_LENGTH: 0x0d02; + readonly PACK_SKIP_ROWS: 0x0d03; + readonly PACK_SKIP_PIXELS: 0x0d04; + readonly COLOR: 0x1800; + readonly DEPTH: 0x1801; + readonly STENCIL: 0x1802; + readonly RED: 0x1903; + readonly RGB8: 0x8051; + readonly RGB10_A2: 0x8059; + readonly TEXTURE_BINDING_3D: 0x806a; + readonly UNPACK_SKIP_IMAGES: 0x806d; + readonly UNPACK_IMAGE_HEIGHT: 0x806e; + readonly TEXTURE_3D: 0x806f; + readonly TEXTURE_WRAP_R: 0x8072; + readonly MAX_3D_TEXTURE_SIZE: 0x8073; + readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368; + readonly MAX_ELEMENTS_VERTICES: 0x80e8; + readonly MAX_ELEMENTS_INDICES: 0x80e9; + readonly TEXTURE_MIN_LOD: 0x813a; + readonly TEXTURE_MAX_LOD: 0x813b; + readonly TEXTURE_BASE_LEVEL: 0x813c; + readonly TEXTURE_MAX_LEVEL: 0x813d; + readonly MIN: 0x8007; + readonly MAX: 0x8008; + readonly DEPTH_COMPONENT24: 0x81a6; + readonly MAX_TEXTURE_LOD_BIAS: 0x84fd; + readonly TEXTURE_COMPARE_MODE: 0x884c; + readonly TEXTURE_COMPARE_FUNC: 0x884d; + readonly CURRENT_QUERY: 0x8865; + readonly QUERY_RESULT: 0x8866; + readonly QUERY_RESULT_AVAILABLE: 0x8867; + readonly STREAM_READ: 0x88e1; + readonly STREAM_COPY: 0x88e2; + readonly STATIC_READ: 0x88e5; + readonly STATIC_COPY: 0x88e6; + readonly DYNAMIC_READ: 0x88e9; + readonly DYNAMIC_COPY: 0x88ea; + readonly MAX_DRAW_BUFFERS: 0x8824; + readonly DRAW_BUFFER0: 0x8825; + readonly DRAW_BUFFER1: 0x8826; + readonly DRAW_BUFFER2: 0x8827; + readonly DRAW_BUFFER3: 0x8828; + readonly DRAW_BUFFER4: 0x8829; + readonly DRAW_BUFFER5: 0x882a; + readonly DRAW_BUFFER6: 0x882b; + readonly DRAW_BUFFER7: 0x882c; + readonly DRAW_BUFFER8: 0x882d; + readonly DRAW_BUFFER9: 0x882e; + readonly DRAW_BUFFER10: 0x882f; + readonly DRAW_BUFFER11: 0x8830; + readonly DRAW_BUFFER12: 0x8831; + readonly DRAW_BUFFER13: 0x8832; + readonly DRAW_BUFFER14: 0x8833; + readonly DRAW_BUFFER15: 0x8834; + readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8b49; + readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8b4a; + readonly SAMPLER_3D: 0x8b5f; + readonly SAMPLER_2D_SHADOW: 0x8b62; + readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8b8b; + readonly PIXEL_PACK_BUFFER: 0x88eb; + readonly PIXEL_UNPACK_BUFFER: 0x88ec; + readonly PIXEL_PACK_BUFFER_BINDING: 0x88ed; + readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88ef; + readonly FLOAT_MAT2x3: 0x8b65; + readonly FLOAT_MAT2x4: 0x8b66; + readonly FLOAT_MAT3x2: 0x8b67; + readonly FLOAT_MAT3x4: 0x8b68; + readonly FLOAT_MAT4x2: 0x8b69; + readonly FLOAT_MAT4x3: 0x8b6a; + readonly SRGB: 0x8c40; + readonly SRGB8: 0x8c41; + readonly SRGB8_ALPHA8: 0x8c43; + readonly COMPARE_REF_TO_TEXTURE: 0x884e; + readonly RGBA32F: 0x8814; + readonly RGB32F: 0x8815; + readonly RGBA16F: 0x881a; + readonly RGB16F: 0x881b; + readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88fd; + readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88ff; + readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904; + readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905; + readonly MAX_VARYING_COMPONENTS: 0x8b4b; + readonly TEXTURE_2D_ARRAY: 0x8c1a; + readonly TEXTURE_BINDING_2D_ARRAY: 0x8c1d; + readonly R11F_G11F_B10F: 0x8c3a; + readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8c3b; + readonly RGB9_E5: 0x8c3d; + readonly UNSIGNED_INT_5_9_9_9_REV: 0x8c3e; + readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8c7f; + readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8c80; + readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8c83; + readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8c84; + readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8c85; + readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8c88; + readonly RASTERIZER_DISCARD: 0x8c89; + readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8c8a; + readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8c8b; + readonly INTERLEAVED_ATTRIBS: 0x8c8c; + readonly SEPARATE_ATTRIBS: 0x8c8d; + readonly TRANSFORM_FEEDBACK_BUFFER: 0x8c8e; + readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8c8f; + readonly RGBA32UI: 0x8d70; + readonly RGB32UI: 0x8d71; + readonly RGBA16UI: 0x8d76; + readonly RGB16UI: 0x8d77; + readonly RGBA8UI: 0x8d7c; + readonly RGB8UI: 0x8d7d; + readonly RGBA32I: 0x8d82; + readonly RGB32I: 0x8d83; + readonly RGBA16I: 0x8d88; + readonly RGB16I: 0x8d89; + readonly RGBA8I: 0x8d8e; + readonly RGB8I: 0x8d8f; + readonly RED_INTEGER: 0x8d94; + readonly RGB_INTEGER: 0x8d98; + readonly RGBA_INTEGER: 0x8d99; + readonly SAMPLER_2D_ARRAY: 0x8dc1; + readonly SAMPLER_2D_ARRAY_SHADOW: 0x8dc4; + readonly SAMPLER_CUBE_SHADOW: 0x8dc5; + readonly UNSIGNED_INT_VEC2: 0x8dc6; + readonly UNSIGNED_INT_VEC3: 0x8dc7; + readonly UNSIGNED_INT_VEC4: 0x8dc8; + readonly INT_SAMPLER_2D: 0x8dca; + readonly INT_SAMPLER_3D: 0x8dcb; + readonly INT_SAMPLER_CUBE: 0x8dcc; + readonly INT_SAMPLER_2D_ARRAY: 0x8dcf; + readonly UNSIGNED_INT_SAMPLER_2D: 0x8dd2; + readonly UNSIGNED_INT_SAMPLER_3D: 0x8dd3; + readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8dd4; + readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8dd7; + readonly DEPTH_COMPONENT32F: 0x8cac; + readonly DEPTH32F_STENCIL8: 0x8cad; + readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8dad; + readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210; + readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211; + readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212; + readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213; + readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214; + readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215; + readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216; + readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217; + readonly FRAMEBUFFER_DEFAULT: 0x8218; + readonly UNSIGNED_INT_24_8: 0x84fa; + readonly DEPTH24_STENCIL8: 0x88f0; + readonly UNSIGNED_NORMALIZED: 0x8c17; + readonly DRAW_FRAMEBUFFER_BINDING: 0x8ca6; + readonly READ_FRAMEBUFFER: 0x8ca8; + readonly DRAW_FRAMEBUFFER: 0x8ca9; + readonly READ_FRAMEBUFFER_BINDING: 0x8caa; + readonly RENDERBUFFER_SAMPLES: 0x8cab; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8cd4; + readonly MAX_COLOR_ATTACHMENTS: 0x8cdf; + readonly COLOR_ATTACHMENT1: 0x8ce1; + readonly COLOR_ATTACHMENT2: 0x8ce2; + readonly COLOR_ATTACHMENT3: 0x8ce3; + readonly COLOR_ATTACHMENT4: 0x8ce4; + readonly COLOR_ATTACHMENT5: 0x8ce5; + readonly COLOR_ATTACHMENT6: 0x8ce6; + readonly COLOR_ATTACHMENT7: 0x8ce7; + readonly COLOR_ATTACHMENT8: 0x8ce8; + readonly COLOR_ATTACHMENT9: 0x8ce9; + readonly COLOR_ATTACHMENT10: 0x8cea; + readonly COLOR_ATTACHMENT11: 0x8ceb; + readonly COLOR_ATTACHMENT12: 0x8cec; + readonly COLOR_ATTACHMENT13: 0x8ced; + readonly COLOR_ATTACHMENT14: 0x8cee; + readonly COLOR_ATTACHMENT15: 0x8cef; + readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8d56; + readonly MAX_SAMPLES: 0x8d57; + readonly HALF_FLOAT: 0x140b; + readonly RG: 0x8227; + readonly RG_INTEGER: 0x8228; + readonly R8: 0x8229; + readonly RG8: 0x822b; + readonly R16F: 0x822d; + readonly R32F: 0x822e; + readonly RG16F: 0x822f; + readonly RG32F: 0x8230; + readonly R8I: 0x8231; + readonly R8UI: 0x8232; + readonly R16I: 0x8233; + readonly R16UI: 0x8234; + readonly R32I: 0x8235; + readonly R32UI: 0x8236; + readonly RG8I: 0x8237; + readonly RG8UI: 0x8238; + readonly RG16I: 0x8239; + readonly RG16UI: 0x823a; + readonly RG32I: 0x823b; + readonly RG32UI: 0x823c; + readonly VERTEX_ARRAY_BINDING: 0x85b5; + readonly R8_SNORM: 0x8f94; + readonly RG8_SNORM: 0x8f95; + readonly RGB8_SNORM: 0x8f96; + readonly RGBA8_SNORM: 0x8f97; + readonly SIGNED_NORMALIZED: 0x8f9c; + readonly COPY_READ_BUFFER: 0x8f36; + readonly COPY_WRITE_BUFFER: 0x8f37; + readonly COPY_READ_BUFFER_BINDING: 0x8f36; + readonly COPY_WRITE_BUFFER_BINDING: 0x8f37; + readonly UNIFORM_BUFFER: 0x8a11; + readonly UNIFORM_BUFFER_BINDING: 0x8a28; + readonly UNIFORM_BUFFER_START: 0x8a29; + readonly UNIFORM_BUFFER_SIZE: 0x8a2a; + readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8a2b; + readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8a2d; + readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8a2e; + readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8a2f; + readonly MAX_UNIFORM_BLOCK_SIZE: 0x8a30; + readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8a31; + readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8a33; + readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8a34; + readonly ACTIVE_UNIFORM_BLOCKS: 0x8a36; + readonly UNIFORM_TYPE: 0x8a37; + readonly UNIFORM_SIZE: 0x8a38; + readonly UNIFORM_BLOCK_INDEX: 0x8a3a; + readonly UNIFORM_OFFSET: 0x8a3b; + readonly UNIFORM_ARRAY_STRIDE: 0x8a3c; + readonly UNIFORM_MATRIX_STRIDE: 0x8a3d; + readonly UNIFORM_IS_ROW_MAJOR: 0x8a3e; + readonly UNIFORM_BLOCK_BINDING: 0x8a3f; + readonly UNIFORM_BLOCK_DATA_SIZE: 0x8a40; + readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8a42; + readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8a43; + readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8a44; + readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8a46; + readonly INVALID_INDEX: 0xffffffff; + readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122; + readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125; + readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111; + readonly OBJECT_TYPE: 0x9112; + readonly SYNC_CONDITION: 0x9113; + readonly SYNC_STATUS: 0x9114; + readonly SYNC_FLAGS: 0x9115; + readonly SYNC_FENCE: 0x9116; + readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117; + readonly UNSIGNALED: 0x9118; + readonly SIGNALED: 0x9119; + readonly ALREADY_SIGNALED: 0x911a; + readonly TIMEOUT_EXPIRED: 0x911b; + readonly CONDITION_SATISFIED: 0x911c; + readonly WAIT_FAILED: 0x911d; + readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001; + readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88fe; + readonly ANY_SAMPLES_PASSED: 0x8c2f; + readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8d6a; + readonly SAMPLER_BINDING: 0x8919; + readonly RGB10_A2UI: 0x906f; + readonly INT_2_10_10_10_REV: 0x8d9f; + readonly TRANSFORM_FEEDBACK: 0x8e22; + readonly TRANSFORM_FEEDBACK_PAUSED: 0x8e23; + readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8e24; + readonly TRANSFORM_FEEDBACK_BINDING: 0x8e25; + readonly TEXTURE_IMMUTABLE_FORMAT: 0x912f; + readonly MAX_ELEMENT_INDEX: 0x8d6b; + readonly TEXTURE_IMMUTABLE_LEVELS: 0x82df; + readonly TIMEOUT_IGNORED: -1; + readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247; } interface WebGL2RenderingContextOverloads { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */ - bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void; - bufferData(target: GLenum, srcData: AllowSharedBufferSource | null, usage: GLenum): void; - bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: number, length?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */ - bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: AllowSharedBufferSource): void; - bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: number, length?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */ - compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void; - compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */ - compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void; - compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */ - readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void; - readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void; - readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */ - texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void; - texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; - texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void; - texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; - texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */ - texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void; - texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; - texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void; - texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void; - texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ - uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ - uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ - uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */ + bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void; + bufferData( + target: GLenum, + srcData: AllowSharedBufferSource | null, + usage: GLenum, + ): void; + bufferData( + target: GLenum, + srcData: ArrayBufferView, + usage: GLenum, + srcOffset: number, + length?: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */ + bufferSubData( + target: GLenum, + dstByteOffset: GLintptr, + srcData: AllowSharedBufferSource, + ): void; + bufferSubData( + target: GLenum, + dstByteOffset: GLintptr, + srcData: ArrayBufferView, + srcOffset: number, + length?: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */ + compressedTexImage2D( + target: GLenum, + level: GLint, + internalformat: GLenum, + width: GLsizei, + height: GLsizei, + border: GLint, + imageSize: GLsizei, + offset: GLintptr, + ): void; + compressedTexImage2D( + target: GLenum, + level: GLint, + internalformat: GLenum, + width: GLsizei, + height: GLsizei, + border: GLint, + srcData: ArrayBufferView, + srcOffset?: number, + srcLengthOverride?: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */ + compressedTexSubImage2D( + target: GLenum, + level: GLint, + xoffset: GLint, + yoffset: GLint, + width: GLsizei, + height: GLsizei, + format: GLenum, + imageSize: GLsizei, + offset: GLintptr, + ): void; + compressedTexSubImage2D( + target: GLenum, + level: GLint, + xoffset: GLint, + yoffset: GLint, + width: GLsizei, + height: GLsizei, + format: GLenum, + srcData: ArrayBufferView, + srcOffset?: number, + srcLengthOverride?: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */ + readPixels( + x: GLint, + y: GLint, + width: GLsizei, + height: GLsizei, + format: GLenum, + type: GLenum, + dstData: ArrayBufferView | null, + ): void; + readPixels( + x: GLint, + y: GLint, + width: GLsizei, + height: GLsizei, + format: GLenum, + type: GLenum, + offset: GLintptr, + ): void; + readPixels( + x: GLint, + y: GLint, + width: GLsizei, + height: GLsizei, + format: GLenum, + type: GLenum, + dstData: ArrayBufferView, + dstOffset: number, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */ + texImage2D( + target: GLenum, + level: GLint, + internalformat: GLint, + width: GLsizei, + height: GLsizei, + border: GLint, + format: GLenum, + type: GLenum, + pixels: ArrayBufferView | null, + ): void; + texImage2D( + target: GLenum, + level: GLint, + internalformat: GLint, + format: GLenum, + type: GLenum, + source: TexImageSource, + ): void; + texImage2D( + target: GLenum, + level: GLint, + internalformat: GLint, + width: GLsizei, + height: GLsizei, + border: GLint, + format: GLenum, + type: GLenum, + pboOffset: GLintptr, + ): void; + texImage2D( + target: GLenum, + level: GLint, + internalformat: GLint, + width: GLsizei, + height: GLsizei, + border: GLint, + format: GLenum, + type: GLenum, + source: TexImageSource, + ): void; + texImage2D( + target: GLenum, + level: GLint, + internalformat: GLint, + width: GLsizei, + height: GLsizei, + border: GLint, + format: GLenum, + type: GLenum, + srcData: ArrayBufferView, + srcOffset: number, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */ + texSubImage2D( + target: GLenum, + level: GLint, + xoffset: GLint, + yoffset: GLint, + width: GLsizei, + height: GLsizei, + format: GLenum, + type: GLenum, + pixels: ArrayBufferView | null, + ): void; + texSubImage2D( + target: GLenum, + level: GLint, + xoffset: GLint, + yoffset: GLint, + format: GLenum, + type: GLenum, + source: TexImageSource, + ): void; + texSubImage2D( + target: GLenum, + level: GLint, + xoffset: GLint, + yoffset: GLint, + width: GLsizei, + height: GLsizei, + format: GLenum, + type: GLenum, + pboOffset: GLintptr, + ): void; + texSubImage2D( + target: GLenum, + level: GLint, + xoffset: GLint, + yoffset: GLint, + width: GLsizei, + height: GLsizei, + format: GLenum, + type: GLenum, + source: TexImageSource, + ): void; + texSubImage2D( + target: GLenum, + level: GLint, + xoffset: GLint, + yoffset: GLint, + width: GLsizei, + height: GLsizei, + format: GLenum, + type: GLenum, + srcData: ArrayBufferView, + srcOffset: number, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform1fv( + location: WebGLUniformLocation | null, + data: Float32List, + srcOffset?: number, + srcLength?: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform1iv( + location: WebGLUniformLocation | null, + data: Int32List, + srcOffset?: number, + srcLength?: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform2fv( + location: WebGLUniformLocation | null, + data: Float32List, + srcOffset?: number, + srcLength?: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform2iv( + location: WebGLUniformLocation | null, + data: Int32List, + srcOffset?: number, + srcLength?: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform3fv( + location: WebGLUniformLocation | null, + data: Float32List, + srcOffset?: number, + srcLength?: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform3iv( + location: WebGLUniformLocation | null, + data: Int32List, + srcOffset?: number, + srcLength?: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform4fv( + location: WebGLUniformLocation | null, + data: Float32List, + srcOffset?: number, + srcLength?: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform4iv( + location: WebGLUniformLocation | null, + data: Int32List, + srcOffset?: number, + srcLength?: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + uniformMatrix2fv( + location: WebGLUniformLocation | null, + transpose: GLboolean, + data: Float32List, + srcOffset?: number, + srcLength?: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + uniformMatrix3fv( + location: WebGLUniformLocation | null, + transpose: GLboolean, + data: Float32List, + srcOffset?: number, + srcLength?: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + uniformMatrix4fv( + location: WebGLUniformLocation | null, + transpose: GLboolean, + data: Float32List, + srcOffset?: number, + srcLength?: GLuint, + ): void; } /** @@ -24982,17 +30598,17 @@ interface WebGL2RenderingContextOverloads { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo) */ interface WebGLActiveInfo { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/name) */ - readonly name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/size) */ - readonly size: GLint; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/type) */ - readonly type: GLenum; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/name) */ + readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/size) */ + readonly size: GLint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/type) */ + readonly type: GLenum; } declare var WebGLActiveInfo: { - prototype: WebGLActiveInfo; - new(): WebGLActiveInfo; + prototype: WebGLActiveInfo; + new (): WebGLActiveInfo; }; /** @@ -25000,12 +30616,11 @@ declare var WebGLActiveInfo: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLBuffer) */ -interface WebGLBuffer { -} +interface WebGLBuffer {} declare var WebGLBuffer: { - prototype: WebGLBuffer; - new(): WebGLBuffer; + prototype: WebGLBuffer; + new (): WebGLBuffer; }; /** @@ -25014,13 +30629,13 @@ declare var WebGLBuffer: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent) */ interface WebGLContextEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent/statusMessage) */ - readonly statusMessage: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent/statusMessage) */ + readonly statusMessage: string; } declare var WebGLContextEvent: { - prototype: WebGLContextEvent; - new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent; + prototype: WebGLContextEvent; + new (type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent; }; /** @@ -25028,12 +30643,11 @@ declare var WebGLContextEvent: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLFramebuffer) */ -interface WebGLFramebuffer { -} +interface WebGLFramebuffer {} declare var WebGLFramebuffer: { - prototype: WebGLFramebuffer; - new(): WebGLFramebuffer; + prototype: WebGLFramebuffer; + new (): WebGLFramebuffer; }; /** @@ -25041,21 +30655,19 @@ declare var WebGLFramebuffer: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLProgram) */ -interface WebGLProgram { -} +interface WebGLProgram {} declare var WebGLProgram: { - prototype: WebGLProgram; - new(): WebGLProgram; + prototype: WebGLProgram; + new (): WebGLProgram; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLQuery) */ -interface WebGLQuery { -} +interface WebGLQuery {} declare var WebGLQuery: { - prototype: WebGLQuery; - new(): WebGLQuery; + prototype: WebGLQuery; + new (): WebGLQuery; }; /** @@ -25063,12 +30675,11 @@ declare var WebGLQuery: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderbuffer) */ -interface WebGLRenderbuffer { -} +interface WebGLRenderbuffer {} declare var WebGLRenderbuffer: { - prototype: WebGLRenderbuffer; - new(): WebGLRenderbuffer; + prototype: WebGLRenderbuffer; + new (): WebGLRenderbuffer; }; /** @@ -25076,939 +30687,1192 @@ declare var WebGLRenderbuffer: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext) */ -interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads { -} +interface WebGLRenderingContext + extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {} declare var WebGLRenderingContext: { - prototype: WebGLRenderingContext; - new(): WebGLRenderingContext; - readonly DEPTH_BUFFER_BIT: 0x00000100; - readonly STENCIL_BUFFER_BIT: 0x00000400; - readonly COLOR_BUFFER_BIT: 0x00004000; - readonly POINTS: 0x0000; - readonly LINES: 0x0001; - readonly LINE_LOOP: 0x0002; - readonly LINE_STRIP: 0x0003; - readonly TRIANGLES: 0x0004; - readonly TRIANGLE_STRIP: 0x0005; - readonly TRIANGLE_FAN: 0x0006; - readonly ZERO: 0; - readonly ONE: 1; - readonly SRC_COLOR: 0x0300; - readonly ONE_MINUS_SRC_COLOR: 0x0301; - readonly SRC_ALPHA: 0x0302; - readonly ONE_MINUS_SRC_ALPHA: 0x0303; - readonly DST_ALPHA: 0x0304; - readonly ONE_MINUS_DST_ALPHA: 0x0305; - readonly DST_COLOR: 0x0306; - readonly ONE_MINUS_DST_COLOR: 0x0307; - readonly SRC_ALPHA_SATURATE: 0x0308; - readonly FUNC_ADD: 0x8006; - readonly BLEND_EQUATION: 0x8009; - readonly BLEND_EQUATION_RGB: 0x8009; - readonly BLEND_EQUATION_ALPHA: 0x883D; - readonly FUNC_SUBTRACT: 0x800A; - readonly FUNC_REVERSE_SUBTRACT: 0x800B; - readonly BLEND_DST_RGB: 0x80C8; - readonly BLEND_SRC_RGB: 0x80C9; - readonly BLEND_DST_ALPHA: 0x80CA; - readonly BLEND_SRC_ALPHA: 0x80CB; - readonly CONSTANT_COLOR: 0x8001; - readonly ONE_MINUS_CONSTANT_COLOR: 0x8002; - readonly CONSTANT_ALPHA: 0x8003; - readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004; - readonly BLEND_COLOR: 0x8005; - readonly ARRAY_BUFFER: 0x8892; - readonly ELEMENT_ARRAY_BUFFER: 0x8893; - readonly ARRAY_BUFFER_BINDING: 0x8894; - readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895; - readonly STREAM_DRAW: 0x88E0; - readonly STATIC_DRAW: 0x88E4; - readonly DYNAMIC_DRAW: 0x88E8; - readonly BUFFER_SIZE: 0x8764; - readonly BUFFER_USAGE: 0x8765; - readonly CURRENT_VERTEX_ATTRIB: 0x8626; - readonly FRONT: 0x0404; - readonly BACK: 0x0405; - readonly FRONT_AND_BACK: 0x0408; - readonly CULL_FACE: 0x0B44; - readonly BLEND: 0x0BE2; - readonly DITHER: 0x0BD0; - readonly STENCIL_TEST: 0x0B90; - readonly DEPTH_TEST: 0x0B71; - readonly SCISSOR_TEST: 0x0C11; - readonly POLYGON_OFFSET_FILL: 0x8037; - readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E; - readonly SAMPLE_COVERAGE: 0x80A0; - readonly NO_ERROR: 0; - readonly INVALID_ENUM: 0x0500; - readonly INVALID_VALUE: 0x0501; - readonly INVALID_OPERATION: 0x0502; - readonly OUT_OF_MEMORY: 0x0505; - readonly CW: 0x0900; - readonly CCW: 0x0901; - readonly LINE_WIDTH: 0x0B21; - readonly ALIASED_POINT_SIZE_RANGE: 0x846D; - readonly ALIASED_LINE_WIDTH_RANGE: 0x846E; - readonly CULL_FACE_MODE: 0x0B45; - readonly FRONT_FACE: 0x0B46; - readonly DEPTH_RANGE: 0x0B70; - readonly DEPTH_WRITEMASK: 0x0B72; - readonly DEPTH_CLEAR_VALUE: 0x0B73; - readonly DEPTH_FUNC: 0x0B74; - readonly STENCIL_CLEAR_VALUE: 0x0B91; - readonly STENCIL_FUNC: 0x0B92; - readonly STENCIL_FAIL: 0x0B94; - readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95; - readonly STENCIL_PASS_DEPTH_PASS: 0x0B96; - readonly STENCIL_REF: 0x0B97; - readonly STENCIL_VALUE_MASK: 0x0B93; - readonly STENCIL_WRITEMASK: 0x0B98; - readonly STENCIL_BACK_FUNC: 0x8800; - readonly STENCIL_BACK_FAIL: 0x8801; - readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802; - readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803; - readonly STENCIL_BACK_REF: 0x8CA3; - readonly STENCIL_BACK_VALUE_MASK: 0x8CA4; - readonly STENCIL_BACK_WRITEMASK: 0x8CA5; - readonly VIEWPORT: 0x0BA2; - readonly SCISSOR_BOX: 0x0C10; - readonly COLOR_CLEAR_VALUE: 0x0C22; - readonly COLOR_WRITEMASK: 0x0C23; - readonly UNPACK_ALIGNMENT: 0x0CF5; - readonly PACK_ALIGNMENT: 0x0D05; - readonly MAX_TEXTURE_SIZE: 0x0D33; - readonly MAX_VIEWPORT_DIMS: 0x0D3A; - readonly SUBPIXEL_BITS: 0x0D50; - readonly RED_BITS: 0x0D52; - readonly GREEN_BITS: 0x0D53; - readonly BLUE_BITS: 0x0D54; - readonly ALPHA_BITS: 0x0D55; - readonly DEPTH_BITS: 0x0D56; - readonly STENCIL_BITS: 0x0D57; - readonly POLYGON_OFFSET_UNITS: 0x2A00; - readonly POLYGON_OFFSET_FACTOR: 0x8038; - readonly TEXTURE_BINDING_2D: 0x8069; - readonly SAMPLE_BUFFERS: 0x80A8; - readonly SAMPLES: 0x80A9; - readonly SAMPLE_COVERAGE_VALUE: 0x80AA; - readonly SAMPLE_COVERAGE_INVERT: 0x80AB; - readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3; - readonly DONT_CARE: 0x1100; - readonly FASTEST: 0x1101; - readonly NICEST: 0x1102; - readonly GENERATE_MIPMAP_HINT: 0x8192; - readonly BYTE: 0x1400; - readonly UNSIGNED_BYTE: 0x1401; - readonly SHORT: 0x1402; - readonly UNSIGNED_SHORT: 0x1403; - readonly INT: 0x1404; - readonly UNSIGNED_INT: 0x1405; - readonly FLOAT: 0x1406; - readonly DEPTH_COMPONENT: 0x1902; - readonly ALPHA: 0x1906; - readonly RGB: 0x1907; - readonly RGBA: 0x1908; - readonly LUMINANCE: 0x1909; - readonly LUMINANCE_ALPHA: 0x190A; - readonly UNSIGNED_SHORT_4_4_4_4: 0x8033; - readonly UNSIGNED_SHORT_5_5_5_1: 0x8034; - readonly UNSIGNED_SHORT_5_6_5: 0x8363; - readonly FRAGMENT_SHADER: 0x8B30; - readonly VERTEX_SHADER: 0x8B31; - readonly MAX_VERTEX_ATTRIBS: 0x8869; - readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB; - readonly MAX_VARYING_VECTORS: 0x8DFC; - readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D; - readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C; - readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872; - readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD; - readonly SHADER_TYPE: 0x8B4F; - readonly DELETE_STATUS: 0x8B80; - readonly LINK_STATUS: 0x8B82; - readonly VALIDATE_STATUS: 0x8B83; - readonly ATTACHED_SHADERS: 0x8B85; - readonly ACTIVE_UNIFORMS: 0x8B86; - readonly ACTIVE_ATTRIBUTES: 0x8B89; - readonly SHADING_LANGUAGE_VERSION: 0x8B8C; - readonly CURRENT_PROGRAM: 0x8B8D; - readonly NEVER: 0x0200; - readonly LESS: 0x0201; - readonly EQUAL: 0x0202; - readonly LEQUAL: 0x0203; - readonly GREATER: 0x0204; - readonly NOTEQUAL: 0x0205; - readonly GEQUAL: 0x0206; - readonly ALWAYS: 0x0207; - readonly KEEP: 0x1E00; - readonly REPLACE: 0x1E01; - readonly INCR: 0x1E02; - readonly DECR: 0x1E03; - readonly INVERT: 0x150A; - readonly INCR_WRAP: 0x8507; - readonly DECR_WRAP: 0x8508; - readonly VENDOR: 0x1F00; - readonly RENDERER: 0x1F01; - readonly VERSION: 0x1F02; - readonly NEAREST: 0x2600; - readonly LINEAR: 0x2601; - readonly NEAREST_MIPMAP_NEAREST: 0x2700; - readonly LINEAR_MIPMAP_NEAREST: 0x2701; - readonly NEAREST_MIPMAP_LINEAR: 0x2702; - readonly LINEAR_MIPMAP_LINEAR: 0x2703; - readonly TEXTURE_MAG_FILTER: 0x2800; - readonly TEXTURE_MIN_FILTER: 0x2801; - readonly TEXTURE_WRAP_S: 0x2802; - readonly TEXTURE_WRAP_T: 0x2803; - readonly TEXTURE_2D: 0x0DE1; - readonly TEXTURE: 0x1702; - readonly TEXTURE_CUBE_MAP: 0x8513; - readonly TEXTURE_BINDING_CUBE_MAP: 0x8514; - readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515; - readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516; - readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517; - readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518; - readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519; - readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A; - readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C; - readonly TEXTURE0: 0x84C0; - readonly TEXTURE1: 0x84C1; - readonly TEXTURE2: 0x84C2; - readonly TEXTURE3: 0x84C3; - readonly TEXTURE4: 0x84C4; - readonly TEXTURE5: 0x84C5; - readonly TEXTURE6: 0x84C6; - readonly TEXTURE7: 0x84C7; - readonly TEXTURE8: 0x84C8; - readonly TEXTURE9: 0x84C9; - readonly TEXTURE10: 0x84CA; - readonly TEXTURE11: 0x84CB; - readonly TEXTURE12: 0x84CC; - readonly TEXTURE13: 0x84CD; - readonly TEXTURE14: 0x84CE; - readonly TEXTURE15: 0x84CF; - readonly TEXTURE16: 0x84D0; - readonly TEXTURE17: 0x84D1; - readonly TEXTURE18: 0x84D2; - readonly TEXTURE19: 0x84D3; - readonly TEXTURE20: 0x84D4; - readonly TEXTURE21: 0x84D5; - readonly TEXTURE22: 0x84D6; - readonly TEXTURE23: 0x84D7; - readonly TEXTURE24: 0x84D8; - readonly TEXTURE25: 0x84D9; - readonly TEXTURE26: 0x84DA; - readonly TEXTURE27: 0x84DB; - readonly TEXTURE28: 0x84DC; - readonly TEXTURE29: 0x84DD; - readonly TEXTURE30: 0x84DE; - readonly TEXTURE31: 0x84DF; - readonly ACTIVE_TEXTURE: 0x84E0; - readonly REPEAT: 0x2901; - readonly CLAMP_TO_EDGE: 0x812F; - readonly MIRRORED_REPEAT: 0x8370; - readonly FLOAT_VEC2: 0x8B50; - readonly FLOAT_VEC3: 0x8B51; - readonly FLOAT_VEC4: 0x8B52; - readonly INT_VEC2: 0x8B53; - readonly INT_VEC3: 0x8B54; - readonly INT_VEC4: 0x8B55; - readonly BOOL: 0x8B56; - readonly BOOL_VEC2: 0x8B57; - readonly BOOL_VEC3: 0x8B58; - readonly BOOL_VEC4: 0x8B59; - readonly FLOAT_MAT2: 0x8B5A; - readonly FLOAT_MAT3: 0x8B5B; - readonly FLOAT_MAT4: 0x8B5C; - readonly SAMPLER_2D: 0x8B5E; - readonly SAMPLER_CUBE: 0x8B60; - readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622; - readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623; - readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624; - readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625; - readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A; - readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645; - readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F; - readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A; - readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B; - readonly COMPILE_STATUS: 0x8B81; - readonly LOW_FLOAT: 0x8DF0; - readonly MEDIUM_FLOAT: 0x8DF1; - readonly HIGH_FLOAT: 0x8DF2; - readonly LOW_INT: 0x8DF3; - readonly MEDIUM_INT: 0x8DF4; - readonly HIGH_INT: 0x8DF5; - readonly FRAMEBUFFER: 0x8D40; - readonly RENDERBUFFER: 0x8D41; - readonly RGBA4: 0x8056; - readonly RGB5_A1: 0x8057; - readonly RGBA8: 0x8058; - readonly RGB565: 0x8D62; - readonly DEPTH_COMPONENT16: 0x81A5; - readonly STENCIL_INDEX8: 0x8D48; - readonly DEPTH_STENCIL: 0x84F9; - readonly RENDERBUFFER_WIDTH: 0x8D42; - readonly RENDERBUFFER_HEIGHT: 0x8D43; - readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44; - readonly RENDERBUFFER_RED_SIZE: 0x8D50; - readonly RENDERBUFFER_GREEN_SIZE: 0x8D51; - readonly RENDERBUFFER_BLUE_SIZE: 0x8D52; - readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53; - readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54; - readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55; - readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0; - readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1; - readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2; - readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3; - readonly COLOR_ATTACHMENT0: 0x8CE0; - readonly DEPTH_ATTACHMENT: 0x8D00; - readonly STENCIL_ATTACHMENT: 0x8D20; - readonly DEPTH_STENCIL_ATTACHMENT: 0x821A; - readonly NONE: 0; - readonly FRAMEBUFFER_COMPLETE: 0x8CD5; - readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6; - readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7; - readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9; - readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD; - readonly FRAMEBUFFER_BINDING: 0x8CA6; - readonly RENDERBUFFER_BINDING: 0x8CA7; - readonly MAX_RENDERBUFFER_SIZE: 0x84E8; - readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506; - readonly UNPACK_FLIP_Y_WEBGL: 0x9240; - readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241; - readonly CONTEXT_LOST_WEBGL: 0x9242; - readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243; - readonly BROWSER_DEFAULT_WEBGL: 0x9244; + prototype: WebGLRenderingContext; + new (): WebGLRenderingContext; + readonly DEPTH_BUFFER_BIT: 0x00000100; + readonly STENCIL_BUFFER_BIT: 0x00000400; + readonly COLOR_BUFFER_BIT: 0x00004000; + readonly POINTS: 0x0000; + readonly LINES: 0x0001; + readonly LINE_LOOP: 0x0002; + readonly LINE_STRIP: 0x0003; + readonly TRIANGLES: 0x0004; + readonly TRIANGLE_STRIP: 0x0005; + readonly TRIANGLE_FAN: 0x0006; + readonly ZERO: 0; + readonly ONE: 1; + readonly SRC_COLOR: 0x0300; + readonly ONE_MINUS_SRC_COLOR: 0x0301; + readonly SRC_ALPHA: 0x0302; + readonly ONE_MINUS_SRC_ALPHA: 0x0303; + readonly DST_ALPHA: 0x0304; + readonly ONE_MINUS_DST_ALPHA: 0x0305; + readonly DST_COLOR: 0x0306; + readonly ONE_MINUS_DST_COLOR: 0x0307; + readonly SRC_ALPHA_SATURATE: 0x0308; + readonly FUNC_ADD: 0x8006; + readonly BLEND_EQUATION: 0x8009; + readonly BLEND_EQUATION_RGB: 0x8009; + readonly BLEND_EQUATION_ALPHA: 0x883d; + readonly FUNC_SUBTRACT: 0x800a; + readonly FUNC_REVERSE_SUBTRACT: 0x800b; + readonly BLEND_DST_RGB: 0x80c8; + readonly BLEND_SRC_RGB: 0x80c9; + readonly BLEND_DST_ALPHA: 0x80ca; + readonly BLEND_SRC_ALPHA: 0x80cb; + readonly CONSTANT_COLOR: 0x8001; + readonly ONE_MINUS_CONSTANT_COLOR: 0x8002; + readonly CONSTANT_ALPHA: 0x8003; + readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004; + readonly BLEND_COLOR: 0x8005; + readonly ARRAY_BUFFER: 0x8892; + readonly ELEMENT_ARRAY_BUFFER: 0x8893; + readonly ARRAY_BUFFER_BINDING: 0x8894; + readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895; + readonly STREAM_DRAW: 0x88e0; + readonly STATIC_DRAW: 0x88e4; + readonly DYNAMIC_DRAW: 0x88e8; + readonly BUFFER_SIZE: 0x8764; + readonly BUFFER_USAGE: 0x8765; + readonly CURRENT_VERTEX_ATTRIB: 0x8626; + readonly FRONT: 0x0404; + readonly BACK: 0x0405; + readonly FRONT_AND_BACK: 0x0408; + readonly CULL_FACE: 0x0b44; + readonly BLEND: 0x0be2; + readonly DITHER: 0x0bd0; + readonly STENCIL_TEST: 0x0b90; + readonly DEPTH_TEST: 0x0b71; + readonly SCISSOR_TEST: 0x0c11; + readonly POLYGON_OFFSET_FILL: 0x8037; + readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809e; + readonly SAMPLE_COVERAGE: 0x80a0; + readonly NO_ERROR: 0; + readonly INVALID_ENUM: 0x0500; + readonly INVALID_VALUE: 0x0501; + readonly INVALID_OPERATION: 0x0502; + readonly OUT_OF_MEMORY: 0x0505; + readonly CW: 0x0900; + readonly CCW: 0x0901; + readonly LINE_WIDTH: 0x0b21; + readonly ALIASED_POINT_SIZE_RANGE: 0x846d; + readonly ALIASED_LINE_WIDTH_RANGE: 0x846e; + readonly CULL_FACE_MODE: 0x0b45; + readonly FRONT_FACE: 0x0b46; + readonly DEPTH_RANGE: 0x0b70; + readonly DEPTH_WRITEMASK: 0x0b72; + readonly DEPTH_CLEAR_VALUE: 0x0b73; + readonly DEPTH_FUNC: 0x0b74; + readonly STENCIL_CLEAR_VALUE: 0x0b91; + readonly STENCIL_FUNC: 0x0b92; + readonly STENCIL_FAIL: 0x0b94; + readonly STENCIL_PASS_DEPTH_FAIL: 0x0b95; + readonly STENCIL_PASS_DEPTH_PASS: 0x0b96; + readonly STENCIL_REF: 0x0b97; + readonly STENCIL_VALUE_MASK: 0x0b93; + readonly STENCIL_WRITEMASK: 0x0b98; + readonly STENCIL_BACK_FUNC: 0x8800; + readonly STENCIL_BACK_FAIL: 0x8801; + readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802; + readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803; + readonly STENCIL_BACK_REF: 0x8ca3; + readonly STENCIL_BACK_VALUE_MASK: 0x8ca4; + readonly STENCIL_BACK_WRITEMASK: 0x8ca5; + readonly VIEWPORT: 0x0ba2; + readonly SCISSOR_BOX: 0x0c10; + readonly COLOR_CLEAR_VALUE: 0x0c22; + readonly COLOR_WRITEMASK: 0x0c23; + readonly UNPACK_ALIGNMENT: 0x0cf5; + readonly PACK_ALIGNMENT: 0x0d05; + readonly MAX_TEXTURE_SIZE: 0x0d33; + readonly MAX_VIEWPORT_DIMS: 0x0d3a; + readonly SUBPIXEL_BITS: 0x0d50; + readonly RED_BITS: 0x0d52; + readonly GREEN_BITS: 0x0d53; + readonly BLUE_BITS: 0x0d54; + readonly ALPHA_BITS: 0x0d55; + readonly DEPTH_BITS: 0x0d56; + readonly STENCIL_BITS: 0x0d57; + readonly POLYGON_OFFSET_UNITS: 0x2a00; + readonly POLYGON_OFFSET_FACTOR: 0x8038; + readonly TEXTURE_BINDING_2D: 0x8069; + readonly SAMPLE_BUFFERS: 0x80a8; + readonly SAMPLES: 0x80a9; + readonly SAMPLE_COVERAGE_VALUE: 0x80aa; + readonly SAMPLE_COVERAGE_INVERT: 0x80ab; + readonly COMPRESSED_TEXTURE_FORMATS: 0x86a3; + readonly DONT_CARE: 0x1100; + readonly FASTEST: 0x1101; + readonly NICEST: 0x1102; + readonly GENERATE_MIPMAP_HINT: 0x8192; + readonly BYTE: 0x1400; + readonly UNSIGNED_BYTE: 0x1401; + readonly SHORT: 0x1402; + readonly UNSIGNED_SHORT: 0x1403; + readonly INT: 0x1404; + readonly UNSIGNED_INT: 0x1405; + readonly FLOAT: 0x1406; + readonly DEPTH_COMPONENT: 0x1902; + readonly ALPHA: 0x1906; + readonly RGB: 0x1907; + readonly RGBA: 0x1908; + readonly LUMINANCE: 0x1909; + readonly LUMINANCE_ALPHA: 0x190a; + readonly UNSIGNED_SHORT_4_4_4_4: 0x8033; + readonly UNSIGNED_SHORT_5_5_5_1: 0x8034; + readonly UNSIGNED_SHORT_5_6_5: 0x8363; + readonly FRAGMENT_SHADER: 0x8b30; + readonly VERTEX_SHADER: 0x8b31; + readonly MAX_VERTEX_ATTRIBS: 0x8869; + readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8dfb; + readonly MAX_VARYING_VECTORS: 0x8dfc; + readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8b4d; + readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8b4c; + readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872; + readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8dfd; + readonly SHADER_TYPE: 0x8b4f; + readonly DELETE_STATUS: 0x8b80; + readonly LINK_STATUS: 0x8b82; + readonly VALIDATE_STATUS: 0x8b83; + readonly ATTACHED_SHADERS: 0x8b85; + readonly ACTIVE_UNIFORMS: 0x8b86; + readonly ACTIVE_ATTRIBUTES: 0x8b89; + readonly SHADING_LANGUAGE_VERSION: 0x8b8c; + readonly CURRENT_PROGRAM: 0x8b8d; + readonly NEVER: 0x0200; + readonly LESS: 0x0201; + readonly EQUAL: 0x0202; + readonly LEQUAL: 0x0203; + readonly GREATER: 0x0204; + readonly NOTEQUAL: 0x0205; + readonly GEQUAL: 0x0206; + readonly ALWAYS: 0x0207; + readonly KEEP: 0x1e00; + readonly REPLACE: 0x1e01; + readonly INCR: 0x1e02; + readonly DECR: 0x1e03; + readonly INVERT: 0x150a; + readonly INCR_WRAP: 0x8507; + readonly DECR_WRAP: 0x8508; + readonly VENDOR: 0x1f00; + readonly RENDERER: 0x1f01; + readonly VERSION: 0x1f02; + readonly NEAREST: 0x2600; + readonly LINEAR: 0x2601; + readonly NEAREST_MIPMAP_NEAREST: 0x2700; + readonly LINEAR_MIPMAP_NEAREST: 0x2701; + readonly NEAREST_MIPMAP_LINEAR: 0x2702; + readonly LINEAR_MIPMAP_LINEAR: 0x2703; + readonly TEXTURE_MAG_FILTER: 0x2800; + readonly TEXTURE_MIN_FILTER: 0x2801; + readonly TEXTURE_WRAP_S: 0x2802; + readonly TEXTURE_WRAP_T: 0x2803; + readonly TEXTURE_2D: 0x0de1; + readonly TEXTURE: 0x1702; + readonly TEXTURE_CUBE_MAP: 0x8513; + readonly TEXTURE_BINDING_CUBE_MAP: 0x8514; + readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515; + readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516; + readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517; + readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518; + readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519; + readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851a; + readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851c; + readonly TEXTURE0: 0x84c0; + readonly TEXTURE1: 0x84c1; + readonly TEXTURE2: 0x84c2; + readonly TEXTURE3: 0x84c3; + readonly TEXTURE4: 0x84c4; + readonly TEXTURE5: 0x84c5; + readonly TEXTURE6: 0x84c6; + readonly TEXTURE7: 0x84c7; + readonly TEXTURE8: 0x84c8; + readonly TEXTURE9: 0x84c9; + readonly TEXTURE10: 0x84ca; + readonly TEXTURE11: 0x84cb; + readonly TEXTURE12: 0x84cc; + readonly TEXTURE13: 0x84cd; + readonly TEXTURE14: 0x84ce; + readonly TEXTURE15: 0x84cf; + readonly TEXTURE16: 0x84d0; + readonly TEXTURE17: 0x84d1; + readonly TEXTURE18: 0x84d2; + readonly TEXTURE19: 0x84d3; + readonly TEXTURE20: 0x84d4; + readonly TEXTURE21: 0x84d5; + readonly TEXTURE22: 0x84d6; + readonly TEXTURE23: 0x84d7; + readonly TEXTURE24: 0x84d8; + readonly TEXTURE25: 0x84d9; + readonly TEXTURE26: 0x84da; + readonly TEXTURE27: 0x84db; + readonly TEXTURE28: 0x84dc; + readonly TEXTURE29: 0x84dd; + readonly TEXTURE30: 0x84de; + readonly TEXTURE31: 0x84df; + readonly ACTIVE_TEXTURE: 0x84e0; + readonly REPEAT: 0x2901; + readonly CLAMP_TO_EDGE: 0x812f; + readonly MIRRORED_REPEAT: 0x8370; + readonly FLOAT_VEC2: 0x8b50; + readonly FLOAT_VEC3: 0x8b51; + readonly FLOAT_VEC4: 0x8b52; + readonly INT_VEC2: 0x8b53; + readonly INT_VEC3: 0x8b54; + readonly INT_VEC4: 0x8b55; + readonly BOOL: 0x8b56; + readonly BOOL_VEC2: 0x8b57; + readonly BOOL_VEC3: 0x8b58; + readonly BOOL_VEC4: 0x8b59; + readonly FLOAT_MAT2: 0x8b5a; + readonly FLOAT_MAT3: 0x8b5b; + readonly FLOAT_MAT4: 0x8b5c; + readonly SAMPLER_2D: 0x8b5e; + readonly SAMPLER_CUBE: 0x8b60; + readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622; + readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623; + readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624; + readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625; + readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886a; + readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645; + readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889f; + readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8b9a; + readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8b9b; + readonly COMPILE_STATUS: 0x8b81; + readonly LOW_FLOAT: 0x8df0; + readonly MEDIUM_FLOAT: 0x8df1; + readonly HIGH_FLOAT: 0x8df2; + readonly LOW_INT: 0x8df3; + readonly MEDIUM_INT: 0x8df4; + readonly HIGH_INT: 0x8df5; + readonly FRAMEBUFFER: 0x8d40; + readonly RENDERBUFFER: 0x8d41; + readonly RGBA4: 0x8056; + readonly RGB5_A1: 0x8057; + readonly RGBA8: 0x8058; + readonly RGB565: 0x8d62; + readonly DEPTH_COMPONENT16: 0x81a5; + readonly STENCIL_INDEX8: 0x8d48; + readonly DEPTH_STENCIL: 0x84f9; + readonly RENDERBUFFER_WIDTH: 0x8d42; + readonly RENDERBUFFER_HEIGHT: 0x8d43; + readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8d44; + readonly RENDERBUFFER_RED_SIZE: 0x8d50; + readonly RENDERBUFFER_GREEN_SIZE: 0x8d51; + readonly RENDERBUFFER_BLUE_SIZE: 0x8d52; + readonly RENDERBUFFER_ALPHA_SIZE: 0x8d53; + readonly RENDERBUFFER_DEPTH_SIZE: 0x8d54; + readonly RENDERBUFFER_STENCIL_SIZE: 0x8d55; + readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8cd0; + readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8cd1; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8cd2; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8cd3; + readonly COLOR_ATTACHMENT0: 0x8ce0; + readonly DEPTH_ATTACHMENT: 0x8d00; + readonly STENCIL_ATTACHMENT: 0x8d20; + readonly DEPTH_STENCIL_ATTACHMENT: 0x821a; + readonly NONE: 0; + readonly FRAMEBUFFER_COMPLETE: 0x8cd5; + readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8cd6; + readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8cd7; + readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8cd9; + readonly FRAMEBUFFER_UNSUPPORTED: 0x8cdd; + readonly FRAMEBUFFER_BINDING: 0x8ca6; + readonly RENDERBUFFER_BINDING: 0x8ca7; + readonly MAX_RENDERBUFFER_SIZE: 0x84e8; + readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506; + readonly UNPACK_FLIP_Y_WEBGL: 0x9240; + readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241; + readonly CONTEXT_LOST_WEBGL: 0x9242; + readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243; + readonly BROWSER_DEFAULT_WEBGL: 0x9244; }; interface WebGLRenderingContextBase { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/canvas) */ - readonly canvas: HTMLCanvasElement | OffscreenCanvas; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferColorSpace) */ - drawingBufferColorSpace: PredefinedColorSpace; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferHeight) */ - readonly drawingBufferHeight: GLsizei; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferWidth) */ - readonly drawingBufferWidth: GLsizei; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/unpackColorSpace) */ - unpackColorSpace: PredefinedColorSpace; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/activeTexture) */ - activeTexture(texture: GLenum): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/attachShader) */ - attachShader(program: WebGLProgram, shader: WebGLShader): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindAttribLocation) */ - bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindBuffer) */ - bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindFramebuffer) */ - bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindRenderbuffer) */ - bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindTexture) */ - bindTexture(target: GLenum, texture: WebGLTexture | null): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendColor) */ - blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquation) */ - blendEquation(mode: GLenum): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquationSeparate) */ - blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFunc) */ - blendFunc(sfactor: GLenum, dfactor: GLenum): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFuncSeparate) */ - blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/checkFramebufferStatus) */ - checkFramebufferStatus(target: GLenum): GLenum; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clear) */ - clear(mask: GLbitfield): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearColor) */ - clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearDepth) */ - clearDepth(depth: GLclampf): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearStencil) */ - clearStencil(s: GLint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/colorMask) */ - colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compileShader) */ - compileShader(shader: WebGLShader): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexImage2D) */ - copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexSubImage2D) */ - copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createBuffer) */ - createBuffer(): WebGLBuffer; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createFramebuffer) */ - createFramebuffer(): WebGLFramebuffer; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createProgram) */ - createProgram(): WebGLProgram; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createRenderbuffer) */ - createRenderbuffer(): WebGLRenderbuffer; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createShader) */ - createShader(type: GLenum): WebGLShader | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createTexture) */ - createTexture(): WebGLTexture; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/cullFace) */ - cullFace(mode: GLenum): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteBuffer) */ - deleteBuffer(buffer: WebGLBuffer | null): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteFramebuffer) */ - deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteProgram) */ - deleteProgram(program: WebGLProgram | null): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteRenderbuffer) */ - deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteShader) */ - deleteShader(shader: WebGLShader | null): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteTexture) */ - deleteTexture(texture: WebGLTexture | null): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthFunc) */ - depthFunc(func: GLenum): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthMask) */ - depthMask(flag: GLboolean): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthRange) */ - depthRange(zNear: GLclampf, zFar: GLclampf): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/detachShader) */ - detachShader(program: WebGLProgram, shader: WebGLShader): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disable) */ - disable(cap: GLenum): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disableVertexAttribArray) */ - disableVertexAttribArray(index: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawArrays) */ - drawArrays(mode: GLenum, first: GLint, count: GLsizei): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawElements) */ - drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enable) */ - enable(cap: GLenum): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enableVertexAttribArray) */ - enableVertexAttribArray(index: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/finish) */ - finish(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/flush) */ - flush(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferRenderbuffer) */ - framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferTexture2D) */ - framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/frontFace) */ - frontFace(mode: GLenum): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/generateMipmap) */ - generateMipmap(target: GLenum): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveAttrib) */ - getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveUniform) */ - getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttachedShaders) */ - getAttachedShaders(program: WebGLProgram): WebGLShader[] | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttribLocation) */ - getAttribLocation(program: WebGLProgram, name: string): GLint; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getBufferParameter) */ - getBufferParameter(target: GLenum, pname: GLenum): any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getContextAttributes) */ - getContextAttributes(): WebGLContextAttributes | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */ - getError(): GLenum; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */ - getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null; - getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null; - getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null; - getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null; - getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null; - getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null; - getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null; - getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null; - getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null; - getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null; - getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null; - getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null; - getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null; - getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null; - getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null; - getExtension(extensionName: "OES_texture_float"): OES_texture_float | null; - getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null; - getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null; - getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null; - getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null; - getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null; - getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null; - getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null; - getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null; - getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null; - getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null; - getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null; - getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null; - getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null; - getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null; - getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null; - getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null; - getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null; - getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null; - getExtension(name: string): any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) */ - getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) */ - getParameter(pname: GLenum): any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramInfoLog) */ - getProgramInfoLog(program: WebGLProgram): string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramParameter) */ - getProgramParameter(program: WebGLProgram, pname: GLenum): any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getRenderbufferParameter) */ - getRenderbufferParameter(target: GLenum, pname: GLenum): any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderInfoLog) */ - getShaderInfoLog(shader: WebGLShader): string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderParameter) */ - getShaderParameter(shader: WebGLShader, pname: GLenum): any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderPrecisionFormat) */ - getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderSource) */ - getShaderSource(shader: WebGLShader): string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getSupportedExtensions) */ - getSupportedExtensions(): string[] | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getTexParameter) */ - getTexParameter(target: GLenum, pname: GLenum): any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniform) */ - getUniform(program: WebGLProgram, location: WebGLUniformLocation): any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniformLocation) */ - getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttrib) */ - getVertexAttrib(index: GLuint, pname: GLenum): any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttribOffset) */ - getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/hint) */ - hint(target: GLenum, mode: GLenum): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isBuffer) */ - isBuffer(buffer: WebGLBuffer | null): GLboolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isContextLost) */ - isContextLost(): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isEnabled) */ - isEnabled(cap: GLenum): GLboolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isFramebuffer) */ - isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isProgram) */ - isProgram(program: WebGLProgram | null): GLboolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isRenderbuffer) */ - isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isShader) */ - isShader(shader: WebGLShader | null): GLboolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isTexture) */ - isTexture(texture: WebGLTexture | null): GLboolean; - lineWidth(width: GLfloat): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/linkProgram) */ - linkProgram(program: WebGLProgram): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/pixelStorei) */ - pixelStorei(pname: GLenum, param: GLint | GLboolean): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/polygonOffset) */ - polygonOffset(factor: GLfloat, units: GLfloat): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/renderbufferStorage) */ - renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/sampleCoverage) */ - sampleCoverage(value: GLclampf, invert: GLboolean): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/scissor) */ - scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/shaderSource) */ - shaderSource(shader: WebGLShader, source: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFunc) */ - stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFuncSeparate) */ - stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMask) */ - stencilMask(mask: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMaskSeparate) */ - stencilMaskSeparate(face: GLenum, mask: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOp) */ - stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOpSeparate) */ - stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */ - texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */ - texParameteri(target: GLenum, pname: GLenum, param: GLint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform1i(location: WebGLUniformLocation | null, x: GLint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/useProgram) */ - useProgram(program: WebGLProgram | null): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/validateProgram) */ - validateProgram(program: WebGLProgram): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ - vertexAttrib1f(index: GLuint, x: GLfloat): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ - vertexAttrib1fv(index: GLuint, values: Float32List): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ - vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ - vertexAttrib2fv(index: GLuint, values: Float32List): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ - vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ - vertexAttrib3fv(index: GLuint, values: Float32List): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ - vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ - vertexAttrib4fv(index: GLuint, values: Float32List): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttribPointer) */ - vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/viewport) */ - viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; - readonly DEPTH_BUFFER_BIT: 0x00000100; - readonly STENCIL_BUFFER_BIT: 0x00000400; - readonly COLOR_BUFFER_BIT: 0x00004000; - readonly POINTS: 0x0000; - readonly LINES: 0x0001; - readonly LINE_LOOP: 0x0002; - readonly LINE_STRIP: 0x0003; - readonly TRIANGLES: 0x0004; - readonly TRIANGLE_STRIP: 0x0005; - readonly TRIANGLE_FAN: 0x0006; - readonly ZERO: 0; - readonly ONE: 1; - readonly SRC_COLOR: 0x0300; - readonly ONE_MINUS_SRC_COLOR: 0x0301; - readonly SRC_ALPHA: 0x0302; - readonly ONE_MINUS_SRC_ALPHA: 0x0303; - readonly DST_ALPHA: 0x0304; - readonly ONE_MINUS_DST_ALPHA: 0x0305; - readonly DST_COLOR: 0x0306; - readonly ONE_MINUS_DST_COLOR: 0x0307; - readonly SRC_ALPHA_SATURATE: 0x0308; - readonly FUNC_ADD: 0x8006; - readonly BLEND_EQUATION: 0x8009; - readonly BLEND_EQUATION_RGB: 0x8009; - readonly BLEND_EQUATION_ALPHA: 0x883D; - readonly FUNC_SUBTRACT: 0x800A; - readonly FUNC_REVERSE_SUBTRACT: 0x800B; - readonly BLEND_DST_RGB: 0x80C8; - readonly BLEND_SRC_RGB: 0x80C9; - readonly BLEND_DST_ALPHA: 0x80CA; - readonly BLEND_SRC_ALPHA: 0x80CB; - readonly CONSTANT_COLOR: 0x8001; - readonly ONE_MINUS_CONSTANT_COLOR: 0x8002; - readonly CONSTANT_ALPHA: 0x8003; - readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004; - readonly BLEND_COLOR: 0x8005; - readonly ARRAY_BUFFER: 0x8892; - readonly ELEMENT_ARRAY_BUFFER: 0x8893; - readonly ARRAY_BUFFER_BINDING: 0x8894; - readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895; - readonly STREAM_DRAW: 0x88E0; - readonly STATIC_DRAW: 0x88E4; - readonly DYNAMIC_DRAW: 0x88E8; - readonly BUFFER_SIZE: 0x8764; - readonly BUFFER_USAGE: 0x8765; - readonly CURRENT_VERTEX_ATTRIB: 0x8626; - readonly FRONT: 0x0404; - readonly BACK: 0x0405; - readonly FRONT_AND_BACK: 0x0408; - readonly CULL_FACE: 0x0B44; - readonly BLEND: 0x0BE2; - readonly DITHER: 0x0BD0; - readonly STENCIL_TEST: 0x0B90; - readonly DEPTH_TEST: 0x0B71; - readonly SCISSOR_TEST: 0x0C11; - readonly POLYGON_OFFSET_FILL: 0x8037; - readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E; - readonly SAMPLE_COVERAGE: 0x80A0; - readonly NO_ERROR: 0; - readonly INVALID_ENUM: 0x0500; - readonly INVALID_VALUE: 0x0501; - readonly INVALID_OPERATION: 0x0502; - readonly OUT_OF_MEMORY: 0x0505; - readonly CW: 0x0900; - readonly CCW: 0x0901; - readonly LINE_WIDTH: 0x0B21; - readonly ALIASED_POINT_SIZE_RANGE: 0x846D; - readonly ALIASED_LINE_WIDTH_RANGE: 0x846E; - readonly CULL_FACE_MODE: 0x0B45; - readonly FRONT_FACE: 0x0B46; - readonly DEPTH_RANGE: 0x0B70; - readonly DEPTH_WRITEMASK: 0x0B72; - readonly DEPTH_CLEAR_VALUE: 0x0B73; - readonly DEPTH_FUNC: 0x0B74; - readonly STENCIL_CLEAR_VALUE: 0x0B91; - readonly STENCIL_FUNC: 0x0B92; - readonly STENCIL_FAIL: 0x0B94; - readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95; - readonly STENCIL_PASS_DEPTH_PASS: 0x0B96; - readonly STENCIL_REF: 0x0B97; - readonly STENCIL_VALUE_MASK: 0x0B93; - readonly STENCIL_WRITEMASK: 0x0B98; - readonly STENCIL_BACK_FUNC: 0x8800; - readonly STENCIL_BACK_FAIL: 0x8801; - readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802; - readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803; - readonly STENCIL_BACK_REF: 0x8CA3; - readonly STENCIL_BACK_VALUE_MASK: 0x8CA4; - readonly STENCIL_BACK_WRITEMASK: 0x8CA5; - readonly VIEWPORT: 0x0BA2; - readonly SCISSOR_BOX: 0x0C10; - readonly COLOR_CLEAR_VALUE: 0x0C22; - readonly COLOR_WRITEMASK: 0x0C23; - readonly UNPACK_ALIGNMENT: 0x0CF5; - readonly PACK_ALIGNMENT: 0x0D05; - readonly MAX_TEXTURE_SIZE: 0x0D33; - readonly MAX_VIEWPORT_DIMS: 0x0D3A; - readonly SUBPIXEL_BITS: 0x0D50; - readonly RED_BITS: 0x0D52; - readonly GREEN_BITS: 0x0D53; - readonly BLUE_BITS: 0x0D54; - readonly ALPHA_BITS: 0x0D55; - readonly DEPTH_BITS: 0x0D56; - readonly STENCIL_BITS: 0x0D57; - readonly POLYGON_OFFSET_UNITS: 0x2A00; - readonly POLYGON_OFFSET_FACTOR: 0x8038; - readonly TEXTURE_BINDING_2D: 0x8069; - readonly SAMPLE_BUFFERS: 0x80A8; - readonly SAMPLES: 0x80A9; - readonly SAMPLE_COVERAGE_VALUE: 0x80AA; - readonly SAMPLE_COVERAGE_INVERT: 0x80AB; - readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3; - readonly DONT_CARE: 0x1100; - readonly FASTEST: 0x1101; - readonly NICEST: 0x1102; - readonly GENERATE_MIPMAP_HINT: 0x8192; - readonly BYTE: 0x1400; - readonly UNSIGNED_BYTE: 0x1401; - readonly SHORT: 0x1402; - readonly UNSIGNED_SHORT: 0x1403; - readonly INT: 0x1404; - readonly UNSIGNED_INT: 0x1405; - readonly FLOAT: 0x1406; - readonly DEPTH_COMPONENT: 0x1902; - readonly ALPHA: 0x1906; - readonly RGB: 0x1907; - readonly RGBA: 0x1908; - readonly LUMINANCE: 0x1909; - readonly LUMINANCE_ALPHA: 0x190A; - readonly UNSIGNED_SHORT_4_4_4_4: 0x8033; - readonly UNSIGNED_SHORT_5_5_5_1: 0x8034; - readonly UNSIGNED_SHORT_5_6_5: 0x8363; - readonly FRAGMENT_SHADER: 0x8B30; - readonly VERTEX_SHADER: 0x8B31; - readonly MAX_VERTEX_ATTRIBS: 0x8869; - readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB; - readonly MAX_VARYING_VECTORS: 0x8DFC; - readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D; - readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C; - readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872; - readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD; - readonly SHADER_TYPE: 0x8B4F; - readonly DELETE_STATUS: 0x8B80; - readonly LINK_STATUS: 0x8B82; - readonly VALIDATE_STATUS: 0x8B83; - readonly ATTACHED_SHADERS: 0x8B85; - readonly ACTIVE_UNIFORMS: 0x8B86; - readonly ACTIVE_ATTRIBUTES: 0x8B89; - readonly SHADING_LANGUAGE_VERSION: 0x8B8C; - readonly CURRENT_PROGRAM: 0x8B8D; - readonly NEVER: 0x0200; - readonly LESS: 0x0201; - readonly EQUAL: 0x0202; - readonly LEQUAL: 0x0203; - readonly GREATER: 0x0204; - readonly NOTEQUAL: 0x0205; - readonly GEQUAL: 0x0206; - readonly ALWAYS: 0x0207; - readonly KEEP: 0x1E00; - readonly REPLACE: 0x1E01; - readonly INCR: 0x1E02; - readonly DECR: 0x1E03; - readonly INVERT: 0x150A; - readonly INCR_WRAP: 0x8507; - readonly DECR_WRAP: 0x8508; - readonly VENDOR: 0x1F00; - readonly RENDERER: 0x1F01; - readonly VERSION: 0x1F02; - readonly NEAREST: 0x2600; - readonly LINEAR: 0x2601; - readonly NEAREST_MIPMAP_NEAREST: 0x2700; - readonly LINEAR_MIPMAP_NEAREST: 0x2701; - readonly NEAREST_MIPMAP_LINEAR: 0x2702; - readonly LINEAR_MIPMAP_LINEAR: 0x2703; - readonly TEXTURE_MAG_FILTER: 0x2800; - readonly TEXTURE_MIN_FILTER: 0x2801; - readonly TEXTURE_WRAP_S: 0x2802; - readonly TEXTURE_WRAP_T: 0x2803; - readonly TEXTURE_2D: 0x0DE1; - readonly TEXTURE: 0x1702; - readonly TEXTURE_CUBE_MAP: 0x8513; - readonly TEXTURE_BINDING_CUBE_MAP: 0x8514; - readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515; - readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516; - readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517; - readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518; - readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519; - readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A; - readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C; - readonly TEXTURE0: 0x84C0; - readonly TEXTURE1: 0x84C1; - readonly TEXTURE2: 0x84C2; - readonly TEXTURE3: 0x84C3; - readonly TEXTURE4: 0x84C4; - readonly TEXTURE5: 0x84C5; - readonly TEXTURE6: 0x84C6; - readonly TEXTURE7: 0x84C7; - readonly TEXTURE8: 0x84C8; - readonly TEXTURE9: 0x84C9; - readonly TEXTURE10: 0x84CA; - readonly TEXTURE11: 0x84CB; - readonly TEXTURE12: 0x84CC; - readonly TEXTURE13: 0x84CD; - readonly TEXTURE14: 0x84CE; - readonly TEXTURE15: 0x84CF; - readonly TEXTURE16: 0x84D0; - readonly TEXTURE17: 0x84D1; - readonly TEXTURE18: 0x84D2; - readonly TEXTURE19: 0x84D3; - readonly TEXTURE20: 0x84D4; - readonly TEXTURE21: 0x84D5; - readonly TEXTURE22: 0x84D6; - readonly TEXTURE23: 0x84D7; - readonly TEXTURE24: 0x84D8; - readonly TEXTURE25: 0x84D9; - readonly TEXTURE26: 0x84DA; - readonly TEXTURE27: 0x84DB; - readonly TEXTURE28: 0x84DC; - readonly TEXTURE29: 0x84DD; - readonly TEXTURE30: 0x84DE; - readonly TEXTURE31: 0x84DF; - readonly ACTIVE_TEXTURE: 0x84E0; - readonly REPEAT: 0x2901; - readonly CLAMP_TO_EDGE: 0x812F; - readonly MIRRORED_REPEAT: 0x8370; - readonly FLOAT_VEC2: 0x8B50; - readonly FLOAT_VEC3: 0x8B51; - readonly FLOAT_VEC4: 0x8B52; - readonly INT_VEC2: 0x8B53; - readonly INT_VEC3: 0x8B54; - readonly INT_VEC4: 0x8B55; - readonly BOOL: 0x8B56; - readonly BOOL_VEC2: 0x8B57; - readonly BOOL_VEC3: 0x8B58; - readonly BOOL_VEC4: 0x8B59; - readonly FLOAT_MAT2: 0x8B5A; - readonly FLOAT_MAT3: 0x8B5B; - readonly FLOAT_MAT4: 0x8B5C; - readonly SAMPLER_2D: 0x8B5E; - readonly SAMPLER_CUBE: 0x8B60; - readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622; - readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623; - readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624; - readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625; - readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A; - readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645; - readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F; - readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A; - readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B; - readonly COMPILE_STATUS: 0x8B81; - readonly LOW_FLOAT: 0x8DF0; - readonly MEDIUM_FLOAT: 0x8DF1; - readonly HIGH_FLOAT: 0x8DF2; - readonly LOW_INT: 0x8DF3; - readonly MEDIUM_INT: 0x8DF4; - readonly HIGH_INT: 0x8DF5; - readonly FRAMEBUFFER: 0x8D40; - readonly RENDERBUFFER: 0x8D41; - readonly RGBA4: 0x8056; - readonly RGB5_A1: 0x8057; - readonly RGBA8: 0x8058; - readonly RGB565: 0x8D62; - readonly DEPTH_COMPONENT16: 0x81A5; - readonly STENCIL_INDEX8: 0x8D48; - readonly DEPTH_STENCIL: 0x84F9; - readonly RENDERBUFFER_WIDTH: 0x8D42; - readonly RENDERBUFFER_HEIGHT: 0x8D43; - readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44; - readonly RENDERBUFFER_RED_SIZE: 0x8D50; - readonly RENDERBUFFER_GREEN_SIZE: 0x8D51; - readonly RENDERBUFFER_BLUE_SIZE: 0x8D52; - readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53; - readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54; - readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55; - readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0; - readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1; - readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2; - readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3; - readonly COLOR_ATTACHMENT0: 0x8CE0; - readonly DEPTH_ATTACHMENT: 0x8D00; - readonly STENCIL_ATTACHMENT: 0x8D20; - readonly DEPTH_STENCIL_ATTACHMENT: 0x821A; - readonly NONE: 0; - readonly FRAMEBUFFER_COMPLETE: 0x8CD5; - readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6; - readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7; - readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9; - readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD; - readonly FRAMEBUFFER_BINDING: 0x8CA6; - readonly RENDERBUFFER_BINDING: 0x8CA7; - readonly MAX_RENDERBUFFER_SIZE: 0x84E8; - readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506; - readonly UNPACK_FLIP_Y_WEBGL: 0x9240; - readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241; - readonly CONTEXT_LOST_WEBGL: 0x9242; - readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243; - readonly BROWSER_DEFAULT_WEBGL: 0x9244; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/canvas) */ + readonly canvas: HTMLCanvasElement | OffscreenCanvas; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferColorSpace) */ + drawingBufferColorSpace: PredefinedColorSpace; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferHeight) */ + readonly drawingBufferHeight: GLsizei; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferWidth) */ + readonly drawingBufferWidth: GLsizei; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/unpackColorSpace) */ + unpackColorSpace: PredefinedColorSpace; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/activeTexture) */ + activeTexture(texture: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/attachShader) */ + attachShader(program: WebGLProgram, shader: WebGLShader): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindAttribLocation) */ + bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindBuffer) */ + bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindFramebuffer) */ + bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindRenderbuffer) */ + bindRenderbuffer( + target: GLenum, + renderbuffer: WebGLRenderbuffer | null, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindTexture) */ + bindTexture(target: GLenum, texture: WebGLTexture | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendColor) */ + blendColor( + red: GLclampf, + green: GLclampf, + blue: GLclampf, + alpha: GLclampf, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquation) */ + blendEquation(mode: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquationSeparate) */ + blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFunc) */ + blendFunc(sfactor: GLenum, dfactor: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFuncSeparate) */ + blendFuncSeparate( + srcRGB: GLenum, + dstRGB: GLenum, + srcAlpha: GLenum, + dstAlpha: GLenum, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/checkFramebufferStatus) */ + checkFramebufferStatus(target: GLenum): GLenum; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clear) */ + clear(mask: GLbitfield): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearColor) */ + clearColor( + red: GLclampf, + green: GLclampf, + blue: GLclampf, + alpha: GLclampf, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearDepth) */ + clearDepth(depth: GLclampf): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearStencil) */ + clearStencil(s: GLint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/colorMask) */ + colorMask( + red: GLboolean, + green: GLboolean, + blue: GLboolean, + alpha: GLboolean, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compileShader) */ + compileShader(shader: WebGLShader): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexImage2D) */ + copyTexImage2D( + target: GLenum, + level: GLint, + internalformat: GLenum, + x: GLint, + y: GLint, + width: GLsizei, + height: GLsizei, + border: GLint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexSubImage2D) */ + copyTexSubImage2D( + target: GLenum, + level: GLint, + xoffset: GLint, + yoffset: GLint, + x: GLint, + y: GLint, + width: GLsizei, + height: GLsizei, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createBuffer) */ + createBuffer(): WebGLBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createFramebuffer) */ + createFramebuffer(): WebGLFramebuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createProgram) */ + createProgram(): WebGLProgram; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createRenderbuffer) */ + createRenderbuffer(): WebGLRenderbuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createShader) */ + createShader(type: GLenum): WebGLShader | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createTexture) */ + createTexture(): WebGLTexture; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/cullFace) */ + cullFace(mode: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteBuffer) */ + deleteBuffer(buffer: WebGLBuffer | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteFramebuffer) */ + deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteProgram) */ + deleteProgram(program: WebGLProgram | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteRenderbuffer) */ + deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteShader) */ + deleteShader(shader: WebGLShader | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteTexture) */ + deleteTexture(texture: WebGLTexture | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthFunc) */ + depthFunc(func: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthMask) */ + depthMask(flag: GLboolean): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthRange) */ + depthRange(zNear: GLclampf, zFar: GLclampf): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/detachShader) */ + detachShader(program: WebGLProgram, shader: WebGLShader): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disable) */ + disable(cap: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disableVertexAttribArray) */ + disableVertexAttribArray(index: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawArrays) */ + drawArrays(mode: GLenum, first: GLint, count: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawElements) */ + drawElements( + mode: GLenum, + count: GLsizei, + type: GLenum, + offset: GLintptr, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enable) */ + enable(cap: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enableVertexAttribArray) */ + enableVertexAttribArray(index: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/finish) */ + finish(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/flush) */ + flush(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferRenderbuffer) */ + framebufferRenderbuffer( + target: GLenum, + attachment: GLenum, + renderbuffertarget: GLenum, + renderbuffer: WebGLRenderbuffer | null, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferTexture2D) */ + framebufferTexture2D( + target: GLenum, + attachment: GLenum, + textarget: GLenum, + texture: WebGLTexture | null, + level: GLint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/frontFace) */ + frontFace(mode: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/generateMipmap) */ + generateMipmap(target: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveAttrib) */ + getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveUniform) */ + getActiveUniform( + program: WebGLProgram, + index: GLuint, + ): WebGLActiveInfo | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttachedShaders) */ + getAttachedShaders(program: WebGLProgram): WebGLShader[] | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttribLocation) */ + getAttribLocation(program: WebGLProgram, name: string): GLint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getBufferParameter) */ + getBufferParameter(target: GLenum, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getContextAttributes) */ + getContextAttributes(): WebGLContextAttributes | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */ + getError(): GLenum; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */ + getExtension( + extensionName: "ANGLE_instanced_arrays", + ): ANGLE_instanced_arrays | null; + getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null; + getExtension( + extensionName: "EXT_color_buffer_float", + ): EXT_color_buffer_float | null; + getExtension( + extensionName: "EXT_color_buffer_half_float", + ): EXT_color_buffer_half_float | null; + getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null; + getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null; + getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null; + getExtension( + extensionName: "EXT_shader_texture_lod", + ): EXT_shader_texture_lod | null; + getExtension( + extensionName: "EXT_texture_compression_bptc", + ): EXT_texture_compression_bptc | null; + getExtension( + extensionName: "EXT_texture_compression_rgtc", + ): EXT_texture_compression_rgtc | null; + getExtension( + extensionName: "EXT_texture_filter_anisotropic", + ): EXT_texture_filter_anisotropic | null; + getExtension( + extensionName: "KHR_parallel_shader_compile", + ): KHR_parallel_shader_compile | null; + getExtension( + extensionName: "OES_element_index_uint", + ): OES_element_index_uint | null; + getExtension( + extensionName: "OES_fbo_render_mipmap", + ): OES_fbo_render_mipmap | null; + getExtension( + extensionName: "OES_standard_derivatives", + ): OES_standard_derivatives | null; + getExtension(extensionName: "OES_texture_float"): OES_texture_float | null; + getExtension( + extensionName: "OES_texture_float_linear", + ): OES_texture_float_linear | null; + getExtension( + extensionName: "OES_texture_half_float", + ): OES_texture_half_float | null; + getExtension( + extensionName: "OES_texture_half_float_linear", + ): OES_texture_half_float_linear | null; + getExtension( + extensionName: "OES_vertex_array_object", + ): OES_vertex_array_object | null; + getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null; + getExtension( + extensionName: "WEBGL_color_buffer_float", + ): WEBGL_color_buffer_float | null; + getExtension( + extensionName: "WEBGL_compressed_texture_astc", + ): WEBGL_compressed_texture_astc | null; + getExtension( + extensionName: "WEBGL_compressed_texture_etc", + ): WEBGL_compressed_texture_etc | null; + getExtension( + extensionName: "WEBGL_compressed_texture_etc1", + ): WEBGL_compressed_texture_etc1 | null; + getExtension( + extensionName: "WEBGL_compressed_texture_pvrtc", + ): WEBGL_compressed_texture_pvrtc | null; + getExtension( + extensionName: "WEBGL_compressed_texture_s3tc", + ): WEBGL_compressed_texture_s3tc | null; + getExtension( + extensionName: "WEBGL_compressed_texture_s3tc_srgb", + ): WEBGL_compressed_texture_s3tc_srgb | null; + getExtension( + extensionName: "WEBGL_debug_renderer_info", + ): WEBGL_debug_renderer_info | null; + getExtension( + extensionName: "WEBGL_debug_shaders", + ): WEBGL_debug_shaders | null; + getExtension( + extensionName: "WEBGL_depth_texture", + ): WEBGL_depth_texture | null; + getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null; + getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null; + getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null; + getExtension(name: string): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) */ + getFramebufferAttachmentParameter( + target: GLenum, + attachment: GLenum, + pname: GLenum, + ): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) */ + getParameter(pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramInfoLog) */ + getProgramInfoLog(program: WebGLProgram): string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramParameter) */ + getProgramParameter(program: WebGLProgram, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getRenderbufferParameter) */ + getRenderbufferParameter(target: GLenum, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderInfoLog) */ + getShaderInfoLog(shader: WebGLShader): string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderParameter) */ + getShaderParameter(shader: WebGLShader, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderPrecisionFormat) */ + getShaderPrecisionFormat( + shadertype: GLenum, + precisiontype: GLenum, + ): WebGLShaderPrecisionFormat | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderSource) */ + getShaderSource(shader: WebGLShader): string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getSupportedExtensions) */ + getSupportedExtensions(): string[] | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getTexParameter) */ + getTexParameter(target: GLenum, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniform) */ + getUniform(program: WebGLProgram, location: WebGLUniformLocation): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniformLocation) */ + getUniformLocation( + program: WebGLProgram, + name: string, + ): WebGLUniformLocation | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttrib) */ + getVertexAttrib(index: GLuint, pname: GLenum): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttribOffset) */ + getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/hint) */ + hint(target: GLenum, mode: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isBuffer) */ + isBuffer(buffer: WebGLBuffer | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isContextLost) */ + isContextLost(): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isEnabled) */ + isEnabled(cap: GLenum): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isFramebuffer) */ + isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isProgram) */ + isProgram(program: WebGLProgram | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isRenderbuffer) */ + isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isShader) */ + isShader(shader: WebGLShader | null): GLboolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isTexture) */ + isTexture(texture: WebGLTexture | null): GLboolean; + lineWidth(width: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/linkProgram) */ + linkProgram(program: WebGLProgram): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/pixelStorei) */ + pixelStorei(pname: GLenum, param: GLint | GLboolean): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/polygonOffset) */ + polygonOffset(factor: GLfloat, units: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/renderbufferStorage) */ + renderbufferStorage( + target: GLenum, + internalformat: GLenum, + width: GLsizei, + height: GLsizei, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/sampleCoverage) */ + sampleCoverage(value: GLclampf, invert: GLboolean): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/scissor) */ + scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/shaderSource) */ + shaderSource(shader: WebGLShader, source: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFunc) */ + stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFuncSeparate) */ + stencilFuncSeparate( + face: GLenum, + func: GLenum, + ref: GLint, + mask: GLuint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMask) */ + stencilMask(mask: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMaskSeparate) */ + stencilMaskSeparate(face: GLenum, mask: GLuint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOp) */ + stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOpSeparate) */ + stencilOpSeparate( + face: GLenum, + fail: GLenum, + zfail: GLenum, + zpass: GLenum, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */ + texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */ + texParameteri(target: GLenum, pname: GLenum, param: GLint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform1i(location: WebGLUniformLocation | null, x: GLint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform2f( + location: WebGLUniformLocation | null, + x: GLfloat, + y: GLfloat, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform3f( + location: WebGLUniformLocation | null, + x: GLfloat, + y: GLfloat, + z: GLfloat, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform3i( + location: WebGLUniformLocation | null, + x: GLint, + y: GLint, + z: GLint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform4f( + location: WebGLUniformLocation | null, + x: GLfloat, + y: GLfloat, + z: GLfloat, + w: GLfloat, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform4i( + location: WebGLUniformLocation | null, + x: GLint, + y: GLint, + z: GLint, + w: GLint, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/useProgram) */ + useProgram(program: WebGLProgram | null): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/validateProgram) */ + validateProgram(program: WebGLProgram): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib1f(index: GLuint, x: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib1fv(index: GLuint, values: Float32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib2fv(index: GLuint, values: Float32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib3fv(index: GLuint, values: Float32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib4f( + index: GLuint, + x: GLfloat, + y: GLfloat, + z: GLfloat, + w: GLfloat, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */ + vertexAttrib4fv(index: GLuint, values: Float32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttribPointer) */ + vertexAttribPointer( + index: GLuint, + size: GLint, + type: GLenum, + normalized: GLboolean, + stride: GLsizei, + offset: GLintptr, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/viewport) */ + viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; + readonly DEPTH_BUFFER_BIT: 0x00000100; + readonly STENCIL_BUFFER_BIT: 0x00000400; + readonly COLOR_BUFFER_BIT: 0x00004000; + readonly POINTS: 0x0000; + readonly LINES: 0x0001; + readonly LINE_LOOP: 0x0002; + readonly LINE_STRIP: 0x0003; + readonly TRIANGLES: 0x0004; + readonly TRIANGLE_STRIP: 0x0005; + readonly TRIANGLE_FAN: 0x0006; + readonly ZERO: 0; + readonly ONE: 1; + readonly SRC_COLOR: 0x0300; + readonly ONE_MINUS_SRC_COLOR: 0x0301; + readonly SRC_ALPHA: 0x0302; + readonly ONE_MINUS_SRC_ALPHA: 0x0303; + readonly DST_ALPHA: 0x0304; + readonly ONE_MINUS_DST_ALPHA: 0x0305; + readonly DST_COLOR: 0x0306; + readonly ONE_MINUS_DST_COLOR: 0x0307; + readonly SRC_ALPHA_SATURATE: 0x0308; + readonly FUNC_ADD: 0x8006; + readonly BLEND_EQUATION: 0x8009; + readonly BLEND_EQUATION_RGB: 0x8009; + readonly BLEND_EQUATION_ALPHA: 0x883d; + readonly FUNC_SUBTRACT: 0x800a; + readonly FUNC_REVERSE_SUBTRACT: 0x800b; + readonly BLEND_DST_RGB: 0x80c8; + readonly BLEND_SRC_RGB: 0x80c9; + readonly BLEND_DST_ALPHA: 0x80ca; + readonly BLEND_SRC_ALPHA: 0x80cb; + readonly CONSTANT_COLOR: 0x8001; + readonly ONE_MINUS_CONSTANT_COLOR: 0x8002; + readonly CONSTANT_ALPHA: 0x8003; + readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004; + readonly BLEND_COLOR: 0x8005; + readonly ARRAY_BUFFER: 0x8892; + readonly ELEMENT_ARRAY_BUFFER: 0x8893; + readonly ARRAY_BUFFER_BINDING: 0x8894; + readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895; + readonly STREAM_DRAW: 0x88e0; + readonly STATIC_DRAW: 0x88e4; + readonly DYNAMIC_DRAW: 0x88e8; + readonly BUFFER_SIZE: 0x8764; + readonly BUFFER_USAGE: 0x8765; + readonly CURRENT_VERTEX_ATTRIB: 0x8626; + readonly FRONT: 0x0404; + readonly BACK: 0x0405; + readonly FRONT_AND_BACK: 0x0408; + readonly CULL_FACE: 0x0b44; + readonly BLEND: 0x0be2; + readonly DITHER: 0x0bd0; + readonly STENCIL_TEST: 0x0b90; + readonly DEPTH_TEST: 0x0b71; + readonly SCISSOR_TEST: 0x0c11; + readonly POLYGON_OFFSET_FILL: 0x8037; + readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809e; + readonly SAMPLE_COVERAGE: 0x80a0; + readonly NO_ERROR: 0; + readonly INVALID_ENUM: 0x0500; + readonly INVALID_VALUE: 0x0501; + readonly INVALID_OPERATION: 0x0502; + readonly OUT_OF_MEMORY: 0x0505; + readonly CW: 0x0900; + readonly CCW: 0x0901; + readonly LINE_WIDTH: 0x0b21; + readonly ALIASED_POINT_SIZE_RANGE: 0x846d; + readonly ALIASED_LINE_WIDTH_RANGE: 0x846e; + readonly CULL_FACE_MODE: 0x0b45; + readonly FRONT_FACE: 0x0b46; + readonly DEPTH_RANGE: 0x0b70; + readonly DEPTH_WRITEMASK: 0x0b72; + readonly DEPTH_CLEAR_VALUE: 0x0b73; + readonly DEPTH_FUNC: 0x0b74; + readonly STENCIL_CLEAR_VALUE: 0x0b91; + readonly STENCIL_FUNC: 0x0b92; + readonly STENCIL_FAIL: 0x0b94; + readonly STENCIL_PASS_DEPTH_FAIL: 0x0b95; + readonly STENCIL_PASS_DEPTH_PASS: 0x0b96; + readonly STENCIL_REF: 0x0b97; + readonly STENCIL_VALUE_MASK: 0x0b93; + readonly STENCIL_WRITEMASK: 0x0b98; + readonly STENCIL_BACK_FUNC: 0x8800; + readonly STENCIL_BACK_FAIL: 0x8801; + readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802; + readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803; + readonly STENCIL_BACK_REF: 0x8ca3; + readonly STENCIL_BACK_VALUE_MASK: 0x8ca4; + readonly STENCIL_BACK_WRITEMASK: 0x8ca5; + readonly VIEWPORT: 0x0ba2; + readonly SCISSOR_BOX: 0x0c10; + readonly COLOR_CLEAR_VALUE: 0x0c22; + readonly COLOR_WRITEMASK: 0x0c23; + readonly UNPACK_ALIGNMENT: 0x0cf5; + readonly PACK_ALIGNMENT: 0x0d05; + readonly MAX_TEXTURE_SIZE: 0x0d33; + readonly MAX_VIEWPORT_DIMS: 0x0d3a; + readonly SUBPIXEL_BITS: 0x0d50; + readonly RED_BITS: 0x0d52; + readonly GREEN_BITS: 0x0d53; + readonly BLUE_BITS: 0x0d54; + readonly ALPHA_BITS: 0x0d55; + readonly DEPTH_BITS: 0x0d56; + readonly STENCIL_BITS: 0x0d57; + readonly POLYGON_OFFSET_UNITS: 0x2a00; + readonly POLYGON_OFFSET_FACTOR: 0x8038; + readonly TEXTURE_BINDING_2D: 0x8069; + readonly SAMPLE_BUFFERS: 0x80a8; + readonly SAMPLES: 0x80a9; + readonly SAMPLE_COVERAGE_VALUE: 0x80aa; + readonly SAMPLE_COVERAGE_INVERT: 0x80ab; + readonly COMPRESSED_TEXTURE_FORMATS: 0x86a3; + readonly DONT_CARE: 0x1100; + readonly FASTEST: 0x1101; + readonly NICEST: 0x1102; + readonly GENERATE_MIPMAP_HINT: 0x8192; + readonly BYTE: 0x1400; + readonly UNSIGNED_BYTE: 0x1401; + readonly SHORT: 0x1402; + readonly UNSIGNED_SHORT: 0x1403; + readonly INT: 0x1404; + readonly UNSIGNED_INT: 0x1405; + readonly FLOAT: 0x1406; + readonly DEPTH_COMPONENT: 0x1902; + readonly ALPHA: 0x1906; + readonly RGB: 0x1907; + readonly RGBA: 0x1908; + readonly LUMINANCE: 0x1909; + readonly LUMINANCE_ALPHA: 0x190a; + readonly UNSIGNED_SHORT_4_4_4_4: 0x8033; + readonly UNSIGNED_SHORT_5_5_5_1: 0x8034; + readonly UNSIGNED_SHORT_5_6_5: 0x8363; + readonly FRAGMENT_SHADER: 0x8b30; + readonly VERTEX_SHADER: 0x8b31; + readonly MAX_VERTEX_ATTRIBS: 0x8869; + readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8dfb; + readonly MAX_VARYING_VECTORS: 0x8dfc; + readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8b4d; + readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8b4c; + readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872; + readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8dfd; + readonly SHADER_TYPE: 0x8b4f; + readonly DELETE_STATUS: 0x8b80; + readonly LINK_STATUS: 0x8b82; + readonly VALIDATE_STATUS: 0x8b83; + readonly ATTACHED_SHADERS: 0x8b85; + readonly ACTIVE_UNIFORMS: 0x8b86; + readonly ACTIVE_ATTRIBUTES: 0x8b89; + readonly SHADING_LANGUAGE_VERSION: 0x8b8c; + readonly CURRENT_PROGRAM: 0x8b8d; + readonly NEVER: 0x0200; + readonly LESS: 0x0201; + readonly EQUAL: 0x0202; + readonly LEQUAL: 0x0203; + readonly GREATER: 0x0204; + readonly NOTEQUAL: 0x0205; + readonly GEQUAL: 0x0206; + readonly ALWAYS: 0x0207; + readonly KEEP: 0x1e00; + readonly REPLACE: 0x1e01; + readonly INCR: 0x1e02; + readonly DECR: 0x1e03; + readonly INVERT: 0x150a; + readonly INCR_WRAP: 0x8507; + readonly DECR_WRAP: 0x8508; + readonly VENDOR: 0x1f00; + readonly RENDERER: 0x1f01; + readonly VERSION: 0x1f02; + readonly NEAREST: 0x2600; + readonly LINEAR: 0x2601; + readonly NEAREST_MIPMAP_NEAREST: 0x2700; + readonly LINEAR_MIPMAP_NEAREST: 0x2701; + readonly NEAREST_MIPMAP_LINEAR: 0x2702; + readonly LINEAR_MIPMAP_LINEAR: 0x2703; + readonly TEXTURE_MAG_FILTER: 0x2800; + readonly TEXTURE_MIN_FILTER: 0x2801; + readonly TEXTURE_WRAP_S: 0x2802; + readonly TEXTURE_WRAP_T: 0x2803; + readonly TEXTURE_2D: 0x0de1; + readonly TEXTURE: 0x1702; + readonly TEXTURE_CUBE_MAP: 0x8513; + readonly TEXTURE_BINDING_CUBE_MAP: 0x8514; + readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515; + readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516; + readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517; + readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518; + readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519; + readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851a; + readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851c; + readonly TEXTURE0: 0x84c0; + readonly TEXTURE1: 0x84c1; + readonly TEXTURE2: 0x84c2; + readonly TEXTURE3: 0x84c3; + readonly TEXTURE4: 0x84c4; + readonly TEXTURE5: 0x84c5; + readonly TEXTURE6: 0x84c6; + readonly TEXTURE7: 0x84c7; + readonly TEXTURE8: 0x84c8; + readonly TEXTURE9: 0x84c9; + readonly TEXTURE10: 0x84ca; + readonly TEXTURE11: 0x84cb; + readonly TEXTURE12: 0x84cc; + readonly TEXTURE13: 0x84cd; + readonly TEXTURE14: 0x84ce; + readonly TEXTURE15: 0x84cf; + readonly TEXTURE16: 0x84d0; + readonly TEXTURE17: 0x84d1; + readonly TEXTURE18: 0x84d2; + readonly TEXTURE19: 0x84d3; + readonly TEXTURE20: 0x84d4; + readonly TEXTURE21: 0x84d5; + readonly TEXTURE22: 0x84d6; + readonly TEXTURE23: 0x84d7; + readonly TEXTURE24: 0x84d8; + readonly TEXTURE25: 0x84d9; + readonly TEXTURE26: 0x84da; + readonly TEXTURE27: 0x84db; + readonly TEXTURE28: 0x84dc; + readonly TEXTURE29: 0x84dd; + readonly TEXTURE30: 0x84de; + readonly TEXTURE31: 0x84df; + readonly ACTIVE_TEXTURE: 0x84e0; + readonly REPEAT: 0x2901; + readonly CLAMP_TO_EDGE: 0x812f; + readonly MIRRORED_REPEAT: 0x8370; + readonly FLOAT_VEC2: 0x8b50; + readonly FLOAT_VEC3: 0x8b51; + readonly FLOAT_VEC4: 0x8b52; + readonly INT_VEC2: 0x8b53; + readonly INT_VEC3: 0x8b54; + readonly INT_VEC4: 0x8b55; + readonly BOOL: 0x8b56; + readonly BOOL_VEC2: 0x8b57; + readonly BOOL_VEC3: 0x8b58; + readonly BOOL_VEC4: 0x8b59; + readonly FLOAT_MAT2: 0x8b5a; + readonly FLOAT_MAT3: 0x8b5b; + readonly FLOAT_MAT4: 0x8b5c; + readonly SAMPLER_2D: 0x8b5e; + readonly SAMPLER_CUBE: 0x8b60; + readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622; + readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623; + readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624; + readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625; + readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886a; + readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645; + readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889f; + readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8b9a; + readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8b9b; + readonly COMPILE_STATUS: 0x8b81; + readonly LOW_FLOAT: 0x8df0; + readonly MEDIUM_FLOAT: 0x8df1; + readonly HIGH_FLOAT: 0x8df2; + readonly LOW_INT: 0x8df3; + readonly MEDIUM_INT: 0x8df4; + readonly HIGH_INT: 0x8df5; + readonly FRAMEBUFFER: 0x8d40; + readonly RENDERBUFFER: 0x8d41; + readonly RGBA4: 0x8056; + readonly RGB5_A1: 0x8057; + readonly RGBA8: 0x8058; + readonly RGB565: 0x8d62; + readonly DEPTH_COMPONENT16: 0x81a5; + readonly STENCIL_INDEX8: 0x8d48; + readonly DEPTH_STENCIL: 0x84f9; + readonly RENDERBUFFER_WIDTH: 0x8d42; + readonly RENDERBUFFER_HEIGHT: 0x8d43; + readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8d44; + readonly RENDERBUFFER_RED_SIZE: 0x8d50; + readonly RENDERBUFFER_GREEN_SIZE: 0x8d51; + readonly RENDERBUFFER_BLUE_SIZE: 0x8d52; + readonly RENDERBUFFER_ALPHA_SIZE: 0x8d53; + readonly RENDERBUFFER_DEPTH_SIZE: 0x8d54; + readonly RENDERBUFFER_STENCIL_SIZE: 0x8d55; + readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8cd0; + readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8cd1; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8cd2; + readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8cd3; + readonly COLOR_ATTACHMENT0: 0x8ce0; + readonly DEPTH_ATTACHMENT: 0x8d00; + readonly STENCIL_ATTACHMENT: 0x8d20; + readonly DEPTH_STENCIL_ATTACHMENT: 0x821a; + readonly NONE: 0; + readonly FRAMEBUFFER_COMPLETE: 0x8cd5; + readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8cd6; + readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8cd7; + readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8cd9; + readonly FRAMEBUFFER_UNSUPPORTED: 0x8cdd; + readonly FRAMEBUFFER_BINDING: 0x8ca6; + readonly RENDERBUFFER_BINDING: 0x8ca7; + readonly MAX_RENDERBUFFER_SIZE: 0x84e8; + readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506; + readonly UNPACK_FLIP_Y_WEBGL: 0x9240; + readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241; + readonly CONTEXT_LOST_WEBGL: 0x9242; + readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243; + readonly BROWSER_DEFAULT_WEBGL: 0x9244; } interface WebGLRenderingContextOverloads { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */ - bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void; - bufferData(target: GLenum, data: AllowSharedBufferSource | null, usage: GLenum): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */ - bufferSubData(target: GLenum, offset: GLintptr, data: AllowSharedBufferSource): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */ - compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */ - compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */ - readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */ - texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void; - texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */ - texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void; - texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ - uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ - uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ - uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ - uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */ + bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void; + bufferData( + target: GLenum, + data: AllowSharedBufferSource | null, + usage: GLenum, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */ + bufferSubData( + target: GLenum, + offset: GLintptr, + data: AllowSharedBufferSource, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */ + compressedTexImage2D( + target: GLenum, + level: GLint, + internalformat: GLenum, + width: GLsizei, + height: GLsizei, + border: GLint, + data: ArrayBufferView, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */ + compressedTexSubImage2D( + target: GLenum, + level: GLint, + xoffset: GLint, + yoffset: GLint, + width: GLsizei, + height: GLsizei, + format: GLenum, + data: ArrayBufferView, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */ + readPixels( + x: GLint, + y: GLint, + width: GLsizei, + height: GLsizei, + format: GLenum, + type: GLenum, + pixels: ArrayBufferView | null, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */ + texImage2D( + target: GLenum, + level: GLint, + internalformat: GLint, + width: GLsizei, + height: GLsizei, + border: GLint, + format: GLenum, + type: GLenum, + pixels: ArrayBufferView | null, + ): void; + texImage2D( + target: GLenum, + level: GLint, + internalformat: GLint, + format: GLenum, + type: GLenum, + source: TexImageSource, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */ + texSubImage2D( + target: GLenum, + level: GLint, + xoffset: GLint, + yoffset: GLint, + width: GLsizei, + height: GLsizei, + format: GLenum, + type: GLenum, + pixels: ArrayBufferView | null, + ): void; + texSubImage2D( + target: GLenum, + level: GLint, + xoffset: GLint, + yoffset: GLint, + format: GLenum, + type: GLenum, + source: TexImageSource, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ + uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + uniformMatrix2fv( + location: WebGLUniformLocation | null, + transpose: GLboolean, + value: Float32List, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + uniformMatrix3fv( + location: WebGLUniformLocation | null, + transpose: GLboolean, + value: Float32List, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ + uniformMatrix4fv( + location: WebGLUniformLocation | null, + transpose: GLboolean, + value: Float32List, + ): void; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSampler) */ -interface WebGLSampler { -} +interface WebGLSampler {} declare var WebGLSampler: { - prototype: WebGLSampler; - new(): WebGLSampler; + prototype: WebGLSampler; + new (): WebGLSampler; }; /** @@ -26016,12 +31880,11 @@ declare var WebGLSampler: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShader) */ -interface WebGLShader { -} +interface WebGLShader {} declare var WebGLShader: { - prototype: WebGLShader; - new(): WebGLShader; + prototype: WebGLShader; + new (): WebGLShader; }; /** @@ -26030,26 +31893,25 @@ declare var WebGLShader: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat) */ interface WebGLShaderPrecisionFormat { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/precision) */ - readonly precision: GLint; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMax) */ - readonly rangeMax: GLint; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMin) */ - readonly rangeMin: GLint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/precision) */ + readonly precision: GLint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMax) */ + readonly rangeMax: GLint; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMin) */ + readonly rangeMin: GLint; } declare var WebGLShaderPrecisionFormat: { - prototype: WebGLShaderPrecisionFormat; - new(): WebGLShaderPrecisionFormat; + prototype: WebGLShaderPrecisionFormat; + new (): WebGLShaderPrecisionFormat; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSync) */ -interface WebGLSync { -} +interface WebGLSync {} declare var WebGLSync: { - prototype: WebGLSync; - new(): WebGLSync; + prototype: WebGLSync; + new (): WebGLSync; }; /** @@ -26057,21 +31919,19 @@ declare var WebGLSync: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTexture) */ -interface WebGLTexture { -} +interface WebGLTexture {} declare var WebGLTexture: { - prototype: WebGLTexture; - new(): WebGLTexture; + prototype: WebGLTexture; + new (): WebGLTexture; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTransformFeedback) */ -interface WebGLTransformFeedback { -} +interface WebGLTransformFeedback {} declare var WebGLTransformFeedback: { - prototype: WebGLTransformFeedback; - new(): WebGLTransformFeedback; + prototype: WebGLTransformFeedback; + new (): WebGLTransformFeedback; }; /** @@ -26079,32 +31939,29 @@ declare var WebGLTransformFeedback: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLUniformLocation) */ -interface WebGLUniformLocation { -} +interface WebGLUniformLocation {} declare var WebGLUniformLocation: { - prototype: WebGLUniformLocation; - new(): WebGLUniformLocation; + prototype: WebGLUniformLocation; + new (): WebGLUniformLocation; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObject) */ -interface WebGLVertexArrayObject { -} +interface WebGLVertexArrayObject {} declare var WebGLVertexArrayObject: { - prototype: WebGLVertexArrayObject; - new(): WebGLVertexArrayObject; + prototype: WebGLVertexArrayObject; + new (): WebGLVertexArrayObject; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObject) */ -interface WebGLVertexArrayObjectOES { -} +interface WebGLVertexArrayObjectOES {} interface WebSocketEventMap { - "close": CloseEvent; - "error": Event; - "message": MessageEvent; - "open": Event; + close: CloseEvent; + error: Event; + message: MessageEvent; + open: Event; } /** @@ -26113,83 +31970,99 @@ interface WebSocketEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket) */ interface WebSocket extends EventTarget { - /** - * Returns a string that indicates how binary data from the WebSocket object is exposed to scripts: - * - * Can be set, to change how binary data is returned. The default is "blob". - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/binaryType) - */ - binaryType: BinaryType; - /** - * Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network. - * - * If the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.) - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/bufferedAmount) - */ - readonly bufferedAmount: number; - /** - * Returns the extensions selected by the server, if any. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/extensions) - */ - readonly extensions: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close_event) */ - onclose: ((this: WebSocket, ev: CloseEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/error_event) */ - onerror: ((this: WebSocket, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/message_event) */ - onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/open_event) */ - onopen: ((this: WebSocket, ev: Event) => any) | null; - /** - * Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/protocol) - */ - readonly protocol: string; - /** - * Returns the state of the WebSocket object's connection. It can have the values described below. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState) - */ - readonly readyState: number; - /** - * Returns the URL that was used to establish the WebSocket connection. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/url) - */ - readonly url: string; - /** - * Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close) - */ - close(code?: number, reason?: string): void; - /** - * Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send) - */ - send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void; - readonly CONNECTING: 0; - readonly OPEN: 1; - readonly CLOSING: 2; - readonly CLOSED: 3; - addEventListener(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** + * Returns a string that indicates how binary data from the WebSocket object is exposed to scripts: + * + * Can be set, to change how binary data is returned. The default is "blob". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/binaryType) + */ + binaryType: BinaryType; + /** + * Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network. + * + * If the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.) + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/bufferedAmount) + */ + readonly bufferedAmount: number; + /** + * Returns the extensions selected by the server, if any. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/extensions) + */ + readonly extensions: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close_event) */ + onclose: ((this: WebSocket, ev: CloseEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/error_event) */ + onerror: ((this: WebSocket, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/message_event) */ + onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/open_event) */ + onopen: ((this: WebSocket, ev: Event) => any) | null; + /** + * Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/protocol) + */ + readonly protocol: string; + /** + * Returns the state of the WebSocket object's connection. It can have the values described below. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState) + */ + readonly readyState: number; + /** + * Returns the URL that was used to establish the WebSocket connection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/url) + */ + readonly url: string; + /** + * Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close) + */ + close(code?: number, reason?: string): void; + /** + * Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send) + */ + send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void; + readonly CONNECTING: 0; + readonly OPEN: 1; + readonly CLOSING: 2; + readonly CLOSED: 3; + addEventListener( + type: K, + listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var WebSocket: { - prototype: WebSocket; - new(url: string | URL, protocols?: string | string[]): WebSocket; - readonly CONNECTING: 0; - readonly OPEN: 1; - readonly CLOSING: 2; - readonly CLOSED: 3; + prototype: WebSocket; + new (url: string | URL, protocols?: string | string[]): WebSocket; + readonly CONNECTING: 0; + readonly OPEN: 1; + readonly CLOSING: 2; + readonly CLOSED: 3; }; /** @@ -26198,27 +32071,31 @@ declare var WebSocket: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport) */ interface WebTransport { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */ - readonly closed: Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ - readonly datagrams: WebTransportDatagramDuplexStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingBidirectionalStreams) */ - readonly incomingBidirectionalStreams: ReadableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ - readonly incomingUnidirectionalStreams: ReadableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */ - readonly ready: Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close) */ - close(closeInfo?: WebTransportCloseInfo): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ - createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */ - createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */ + readonly closed: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */ + readonly datagrams: WebTransportDatagramDuplexStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingBidirectionalStreams) */ + readonly incomingBidirectionalStreams: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ + readonly incomingUnidirectionalStreams: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */ + readonly ready: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close) */ + close(closeInfo?: WebTransportCloseInfo): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ + createBidirectionalStream( + options?: WebTransportSendStreamOptions, + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */ + createUnidirectionalStream( + options?: WebTransportSendStreamOptions, + ): Promise; } declare var WebTransport: { - prototype: WebTransport; - new(url: string | URL, options?: WebTransportOptions): WebTransport; + prototype: WebTransport; + new (url: string | URL, options?: WebTransportOptions): WebTransport; }; /** @@ -26227,15 +32104,15 @@ declare var WebTransport: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream) */ interface WebTransportBidirectionalStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/readable) */ - readonly readable: ReadableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/writable) */ - readonly writable: WritableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/readable) */ + readonly readable: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/writable) */ + readonly writable: WritableStream; } declare var WebTransportBidirectionalStream: { - prototype: WebTransportBidirectionalStream; - new(): WebTransportBidirectionalStream; + prototype: WebTransportBidirectionalStream; + new (): WebTransportBidirectionalStream; }; /** @@ -26244,25 +32121,25 @@ declare var WebTransportBidirectionalStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream) */ interface WebTransportDatagramDuplexStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark) */ - incomingHighWaterMark: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */ - incomingMaxAge: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize) */ - readonly maxDatagramSize: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark) */ - outgoingHighWaterMark: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */ - outgoingMaxAge: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable) */ - readonly readable: ReadableStream; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ - readonly writable: WritableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark) */ + incomingHighWaterMark: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */ + incomingMaxAge: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize) */ + readonly maxDatagramSize: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark) */ + outgoingHighWaterMark: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */ + outgoingMaxAge: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable) */ + readonly readable: ReadableStream; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */ + readonly writable: WritableStream; } declare var WebTransportDatagramDuplexStream: { - prototype: WebTransportDatagramDuplexStream; - new(): WebTransportDatagramDuplexStream; + prototype: WebTransportDatagramDuplexStream; + new (): WebTransportDatagramDuplexStream; }; /** @@ -26271,15 +32148,15 @@ declare var WebTransportDatagramDuplexStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError) */ interface WebTransportError extends DOMException { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/source) */ - readonly source: WebTransportErrorSource; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/streamErrorCode) */ - readonly streamErrorCode: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/source) */ + readonly source: WebTransportErrorSource; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/streamErrorCode) */ + readonly streamErrorCode: number | null; } declare var WebTransportError: { - prototype: WebTransportError; - new(message?: string, options?: WebTransportErrorOptions): WebTransportError; + prototype: WebTransportError; + new (message?: string, options?: WebTransportErrorOptions): WebTransportError; }; /** @@ -26288,35 +32165,36 @@ declare var WebTransportError: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent) */ interface WheelEvent extends MouseEvent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaMode) */ - readonly deltaMode: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaX) */ - readonly deltaX: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaY) */ - readonly deltaY: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaZ) */ - readonly deltaZ: number; - readonly DOM_DELTA_PIXEL: 0x00; - readonly DOM_DELTA_LINE: 0x01; - readonly DOM_DELTA_PAGE: 0x02; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaMode) */ + readonly deltaMode: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaX) */ + readonly deltaX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaY) */ + readonly deltaY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaZ) */ + readonly deltaZ: number; + readonly DOM_DELTA_PIXEL: 0x00; + readonly DOM_DELTA_LINE: 0x01; + readonly DOM_DELTA_PAGE: 0x02; } declare var WheelEvent: { - prototype: WheelEvent; - new(type: string, eventInitDict?: WheelEventInit): WheelEvent; - readonly DOM_DELTA_PIXEL: 0x00; - readonly DOM_DELTA_LINE: 0x01; - readonly DOM_DELTA_PAGE: 0x02; + prototype: WheelEvent; + new (type: string, eventInitDict?: WheelEventInit): WheelEvent; + readonly DOM_DELTA_PIXEL: 0x00; + readonly DOM_DELTA_LINE: 0x01; + readonly DOM_DELTA_PAGE: 0x02; }; -interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap { - "DOMContentLoaded": Event; - "devicemotion": DeviceMotionEvent; - "deviceorientation": DeviceOrientationEvent; - "deviceorientationabsolute": DeviceOrientationEvent; - "gamepadconnected": GamepadEvent; - "gamepaddisconnected": GamepadEvent; - "orientationchange": Event; +interface WindowEventMap + extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap { + DOMContentLoaded: Event; + devicemotion: DeviceMotionEvent; + deviceorientation: DeviceOrientationEvent; + deviceorientationabsolute: DeviceOrientationEvent; + gamepadconnected: GamepadEvent; + gamepaddisconnected: GamepadEvent; + orientationchange: Event; } /** @@ -26324,407 +32202,505 @@ 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 { - /** - * @deprecated This is a legacy alias of `navigator`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator) - */ - readonly clientInformation: Navigator; - /** - * Returns true if the window has been closed, false otherwise. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/closed) - */ - readonly closed: boolean; - /** - * Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements) - */ - readonly customElements: CustomElementRegistry; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicePixelRatio) */ - readonly devicePixelRatio: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/document) */ - readonly document: Document; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/event) - */ - readonly event: Event | undefined; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/external) - */ - readonly external: External; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frameElement) */ - readonly frameElement: Element | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frames) */ - readonly frames: WindowProxy; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/history) */ - readonly history: History; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerHeight) */ - readonly innerHeight: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerWidth) */ - readonly innerWidth: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/length) */ - readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/location) */ - get location(): Location; - set location(href: string | Location); - /** - * Returns true if the location bar is visible; otherwise, returns false. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/locationbar) - */ - readonly locationbar: BarProp; - /** - * Returns true if the menu bar is visible; otherwise, returns false. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/menubar) - */ - readonly menubar: BarProp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/name) */ - name: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator) */ - readonly navigator: Navigator; - /** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicemotion_event) - */ - ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null; - /** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientation_event) - */ - ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null; - /** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientationabsolute_event) - */ - ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientationchange_event) - */ - onorientationchange: ((this: Window, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/opener) */ - opener: any; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientation) - */ - readonly orientation: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerHeight) */ - readonly outerHeight: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerWidth) */ - readonly outerWidth: number; - /** - * @deprecated This is a legacy alias of `scrollX`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) - */ - readonly pageXOffset: number; - /** - * @deprecated This is a legacy alias of `scrollY`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) - */ - readonly pageYOffset: number; - /** - * Refers to either the parent WindowProxy, or itself. - * - * It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/parent) - */ - readonly parent: WindowProxy; - /** - * Returns true if the personal bar is visible; otherwise, returns false. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/personalbar) - */ - readonly personalbar: BarProp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screen) */ - readonly screen: Screen; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenLeft) */ - readonly screenLeft: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenTop) */ - readonly screenTop: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenX) */ - readonly screenX: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenY) */ - readonly screenY: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) */ - readonly scrollX: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) */ - readonly scrollY: number; - /** - * Returns true if the scrollbars are visible; otherwise, returns false. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollbars) - */ - readonly scrollbars: BarProp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/self) */ - readonly self: Window & typeof globalThis; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/speechSynthesis) */ - readonly speechSynthesis: SpeechSynthesis; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/status) - */ - status: string; - /** - * Returns true if the status bar is visible; otherwise, returns false. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/statusbar) - */ - readonly statusbar: BarProp; - /** - * Returns true if the toolbar is visible; otherwise, returns false. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/toolbar) - */ - readonly toolbar: BarProp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top) */ - readonly top: WindowProxy | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/visualViewport) */ - readonly visualViewport: VisualViewport | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window) */ - readonly window: Window & typeof globalThis; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert) */ - alert(message?: any): void; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur) - */ - blur(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback) */ - cancelIdleCallback(handle: number): void; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/captureEvents) - */ - captureEvents(): void; - /** - * Closes the window. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/close) - */ - close(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/confirm) */ - confirm(message?: string): boolean; - /** - * Moves the focus to the window's browsing context, if any. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/focus) - */ - focus(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle) */ - getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getSelection) */ - getSelection(): Selection | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/matchMedia) */ - matchMedia(query: string): MediaQueryList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveBy) */ - moveBy(x: number, y: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveTo) */ - moveTo(x: number, y: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/open) */ - open(url?: string | URL, target?: string, features?: string): WindowProxy | null; - /** - * Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects. - * - * Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side. - * - * A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only. - * - * If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*". - * - * Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/postMessage) - */ - postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void; - postMessage(message: any, options?: WindowPostMessageOptions): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/print) */ - print(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/prompt) */ - prompt(message?: string, _default?: string): string | null; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/releaseEvents) - */ - releaseEvents(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/requestIdleCallback) */ - requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeBy) */ - resizeBy(x: number, y: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeTo) */ - resizeTo(width: number, height: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll) */ - scroll(options?: ScrollToOptions): void; - scroll(x: number, y: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy) */ - scrollBy(options?: ScrollToOptions): void; - scrollBy(x: number, y: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo) */ - scrollTo(options?: ScrollToOptions): void; - scrollTo(x: number, y: number): void; - /** - * Cancels the document load. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/stop) - */ - stop(): void; - addEventListener(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; - [index: number]: Window; +interface Window + extends + EventTarget, + AnimationFrameProvider, + GlobalEventHandlers, + WindowEventHandlers, + WindowLocalStorage, + WindowOrWorkerGlobalScope, + WindowSessionStorage { + /** + * @deprecated This is a legacy alias of `navigator`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator) + */ + readonly clientInformation: Navigator; + /** + * Returns true if the window has been closed, false otherwise. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/closed) + */ + readonly closed: boolean; + /** + * Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements) + */ + readonly customElements: CustomElementRegistry; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicePixelRatio) */ + readonly devicePixelRatio: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/document) */ + readonly document: Document; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/event) + */ + readonly event: Event | undefined; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/external) + */ + readonly external: External; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frameElement) */ + readonly frameElement: Element | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frames) */ + readonly frames: WindowProxy; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/history) */ + readonly history: History; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerHeight) */ + readonly innerHeight: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerWidth) */ + readonly innerWidth: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/location) */ + get location(): Location; + set location(href: string | Location); + /** + * Returns true if the location bar is visible; otherwise, returns false. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/locationbar) + */ + readonly locationbar: BarProp; + /** + * Returns true if the menu bar is visible; otherwise, returns false. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/menubar) + */ + readonly menubar: BarProp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/name) */ + name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator) */ + readonly navigator: Navigator; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicemotion_event) + */ + ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientation_event) + */ + ondeviceorientation: + | ((this: Window, ev: DeviceOrientationEvent) => any) + | null; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientationabsolute_event) + */ + ondeviceorientationabsolute: + | ((this: Window, ev: DeviceOrientationEvent) => any) + | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientationchange_event) + */ + onorientationchange: ((this: Window, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/opener) */ + opener: any; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientation) + */ + readonly orientation: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerHeight) */ + readonly outerHeight: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerWidth) */ + readonly outerWidth: number; + /** + * @deprecated This is a legacy alias of `scrollX`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) + */ + readonly pageXOffset: number; + /** + * @deprecated This is a legacy alias of `scrollY`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) + */ + readonly pageYOffset: number; + /** + * Refers to either the parent WindowProxy, or itself. + * + * It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/parent) + */ + readonly parent: WindowProxy; + /** + * Returns true if the personal bar is visible; otherwise, returns false. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/personalbar) + */ + readonly personalbar: BarProp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screen) */ + readonly screen: Screen; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenLeft) */ + readonly screenLeft: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenTop) */ + readonly screenTop: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenX) */ + readonly screenX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenY) */ + readonly screenY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) */ + readonly scrollX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) */ + readonly scrollY: number; + /** + * Returns true if the scrollbars are visible; otherwise, returns false. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollbars) + */ + readonly scrollbars: BarProp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/self) */ + readonly self: Window & typeof globalThis; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/speechSynthesis) */ + readonly speechSynthesis: SpeechSynthesis; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/status) + */ + status: string; + /** + * Returns true if the status bar is visible; otherwise, returns false. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/statusbar) + */ + readonly statusbar: BarProp; + /** + * Returns true if the toolbar is visible; otherwise, returns false. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/toolbar) + */ + readonly toolbar: BarProp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top) */ + readonly top: WindowProxy | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/visualViewport) */ + readonly visualViewport: VisualViewport | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window) */ + readonly window: Window & typeof globalThis; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert) */ + alert(message?: any): void; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur) + */ + blur(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback) */ + cancelIdleCallback(handle: number): void; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/captureEvents) + */ + captureEvents(): void; + /** + * Closes the window. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/close) + */ + close(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/confirm) */ + confirm(message?: string): boolean; + /** + * Moves the focus to the window's browsing context, if any. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/focus) + */ + focus(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle) */ + getComputedStyle( + elt: Element, + pseudoElt?: string | null, + ): CSSStyleDeclaration; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getSelection) */ + getSelection(): Selection | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/matchMedia) */ + matchMedia(query: string): MediaQueryList; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveBy) */ + moveBy(x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveTo) */ + moveTo(x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/open) */ + open( + url?: string | URL, + target?: string, + features?: string, + ): WindowProxy | null; + /** + * Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects. + * + * Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side. + * + * A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only. + * + * If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*". + * + * Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/postMessage) + */ + postMessage( + message: any, + targetOrigin: string, + transfer?: Transferable[], + ): void; + postMessage(message: any, options?: WindowPostMessageOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/print) */ + print(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/prompt) */ + prompt(message?: string, _default?: string): string | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/releaseEvents) + */ + releaseEvents(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/requestIdleCallback) */ + requestIdleCallback( + callback: IdleRequestCallback, + options?: IdleRequestOptions, + ): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeBy) */ + resizeBy(x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeTo) */ + resizeTo(width: number, height: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll) */ + scroll(options?: ScrollToOptions): void; + scroll(x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy) */ + scrollBy(options?: ScrollToOptions): void; + scrollBy(x: number, y: number): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo) */ + scrollTo(options?: ScrollToOptions): void; + scrollTo(x: number, y: number): void; + /** + * Cancels the document load. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/stop) + */ + stop(): void; + addEventListener( + type: K, + listener: (this: Window, ev: WindowEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: Window, ev: WindowEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; + [index: number]: Window; } declare var Window: { - prototype: Window; - new(): Window; + prototype: Window; + new (): Window; }; interface WindowEventHandlersEventMap { - "afterprint": Event; - "beforeprint": Event; - "beforeunload": BeforeUnloadEvent; - "gamepadconnected": GamepadEvent; - "gamepaddisconnected": GamepadEvent; - "hashchange": HashChangeEvent; - "languagechange": Event; - "message": MessageEvent; - "messageerror": MessageEvent; - "offline": Event; - "online": Event; - "pagehide": PageTransitionEvent; - "pageshow": PageTransitionEvent; - "popstate": PopStateEvent; - "rejectionhandled": PromiseRejectionEvent; - "storage": StorageEvent; - "unhandledrejection": PromiseRejectionEvent; - "unload": Event; + afterprint: Event; + beforeprint: Event; + beforeunload: BeforeUnloadEvent; + gamepadconnected: GamepadEvent; + gamepaddisconnected: GamepadEvent; + hashchange: HashChangeEvent; + languagechange: Event; + message: MessageEvent; + messageerror: MessageEvent; + offline: Event; + online: Event; + pagehide: PageTransitionEvent; + pageshow: PageTransitionEvent; + popstate: PopStateEvent; + rejectionhandled: PromiseRejectionEvent; + storage: StorageEvent; + unhandledrejection: PromiseRejectionEvent; + unload: Event; } interface WindowEventHandlers { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/afterprint_event) */ - onafterprint: ((this: WindowEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeprint_event) */ - onbeforeprint: ((this: WindowEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeunload_event) */ - onbeforeunload: ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepadconnected_event) */ - ongamepadconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepaddisconnected_event) */ - ongamepaddisconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/hashchange_event) */ - onhashchange: ((this: WindowEventHandlers, ev: HashChangeEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/languagechange_event) */ - onlanguagechange: ((this: WindowEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/message_event) */ - onmessage: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/messageerror_event) */ - onmessageerror: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/offline_event) */ - onoffline: ((this: WindowEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/online_event) */ - ononline: ((this: WindowEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagehide_event) */ - onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageshow_event) */ - onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/popstate_event) */ - onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/rejectionhandled_event) */ - onrejectionhandled: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/storage_event) */ - onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */ - onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event) - */ - onunload: ((this: WindowEventHandlers, ev: Event) => any) | null; - addEventListener(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/afterprint_event) */ + onafterprint: ((this: WindowEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeprint_event) */ + onbeforeprint: ((this: WindowEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeunload_event) */ + onbeforeunload: + | ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepadconnected_event) */ + ongamepadconnected: + | ((this: WindowEventHandlers, ev: GamepadEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepaddisconnected_event) */ + ongamepaddisconnected: + | ((this: WindowEventHandlers, ev: GamepadEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/hashchange_event) */ + onhashchange: + | ((this: WindowEventHandlers, ev: HashChangeEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/languagechange_event) */ + onlanguagechange: ((this: WindowEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/message_event) */ + onmessage: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/messageerror_event) */ + onmessageerror: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/offline_event) */ + onoffline: ((this: WindowEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/online_event) */ + ononline: ((this: WindowEventHandlers, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagehide_event) */ + onpagehide: + | ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageshow_event) */ + onpageshow: + | ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/popstate_event) */ + onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/rejectionhandled_event) */ + onrejectionhandled: + | ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) + | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/storage_event) */ + onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */ + onunhandledrejection: + | ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) + | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event) + */ + onunload: ((this: WindowEventHandlers, ev: Event) => any) | null; + addEventListener( + type: K, + listener: ( + this: WindowEventHandlers, + ev: WindowEventHandlersEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: WindowEventHandlers, + ev: WindowEventHandlersEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } interface WindowLocalStorage { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/localStorage) */ - readonly localStorage: Storage; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/localStorage) */ + readonly localStorage: Storage; } interface WindowOrWorkerGlobalScope { - /** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/caches) - */ - readonly caches: CacheStorage; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crossOriginIsolated) */ - readonly crossOriginIsolated: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crypto) */ - readonly crypto: Crypto; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/indexedDB) */ - readonly indexedDB: IDBFactory; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/isSecureContext) */ - readonly isSecureContext: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/origin) */ - readonly origin: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */ - readonly performance: Performance; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */ - atob(data: string): string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */ - btoa(data: string): string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearInterval) */ - clearInterval(id: number | undefined): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout) */ - clearTimeout(id: number | undefined): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) */ - createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise; - createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */ - fetch(input: RequestInfo | URL, init?: RequestInit): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */ - queueMicrotask(callback: VoidFunction): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */ - reportError(e: any): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */ - setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */ - setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/structuredClone) */ - structuredClone(value: T, options?: StructuredSerializeOptions): T; + /** + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/caches) + */ + readonly caches: CacheStorage; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crossOriginIsolated) */ + readonly crossOriginIsolated: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crypto) */ + readonly crypto: Crypto; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/indexedDB) */ + readonly indexedDB: IDBFactory; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/isSecureContext) */ + readonly isSecureContext: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/origin) */ + readonly origin: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */ + readonly performance: Performance; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */ + atob(data: string): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */ + btoa(data: string): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearInterval) */ + clearInterval(id: number | undefined): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout) */ + clearTimeout(id: number | undefined): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) */ + createImageBitmap( + image: ImageBitmapSource, + options?: ImageBitmapOptions, + ): Promise; + createImageBitmap( + image: ImageBitmapSource, + sx: number, + sy: number, + sw: number, + sh: number, + options?: ImageBitmapOptions, + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */ + fetch(input: RequestInfo | URL, init?: RequestInit): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */ + queueMicrotask(callback: VoidFunction): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */ + reportError(e: any): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */ + setInterval( + handler: TimerHandler, + timeout?: number, + ...arguments: any[] + ): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */ + setTimeout( + handler: TimerHandler, + timeout?: number, + ...arguments: any[] + ): number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/structuredClone) */ + structuredClone(value: T, options?: StructuredSerializeOptions): T; } interface WindowSessionStorage { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/sessionStorage) */ - readonly sessionStorage: Storage; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/sessionStorage) */ + readonly sessionStorage: Storage; } interface WorkerEventMap extends AbstractWorkerEventMap { - "message": MessageEvent; - "messageerror": MessageEvent; + message: MessageEvent; + messageerror: MessageEvent; } /** @@ -26733,32 +32709,48 @@ interface WorkerEventMap extends AbstractWorkerEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker) */ interface Worker extends EventTarget, AbstractWorker { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/message_event) */ - onmessage: ((this: Worker, ev: MessageEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/messageerror_event) */ - onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null; - /** - * Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/postMessage) - */ - postMessage(message: any, transfer: Transferable[]): void; - postMessage(message: any, options?: StructuredSerializeOptions): void; - /** - * Aborts worker's associated global environment. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/terminate) - */ - terminate(): void; - addEventListener(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/message_event) */ + onmessage: ((this: Worker, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/messageerror_event) */ + onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null; + /** + * Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/postMessage) + */ + postMessage(message: any, transfer: Transferable[]): void; + postMessage(message: any, options?: StructuredSerializeOptions): void; + /** + * Aborts worker's associated global environment. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/terminate) + */ + terminate(): void; + addEventListener( + type: K, + listener: (this: Worker, ev: WorkerEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: Worker, ev: WorkerEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var Worker: { - prototype: Worker; - new(scriptURL: string | URL, options?: WorkerOptions): Worker; + prototype: Worker; + new (scriptURL: string | URL, options?: WorkerOptions): Worker; }; /** @@ -26767,21 +32759,21 @@ declare var Worker: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worklet) */ interface Worklet { - /** - * Loads and executes the module script given by moduleURL into all of worklet's global scopes. It can also create additional global scopes as part of this process, depending on the worklet type. The returned promise will fulfill once the script has been successfully loaded and run in all global scopes. - * - * The credentials option can be set to a credentials mode to modify the script-fetching process. It defaults to "same-origin". - * - * Any failures in fetching the script or its dependencies will cause the returned promise to be rejected with an "AbortError" DOMException. Any errors in parsing the script or its dependencies will cause the returned promise to be rejected with the exception generated during parsing. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worklet/addModule) - */ - addModule(moduleURL: string | URL, options?: WorkletOptions): Promise; + /** + * Loads and executes the module script given by moduleURL into all of worklet's global scopes. It can also create additional global scopes as part of this process, depending on the worklet type. The returned promise will fulfill once the script has been successfully loaded and run in all global scopes. + * + * The credentials option can be set to a credentials mode to modify the script-fetching process. It defaults to "same-origin". + * + * Any failures in fetching the script or its dependencies will cause the returned promise to be rejected with an "AbortError" DOMException. Any errors in parsing the script or its dependencies will cause the returned promise to be rejected with the exception generated during parsing. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worklet/addModule) + */ + addModule(moduleURL: string | URL, options?: WorkletOptions): Promise; } declare var Worklet: { - prototype: Worklet; - new(): Worklet; + prototype: Worklet; + new (): Worklet; }; /** @@ -26790,19 +32782,22 @@ declare var Worklet: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream) */ interface WritableStream { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked) */ - readonly locked: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort) */ - abort(reason?: any): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close) */ - close(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter) */ - getWriter(): WritableStreamDefaultWriter; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked) */ + readonly locked: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort) */ + abort(reason?: any): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close) */ + close(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter) */ + getWriter(): WritableStreamDefaultWriter; } declare var WritableStream: { - prototype: WritableStream; - new(underlyingSink?: UnderlyingSink, strategy?: QueuingStrategy): WritableStream; + prototype: WritableStream; + new ( + underlyingSink?: UnderlyingSink, + strategy?: QueuingStrategy, + ): WritableStream; }; /** @@ -26811,15 +32806,15 @@ declare var WritableStream: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController) */ interface WritableStreamDefaultController { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal) */ - readonly signal: AbortSignal; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) */ - error(e?: any): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal) */ + readonly signal: AbortSignal; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) */ + error(e?: any): void; } declare var WritableStreamDefaultController: { - prototype: WritableStreamDefaultController; - new(): WritableStreamDefaultController; + prototype: WritableStreamDefaultController; + new (): WritableStreamDefaultController; }; /** @@ -26828,25 +32823,25 @@ declare var WritableStreamDefaultController: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter) */ interface WritableStreamDefaultWriter { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed) */ - readonly closed: Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize) */ - readonly desiredSize: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready) */ - readonly ready: Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort) */ - abort(reason?: any): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close) */ - close(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock) */ - releaseLock(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write) */ - write(chunk?: W): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed) */ + readonly closed: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize) */ + readonly desiredSize: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready) */ + readonly ready: Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort) */ + abort(reason?: any): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close) */ + close(): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock) */ + releaseLock(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write) */ + write(chunk?: W): Promise; } declare var WritableStreamDefaultWriter: { - prototype: WritableStreamDefaultWriter; - new(stream: WritableStream): WritableStreamDefaultWriter; + prototype: WritableStreamDefaultWriter; + new (stream: WritableStream): WritableStreamDefaultWriter; }; /** @@ -26855,19 +32850,35 @@ declare var WritableStreamDefaultWriter: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLDocument) */ interface XMLDocument extends Document { - addEventListener(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var XMLDocument: { - prototype: XMLDocument; - new(): XMLDocument; + prototype: XMLDocument; + new (): XMLDocument; }; interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap { - "readystatechange": Event; + readystatechange: Event; } /** @@ -26876,189 +32887,255 @@ interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest) */ interface XMLHttpRequest extends XMLHttpRequestEventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readystatechange_event) */ - onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null; - /** - * Returns client's state. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readyState) - */ - readonly readyState: number; - /** - * Returns the response body. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/response) - */ - readonly response: any; - /** - * Returns response as text. - * - * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text". - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseText) - */ - readonly responseText: string; - /** - * Returns the response type. - * - * Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text". - * - * When set: setting to "document" is ignored if current global object is not a Window object. - * - * When set: throws an "InvalidStateError" DOMException if state is loading or done. - * - * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseType) - */ - responseType: XMLHttpRequestResponseType; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseURL) */ - readonly responseURL: string; - /** - * Returns the response as document. - * - * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "document". - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseXML) - */ - readonly responseXML: Document | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/status) */ - readonly status: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/statusText) */ - readonly statusText: string; - /** - * Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this's synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method). - * - * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/timeout) - */ - timeout: number; - /** - * Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/upload) - */ - readonly upload: XMLHttpRequestUpload; - /** - * True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false. - * - * When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/withCredentials) - */ - withCredentials: boolean; - /** - * Cancels any network activity. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/abort) - */ - abort(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getAllResponseHeaders) */ - getAllResponseHeaders(): string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getResponseHeader) */ - getResponseHeader(name: string): string | null; - /** - * Sets the request method, request URL, and synchronous flag. - * - * Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed. - * - * Throws a "SecurityError" DOMException if method is a case-insensitive match for `CONNECT`, `TRACE`, or `TRACK`. - * - * Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/open) - */ - open(method: string, url: string | URL): void; - open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void; - /** - * Acts as if the `Content-Type` header value for a response is mime. (It does not change the header.) - * - * Throws an "InvalidStateError" DOMException if state is loading or done. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/overrideMimeType) - */ - overrideMimeType(mime: string): void; - /** - * Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD. - * - * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/send) - */ - send(body?: Document | XMLHttpRequestBodyInit | null): void; - /** - * Combines a header in author request headers. - * - * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set. - * - * Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/setRequestHeader) - */ - setRequestHeader(name: string, value: string): void; - readonly UNSENT: 0; - readonly OPENED: 1; - readonly HEADERS_RECEIVED: 2; - readonly LOADING: 3; - readonly DONE: 4; - addEventListener(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readystatechange_event) */ + onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null; + /** + * Returns client's state. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readyState) + */ + readonly readyState: number; + /** + * Returns the response body. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/response) + */ + readonly response: any; + /** + * Returns response as text. + * + * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseText) + */ + readonly responseText: string; + /** + * Returns the response type. + * + * Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text". + * + * When set: setting to "document" is ignored if current global object is not a Window object. + * + * When set: throws an "InvalidStateError" DOMException if state is loading or done. + * + * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseType) + */ + responseType: XMLHttpRequestResponseType; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseURL) */ + readonly responseURL: string; + /** + * Returns the response as document. + * + * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "document". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseXML) + */ + readonly responseXML: Document | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/status) */ + readonly status: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/statusText) */ + readonly statusText: string; + /** + * Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this's synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method). + * + * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/timeout) + */ + timeout: number; + /** + * Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/upload) + */ + readonly upload: XMLHttpRequestUpload; + /** + * True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false. + * + * When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/withCredentials) + */ + withCredentials: boolean; + /** + * Cancels any network activity. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/abort) + */ + abort(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getAllResponseHeaders) */ + getAllResponseHeaders(): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getResponseHeader) */ + getResponseHeader(name: string): string | null; + /** + * Sets the request method, request URL, and synchronous flag. + * + * Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed. + * + * Throws a "SecurityError" DOMException if method is a case-insensitive match for `CONNECT`, `TRACE`, or `TRACK`. + * + * Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/open) + */ + open(method: string, url: string | URL): void; + open( + method: string, + url: string | URL, + async: boolean, + username?: string | null, + password?: string | null, + ): void; + /** + * Acts as if the `Content-Type` header value for a response is mime. (It does not change the header.) + * + * Throws an "InvalidStateError" DOMException if state is loading or done. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/overrideMimeType) + */ + overrideMimeType(mime: string): void; + /** + * Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD. + * + * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/send) + */ + send(body?: Document | XMLHttpRequestBodyInit | null): void; + /** + * Combines a header in author request headers. + * + * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set. + * + * Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/setRequestHeader) + */ + setRequestHeader(name: string, value: string): void; + readonly UNSENT: 0; + readonly OPENED: 1; + readonly HEADERS_RECEIVED: 2; + readonly LOADING: 3; + readonly DONE: 4; + addEventListener( + type: K, + listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var XMLHttpRequest: { - prototype: XMLHttpRequest; - new(): XMLHttpRequest; - readonly UNSENT: 0; - readonly OPENED: 1; - readonly HEADERS_RECEIVED: 2; - readonly LOADING: 3; - readonly DONE: 4; + prototype: XMLHttpRequest; + new (): XMLHttpRequest; + readonly UNSENT: 0; + readonly OPENED: 1; + readonly HEADERS_RECEIVED: 2; + readonly LOADING: 3; + readonly DONE: 4; }; interface XMLHttpRequestEventTargetEventMap { - "abort": ProgressEvent; - "error": ProgressEvent; - "load": ProgressEvent; - "loadend": ProgressEvent; - "loadstart": ProgressEvent; - "progress": ProgressEvent; - "timeout": ProgressEvent; + abort: ProgressEvent; + error: ProgressEvent; + load: ProgressEvent; + loadend: ProgressEvent; + loadstart: ProgressEvent; + progress: ProgressEvent; + timeout: ProgressEvent; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestEventTarget) */ interface XMLHttpRequestEventTarget extends EventTarget { - onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; - onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; - onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; - onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; - onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; - onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; - ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; - addEventListener(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; + onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; + onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; + onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; + onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; + onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; + ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null; + addEventListener( + type: K, + listener: ( + this: XMLHttpRequestEventTarget, + ev: XMLHttpRequestEventTargetEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: XMLHttpRequestEventTarget, + ev: XMLHttpRequestEventTargetEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var XMLHttpRequestEventTarget: { - prototype: XMLHttpRequestEventTarget; - new(): XMLHttpRequestEventTarget; + prototype: XMLHttpRequestEventTarget; + new (): XMLHttpRequestEventTarget; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestUpload) */ interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget { - addEventListener(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; + addEventListener( + type: K, + listener: ( + this: XMLHttpRequestUpload, + ev: XMLHttpRequestEventTargetEventMap[K], + ) => any, + options?: boolean | AddEventListenerOptions, + ): void; + addEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | AddEventListenerOptions, + ): void; + removeEventListener( + type: K, + listener: ( + this: XMLHttpRequestUpload, + ev: XMLHttpRequestEventTargetEventMap[K], + ) => any, + options?: boolean | EventListenerOptions, + ): void; + removeEventListener( + type: string, + listener: EventListenerOrEventListenerObject, + options?: boolean | EventListenerOptions, + ): void; } declare var XMLHttpRequestUpload: { - prototype: XMLHttpRequestUpload; - new(): XMLHttpRequestUpload; + prototype: XMLHttpRequestUpload; + new (): XMLHttpRequestUpload; }; /** @@ -27067,13 +33144,13 @@ declare var XMLHttpRequestUpload: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLSerializer) */ interface XMLSerializer { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLSerializer/serializeToString) */ - serializeToString(root: Node): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLSerializer/serializeToString) */ + serializeToString(root: Node): string; } declare var XMLSerializer: { - prototype: XMLSerializer; - new(): XMLSerializer; + prototype: XMLSerializer; + new (): XMLSerializer; }; /** @@ -27081,25 +33158,33 @@ declare var XMLSerializer: { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathEvaluator) */ -interface XPathEvaluator extends XPathEvaluatorBase { -} +interface XPathEvaluator extends XPathEvaluatorBase {} declare var XPathEvaluator: { - prototype: XPathEvaluator; - new(): XPathEvaluator; + prototype: XPathEvaluator; + new (): XPathEvaluator; }; interface XPathEvaluatorBase { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createExpression) */ - createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createNSResolver) - */ - createNSResolver(nodeResolver: Node): Node; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/evaluate) */ - evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createExpression) */ + createExpression( + expression: string, + resolver?: XPathNSResolver | null, + ): XPathExpression; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createNSResolver) + */ + createNSResolver(nodeResolver: Node): Node; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/evaluate) */ + evaluate( + expression: string, + contextNode: Node, + resolver?: XPathNSResolver | null, + type?: number, + result?: XPathResult | null, + ): XPathResult; } /** @@ -27108,13 +33193,17 @@ interface XPathEvaluatorBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathExpression) */ interface XPathExpression { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathExpression/evaluate) */ - evaluate(contextNode: Node, type?: number, result?: XPathResult | null): XPathResult; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathExpression/evaluate) */ + evaluate( + contextNode: Node, + type?: number, + result?: XPathResult | null, + ): XPathResult; } declare var XPathExpression: { - prototype: XPathExpression; - new(): XPathExpression; + prototype: XPathExpression; + new (): XPathExpression; }; /** @@ -27123,49 +33212,49 @@ declare var XPathExpression: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult) */ interface XPathResult { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/booleanValue) */ - readonly booleanValue: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/invalidIteratorState) */ - readonly invalidIteratorState: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/numberValue) */ - readonly numberValue: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/resultType) */ - readonly resultType: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/singleNodeValue) */ - readonly singleNodeValue: Node | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/snapshotLength) */ - readonly snapshotLength: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/stringValue) */ - readonly stringValue: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/iterateNext) */ - iterateNext(): Node | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/snapshotItem) */ - snapshotItem(index: number): Node | null; - readonly ANY_TYPE: 0; - readonly NUMBER_TYPE: 1; - readonly STRING_TYPE: 2; - readonly BOOLEAN_TYPE: 3; - readonly UNORDERED_NODE_ITERATOR_TYPE: 4; - readonly ORDERED_NODE_ITERATOR_TYPE: 5; - readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6; - readonly ORDERED_NODE_SNAPSHOT_TYPE: 7; - readonly ANY_UNORDERED_NODE_TYPE: 8; - readonly FIRST_ORDERED_NODE_TYPE: 9; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/booleanValue) */ + readonly booleanValue: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/invalidIteratorState) */ + readonly invalidIteratorState: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/numberValue) */ + readonly numberValue: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/resultType) */ + readonly resultType: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/singleNodeValue) */ + readonly singleNodeValue: Node | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/snapshotLength) */ + readonly snapshotLength: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/stringValue) */ + readonly stringValue: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/iterateNext) */ + iterateNext(): Node | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/snapshotItem) */ + snapshotItem(index: number): Node | null; + readonly ANY_TYPE: 0; + readonly NUMBER_TYPE: 1; + readonly STRING_TYPE: 2; + readonly BOOLEAN_TYPE: 3; + readonly UNORDERED_NODE_ITERATOR_TYPE: 4; + readonly ORDERED_NODE_ITERATOR_TYPE: 5; + readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6; + readonly ORDERED_NODE_SNAPSHOT_TYPE: 7; + readonly ANY_UNORDERED_NODE_TYPE: 8; + readonly FIRST_ORDERED_NODE_TYPE: 9; } declare var XPathResult: { - prototype: XPathResult; - new(): XPathResult; - readonly ANY_TYPE: 0; - readonly NUMBER_TYPE: 1; - readonly STRING_TYPE: 2; - readonly BOOLEAN_TYPE: 3; - readonly UNORDERED_NODE_ITERATOR_TYPE: 4; - readonly ORDERED_NODE_ITERATOR_TYPE: 5; - readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6; - readonly ORDERED_NODE_SNAPSHOT_TYPE: 7; - readonly ANY_UNORDERED_NODE_TYPE: 8; - readonly FIRST_ORDERED_NODE_TYPE: 9; + prototype: XPathResult; + new (): XPathResult; + readonly ANY_TYPE: 0; + readonly NUMBER_TYPE: 1; + readonly STRING_TYPE: 2; + readonly BOOLEAN_TYPE: 3; + readonly UNORDERED_NODE_ITERATOR_TYPE: 4; + readonly ORDERED_NODE_ITERATOR_TYPE: 5; + readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6; + readonly ORDERED_NODE_SNAPSHOT_TYPE: 7; + readonly ANY_UNORDERED_NODE_TYPE: 8; + readonly FIRST_ORDERED_NODE_TYPE: 9; }; /** @@ -27174,799 +33263,834 @@ declare var XPathResult: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor) */ interface XSLTProcessor { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/clearParameters) */ - clearParameters(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/getParameter) */ - getParameter(namespaceURI: string | null, localName: string): any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/importStylesheet) */ - importStylesheet(style: Node): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/removeParameter) */ - removeParameter(namespaceURI: string | null, localName: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/reset) */ - reset(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/setParameter) */ - setParameter(namespaceURI: string | null, localName: string, value: any): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToDocument) */ - transformToDocument(source: Node): Document; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToFragment) */ - transformToFragment(source: Node, output: Document): DocumentFragment; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/clearParameters) */ + clearParameters(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/getParameter) */ + getParameter(namespaceURI: string | null, localName: string): any; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/importStylesheet) */ + importStylesheet(style: Node): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/removeParameter) */ + removeParameter(namespaceURI: string | null, localName: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/reset) */ + reset(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/setParameter) */ + setParameter( + namespaceURI: string | null, + localName: string, + value: any, + ): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToDocument) */ + transformToDocument(source: Node): Document; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToFragment) */ + transformToFragment(source: Node, output: Document): DocumentFragment; } declare var XSLTProcessor: { - prototype: XSLTProcessor; - new(): XSLTProcessor; + prototype: XSLTProcessor; + new (): XSLTProcessor; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console) */ interface Console { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static) */ - assert(condition?: boolean, ...data: any[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static) */ - clear(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static) */ - count(label?: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static) */ - countReset(label?: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static) */ - debug(...data: any[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */ - dir(item?: any, options?: any): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static) */ - dirxml(...data: any[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static) */ - error(...data: any[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static) */ - group(...data: any[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static) */ - groupCollapsed(...data: any[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static) */ - groupEnd(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static) */ - info(...data: any[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static) */ - log(...data: any[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static) */ - table(tabularData?: any, properties?: string[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static) */ - time(label?: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static) */ - timeEnd(label?: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static) */ - timeLog(label?: string, ...data: any[]): void; - timeStamp(label?: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static) */ - trace(...data: any[]): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static) */ - warn(...data: any[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static) */ + assert(condition?: boolean, ...data: any[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static) */ + clear(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static) */ + count(label?: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static) */ + countReset(label?: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static) */ + debug(...data: any[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */ + dir(item?: any, options?: any): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static) */ + dirxml(...data: any[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static) */ + error(...data: any[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static) */ + group(...data: any[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static) */ + groupCollapsed(...data: any[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static) */ + groupEnd(): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static) */ + info(...data: any[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static) */ + log(...data: any[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static) */ + table(tabularData?: any, properties?: string[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static) */ + time(label?: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static) */ + timeEnd(label?: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static) */ + timeLog(label?: string, ...data: any[]): void; + timeStamp(label?: string): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static) */ + trace(...data: any[]): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static) */ + warn(...data: any[]): void; } declare var console: Console; /** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */ declare namespace CSS { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/highlights_static) */ - var highlights: HighlightRegistry; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function Hz(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function Q(value: number): CSSUnitValue; - function cap(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function ch(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function cm(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function cqb(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function cqh(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function cqi(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function cqmax(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function cqmin(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function cqw(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function deg(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function dpcm(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function dpi(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function dppx(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function dvb(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function dvh(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function dvi(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function dvmax(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function dvmin(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function dvw(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function em(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/escape_static) */ - function escape(ident: string): string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function ex(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function fr(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function grad(value: number): CSSUnitValue; - function ic(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function kHz(value: number): CSSUnitValue; - function lh(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function lvb(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function lvh(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function lvi(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function lvmax(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function lvmin(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function lvw(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function mm(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function ms(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function number(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function pc(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function percent(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function pt(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function px(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function rad(value: number): CSSUnitValue; - function rcap(value: number): CSSUnitValue; - function rch(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/registerProperty_static) */ - function registerProperty(definition: PropertyDefinition): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function rem(value: number): CSSUnitValue; - function rex(value: number): CSSUnitValue; - function ric(value: number): CSSUnitValue; - function rlh(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function s(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/supports_static) */ - function supports(property: string, value: string): boolean; - function supports(conditionText: string): boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function svb(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function svh(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function svi(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function svmax(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function svmin(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function svw(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function turn(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function vb(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function vh(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function vi(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function vmax(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function vmin(value: number): CSSUnitValue; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ - function vw(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/highlights_static) */ + var highlights: HighlightRegistry; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function Hz(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function Q(value: number): CSSUnitValue; + function cap(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function ch(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function cm(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function cqb(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function cqh(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function cqi(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function cqmax(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function cqmin(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function cqw(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function deg(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function dpcm(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function dpi(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function dppx(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function dvb(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function dvh(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function dvi(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function dvmax(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function dvmin(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function dvw(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function em(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/escape_static) */ + function escape(ident: string): string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function ex(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function fr(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function grad(value: number): CSSUnitValue; + function ic(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function kHz(value: number): CSSUnitValue; + function lh(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function lvb(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function lvh(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function lvi(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function lvmax(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function lvmin(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function lvw(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function mm(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function ms(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function number(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function pc(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function percent(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function pt(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function px(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function rad(value: number): CSSUnitValue; + function rcap(value: number): CSSUnitValue; + function rch(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/registerProperty_static) */ + function registerProperty(definition: PropertyDefinition): void; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function rem(value: number): CSSUnitValue; + function rex(value: number): CSSUnitValue; + function ric(value: number): CSSUnitValue; + function rlh(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function s(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/supports_static) */ + function supports(property: string, value: string): boolean; + function supports(conditionText: string): boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function svb(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function svh(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function svi(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function svmax(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function svmin(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function svw(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function turn(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function vb(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function vh(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function vi(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function vmax(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function vmin(value: number): CSSUnitValue; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */ + function vw(value: number): CSSUnitValue; } declare namespace WebAssembly { - interface CompileError extends Error { - } - - var CompileError: { - prototype: CompileError; - new(message?: string): CompileError; - (message?: string): CompileError; - }; - - /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global) */ - interface Global { - value: ValueTypeMap[T]; - valueOf(): ValueTypeMap[T]; - } - - var Global: { - prototype: Global; - new(descriptor: GlobalDescriptor, v?: ValueTypeMap[T]): Global; - }; - - /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Instance) */ - interface Instance { - /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Instance/exports) */ - readonly exports: Exports; - } - - var Instance: { - prototype: Instance; - new(module: Module, importObject?: Imports): Instance; - }; - - interface LinkError extends Error { - } - - var LinkError: { - prototype: LinkError; - new(message?: string): LinkError; - (message?: string): LinkError; - }; - - /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory) */ - interface Memory { - /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/buffer) */ - readonly buffer: ArrayBuffer; - /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/grow) */ - grow(delta: number): number; - } - - var Memory: { - prototype: Memory; - new(descriptor: MemoryDescriptor): Memory; - }; - - /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module) */ - interface Module { - } - - var Module: { - prototype: Module; - new(bytes: BufferSource): Module; - /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/customSections_static) */ - customSections(moduleObject: Module, sectionName: string): ArrayBuffer[]; - /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/exports_static) */ - exports(moduleObject: Module): ModuleExportDescriptor[]; - /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/imports_static) */ - imports(moduleObject: Module): ModuleImportDescriptor[]; - }; - - interface RuntimeError extends Error { - } - - var RuntimeError: { - prototype: RuntimeError; - new(message?: string): RuntimeError; - (message?: string): RuntimeError; - }; - - /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table) */ - interface Table { - /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/length) */ - readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/get) */ - get(index: number): any; - /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/grow) */ - grow(delta: number, value?: any): number; - /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/set) */ - set(index: number, value?: any): void; - } - - var Table: { - prototype: Table; - new(descriptor: TableDescriptor, value?: any): Table; - }; - - interface GlobalDescriptor { - mutable?: boolean; - value: T; - } - - interface MemoryDescriptor { - initial: number; - maximum?: number; - shared?: boolean; - } - - interface ModuleExportDescriptor { - kind: ImportExportKind; - name: string; - } - - interface ModuleImportDescriptor { - kind: ImportExportKind; - module: string; - name: string; - } - - interface TableDescriptor { - element: TableKind; - initial: number; - maximum?: number; - } - - interface ValueTypeMap { - anyfunc: Function; - externref: any; - f32: number; - f64: number; - i32: number; - i64: bigint; - v128: never; - } - - interface WebAssemblyInstantiatedSource { - instance: Instance; - module: Module; - } - - type ImportExportKind = "function" | "global" | "memory" | "table"; - type TableKind = "anyfunc" | "externref"; - type ExportValue = Function | Global | Memory | Table; - type Exports = Record; - type ImportValue = ExportValue | number; - type Imports = Record; - type ModuleImports = Record; - type ValueType = keyof ValueTypeMap; - /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compileStreaming_static) */ - function compileStreaming(source: Response | PromiseLike): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports): Promise; - function instantiate(moduleObject: Module, importObject?: Imports): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiateStreaming_static) */ - function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource): boolean; + interface CompileError extends Error {} + + var CompileError: { + prototype: CompileError; + new (message?: string): CompileError; + (message?: string): CompileError; + }; + + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global) */ + interface Global { + value: ValueTypeMap[T]; + valueOf(): ValueTypeMap[T]; + } + + var Global: { + prototype: Global; + new ( + descriptor: GlobalDescriptor, + v?: ValueTypeMap[T], + ): Global; + }; + + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Instance) */ + interface Instance { + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Instance/exports) */ + readonly exports: Exports; + } + + var Instance: { + prototype: Instance; + new (module: Module, importObject?: Imports): Instance; + }; + + interface LinkError extends Error {} + + var LinkError: { + prototype: LinkError; + new (message?: string): LinkError; + (message?: string): LinkError; + }; + + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory) */ + interface Memory { + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/buffer) */ + readonly buffer: ArrayBuffer; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/grow) */ + grow(delta: number): number; + } + + var Memory: { + prototype: Memory; + new (descriptor: MemoryDescriptor): Memory; + }; + + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module) */ + interface Module {} + + var Module: { + prototype: Module; + new (bytes: BufferSource): Module; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/customSections_static) */ + customSections(moduleObject: Module, sectionName: string): ArrayBuffer[]; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/exports_static) */ + exports(moduleObject: Module): ModuleExportDescriptor[]; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/imports_static) */ + imports(moduleObject: Module): ModuleImportDescriptor[]; + }; + + interface RuntimeError extends Error {} + + var RuntimeError: { + prototype: RuntimeError; + new (message?: string): RuntimeError; + (message?: string): RuntimeError; + }; + + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table) */ + interface Table { + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/length) */ + readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/get) */ + get(index: number): any; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/grow) */ + grow(delta: number, value?: any): number; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/set) */ + set(index: number, value?: any): void; + } + + var Table: { + prototype: Table; + new (descriptor: TableDescriptor, value?: any): Table; + }; + + interface GlobalDescriptor { + mutable?: boolean; + value: T; + } + + interface MemoryDescriptor { + initial: number; + maximum?: number; + shared?: boolean; + } + + interface ModuleExportDescriptor { + kind: ImportExportKind; + name: string; + } + + interface ModuleImportDescriptor { + kind: ImportExportKind; + module: string; + name: string; + } + + interface TableDescriptor { + element: TableKind; + initial: number; + maximum?: number; + } + + interface ValueTypeMap { + anyfunc: Function; + externref: any; + f32: number; + f64: number; + i32: number; + i64: bigint; + v128: never; + } + + interface WebAssemblyInstantiatedSource { + instance: Instance; + module: Module; + } + + type ImportExportKind = "function" | "global" | "memory" | "table"; + type TableKind = "anyfunc" | "externref"; + type ExportValue = Function | Global | Memory | Table; + type Exports = Record; + type ImportValue = ExportValue | number; + type Imports = Record; + type ModuleImports = Record; + type ValueType = keyof ValueTypeMap; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compile_static) */ + function compile(bytes: BufferSource): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compileStreaming_static) */ + function compileStreaming( + source: Response | PromiseLike, + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiate_static) */ + function instantiate( + bytes: BufferSource, + importObject?: Imports, + ): Promise; + function instantiate( + moduleObject: Module, + importObject?: Imports, + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiateStreaming_static) */ + function instantiateStreaming( + source: Response | PromiseLike, + importObject?: Imports, + ): Promise; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/validate_static) */ + function validate(bytes: BufferSource): boolean; } interface AudioDataOutputCallback { - (output: AudioData): void; + (output: AudioData): void; } interface BlobCallback { - (blob: Blob | null): void; + (blob: Blob | null): void; } interface CustomElementConstructor { - new (...params: any[]): HTMLElement; + new (...params: any[]): HTMLElement; } interface DecodeErrorCallback { - (error: DOMException): void; + (error: DOMException): void; } interface DecodeSuccessCallback { - (decodedData: AudioBuffer): void; + (decodedData: AudioBuffer): void; } interface EncodedAudioChunkOutputCallback { - (output: EncodedAudioChunk, metadata?: EncodedAudioChunkMetadata): void; + (output: EncodedAudioChunk, metadata?: EncodedAudioChunkMetadata): void; } interface EncodedVideoChunkOutputCallback { - (chunk: EncodedVideoChunk, metadata?: EncodedVideoChunkMetadata): void; + (chunk: EncodedVideoChunk, metadata?: EncodedVideoChunkMetadata): void; } interface ErrorCallback { - (err: DOMException): void; + (err: DOMException): void; } interface FileCallback { - (file: File): void; + (file: File): void; } interface FileSystemEntriesCallback { - (entries: FileSystemEntry[]): void; + (entries: FileSystemEntry[]): void; } interface FileSystemEntryCallback { - (entry: FileSystemEntry): void; + (entry: FileSystemEntry): void; } interface FrameRequestCallback { - (time: DOMHighResTimeStamp): void; + (time: DOMHighResTimeStamp): void; } interface FunctionStringCallback { - (data: string): void; + (data: string): void; } interface IdleRequestCallback { - (deadline: IdleDeadline): void; + (deadline: IdleDeadline): void; } interface IntersectionObserverCallback { - (entries: IntersectionObserverEntry[], observer: IntersectionObserver): void; + (entries: IntersectionObserverEntry[], observer: IntersectionObserver): void; } interface LockGrantedCallback { - (lock: Lock | null): any; + (lock: Lock | null): any; } interface MediaSessionActionHandler { - (details: MediaSessionActionDetails): void; + (details: MediaSessionActionDetails): void; } interface MutationCallback { - (mutations: MutationRecord[], observer: MutationObserver): void; + (mutations: MutationRecord[], observer: MutationObserver): void; } interface NotificationPermissionCallback { - (permission: NotificationPermission): void; + (permission: NotificationPermission): void; } interface OnBeforeUnloadEventHandlerNonNull { - (event: Event): string | null; + (event: Event): string | null; } interface OnErrorEventHandlerNonNull { - (event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any; + ( + event: Event | string, + source?: string, + lineno?: number, + colno?: number, + error?: Error, + ): any; } interface PerformanceObserverCallback { - (entries: PerformanceObserverEntryList, observer: PerformanceObserver): void; + (entries: PerformanceObserverEntryList, observer: PerformanceObserver): void; } interface PositionCallback { - (position: GeolocationPosition): void; + (position: GeolocationPosition): void; } interface PositionErrorCallback { - (positionError: GeolocationPositionError): void; + (positionError: GeolocationPositionError): void; } interface QueuingStrategySize { - (chunk: T): number; + (chunk: T): number; } interface RTCPeerConnectionErrorCallback { - (error: DOMException): void; + (error: DOMException): void; } interface RTCSessionDescriptionCallback { - (description: RTCSessionDescriptionInit): void; + (description: RTCSessionDescriptionInit): void; } interface RemotePlaybackAvailabilityCallback { - (available: boolean): void; + (available: boolean): void; } interface ReportingObserverCallback { - (reports: Report[], observer: ReportingObserver): void; + (reports: Report[], observer: ReportingObserver): void; } interface ResizeObserverCallback { - (entries: ResizeObserverEntry[], observer: ResizeObserver): void; + (entries: ResizeObserverEntry[], observer: ResizeObserver): void; } interface TransformerFlushCallback { - (controller: TransformStreamDefaultController): void | PromiseLike; + (controller: TransformStreamDefaultController): void | PromiseLike; } interface TransformerStartCallback { - (controller: TransformStreamDefaultController): any; + (controller: TransformStreamDefaultController): any; } interface TransformerTransformCallback { - (chunk: I, controller: TransformStreamDefaultController): void | PromiseLike; + ( + chunk: I, + controller: TransformStreamDefaultController, + ): void | PromiseLike; } interface UnderlyingSinkAbortCallback { - (reason?: any): void | PromiseLike; + (reason?: any): void | PromiseLike; } interface UnderlyingSinkCloseCallback { - (): void | PromiseLike; + (): void | PromiseLike; } interface UnderlyingSinkStartCallback { - (controller: WritableStreamDefaultController): any; + (controller: WritableStreamDefaultController): any; } interface UnderlyingSinkWriteCallback { - (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike; + ( + chunk: W, + controller: WritableStreamDefaultController, + ): void | PromiseLike; } interface UnderlyingSourceCancelCallback { - (reason?: any): void | PromiseLike; + (reason?: any): void | PromiseLike; } interface UnderlyingSourcePullCallback { - (controller: ReadableStreamController): void | PromiseLike; + (controller: ReadableStreamController): void | PromiseLike; } interface UnderlyingSourceStartCallback { - (controller: ReadableStreamController): any; + (controller: ReadableStreamController): any; } interface VideoFrameOutputCallback { - (output: VideoFrame): void; + (output: VideoFrame): void; } interface VideoFrameRequestCallback { - (now: DOMHighResTimeStamp, metadata: VideoFrameCallbackMetadata): void; + (now: DOMHighResTimeStamp, metadata: VideoFrameCallbackMetadata): void; } interface ViewTransitionUpdateCallback { - (): any; + (): any; } interface VoidFunction { - (): void; + (): void; } interface WebCodecsErrorCallback { - (error: DOMException): void; + (error: DOMException): void; } interface HTMLElementTagNameMap { - "a": HTMLAnchorElement; - "abbr": HTMLElement; - "address": HTMLElement; - "area": HTMLAreaElement; - "article": HTMLElement; - "aside": HTMLElement; - "audio": HTMLAudioElement; - "b": HTMLElement; - "base": HTMLBaseElement; - "bdi": HTMLElement; - "bdo": HTMLElement; - "blockquote": HTMLQuoteElement; - "body": HTMLBodyElement; - "br": HTMLBRElement; - "button": HTMLButtonElement; - "canvas": HTMLCanvasElement; - "caption": HTMLTableCaptionElement; - "cite": HTMLElement; - "code": HTMLElement; - "col": HTMLTableColElement; - "colgroup": HTMLTableColElement; - "data": HTMLDataElement; - "datalist": HTMLDataListElement; - "dd": HTMLElement; - "del": HTMLModElement; - "details": HTMLDetailsElement; - "dfn": HTMLElement; - "dialog": HTMLDialogElement; - "div": HTMLDivElement; - "dl": HTMLDListElement; - "dt": HTMLElement; - "em": HTMLElement; - "embed": HTMLEmbedElement; - "fieldset": HTMLFieldSetElement; - "figcaption": HTMLElement; - "figure": HTMLElement; - "footer": HTMLElement; - "form": HTMLFormElement; - "h1": HTMLHeadingElement; - "h2": HTMLHeadingElement; - "h3": HTMLHeadingElement; - "h4": HTMLHeadingElement; - "h5": HTMLHeadingElement; - "h6": HTMLHeadingElement; - "head": HTMLHeadElement; - "header": HTMLElement; - "hgroup": HTMLElement; - "hr": HTMLHRElement; - "html": HTMLHtmlElement; - "i": HTMLElement; - "iframe": HTMLIFrameElement; - "img": HTMLImageElement; - "input": HTMLInputElement; - "ins": HTMLModElement; - "kbd": HTMLElement; - "label": HTMLLabelElement; - "legend": HTMLLegendElement; - "li": HTMLLIElement; - "link": HTMLLinkElement; - "main": HTMLElement; - "map": HTMLMapElement; - "mark": HTMLElement; - "menu": HTMLMenuElement; - "meta": HTMLMetaElement; - "meter": HTMLMeterElement; - "nav": HTMLElement; - "noscript": HTMLElement; - "object": HTMLObjectElement; - "ol": HTMLOListElement; - "optgroup": HTMLOptGroupElement; - "option": HTMLOptionElement; - "output": HTMLOutputElement; - "p": HTMLParagraphElement; - "picture": HTMLPictureElement; - "pre": HTMLPreElement; - "progress": HTMLProgressElement; - "q": HTMLQuoteElement; - "rp": HTMLElement; - "rt": HTMLElement; - "ruby": HTMLElement; - "s": HTMLElement; - "samp": HTMLElement; - "script": HTMLScriptElement; - "search": HTMLElement; - "section": HTMLElement; - "select": HTMLSelectElement; - "slot": HTMLSlotElement; - "small": HTMLElement; - "source": HTMLSourceElement; - "span": HTMLSpanElement; - "strong": HTMLElement; - "style": HTMLStyleElement; - "sub": HTMLElement; - "summary": HTMLElement; - "sup": HTMLElement; - "table": HTMLTableElement; - "tbody": HTMLTableSectionElement; - "td": HTMLTableCellElement; - "template": HTMLTemplateElement; - "textarea": HTMLTextAreaElement; - "tfoot": HTMLTableSectionElement; - "th": HTMLTableCellElement; - "thead": HTMLTableSectionElement; - "time": HTMLTimeElement; - "title": HTMLTitleElement; - "tr": HTMLTableRowElement; - "track": HTMLTrackElement; - "u": HTMLElement; - "ul": HTMLUListElement; - "var": HTMLElement; - "video": HTMLVideoElement; - "wbr": HTMLElement; + a: HTMLAnchorElement; + abbr: HTMLElement; + address: HTMLElement; + area: HTMLAreaElement; + article: HTMLElement; + aside: HTMLElement; + audio: HTMLAudioElement; + b: HTMLElement; + base: HTMLBaseElement; + bdi: HTMLElement; + bdo: HTMLElement; + blockquote: HTMLQuoteElement; + body: HTMLBodyElement; + br: HTMLBRElement; + button: HTMLButtonElement; + canvas: HTMLCanvasElement; + caption: HTMLTableCaptionElement; + cite: HTMLElement; + code: HTMLElement; + col: HTMLTableColElement; + colgroup: HTMLTableColElement; + data: HTMLDataElement; + datalist: HTMLDataListElement; + dd: HTMLElement; + del: HTMLModElement; + details: HTMLDetailsElement; + dfn: HTMLElement; + dialog: HTMLDialogElement; + div: HTMLDivElement; + dl: HTMLDListElement; + dt: HTMLElement; + em: HTMLElement; + embed: HTMLEmbedElement; + fieldset: HTMLFieldSetElement; + figcaption: HTMLElement; + figure: HTMLElement; + footer: HTMLElement; + form: HTMLFormElement; + h1: HTMLHeadingElement; + h2: HTMLHeadingElement; + h3: HTMLHeadingElement; + h4: HTMLHeadingElement; + h5: HTMLHeadingElement; + h6: HTMLHeadingElement; + head: HTMLHeadElement; + header: HTMLElement; + hgroup: HTMLElement; + hr: HTMLHRElement; + html: HTMLHtmlElement; + i: HTMLElement; + iframe: HTMLIFrameElement; + img: HTMLImageElement; + input: HTMLInputElement; + ins: HTMLModElement; + kbd: HTMLElement; + label: HTMLLabelElement; + legend: HTMLLegendElement; + li: HTMLLIElement; + link: HTMLLinkElement; + main: HTMLElement; + map: HTMLMapElement; + mark: HTMLElement; + menu: HTMLMenuElement; + meta: HTMLMetaElement; + meter: HTMLMeterElement; + nav: HTMLElement; + noscript: HTMLElement; + object: HTMLObjectElement; + ol: HTMLOListElement; + optgroup: HTMLOptGroupElement; + option: HTMLOptionElement; + output: HTMLOutputElement; + p: HTMLParagraphElement; + picture: HTMLPictureElement; + pre: HTMLPreElement; + progress: HTMLProgressElement; + q: HTMLQuoteElement; + rp: HTMLElement; + rt: HTMLElement; + ruby: HTMLElement; + s: HTMLElement; + samp: HTMLElement; + script: HTMLScriptElement; + search: HTMLElement; + section: HTMLElement; + select: HTMLSelectElement; + slot: HTMLSlotElement; + small: HTMLElement; + source: HTMLSourceElement; + span: HTMLSpanElement; + strong: HTMLElement; + style: HTMLStyleElement; + sub: HTMLElement; + summary: HTMLElement; + sup: HTMLElement; + table: HTMLTableElement; + tbody: HTMLTableSectionElement; + td: HTMLTableCellElement; + template: HTMLTemplateElement; + textarea: HTMLTextAreaElement; + tfoot: HTMLTableSectionElement; + th: HTMLTableCellElement; + thead: HTMLTableSectionElement; + time: HTMLTimeElement; + title: HTMLTitleElement; + tr: HTMLTableRowElement; + track: HTMLTrackElement; + u: HTMLElement; + ul: HTMLUListElement; + var: HTMLElement; + video: HTMLVideoElement; + wbr: HTMLElement; } interface HTMLElementDeprecatedTagNameMap { - "acronym": HTMLElement; - "applet": HTMLUnknownElement; - "basefont": HTMLElement; - "bgsound": HTMLUnknownElement; - "big": HTMLElement; - "blink": HTMLUnknownElement; - "center": HTMLElement; - "dir": HTMLDirectoryElement; - "font": HTMLFontElement; - "frame": HTMLFrameElement; - "frameset": HTMLFrameSetElement; - "isindex": HTMLUnknownElement; - "keygen": HTMLUnknownElement; - "listing": HTMLPreElement; - "marquee": HTMLMarqueeElement; - "menuitem": HTMLElement; - "multicol": HTMLUnknownElement; - "nextid": HTMLUnknownElement; - "nobr": HTMLElement; - "noembed": HTMLElement; - "noframes": HTMLElement; - "param": HTMLParamElement; - "plaintext": HTMLElement; - "rb": HTMLElement; - "rtc": HTMLElement; - "spacer": HTMLUnknownElement; - "strike": HTMLElement; - "tt": HTMLElement; - "xmp": HTMLPreElement; + acronym: HTMLElement; + applet: HTMLUnknownElement; + basefont: HTMLElement; + bgsound: HTMLUnknownElement; + big: HTMLElement; + blink: HTMLUnknownElement; + center: HTMLElement; + dir: HTMLDirectoryElement; + font: HTMLFontElement; + frame: HTMLFrameElement; + frameset: HTMLFrameSetElement; + isindex: HTMLUnknownElement; + keygen: HTMLUnknownElement; + listing: HTMLPreElement; + marquee: HTMLMarqueeElement; + menuitem: HTMLElement; + multicol: HTMLUnknownElement; + nextid: HTMLUnknownElement; + nobr: HTMLElement; + noembed: HTMLElement; + noframes: HTMLElement; + param: HTMLParamElement; + plaintext: HTMLElement; + rb: HTMLElement; + rtc: HTMLElement; + spacer: HTMLUnknownElement; + strike: HTMLElement; + tt: HTMLElement; + xmp: HTMLPreElement; } interface SVGElementTagNameMap { - "a": SVGAElement; - "animate": SVGAnimateElement; - "animateMotion": SVGAnimateMotionElement; - "animateTransform": SVGAnimateTransformElement; - "circle": SVGCircleElement; - "clipPath": SVGClipPathElement; - "defs": SVGDefsElement; - "desc": SVGDescElement; - "ellipse": SVGEllipseElement; - "feBlend": SVGFEBlendElement; - "feColorMatrix": SVGFEColorMatrixElement; - "feComponentTransfer": SVGFEComponentTransferElement; - "feComposite": SVGFECompositeElement; - "feConvolveMatrix": SVGFEConvolveMatrixElement; - "feDiffuseLighting": SVGFEDiffuseLightingElement; - "feDisplacementMap": SVGFEDisplacementMapElement; - "feDistantLight": SVGFEDistantLightElement; - "feDropShadow": SVGFEDropShadowElement; - "feFlood": SVGFEFloodElement; - "feFuncA": SVGFEFuncAElement; - "feFuncB": SVGFEFuncBElement; - "feFuncG": SVGFEFuncGElement; - "feFuncR": SVGFEFuncRElement; - "feGaussianBlur": SVGFEGaussianBlurElement; - "feImage": SVGFEImageElement; - "feMerge": SVGFEMergeElement; - "feMergeNode": SVGFEMergeNodeElement; - "feMorphology": SVGFEMorphologyElement; - "feOffset": SVGFEOffsetElement; - "fePointLight": SVGFEPointLightElement; - "feSpecularLighting": SVGFESpecularLightingElement; - "feSpotLight": SVGFESpotLightElement; - "feTile": SVGFETileElement; - "feTurbulence": SVGFETurbulenceElement; - "filter": SVGFilterElement; - "foreignObject": SVGForeignObjectElement; - "g": SVGGElement; - "image": SVGImageElement; - "line": SVGLineElement; - "linearGradient": SVGLinearGradientElement; - "marker": SVGMarkerElement; - "mask": SVGMaskElement; - "metadata": SVGMetadataElement; - "mpath": SVGMPathElement; - "path": SVGPathElement; - "pattern": SVGPatternElement; - "polygon": SVGPolygonElement; - "polyline": SVGPolylineElement; - "radialGradient": SVGRadialGradientElement; - "rect": SVGRectElement; - "script": SVGScriptElement; - "set": SVGSetElement; - "stop": SVGStopElement; - "style": SVGStyleElement; - "svg": SVGSVGElement; - "switch": SVGSwitchElement; - "symbol": SVGSymbolElement; - "text": SVGTextElement; - "textPath": SVGTextPathElement; - "title": SVGTitleElement; - "tspan": SVGTSpanElement; - "use": SVGUseElement; - "view": SVGViewElement; + a: SVGAElement; + animate: SVGAnimateElement; + animateMotion: SVGAnimateMotionElement; + animateTransform: SVGAnimateTransformElement; + circle: SVGCircleElement; + clipPath: SVGClipPathElement; + defs: SVGDefsElement; + desc: SVGDescElement; + ellipse: SVGEllipseElement; + feBlend: SVGFEBlendElement; + feColorMatrix: SVGFEColorMatrixElement; + feComponentTransfer: SVGFEComponentTransferElement; + feComposite: SVGFECompositeElement; + feConvolveMatrix: SVGFEConvolveMatrixElement; + feDiffuseLighting: SVGFEDiffuseLightingElement; + feDisplacementMap: SVGFEDisplacementMapElement; + feDistantLight: SVGFEDistantLightElement; + feDropShadow: SVGFEDropShadowElement; + feFlood: SVGFEFloodElement; + feFuncA: SVGFEFuncAElement; + feFuncB: SVGFEFuncBElement; + feFuncG: SVGFEFuncGElement; + feFuncR: SVGFEFuncRElement; + feGaussianBlur: SVGFEGaussianBlurElement; + feImage: SVGFEImageElement; + feMerge: SVGFEMergeElement; + feMergeNode: SVGFEMergeNodeElement; + feMorphology: SVGFEMorphologyElement; + feOffset: SVGFEOffsetElement; + fePointLight: SVGFEPointLightElement; + feSpecularLighting: SVGFESpecularLightingElement; + feSpotLight: SVGFESpotLightElement; + feTile: SVGFETileElement; + feTurbulence: SVGFETurbulenceElement; + filter: SVGFilterElement; + foreignObject: SVGForeignObjectElement; + g: SVGGElement; + image: SVGImageElement; + line: SVGLineElement; + linearGradient: SVGLinearGradientElement; + marker: SVGMarkerElement; + mask: SVGMaskElement; + metadata: SVGMetadataElement; + mpath: SVGMPathElement; + path: SVGPathElement; + pattern: SVGPatternElement; + polygon: SVGPolygonElement; + polyline: SVGPolylineElement; + radialGradient: SVGRadialGradientElement; + rect: SVGRectElement; + script: SVGScriptElement; + set: SVGSetElement; + stop: SVGStopElement; + style: SVGStyleElement; + svg: SVGSVGElement; + switch: SVGSwitchElement; + symbol: SVGSymbolElement; + text: SVGTextElement; + textPath: SVGTextPathElement; + title: SVGTitleElement; + tspan: SVGTSpanElement; + use: SVGUseElement; + view: SVGViewElement; } interface MathMLElementTagNameMap { - "annotation": MathMLElement; - "annotation-xml": MathMLElement; - "maction": MathMLElement; - "math": MathMLElement; - "merror": MathMLElement; - "mfrac": MathMLElement; - "mi": MathMLElement; - "mmultiscripts": MathMLElement; - "mn": MathMLElement; - "mo": MathMLElement; - "mover": MathMLElement; - "mpadded": MathMLElement; - "mphantom": MathMLElement; - "mprescripts": MathMLElement; - "mroot": MathMLElement; - "mrow": MathMLElement; - "ms": MathMLElement; - "mspace": MathMLElement; - "msqrt": MathMLElement; - "mstyle": MathMLElement; - "msub": MathMLElement; - "msubsup": MathMLElement; - "msup": MathMLElement; - "mtable": MathMLElement; - "mtd": MathMLElement; - "mtext": MathMLElement; - "mtr": MathMLElement; - "munder": MathMLElement; - "munderover": MathMLElement; - "semantics": MathMLElement; + annotation: MathMLElement; + "annotation-xml": MathMLElement; + maction: MathMLElement; + math: MathMLElement; + merror: MathMLElement; + mfrac: MathMLElement; + mi: MathMLElement; + mmultiscripts: MathMLElement; + mn: MathMLElement; + mo: MathMLElement; + mover: MathMLElement; + mpadded: MathMLElement; + mphantom: MathMLElement; + mprescripts: MathMLElement; + mroot: MathMLElement; + mrow: MathMLElement; + ms: MathMLElement; + mspace: MathMLElement; + msqrt: MathMLElement; + mstyle: MathMLElement; + msub: MathMLElement; + msubsup: MathMLElement; + msup: MathMLElement; + mtable: MathMLElement; + mtd: MathMLElement; + mtext: MathMLElement; + mtr: MathMLElement; + munder: MathMLElement; + munderover: MathMLElement; + semantics: MathMLElement; } /** @deprecated Directly use HTMLElementTagNameMap or SVGElementTagNameMap as appropriate, instead. */ -type ElementTagNameMap = HTMLElementTagNameMap & Pick>; +type ElementTagNameMap = HTMLElementTagNameMap & + Pick< + SVGElementTagNameMap, + Exclude + >; declare var Audio: { - new(src?: string): HTMLAudioElement; + new (src?: string): HTMLAudioElement; }; declare var Image: { - new(width?: number, height?: number): HTMLImageElement; + new (width?: number, height?: number): HTMLImageElement; }; declare var Option: { - new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement; + new ( + text?: string, + value?: string, + defaultSelected?: boolean, + selected?: boolean, + ): HTMLOptionElement; }; /** * @deprecated This is a legacy alias of `navigator`. @@ -28038,19 +34162,25 @@ declare var navigator: Navigator; * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicemotion_event) */ -declare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null; +declare var ondevicemotion: + | ((this: Window, ev: DeviceMotionEvent) => any) + | null; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientation_event) */ -declare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null; +declare var ondeviceorientation: + | ((this: Window, ev: DeviceOrientationEvent) => any) + | null; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientationabsolute_event) */ -declare var ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null; +declare var ondeviceorientationabsolute: + | ((this: Window, ev: DeviceOrientationEvent) => any) + | null; /** * @deprecated * @@ -28174,7 +34304,10 @@ declare function confirm(message?: string): boolean; */ declare function focus(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle) */ -declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration; +declare function getComputedStyle( + elt: Element, + pseudoElt?: string | null, +): CSSStyleDeclaration; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getSelection) */ declare function getSelection(): Selection | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/matchMedia) */ @@ -28184,7 +34317,11 @@ declare function moveBy(x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveTo) */ declare function moveTo(x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/open) */ -declare function open(url?: string | URL, target?: string, features?: string): WindowProxy | null; +declare function open( + url?: string | URL, + target?: string, + features?: string, +): WindowProxy | null; /** * Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects. * @@ -28198,8 +34335,15 @@ declare function open(url?: string | URL, target?: string, features?: string): W * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/postMessage) */ -declare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void; -declare function postMessage(message: any, options?: WindowPostMessageOptions): void; +declare function postMessage( + message: any, + targetOrigin: string, + transfer?: Transferable[], +): void; +declare function postMessage( + message: any, + options?: WindowPostMessageOptions, +): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/print) */ declare function print(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/prompt) */ @@ -28211,7 +34355,10 @@ declare function prompt(message?: string, _default?: string): string | null; */ declare function releaseEvents(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/requestIdleCallback) */ -declare function requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number; +declare function requestIdleCallback( + callback: IdleRequestCallback, + options?: IdleRequestOptions, +): number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeBy) */ declare function resizeBy(x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeTo) */ @@ -28250,13 +34397,19 @@ declare function requestAnimationFrame(callback: FrameRequestCallback): number; */ declare var onabort: ((this: Window, ev: UIEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationcancel_event) */ -declare var onanimationcancel: ((this: Window, ev: AnimationEvent) => any) | null; +declare var onanimationcancel: + | ((this: Window, ev: AnimationEvent) => any) + | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */ declare var onanimationend: ((this: Window, ev: AnimationEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */ -declare var onanimationiteration: ((this: Window, ev: AnimationEvent) => any) | null; +declare var onanimationiteration: + | ((this: Window, ev: AnimationEvent) => any) + | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */ -declare var onanimationstart: ((this: Window, ev: AnimationEvent) => any) | null; +declare var onanimationstart: + | ((this: Window, ev: AnimationEvent) => any) + | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/auxclick_event) */ declare var onauxclick: ((this: Window, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */ @@ -28403,7 +34556,9 @@ declare var onfocus: ((this: Window, ev: FocusEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/formdata_event) */ declare var onformdata: ((this: Window, ev: FormDataEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/gotpointercapture_event) */ -declare var ongotpointercapture: ((this: Window, ev: PointerEvent) => any) | null; +declare var ongotpointercapture: + | ((this: Window, ev: PointerEvent) => any) + | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/input_event) */ declare var oninput: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */ @@ -28459,7 +34614,9 @@ declare var onloadedmetadata: ((this: Window, ev: Event) => any) | null; */ declare var onloadstart: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/lostpointercapture_event) */ -declare var onlostpointercapture: ((this: Window, ev: PointerEvent) => any) | null; +declare var onlostpointercapture: + | ((this: Window, ev: PointerEvent) => any) + | null; /** * Fires when the user clicks the object with either mouse button. * @param ev The mouse event. @@ -28571,7 +34728,9 @@ declare var onscroll: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */ declare var onscrollend: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */ -declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null; +declare var onsecuritypolicyviolation: + | ((this: Window, ev: SecurityPolicyViolationEvent) => any) + | null; /** * Occurs when the seek operation ends. * @param ev The event. @@ -28625,21 +34784,41 @@ declare var ontimeupdate: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/toggle_event) */ declare var ontoggle: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */ -declare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null | undefined; +declare var ontouchcancel: + | ((this: Window, ev: TouchEvent) => any) + | null + | undefined; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */ -declare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null | undefined; +declare var ontouchend: + | ((this: Window, ev: TouchEvent) => any) + | null + | undefined; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchmove_event) */ -declare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null | undefined; +declare var ontouchmove: + | ((this: Window, ev: TouchEvent) => any) + | null + | undefined; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchstart_event) */ -declare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null | undefined; +declare var ontouchstart: + | ((this: Window, ev: TouchEvent) => any) + | null + | undefined; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitioncancel_event) */ -declare var ontransitioncancel: ((this: Window, ev: TransitionEvent) => any) | null; +declare var ontransitioncancel: + | ((this: Window, ev: TransitionEvent) => any) + | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */ -declare var ontransitionend: ((this: Window, ev: TransitionEvent) => any) | null; +declare var ontransitionend: + | ((this: Window, ev: TransitionEvent) => any) + | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionrun_event) */ -declare var ontransitionrun: ((this: Window, ev: TransitionEvent) => any) | null; +declare var ontransitionrun: + | ((this: Window, ev: TransitionEvent) => any) + | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionstart_event) */ -declare var ontransitionstart: ((this: Window, ev: TransitionEvent) => any) | null; +declare var ontransitionstart: + | ((this: Window, ev: TransitionEvent) => any) + | null; /** * Occurs when the volume is changed, or playback is muted or unmuted. * @param ev The event. @@ -28665,7 +34844,9 @@ declare var onwebkitanimationend: ((this: Window, ev: Event) => any) | null; * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */ -declare var onwebkitanimationiteration: ((this: Window, ev: Event) => any) | null; +declare var onwebkitanimationiteration: + | ((this: Window, ev: Event) => any) + | null; /** * @deprecated This is a legacy alias of `onanimationstart`. * @@ -28685,11 +34866,17 @@ declare var onafterprint: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeprint_event) */ declare var onbeforeprint: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeunload_event) */ -declare var onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null; +declare var onbeforeunload: + | ((this: Window, ev: BeforeUnloadEvent) => any) + | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepadconnected_event) */ -declare var ongamepadconnected: ((this: Window, ev: GamepadEvent) => any) | null; +declare var ongamepadconnected: + | ((this: Window, ev: GamepadEvent) => any) + | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepaddisconnected_event) */ -declare var ongamepaddisconnected: ((this: Window, ev: GamepadEvent) => any) | null; +declare var ongamepaddisconnected: + | ((this: Window, ev: GamepadEvent) => any) + | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/hashchange_event) */ declare var onhashchange: ((this: Window, ev: HashChangeEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/languagechange_event) */ @@ -28709,11 +34896,15 @@ declare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/popstate_event) */ declare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/rejectionhandled_event) */ -declare var onrejectionhandled: ((this: Window, ev: PromiseRejectionEvent) => any) | null; +declare var onrejectionhandled: + | ((this: Window, ev: PromiseRejectionEvent) => any) + | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/storage_event) */ declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */ -declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null; +declare var onunhandledrejection: + | ((this: Window, ev: PromiseRejectionEvent) => any) + | null; /** * @deprecated * @@ -28749,30 +34940,74 @@ declare function clearInterval(id: number | undefined): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout) */ declare function clearTimeout(id: number | undefined): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) */ -declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise; -declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise; +declare function createImageBitmap( + image: ImageBitmapSource, + options?: ImageBitmapOptions, +): Promise; +declare function createImageBitmap( + image: ImageBitmapSource, + sx: number, + sy: number, + sw: number, + sh: number, + options?: ImageBitmapOptions, +): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */ -declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise; +declare function fetch( + input: RequestInfo | URL, + init?: RequestInit, +): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */ declare function queueMicrotask(callback: VoidFunction): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */ declare function reportError(e: any): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */ -declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; +declare function setInterval( + handler: TimerHandler, + timeout?: number, + ...arguments: any[] +): number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */ -declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; +declare function setTimeout( + handler: TimerHandler, + timeout?: number, + ...arguments: any[] +): number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/structuredClone) */ -declare function structuredClone(value: T, options?: StructuredSerializeOptions): T; +declare function structuredClone( + value: T, + options?: StructuredSerializeOptions, +): T; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/sessionStorage) */ declare var sessionStorage: Storage; -declare function addEventListener(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; -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; +declare function addEventListener( + type: K, + listener: (this: Window, ev: WindowEventMap[K]) => any, + options?: boolean | AddEventListenerOptions, +): void; +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 AlgorithmIdentifier = Algorithm | string; type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView; -type AutoFill = AutoFillBase | `${OptionalPrefixToken}${OptionalPrefixToken}${AutoFillField}${OptionalPostfixToken}`; -type AutoFillField = AutoFillNormalField | `${OptionalPrefixToken}${AutoFillContactField}`; +type AutoFill = + | AutoFillBase + | `${OptionalPrefixToken}${OptionalPrefixToken}${AutoFillField}${OptionalPostfixToken}`; +type AutoFillField = + | AutoFillNormalField + | `${OptionalPrefixToken}${AutoFillContactField}`; type AutoFillSection = `section-${string}`; type Base64URLString = string; type BigInteger = Uint8Array; @@ -28784,7 +35019,13 @@ type CSSKeywordish = string | CSSKeywordValue; type CSSNumberish = number | CSSNumericValue; type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish; type CSSUnparsedSegment = string | CSSVariableReferenceValue; -type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas | VideoFrame; +type CanvasImageSource = + | HTMLOrSVGImageElement + | HTMLVideoElement + | HTMLCanvasElement + | ImageBitmap + | OffscreenCanvas + | VideoFrame; type ClipboardItemData = Promise; type ClipboardItems = ClipboardItem[]; type ConstrainBoolean = boolean | ConstrainBooleanParameters; @@ -28821,7 +35062,11 @@ type MediaProvider = MediaStream | MediaSource | Blob; type MessageEventSource = WindowProxy | MessagePort | ServiceWorker; type MutationRecordType = "attributes" | "characterData" | "childList"; type NamedCurve = string; -type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext; +type OffscreenRenderingContext = + | OffscreenCanvasRenderingContext2D + | ImageBitmapRenderingContext + | WebGLRenderingContext + | WebGL2RenderingContext; type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null; type OnErrorEventHandler = OnErrorEventHandlerNonNull | null; type OptionalPostfixToken = ` ${T}` | ""; @@ -28829,55 +35074,193 @@ type OptionalPrefixToken = `${T} ` | ""; type PerformanceEntryList = PerformanceEntry[]; type PublicKeyCredentialJSON = any; type RTCRtpTransform = RTCRtpScriptTransform; -type ReadableStreamController = ReadableStreamDefaultController | ReadableByteStreamController; -type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableStreamReadDoneResult; -type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; -type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext; +type ReadableStreamController = + | ReadableStreamDefaultController + | ReadableByteStreamController; +type ReadableStreamReadResult = + | ReadableStreamReadValueResult + | ReadableStreamReadDoneResult; +type ReadableStreamReader = + | ReadableStreamDefaultReader + | ReadableStreamBYOBReader; +type RenderingContext = + | CanvasRenderingContext2D + | ImageBitmapRenderingContext + | WebGLRenderingContext + | WebGL2RenderingContext; type ReportList = Report[]; type RequestInfo = Request | string; -type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame; +type TexImageSource = + | ImageBitmap + | ImageData + | HTMLImageElement + | HTMLCanvasElement + | HTMLVideoElement + | OffscreenCanvas + | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; +type Transferable = + | OffscreenCanvas + | ImageBitmap + | MessagePort + | MediaSourceHandle + | ReadableStream + | WritableStream + | TransformStream + | AudioData + | VideoFrame + | RTCDataChannel + | ArrayBuffer; type Uint32List = Uint32Array | GLuint[]; type VibratePattern = number | number[]; type WindowProxy = Window; -type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; +type XMLHttpRequestBodyInit = + | Blob + | BufferSource + | FormData + | URLSearchParams + | string; type AlignSetting = "center" | "end" | "left" | "right" | "start"; type AlphaOption = "discard" | "keep"; type AnimationPlayState = "finished" | "idle" | "paused" | "running"; type AnimationReplaceState = "active" | "persisted" | "removed"; type AppendMode = "segments" | "sequence"; -type AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none"; +type AttestationConveyancePreference = + | "direct" + | "enterprise" + | "indirect" + | "none"; type AudioContextLatencyCategory = "balanced" | "interactive" | "playback"; type AudioContextState = "closed" | "running" | "suspended"; -type AudioSampleFormat = "f32" | "f32-planar" | "s16" | "s16-planar" | "s32" | "s32-planar" | "u8" | "u8-planar"; +type AudioSampleFormat = + | "f32" + | "f32-planar" + | "s16" + | "s16-planar" + | "s32" + | "s32-planar" + | "u8" + | "u8-planar"; type AuthenticatorAttachment = "cross-platform" | "platform"; type AuthenticatorTransport = "ble" | "hybrid" | "internal" | "nfc" | "usb"; type AutoFillAddressKind = "billing" | "shipping"; type AutoFillBase = "" | "off" | "on"; -type AutoFillContactField = "email" | "tel" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local" | "tel-local-prefix" | "tel-local-suffix" | "tel-national"; +type AutoFillContactField = + | "email" + | "tel" + | "tel-area-code" + | "tel-country-code" + | "tel-extension" + | "tel-local" + | "tel-local-prefix" + | "tel-local-suffix" + | "tel-national"; type AutoFillContactKind = "home" | "mobile" | "work"; type AutoFillCredentialField = "webauthn"; -type AutoFillNormalField = "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "bday-day" | "bday-month" | "bday-year" | "cc-csc" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-number" | "cc-type" | "country" | "country-name" | "current-password" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "name" | "new-password" | "one-time-code" | "organization" | "postal-code" | "street-address" | "transaction-amount" | "transaction-currency" | "username"; +type AutoFillNormalField = + | "additional-name" + | "address-level1" + | "address-level2" + | "address-level3" + | "address-level4" + | "address-line1" + | "address-line2" + | "address-line3" + | "bday-day" + | "bday-month" + | "bday-year" + | "cc-csc" + | "cc-exp" + | "cc-exp-month" + | "cc-exp-year" + | "cc-family-name" + | "cc-given-name" + | "cc-name" + | "cc-number" + | "cc-type" + | "country" + | "country-name" + | "current-password" + | "family-name" + | "given-name" + | "honorific-prefix" + | "honorific-suffix" + | "name" + | "new-password" + | "one-time-code" + | "organization" + | "postal-code" + | "street-address" + | "transaction-amount" + | "transaction-currency" + | "username"; type AutoKeyword = "auto"; type AutomationRate = "a-rate" | "k-rate"; type AvcBitstreamFormat = "annexb" | "avc"; type BinaryType = "arraybuffer" | "blob"; -type BiquadFilterType = "allpass" | "bandpass" | "highpass" | "highshelf" | "lowpass" | "lowshelf" | "notch" | "peaking"; +type BiquadFilterType = + | "allpass" + | "bandpass" + | "highpass" + | "highshelf" + | "lowpass" + | "lowshelf" + | "notch" + | "peaking"; type BitrateMode = "constant" | "variable"; -type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum"; -type CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time"; +type CSSMathOperator = + | "clamp" + | "invert" + | "max" + | "min" + | "negate" + | "product" + | "sum"; +type CSSNumericBaseType = + | "angle" + | "flex" + | "frequency" + | "length" + | "percent" + | "resolution" + | "time"; type CanPlayTypeResult = "" | "maybe" | "probably"; type CanvasDirection = "inherit" | "ltr" | "rtl"; type CanvasFillRule = "evenodd" | "nonzero"; type CanvasFontKerning = "auto" | "none" | "normal"; -type CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded"; -type CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase"; +type CanvasFontStretch = + | "condensed" + | "expanded" + | "extra-condensed" + | "extra-expanded" + | "normal" + | "semi-condensed" + | "semi-expanded" + | "ultra-condensed" + | "ultra-expanded"; +type CanvasFontVariantCaps = + | "all-petite-caps" + | "all-small-caps" + | "normal" + | "petite-caps" + | "small-caps" + | "titling-caps" + | "unicase"; type CanvasLineCap = "butt" | "round" | "square"; type CanvasLineJoin = "bevel" | "miter" | "round"; type CanvasTextAlign = "center" | "end" | "left" | "right" | "start"; -type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top"; -type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed"; +type CanvasTextBaseline = + | "alphabetic" + | "bottom" + | "hanging" + | "ideographic" + | "middle" + | "top"; +type CanvasTextRendering = + | "auto" + | "geometricPrecision" + | "optimizeLegibility" + | "optimizeSpeed"; type ChannelCountMode = "clamped-max" | "explicit" | "max"; type ChannelInterpretation = "discrete" | "speakers"; type ClientTypes = "all" | "sharedworker" | "window" | "worker"; @@ -28887,8 +35270,17 @@ type ColorSpaceConversion = "default" | "none"; type CompositeOperation = "accumulate" | "add" | "replace"; type CompositeOperationOrAuto = "accumulate" | "add" | "auto" | "replace"; type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; -type CredentialMediationRequirement = "conditional" | "optional" | "required" | "silent"; -type DOMParserSupportedType = "application/xhtml+xml" | "application/xml" | "image/svg+xml" | "text/html" | "text/xml"; +type CredentialMediationRequirement = + | "conditional" + | "optional" + | "required" + | "silent"; +type DOMParserSupportedType = + | "application/xhtml+xml" + | "application/xml" + | "image/svg+xml" + | "text/html" + | "text/xml"; type DirectionSetting = "" | "lr" | "rl"; type DisplayCaptureSurfaceType = "browser" | "monitor" | "window"; type DistanceModelType = "exponential" | "inverse" | "linear"; @@ -28907,8 +35299,37 @@ type FullscreenNavigationUI = "auto" | "hide" | "show"; type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble"; type GamepadHapticsResult = "complete" | "preempted"; type GamepadMappingType = "" | "standard" | "xr-standard"; -type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor"; -type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software"; +type GlobalCompositeOperation = + | "color" + | "color-burn" + | "color-dodge" + | "copy" + | "darken" + | "destination-atop" + | "destination-in" + | "destination-out" + | "destination-over" + | "difference" + | "exclusion" + | "hard-light" + | "hue" + | "lighten" + | "lighter" + | "luminosity" + | "multiply" + | "overlay" + | "saturation" + | "screen" + | "soft-light" + | "source-atop" + | "source-in" + | "source-out" + | "source-over" + | "xor"; +type HardwareAcceleration = + | "no-preference" + | "prefer-hardware" + | "prefer-software"; type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40"; type HighlightType = "grammar-error" | "highlight" | "spelling-error"; type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique"; @@ -28921,7 +35342,15 @@ type InsertPosition = "afterbegin" | "afterend" | "beforebegin" | "beforeend"; type IterationCompositeOperation = "accumulate" | "replace"; type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki"; type KeyType = "private" | "public" | "secret"; -type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey"; +type KeyUsage = + | "decrypt" + | "deriveBits" + | "deriveKey" + | "encrypt" + | "sign" + | "unwrapKey" + | "verify" + | "wrapKey"; type LatencyMode = "quality" | "realtime"; type LineAlignSetting = "center" | "end" | "start"; type LockMode = "exclusive" | "shared"; @@ -28931,28 +35360,78 @@ type MIDIPortType = "input" | "output"; type MediaDecodingType = "file" | "media-source" | "webrtc"; type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput"; type MediaEncodingType = "record" | "webrtc"; -type MediaKeyMessageType = "individualization-request" | "license-release" | "license-renewal" | "license-request"; -type MediaKeySessionClosedReason = "closed-by-application" | "hardware-context-reset" | "internal-error" | "release-acknowledged" | "resource-evicted"; +type MediaKeyMessageType = + | "individualization-request" + | "license-release" + | "license-renewal" + | "license-request"; +type MediaKeySessionClosedReason = + | "closed-by-application" + | "hardware-context-reset" + | "internal-error" + | "release-acknowledged" + | "resource-evicted"; type MediaKeySessionType = "persistent-license" | "temporary"; -type MediaKeyStatus = "expired" | "internal-error" | "output-downscaled" | "output-restricted" | "released" | "status-pending" | "usable" | "usable-in-future"; +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 MediaSessionAction = + | "nexttrack" + | "pause" + | "play" + | "previoustrack" + | "seekbackward" + | "seekforward" + | "seekto" + | "skipad" + | "stop"; type MediaSessionPlaybackState = "none" | "paused" | "playing"; type MediaStreamTrackState = "ended" | "live"; -type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload"; +type NavigationTimingType = + | "back_forward" + | "navigate" + | "prerender" + | "reload"; type NotificationDirection = "auto" | "ltr" | "rtl"; type NotificationPermission = "default" | "denied" | "granted"; -type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu"; +type OffscreenRenderingContextId = + | "2d" + | "bitmaprenderer" + | "webgl" + | "webgl2" + | "webgpu"; type OpusBitstreamFormat = "ogg" | "opus"; -type OrientationType = "landscape-primary" | "landscape-secondary" | "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"; type PanningModelType = "HRTF" | "equalpower"; type PaymentComplete = "fail" | "success" | "unknown"; type PaymentShippingType = "delivery" | "pickup" | "shipping"; -type PermissionName = "geolocation" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access"; +type PermissionName = + | "geolocation" + | "midi" + | "notifications" + | "persistent-storage" + | "push" + | "screen-wake-lock" + | "storage-access"; type PermissionState = "denied" | "granted" | "prompt"; -type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse"; +type PlaybackDirection = + | "alternate" + | "alternate-reverse" + | "normal" + | "reverse"; type PositionAlignSetting = "auto" | "center" | "line-left" | "line-right"; type PredefinedColorSpace = "display-p3" | "srgb"; type PremultiplyAlpha = "default" | "none" | "premultiply"; @@ -28961,56 +35440,189 @@ 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 RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new"; +type RTCDegradationPreference = + | "balanced" + | "maintain-framerate" + | "maintain-resolution"; +type RTCDtlsTransportState = + | "closed" + | "connected" + | "connecting" + | "failed" + | "new"; type RTCEncodedVideoFrameType = "delta" | "empty" | "key"; -type RTCErrorDetailType = "data-channel-failure" | "dtls-failure" | "fingerprint-failure" | "hardware-encoder-error" | "hardware-encoder-not-available" | "sctp-failure" | "sdp-syntax-error"; +type RTCErrorDetailType = + | "data-channel-failure" + | "dtls-failure" + | "fingerprint-failure" + | "hardware-encoder-error" + | "hardware-encoder-not-available" + | "sctp-failure" + | "sdp-syntax-error"; type RTCIceCandidateType = "host" | "prflx" | "relay" | "srflx"; type RTCIceComponent = "rtcp" | "rtp"; -type RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new"; +type RTCIceConnectionState = + | "checking" + | "closed" + | "completed" + | "connected" + | "disconnected" + | "failed" + | "new"; type RTCIceGathererState = "complete" | "gathering" | "new"; type RTCIceGatheringState = "complete" | "gathering" | "new"; type RTCIceProtocol = "tcp" | "udp"; type RTCIceTcpCandidateType = "active" | "passive" | "so"; type RTCIceTransportPolicy = "all" | "relay"; -type RTCIceTransportState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new"; -type RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnected" | "failed" | "new"; +type RTCIceTransportState = + | "checking" + | "closed" + | "completed" + | "connected" + | "disconnected" + | "failed" + | "new"; +type RTCPeerConnectionState = + | "closed" + | "connected" + | "connecting" + | "disconnected" + | "failed" + | "new"; type RTCPriorityType = "high" | "low" | "medium" | "very-low"; type RTCRtcpMuxPolicy = "require"; -type RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped"; +type RTCRtpTransceiverDirection = + | "inactive" + | "recvonly" + | "sendonly" + | "sendrecv" + | "stopped"; type RTCSctpTransportState = "closed" | "connected" | "connecting"; type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback"; -type RTCSignalingState = "closed" | "have-local-offer" | "have-local-pranswer" | "have-remote-offer" | "have-remote-pranswer" | "stable"; -type RTCStatsIceCandidatePairState = "failed" | "frozen" | "in-progress" | "inprogress" | "succeeded" | "waiting"; -type RTCStatsType = "candidate-pair" | "certificate" | "codec" | "data-channel" | "inbound-rtp" | "local-candidate" | "media-playout" | "media-source" | "outbound-rtp" | "peer-connection" | "remote-candidate" | "remote-inbound-rtp" | "remote-outbound-rtp" | "transport"; +type RTCSignalingState = + | "closed" + | "have-local-offer" + | "have-local-pranswer" + | "have-remote-offer" + | "have-remote-pranswer" + | "stable"; +type RTCStatsIceCandidatePairState = + | "failed" + | "frozen" + | "in-progress" + | "inprogress" + | "succeeded" + | "waiting"; +type RTCStatsType = + | "candidate-pair" + | "certificate" + | "codec" + | "data-channel" + | "inbound-rtp" + | "local-candidate" + | "media-playout" + | "media-source" + | "outbound-rtp" + | "peer-connection" + | "remote-candidate" + | "remote-inbound-rtp" + | "remote-outbound-rtp" + | "transport"; type ReadableStreamReaderMode = "byob"; type ReadableStreamType = "bytes"; type ReadyState = "closed" | "ended" | "open"; type RecordingState = "inactive" | "paused" | "recording"; -type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url"; +type ReferrerPolicy = + | "" + | "no-referrer" + | "no-referrer-when-downgrade" + | "origin" + | "origin-when-cross-origin" + | "same-origin" + | "strict-origin" + | "strict-origin-when-cross-origin" + | "unsafe-url"; type RemotePlaybackState = "connected" | "connecting" | "disconnected"; -type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload"; +type RequestCache = + | "default" + | "force-cache" + | "no-cache" + | "no-store" + | "only-if-cached" + | "reload"; type RequestCredentials = "include" | "omit" | "same-origin"; -type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt"; +type RequestDestination = + | "" + | "audio" + | "audioworklet" + | "document" + | "embed" + | "font" + | "frame" + | "iframe" + | "image" + | "manifest" + | "object" + | "paintworklet" + | "report" + | "script" + | "sharedworker" + | "style" + | "track" + | "video" + | "worker" + | "xslt"; type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin"; type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; type ResidentKeyRequirement = "discouraged" | "preferred" | "required"; -type ResizeObserverBoxOptions = "border-box" | "content-box" | "device-pixel-content-box"; +type ResizeObserverBoxOptions = + | "border-box" + | "content-box" + | "device-pixel-content-box"; type ResizeQuality = "high" | "low" | "medium" | "pixelated"; -type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; +type ResponseType = + | "basic" + | "cors" + | "default" + | "error" + | "opaque" + | "opaqueredirect"; type ScrollBehavior = "auto" | "instant" | "smooth"; type ScrollLogicalPosition = "center" | "end" | "nearest" | "start"; type ScrollRestoration = "auto" | "manual"; type ScrollSetting = "" | "up"; type SecurityPolicyViolationEventDisposition = "enforce" | "report"; type SelectionMode = "end" | "preserve" | "select" | "start"; -type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant"; +type ServiceWorkerState = + | "activated" + | "activating" + | "installed" + | "installing" + | "parsed" + | "redundant"; type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; type ShadowRootMode = "closed" | "open"; type SlotAssignmentMode = "manual" | "named"; -type SpeechSynthesisErrorCode = "audio-busy" | "audio-hardware" | "canceled" | "interrupted" | "invalid-argument" | "language-unavailable" | "network" | "not-allowed" | "synthesis-failed" | "synthesis-unavailable" | "text-too-long" | "voice-unavailable"; -type TextTrackKind = "captions" | "chapters" | "descriptions" | "metadata" | "subtitles"; +type SpeechSynthesisErrorCode = + | "audio-busy" + | "audio-hardware" + | "canceled" + | "interrupted" + | "invalid-argument" + | "language-unavailable" + | "network" + | "not-allowed" + | "synthesis-failed" + | "synthesis-unavailable" + | "text-too-long" + | "voice-unavailable"; +type TextTrackKind = + | "captions" + | "chapters" + | "descriptions" + | "metadata" + | "subtitles"; type TextTrackMode = "disabled" | "hidden" | "showing"; type TouchType = "direct" | "stylus"; type TransferFunction = "hlg" | "pq" | "srgb"; @@ -29019,7 +35631,16 @@ type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m"; type VideoEncoderBitrateMode = "constant" | "quantizer" | "variable"; type VideoFacingModeEnum = "environment" | "left" | "right" | "user"; type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m"; -type VideoPixelFormat = "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "NV12" | "RGBA" | "RGBX"; +type VideoPixelFormat = + | "BGRA" + | "BGRX" + | "I420" + | "I420A" + | "I422" + | "I444" + | "NV12" + | "RGBA" + | "RGBX"; type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m"; type WakeLockType = "screen"; type WebGLPowerPreference = "default" | "high-performance" | "low-power"; @@ -29027,4 +35648,10 @@ type WebTransportCongestionControl = "default" | "low-latency" | "throughput"; type WebTransportErrorSource = "session" | "stream"; type WorkerType = "classic" | "module"; type WriteCommandType = "seek" | "truncate" | "write"; -type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; +type XMLHttpRequestResponseType = + | "" + | "arraybuffer" + | "blob" + | "document" + | "json" + | "text";