diff --git a/src/lib/dom.generated.d.ts b/src/lib/dom.generated.d.ts index 82c019c03a36e..a352d46d7ca1c 100644 --- a/src/lib/dom.generated.d.ts +++ b/src/lib/dom.generated.d.ts @@ -2561,7 +2561,7 @@ declare var BroadcastChannel: { new(name: string): BroadcastChannel; }; -/** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */ +/** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */ interface ByteLengthQueuingStrategy extends QueuingStrategy { highWaterMark: number; size(chunk: ArrayBufferView): number; @@ -3612,7 +3612,7 @@ declare var ConvolverNode: { new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode; }; -/** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */ +/** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */ interface CountQueuingStrategy extends QueuingStrategy { highWaterMark: number; size(chunk: any): 1; @@ -4044,7 +4044,7 @@ declare var DOMStringList: { new(): DOMStringList; }; -/** Used by the dataset HTML attribute to represent data for custom attributes added to elements. */ +/** Used by the dataset HTML attribute to represent data for custom attributes added to elements. */ interface DOMStringMap { [name: string]: string | undefined; } @@ -4367,7 +4367,7 @@ interface DocumentEventMap extends GlobalEventHandlersEventMap, DocumentAndEleme "fullscreenerror": Event; "pointerlockchange": Event; "pointerlockerror": Event; - "readystatechange": Event; + "readystatechange": Event; "visibilitychange": Event; } @@ -5243,7 +5243,7 @@ declare var ErrorEvent: { }; /** An event which takes place in the DOM. */ -interface 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. */ @@ -5260,7 +5260,7 @@ interface Event { /** * Returns the object whose event listener's callback is currently being invoked. */ - readonly currentTarget: EventTarget | null; + readonly currentTarget: T | null; /** * Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. */ @@ -5275,11 +5275,11 @@ interface Event { readonly isTrusted: boolean; returnValue: boolean; /** @deprecated */ - readonly srcElement: EventTarget | null; + readonly srcElement: T | null; /** * Returns the object to which event is dispatched (its target). */ - readonly target: EventTarget | null; + readonly target: T | null; /** * Returns the event's timestamp as the number of milliseconds measured relative to the time origin. */ @@ -5291,7 +5291,7 @@ interface Event { /** * 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. */ - composedPath(): EventTarget[]; + composedPath(): T[]; 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. @@ -6252,7 +6252,7 @@ declare var HTMLBRElement: { new(): HTMLBRElement; }; -/** Contains the base URI for a document. This object inherits all of the properties and methods as described in the HTMLElement interface. */ +/** Contains the base URI for a document. This object inherits all of the properties and methods as described in the HTMLElement interface. */ interface HTMLBaseElement extends HTMLElement { /** * Gets or sets the baseline URL on which relative links are based. @@ -7555,7 +7555,7 @@ interface HTMLMediaElementEventMap extends HTMLElementEventMap { "waitingforkey": Event; } -/** Adds to HTMLElement the properties and methods needed to support basic media-related capabilities that are common to audio and video. */ +/** Adds to HTMLElement the properties and methods needed to support basic media-related capabilities that are common to audio and video. */ interface HTMLMediaElement extends HTMLElement { /** * Gets or sets a value that indicates whether to start playing the media automatically. @@ -7707,7 +7707,7 @@ declare var HTMLMenuElement: { new(): HTMLMenuElement; }; -/** Contains descriptive metadata about a document. It inherits all of the properties and methods described in the HTMLElement interface. */ +/** Contains descriptive metadata about a document. It inherits all of the properties and methods described in the HTMLElement interface. */ interface HTMLMetaElement extends HTMLElement { /** * Gets or sets meta-information to associate with httpEquiv or name. @@ -9002,7 +9002,7 @@ declare var HashChangeEvent: { new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent; }; -/** This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists of zero or more name and value pairs.  You can add to this using methods like append() (see Examples.) In all methods of this interface, header names are matched by case-insensitive byte sequence. */ +/** This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists of zero or more name and value pairs. You can add to this using methods like append() (see Examples.) In all methods of this interface, header names are matched by case-insensitive byte sequence. */ interface Headers { append(name: string, value: string): void; delete(name: string): void; @@ -9017,7 +9017,7 @@ declare var Headers: { new(init?: HeadersInit): Headers; }; -/** Allows manipulation of the browser session history, that is the pages visited in the tab or frame that the current page is loaded in. */ +/** Allows manipulation of the browser session history, that is the pages visited in the tab or frame that the current page is loaded in. */ interface History { readonly length: number; scrollRestoration: ScrollRestoration; @@ -9287,7 +9287,7 @@ declare var IDBKeyRange: { upperBound(upper: any, open?: boolean): IDBKeyRange; }; -/** This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our To-do Notifications app (view example live.) */ +/** This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our To-do Notifications app (view example live.) */ interface IDBObjectStore { /** * Returns true if the store has a key generator, and false otherwise. @@ -9519,7 +9519,7 @@ declare var IDBVersionChangeEvent: { new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent; }; -/** The IIRFilterNode interface of the Web Audio API is a AudioNode processor which implements a general infinite impulse response (IIR)  filter; this type of filter can be used to implement tone control devices and graphic equalizers as well. It lets the parameters of the filter response be specified, so that it can be tuned as needed. */ +/** The IIRFilterNode interface of the Web Audio API is a AudioNode processor which implements a general infinite impulse response (IIR) filter; this type of filter can be used to implement tone control devices and graphic equalizers as well. It lets the parameters of the filter response be specified, so that it can be tuned as needed. */ interface IIRFilterNode extends AudioNode { getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void; } @@ -10127,7 +10127,7 @@ interface MediaKeySessionEventMap { "message": MediaKeyMessageEvent; } -/** This EncryptedMediaExtensions API interface represents a context for message exchange with a content decryption module (CDM). */ +/** This EncryptedMediaExtensions API interface represents a context for message exchange with a content decryption module (CDM). */ interface MediaKeySession extends EventTarget { readonly closed: Promise; readonly expiration: number; @@ -10273,7 +10273,7 @@ interface MediaStreamEventMap { "removetrack": MediaStreamTrackEvent; } -/** A stream of media content. A stream consists of several tracks such as video or audio tracks. Each track is specified as an instance of MediaStreamTrack. */ +/** A stream of media content. A stream consists of several tracks such as video or audio tracks. Each track is specified as an instance of MediaStreamTrack. */ interface MediaStream extends EventTarget { readonly active: boolean; readonly id: string; @@ -10509,7 +10509,7 @@ declare var MimeType: { new(): MimeType; }; -/** Returns an array of MimeType instances, each of which contains information about a supported browser plugins. This object is returned by NavigatorPlugins.mimeTypes. */ +/** Returns an array of MimeType instances, each of which contains information about a supported browser plugins. This object is returned by NavigatorPlugins.mimeTypes. */ interface MimeTypeArray { readonly length: number; item(index: number): MimeType | null; @@ -11221,7 +11221,7 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; -/** The OscillatorNode interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency of a given wave to be created—in effect, a constant tone. */ +/** The OscillatorNode interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency of a given wave to be created—in effect, a constant tone. */ interface OscillatorNode extends AudioScheduledSourceNode { readonly detune: AudioParam; readonly frequency: AudioParam; @@ -11521,7 +11521,7 @@ declare var PerformanceEntry: { new(): PerformanceEntry; }; -/** PerformanceMark is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline. */ +/** PerformanceMark is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline. */ interface PerformanceMark extends PerformanceEntry { } @@ -11746,7 +11746,7 @@ declare var Plugin: { new(): Plugin; }; -/** Used to store a list of Plugin objects describing the available plugins; it's returned by the window.navigator.plugins property. The PluginArray is not a JavaScript array, but has the length property and supports accessing individual items using bracket notation (plugins[2]), as well as via item(index) and namedItem("name") methods. */ +/** Used to store a list of Plugin objects describing the available plugins; it's returned by the window.navigator.plugins property. The PluginArray is not a JavaScript array, but has the length property and supports accessing individual items using bracket notation (plugins[2]), as well as via item(index) and namedItem("name") methods. */ interface PluginArray { readonly length: number; item(index: number): Plugin | null; @@ -12253,7 +12253,7 @@ declare var RTCPeerConnectionIceEvent: { new(type: string, eventInitDict?: RTCPeerConnectionIceEventInit): RTCPeerConnectionIceEvent; }; -/** This WebRTC API interface manages the reception and decoding of data for a MediaStreamTrack on an RTCPeerConnection. */ +/** This WebRTC API interface manages the reception and decoding of data for a MediaStreamTrack on an RTCPeerConnection. */ interface RTCRtpReceiver { readonly rtcpTransport: RTCDtlsTransport | null; readonly track: MediaStreamTrack; @@ -12843,7 +12843,7 @@ declare var SVGAnimatedRect: { new(): SVGAnimatedRect; }; -/** The SVGAnimatedString interface represents string attributes which can be animated from each SVG declaration. You need to create SVG attribute before doing anything else, everything should be declared inside this. */ +/** The SVGAnimatedString interface represents string attributes which can be animated from each SVG declaration. You need to create SVG attribute before doing anything else, everything should be declared inside this. */ interface SVGAnimatedString { readonly animVal: string; baseVal: string; @@ -14847,7 +14847,7 @@ declare var SecurityPolicyViolationEvent: { new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent; }; -/** A Selection object represents the range of text selected by the user or the current position of the caret. To obtain a Selection object for examination or modification, call Window.getSelection(). */ +/** A Selection object represents the range of text selected by the user or the current position of the caret. To obtain a Selection object for examination or modification, call Window.getSelection(). */ interface Selection { readonly anchorNode: Node | null; readonly anchorOffset: number; @@ -14913,7 +14913,7 @@ interface ServiceWorkerContainerEventMap { "messageerror": MessageEvent; } -/** The ServiceWorkerContainer interface of the ServiceWorker API provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations. */ +/** The ServiceWorkerContainer interface of the ServiceWorker API provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations. */ interface ServiceWorkerContainer extends EventTarget { readonly controller: ServiceWorker | null; oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null; @@ -14935,7 +14935,7 @@ declare var ServiceWorkerContainer: { new(): ServiceWorkerContainer; }; -/** This ServiceWorker API interface contains information about an event sent to a ServiceWorkerContainer target. This extends the default message event to allow setting a ServiceWorker object as the source of a message. The event object is accessed via the handler function of a message event, when fired by a message received from a service worker. */ +/** This ServiceWorker API interface contains information about an event sent to a ServiceWorkerContainer target. This extends the default message event to allow setting a ServiceWorker object as the source of a message. The event object is accessed via the handler function of a message event, when fired by a message received from a service worker. */ interface ServiceWorkerMessageEvent extends Event { readonly data: any; readonly lastEventId: string; @@ -15020,7 +15020,7 @@ interface SourceBufferEventMap { "updatestart": Event; } -/** A chunk of media to be passed into an HTMLMediaElement and played, via a MediaSource object. This can be made up of one or several media segments. */ +/** A chunk of media to be passed into an HTMLMediaElement and played, via a MediaSource object. This can be made up of one or several media segments. */ interface SourceBuffer extends EventTarget { appendWindowEnd: number; appendWindowStart: number; @@ -15467,7 +15467,7 @@ declare var Text: { new(data?: string): Text; }; -/** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc. A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. */ +/** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc. A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. */ 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 stream. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments. @@ -15792,7 +15792,7 @@ declare var TextTrackList: { new(): TextTrackList; }; -/** Used to represent a set of time ranges, primarily for the purpose of tracking which portions of media have been buffered when loading it for use by the