diff --git a/baselines/audioworklet.generated.d.ts b/baselines/audioworklet.generated.d.ts index 2a6215cfc..1002c57b0 100644 --- a/baselines/audioworklet.generated.d.ts +++ b/baselines/audioworklet.generated.d.ts @@ -374,7 +374,7 @@ declare var CountQueuingStrategy: { }; /** - * The **`CustomEvent`** interface represents events initialized by an application for any purpose. + * The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */ @@ -1067,7 +1067,7 @@ interface ReadableStreamGenericReader { } /** - * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, `KOI8-R`, `GBK`, etc. + * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, or `GBK`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder) */ @@ -1122,19 +1122,19 @@ declare var TextDecoderStream: { }; /** - * The **`TextEncoder`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes. + * The **`TextEncoder`** interface enables you to character encoding a JavaScript string using UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder) */ interface TextEncoder extends TextEncoderCommon { /** - * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the text given in parameters encoded with the specific method for that TextEncoder object. + * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the string character encoding using UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode) */ encode(input?: string): Uint8Array; /** - * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns a dictionary object indicating the progress of the encoding. + * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns an object indicating the progress of the encoding. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto) */ diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index f61f92c0e..6bff2ae6e 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -376,6 +376,11 @@ interface ConstantSourceOptions { offset?: number; } +interface ConstrainBooleanOrDOMStringParameters { + exact?: boolean | string; + ideal?: boolean | string; +} + interface ConstrainBooleanParameters { exact?: boolean; ideal?: boolean; @@ -1113,7 +1118,7 @@ interface MediaTrackCapabilities { channelCount?: ULongRange; deviceId?: string; displaySurface?: string; - echoCancellation?: boolean[]; + echoCancellation?: (boolean | string)[]; facingMode?: string[]; frameRate?: DoubleRange; groupId?: string; @@ -1131,7 +1136,7 @@ interface MediaTrackConstraintSet { channelCount?: ConstrainULong; deviceId?: ConstrainDOMString; displaySurface?: ConstrainDOMString; - echoCancellation?: ConstrainBoolean; + echoCancellation?: ConstrainBooleanOrDOMString; facingMode?: ConstrainDOMString; frameRate?: ConstrainDouble; groupId?: ConstrainDOMString; @@ -1153,7 +1158,7 @@ interface MediaTrackSettings { channelCount?: number; deviceId?: string; displaySurface?: string; - echoCancellation?: boolean; + echoCancellation?: boolean | string; facingMode?: string; frameRate?: number; groupId?: string; @@ -2013,6 +2018,15 @@ interface RegistrationOptions { updateViaCache?: ServiceWorkerUpdateViaCache; } +interface Report { + body?: ReportBody | null; + type?: string; + url?: string; +} + +interface ReportBody { +} + interface ReportingObserverOptions { buffered?: boolean; types?: string[]; @@ -2132,7 +2146,7 @@ interface SecurityPolicyViolationEventInit extends EventInit { interface ShadowRootInit { clonable?: boolean; - customElementRegistry?: CustomElementRegistry; + customElementRegistry?: CustomElementRegistry | null; delegatesFocus?: boolean; mode: ShadowRootMode; serializable?: boolean; @@ -2146,6 +2160,16 @@ interface ShareData { url?: string; } +interface SpeechRecognitionErrorEventInit extends EventInit { + error: SpeechRecognitionErrorCode; + message?: string; +} + +interface SpeechRecognitionEventInit extends EventInit { + resultIndex?: number; + results: SpeechRecognitionResultList; +} + interface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit { error: SpeechSynthesisErrorCode; } @@ -4576,91 +4600,6 @@ declare var CDATASection: { new(): CDATASection; }; -/** - * The `CSPViolationReportBody` interface is an extension of the Reporting API that represents the body of a Content Security Policy (CSP) violation report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody) - */ -interface CSPViolationReportBody extends ReportBody { - /** - * The **`blockedURL`** read-only property of the CSPViolationReportBody interface is a string value that represents the resource that was blocked because it violates a Content Security Policy (CSP). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/blockedURL) - */ - readonly blockedURL: string | null; - /** - * The **`columnNumber`** read-only property of the CSPViolationReportBody interface indicates the column number in the source file that triggered the Content Security Policy (CSP) violation. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/columnNumber) - */ - readonly columnNumber: number | null; - /** - * The **`disposition`** read-only property of the CSPViolationReportBody interface indicates whether the user agent is configured to enforce Content Security Policy (CSP) violations or only report them. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/disposition) - */ - readonly disposition: SecurityPolicyViolationEventDisposition; - /** - * The **`documentURL`** read-only property of the CSPViolationReportBody interface is a string that represents the URL of the document or worker that violated the Content Security Policy (CSP). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/documentURL) - */ - readonly documentURL: string; - /** - * The **`effectiveDirective`** read-only property of the CSPViolationReportBody interface is a string that represents the effective Content Security Policy (CSP) directive that was violated. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/effectiveDirective) - */ - readonly effectiveDirective: string; - /** - * The **`lineNumber`** read-only property of the CSPViolationReportBody interface indicates the line number in the source file that triggered the Content Security Policy (CSP) violation. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/lineNumber) - */ - readonly lineNumber: number | null; - /** - * The **`originalPolicy`** read-only property of the CSPViolationReportBody interface is a string that represents the Content Security Policy (CSP) whose enforcement uncovered the violation. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/originalPolicy) - */ - readonly originalPolicy: string; - /** - * The **`referrer`** read-only property of the CSPViolationReportBody interface is a string that represents the URL of the referring page of the resource who's Content Security Policy (CSP) was violated. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/referrer) - */ - readonly referrer: string | null; - /** - * The **`sample`** read-only property of the CSPViolationReportBody interface is a string that contains a part of the resource that violated the Content Security Policy (CSP). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/sample) - */ - readonly sample: string | null; - /** - * The **`sourceFile`** read-only property of the CSPViolationReportBody interface indicates the URL of the source file that violated the Content Security Policy (CSP). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/sourceFile) - */ - readonly sourceFile: string | null; - /** - * The **`statusCode`** read-only property of the CSPViolationReportBody interface is a number representing the HTTP status code of the response to the request that triggered a Content Security Policy (CSP) violation (when loading a window or worker). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/statusCode) - */ - readonly statusCode: number; - /** - * The **`toJSON()`** method of the CSPViolationReportBody interface is a _serializer_, which returns a JSON representation of the `CSPViolationReportBody` object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/toJSON) - */ - toJSON(): any; -} - -declare var CSPViolationReportBody: { - prototype: CSPViolationReportBody; - new(): CSPViolationReportBody; -}; - /** * The **`CSSAnimation`** interface of the Web Animations API represents an Animation object. * @@ -4902,7 +4841,7 @@ interface CSSGroupingRule extends CSSRule { */ deleteRule(index: number): void; /** - * The **`insertRule()`** method of the ```js-nolint insertRule(rule) insertRule(rule, index) ``` - `rule` - : A string - `index` [MISSING: optional_inline] - : An optional index at which to insert the rule; defaults to 0. + * The **`insertRule()`** method of the ```js-nolint insertRule(rule) insertRule(rule, index) ``` - `rule` - : A string - `index` MISSING: optional_inline] - : An optional index at which to insert the rule; defaults to 0. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/insertRule) */ @@ -6421,6 +6360,8 @@ interface CSSStyleProperties extends CSSStyleDeclaration { 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-emoji) */ + fontVariantEmoji: 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) */ @@ -8810,7 +8751,7 @@ declare var CustomElementRegistry: { }; /** - * The **`CustomEvent`** interface represents events initialized by an application for any purpose. + * The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */ @@ -8944,7 +8885,7 @@ interface DOMImplementation { */ createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument; /** - * The **`DOMImplementation.createDocumentType()`** method returns a DocumentType object which can either be used with into the document via methods like Node.insertBefore() or ```js-nolint createDocumentType(qualifiedNameStr, publicId, systemId) ``` - `qualifiedNameStr` - : A string containing the qualified name, like `svg:svg`. + * The **`DOMImplementation.createDocumentType()`** method returns a DocumentType object which can either be used with into the document via methods like Node.insertBefore() or ```js-nolint createDocumentType(name, publicId, systemId) ``` - `name` - : A string containing the name of the doctype, like `html`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocumentType) */ @@ -10478,6 +10419,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent; createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent; createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent; + createEvent(eventInterface: "SpeechRecognitionErrorEvent"): SpeechRecognitionErrorEvent; + createEvent(eventInterface: "SpeechRecognitionEvent"): SpeechRecognitionEvent; createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent; createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent; createEvent(eventInterface: "StorageEvent"): StorageEvent; @@ -13758,7 +13701,12 @@ interface HTMLCollectionOf extends HTMLCollectionBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDListElement) */ interface HTMLDListElement extends HTMLElement { - /** @deprecated */ + /** + * The **`compact`** property of the HTMLDListElement interface indicates that spacing between list items should be reduced. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDListElement/compact) + */ 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; @@ -13852,6 +13800,12 @@ declare var HTMLDetailsElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement) */ interface HTMLDialogElement extends HTMLElement { + /** + * The **`closedBy`** property of the A string; possible values are: - `any` - : The dialog can be dismissed with a light dismiss user action, a platform-specific user action, or a developer-specified mechanism. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/closedBy) + */ + closedBy: string; /** * The **`open`** property of the `open` HTML attribute, indicating whether the dialog is available for interaction. * @@ -15104,7 +15058,7 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement { */ max: string; /** - * The **`maxLength`** property of the HTMLInputElement interface indicates the maximum number of characters (in UTF-16 code units) allowed to be entered for the value of the input element, and the maximum number of characters allowed for the value to be valid. + * The **`maxLength`** property of the HTMLInputElement interface indicates the maximum number of characters (in UTF-16) allowed to be entered for the value of the input element, and the maximum number of characters allowed for the value to be valid. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/maxLength) */ @@ -15116,7 +15070,7 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement { */ min: string; /** - * The **`minLength`** property of the HTMLInputElement interface indicates the minimum number of characters (in UTF-16 code units) required for the value of the input element to be valid. + * The **`minLength`** property of the HTMLInputElement interface indicates the minimum number of characters (in UTF-16) required for the value of the input element to be valid. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/minLength) */ @@ -15238,7 +15192,7 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement { */ readonly webkitEntries: ReadonlyArray; /** - * The **`HTMLInputElement.webkitdirectory`** is a property that reflects the `webkitdirectory` HTML attribute and indicates that the input element should let the user select directories instead of files. + * The **`webkitdirectory`** property of the HTMLInputElement interface reflects the `webkitdirectory` HTML attribute, which indicates that `` elements should let the user select directories instead of files. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitdirectory) */ @@ -15884,7 +15838,12 @@ declare var HTMLMediaElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMenuElement) */ interface HTMLMenuElement extends HTMLElement { - /** @deprecated */ + /** + * The **`compact`** property of the HTMLMenuElement interface indicates that spacing between list items should be reduced. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMenuElement/compact) + */ 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; @@ -16039,7 +15998,12 @@ declare var HTMLModElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement) */ interface HTMLOListElement extends HTMLElement { - /** @deprecated */ + /** + * The **`compact`** property of the HTMLOListElement interface indicates that spacing between list items should be reduced. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/compact) + */ compact: boolean; /** * The **`reversed`** property of the HTMLOListElement interface indicates order of a list. @@ -17616,13 +17580,13 @@ interface HTMLTextAreaElement extends HTMLElement { */ readonly labels: NodeListOf; /** - * The **`maxLength`** property of the HTMLTextAreaElement interface indicates the maximum number of characters (in UTF-16 code units) allowed to be entered for the value of the textarea element, and the maximum number of characters allowed for the value to be valid. + * The **`maxLength`** property of the HTMLTextAreaElement interface indicates the maximum number of characters (in UTF-16) allowed to be entered for the value of the textarea element, and the maximum number of characters allowed for the value to be valid. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/maxLength) */ maxLength: number; /** - * The **`minLength`** property of the HTMLTextAreaElement interface indicates the minimum number of characters (in UTF-16 code units) required for the value of the textarea element to be valid. + * The **`minLength`** property of the HTMLTextAreaElement interface indicates the minimum number of characters (in UTF-16) required for the value of the textarea element to be valid. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/minLength) */ @@ -17676,7 +17640,7 @@ interface HTMLTextAreaElement extends HTMLElement { */ selectionStart: number; /** - * The **`textLength`** read-only property of the HTMLTextAreaElement interface is a non-negative integer representing the number of characters, in UTF-16 code units, of the textarea element's value. + * The **`textLength`** read-only property of the HTMLTextAreaElement interface is a non-negative integer representing the number of characters, in UTF-16, of the textarea element's value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/textLength) */ @@ -17884,7 +17848,12 @@ declare var HTMLTrackElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement) */ interface HTMLUListElement extends HTMLElement { - /** @deprecated */ + /** + * The **`compact`** property of the HTMLUListElement interface indicates that spacing between list items should be reduced. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement/compact) + */ compact: boolean; /** @deprecated */ type: string; @@ -19237,44 +19206,49 @@ declare var InputEvent: { */ interface IntersectionObserver { /** - * The IntersectionObserver interface's read-only **`root`** property identifies the Element or of the viewport for the element which is the observer's target. + * The **`root`** read-only property of the IntersectionObserver interface identifies the Element or Document whose bounds are treated as the bounding box of the viewport for the element which is the observer's target. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/root) */ readonly root: Element | Document | null; /** - * The IntersectionObserver interface's read-only **`rootMargin`** property is a string with syntax similar to that of the CSS margin property. + * The **`rootMargin`** read-only property of the IntersectionObserver interface is a string with syntax similar to that of the CSS margin property. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/rootMargin) */ readonly rootMargin: string; + /** + * The **`scrollMargin`** read-only property of the IntersectionObserver interface adds a margin to all nested scroll container within the root element, including the root element if it is a scroll container. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/scrollMargin) + */ readonly scrollMargin: string; /** - * The IntersectionObserver interface's read-only **`thresholds`** property returns the list of intersection thresholds that was specified when the observer was instantiated with only one threshold ratio was provided when instantiating the object, this will be an array containing that single value. + * The **`thresholds`** read-only property of the IntersectionObserver interface returns the list of intersection thresholds that was specified when the observer was instantiated with IntersectionObserver.IntersectionObserver. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/thresholds) */ readonly thresholds: ReadonlyArray; /** - * The IntersectionObserver method **`disconnect()`** stops watching all of its target elements for visibility changes. + * The **`disconnect()`** method of the IntersectionObserver interface stops the observer watching all of its target elements for visibility changes. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/disconnect) */ disconnect(): void; /** - * The IntersectionObserver method **`observe()`** adds an element to the set of target elements being watched by the `IntersectionObserver`. + * The **`observe()`** method of the IntersectionObserver interface adds an element to the set of target elements being watched by the `IntersectionObserver`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/observe) */ observe(target: Element): void; /** - * The IntersectionObserver method **`takeRecords()`** returns an array of has experienced an intersection change since the last time the intersections were checked, either explicitly through a call to this method or implicitly by an automatic call to the observer's callback. + * The **`takeRecords()`** method of the IntersectionObserver interface returns an array of IntersectionObserverEntry objects, one for each targeted element which has experienced an intersection change since the last time the intersections were checked, either explicitly through a call to this method or implicitly by an automatic call to the observer's callback. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/takeRecords) */ takeRecords(): IntersectionObserverEntry[]; /** - * The IntersectionObserver method **`unobserve()`** instructs the `IntersectionObserver` to stop observing the specified target element. + * The **`unobserve()`** method of the IntersectionObserver interface instructs the `IntersectionObserver` to stop observing the specified target element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/unobserve) */ @@ -19293,43 +19267,43 @@ declare var IntersectionObserver: { */ interface IntersectionObserverEntry { /** - * The IntersectionObserverEntry interface's read-only **`boundingClientRect`** property returns a smallest rectangle that contains the entire target element. + * The **`boundingClientRect`** read-only property of the IntersectionObserverEntry interface returns a DOMRectReadOnly which in essence describes a rectangle describing the smallest rectangle that contains the entire target element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/boundingClientRect) */ readonly boundingClientRect: DOMRectReadOnly; /** - * The IntersectionObserverEntry interface's read-only **`intersectionRatio`** property tells you how much of the target element is currently visible within the root's intersection ratio, as a value between 0.0 and 1.0. + * The **`intersectionRatio`** read-only property of the IntersectionObserverEntry interface tells you how much of the target element is currently visible within the root's intersection ratio, as a value between 0.0 and 1.0. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRatio) */ readonly intersectionRatio: number; /** - * The IntersectionObserverEntry interface's read-only **`intersectionRect`** property is a contains the entire portion of the target element which is currently visible within the intersection root. + * The **`intersectionRect`** read-only property of the IntersectionObserverEntry interface is a DOMRectReadOnly object which describes the smallest rectangle that contains the entire portion of the target element which is currently visible within the intersection root. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRect) */ readonly intersectionRect: DOMRectReadOnly; /** - * The IntersectionObserverEntry interface's read-only **`isIntersecting`** property is a Boolean value which is `true` if the target element intersects with the intersection observer's root. + * The **`isIntersecting`** read-only property of the IntersectionObserverEntry interface is a Boolean value which is `true` if the target element intersects with the intersection observer's root. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/isIntersecting) */ readonly isIntersecting: boolean; /** - * The IntersectionObserverEntry interface's read-only **`rootBounds`** property is a rectangle, offset by the IntersectionObserver.rootMargin if one is specified. + * The **`rootBounds`** read-only property of the IntersectionObserverEntry interface is a DOMRectReadOnly corresponding to the IntersectionObserverEntry.target's root intersection rectangle, offset by the IntersectionObserver.rootMargin if one is specified. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/rootBounds) */ readonly rootBounds: DOMRectReadOnly | null; /** - * The IntersectionObserverEntry interface's read-only **`target`** property indicates which targeted root. + * The **`target`** read-only property of the IntersectionObserverEntry interface indicates which targeted Element has changed its amount of intersection with the intersection root. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/target) */ readonly target: Element; /** - * The IntersectionObserverEntry interface's read-only **`time`** property is a change occurred relative to the time at which the document was created. + * The **`time`** read-only property of the IntersectionObserverEntry interface is a DOMHighResTimeStamp that indicates the time at which the intersection change occurred relative to the time at which the document was created. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/time) */ @@ -23663,13 +23637,13 @@ interface PerformanceNavigationTiming extends PerformanceResourceTiming { */ readonly type: NavigationTimingType; /** - * The **`unloadEventEnd`** read-only property returns a DOMHighResTimeStamp representing the time immediately after the current document's `unload` event handler completes. + * The **`unloadEventEnd`** read-only property returns a DOMHighResTimeStamp representing the time immediately after the previous document's `unload` event handler completes. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventEnd) */ readonly unloadEventEnd: DOMHighResTimeStamp; /** - * The **`unloadEventStart`** read-only property returns a DOMHighResTimeStamp representing the time immediately before the current document's `unload` event handler starts. + * The **`unloadEventStart`** read-only property returns a DOMHighResTimeStamp representing the time immediately before the previous document's `unload` event handler starts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventStart) */ @@ -24325,6 +24299,12 @@ interface PointerEvent extends MouseEvent { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/isPrimary) */ readonly isPrimary: boolean; + /** + * The **`persistentDeviceId`** read-only property of the PointerEvent interface is a unique identifier for the pointing device generating the `PointerEvent`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/persistentDeviceId) + */ + readonly persistentDeviceId: number; /** * The **`pointerId`** read-only property of the event. * @@ -26306,57 +26286,6 @@ declare var RemotePlayback: { new(): RemotePlayback; }; -/** - * The `Report` interface of the Reporting API represents a single report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report) - */ -interface Report { - /** - * The **`body`** read-only property of the Report interface returns the body of the report, which is a `ReportBody` object containing the detailed report information. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body) - */ - readonly body: ReportBody | null; - /** - * The **`type`** read-only property of the Report interface returns the type of report generated, e.g., `deprecation` or `intervention`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type) - */ - readonly type: string; - /** - * The **`url`** read-only property of the Report interface returns the URL of the document that generated the report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url) - */ - readonly url: string; - toJSON(): any; -} - -declare var Report: { - prototype: Report; - new(): Report; -}; - -/** - * The **`ReportBody`** interface of the Reporting API represents the body of a report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody) - */ -interface ReportBody { - /** - * The **`toJSON()`** method of the ReportBody interface is a _serializer_, and returns a JSON representation of the `ReportBody` object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON) - */ - toJSON(): any; -} - -declare var ReportBody: { - prototype: ReportBody; - new(): ReportBody; -}; - /** * The `ReportingObserver` interface of the Reporting API allows you to collect and access reports. * @@ -30850,7 +30779,7 @@ interface ServiceWorkerContainerEventMap { */ interface ServiceWorkerContainer extends EventTarget { /** - * The **`controller`** read-only property of the ServiceWorkerContainer interface returns a `activated` (the same object returned by `null` if the request is a force refresh (_Shift_ + refresh) or if there is no active worker. + * The **`controller`** read-only property of the ServiceWorkerContainer interface represents the active ServiceWorker controlling the current page (associated with this `ServiceWorkerContainer`), or `null` if the page has no active or activating service worker. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller) */ @@ -31027,7 +30956,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot { */ readonly host: Element; /** - * The **`innerHTML`** property of the ShadowRoot interface sets gets or sets the HTML markup to the DOM tree inside the `ShadowRoot`. + * The **`innerHTML`** property of the ShadowRoot interface gets or sets the HTML markup to the DOM tree inside the `ShadowRoot`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/innerHTML) */ @@ -31249,6 +31178,58 @@ declare var SpeechRecognitionAlternative: { new(): SpeechRecognitionAlternative; }; +/** + * The **`SpeechRecognitionErrorEvent`** interface of the Web Speech API represents error messages from the recognition service. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionErrorEvent) + */ +interface SpeechRecognitionErrorEvent extends Event { + /** + * The **`error`** read-only property of the A string naming the type of error. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionErrorEvent/error) + */ + readonly error: SpeechRecognitionErrorCode; + /** + * The **`message`** read-only property of the error in more detail. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionErrorEvent/message) + */ + readonly message: string; +} + +declare var SpeechRecognitionErrorEvent: { + prototype: SpeechRecognitionErrorEvent; + new(type: string, eventInitDict: SpeechRecognitionErrorEventInit): SpeechRecognitionErrorEvent; +}; + +/** + * The **`SpeechRecognitionEvent`** interface of the Web Speech API represents the event object for the SpeechRecognition.result_event and SpeechRecognition.nomatch_event events, and contains all the data associated with an interim or final speech recognition result. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionEvent) + */ +interface SpeechRecognitionEvent extends Event { + /** + * The **`resultIndex`** read-only property of the the SpeechRecognitionResultList 'array' that has actually changed. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionEvent/resultIndex) + */ + readonly resultIndex: number; + /** + * The **`results`** read-only property of the recognition results for the current session. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionEvent/results) + */ + readonly results: SpeechRecognitionResultList; +} + +declare var SpeechRecognitionEvent: { + prototype: SpeechRecognitionEvent; + new(type: string, eventInitDict: SpeechRecognitionEventInit): SpeechRecognitionEvent; +}; + /** * The **`SpeechRecognitionResult`** interface of the Web Speech API represents a single recognition match, which may contain multiple SpeechRecognitionAlternative objects. * Available only in secure contexts. @@ -32032,7 +32013,7 @@ declare var Text: { }; /** - * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, `KOI8-R`, `GBK`, etc. + * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, or `GBK`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder) */ @@ -32087,19 +32068,19 @@ declare var TextDecoderStream: { }; /** - * The **`TextEncoder`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes. + * The **`TextEncoder`** interface enables you to character encoding a JavaScript string using UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder) */ interface TextEncoder extends TextEncoderCommon { /** - * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the text given in parameters encoded with the specific method for that TextEncoder object. + * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the string character encoding using UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode) */ encode(input?: string): Uint8Array; /** - * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns a dictionary object indicating the progress of the encoding. + * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns an object indicating the progress of the encoding. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto) */ @@ -33033,6 +33014,11 @@ declare var webkitURL: typeof URL; * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern) */ interface URLPattern { + /** + * The **`hasRegExpGroups`** read-only property of the URLPattern interface is a boolean indicating whether or not any of the `URLPattern` components contain regular expression capturing groups. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hasRegExpGroups) + */ readonly hasRegExpGroups: boolean; /** * The **`hash`** read-only property of the URLPattern interface is a string containing the pattern used to match the fragment part of a URL. @@ -39526,6 +39512,7 @@ type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasEl type ClipboardItemData = Promise; type ClipboardItems = ClipboardItem[]; type ConstrainBoolean = boolean | ConstrainBooleanParameters; +type ConstrainBooleanOrDOMString = boolean | string | ConstrainBooleanOrDOMStringParameters; type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters; type ConstrainDouble = number | ConstrainDoubleRange; type ConstrainULong = number | ConstrainULongRange; @@ -39760,6 +39747,7 @@ type ServiceWorkerState = "activated" | "activating" | "installed" | "installing type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; type ShadowRootMode = "closed" | "open"; type SlotAssignmentMode = "manual" | "named"; +type SpeechRecognitionErrorCode = "aborted" | "audio-capture" | "language-not-supported" | "network" | "no-speech" | "not-allowed" | "phrases-not-supported" | "service-not-allowed"; 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"; diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index 0131bc5ee..6430a4b66 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -570,6 +570,15 @@ interface RegistrationOptions { updateViaCache?: ServiceWorkerUpdateViaCache; } +interface Report { + body?: ReportBody | null; + type?: string; + url?: string; +} + +interface ReportBody { +} + interface ReportingObserverOptions { buffered?: boolean; types?: string[]; @@ -2340,7 +2349,7 @@ declare var CryptoKey: { }; /** - * The **`CustomEvent`** interface represents events initialized by an application for any purpose. + * The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */ @@ -6550,57 +6559,6 @@ interface ReadableStreamGenericReader { cancel(reason?: any): Promise; } -/** - * The `Report` interface of the Reporting API represents a single report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report) - */ -interface Report { - /** - * The **`body`** read-only property of the Report interface returns the body of the report, which is a `ReportBody` object containing the detailed report information. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body) - */ - readonly body: ReportBody | null; - /** - * The **`type`** read-only property of the Report interface returns the type of report generated, e.g., `deprecation` or `intervention`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type) - */ - readonly type: string; - /** - * The **`url`** read-only property of the Report interface returns the URL of the document that generated the report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url) - */ - readonly url: string; - toJSON(): any; -} - -declare var Report: { - prototype: Report; - new(): Report; -}; - -/** - * The **`ReportBody`** interface of the Reporting API represents the body of a report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody) - */ -interface ReportBody { - /** - * The **`toJSON()`** method of the ReportBody interface is a _serializer_, and returns a JSON representation of the `ReportBody` object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON) - */ - toJSON(): any; -} - -declare var ReportBody: { - prototype: ReportBody; - new(): ReportBody; -}; - /** * The `ReportingObserver` interface of the Reporting API allows you to collect and access reports. * @@ -6950,7 +6908,7 @@ interface ServiceWorkerContainerEventMap { */ interface ServiceWorkerContainer extends EventTarget { /** - * The **`controller`** read-only property of the ServiceWorkerContainer interface returns a `activated` (the same object returned by `null` if the request is a force refresh (_Shift_ + refresh) or if there is no active worker. + * The **`controller`** read-only property of the ServiceWorkerContainer interface represents the active ServiceWorker controlling the current page (associated with this `ServiceWorkerContainer`), or `null` if the page has no active or activating service worker. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller) */ @@ -7342,7 +7300,7 @@ declare var SubtleCrypto: { }; /** - * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, `KOI8-R`, `GBK`, etc. + * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, or `GBK`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder) */ @@ -7397,19 +7355,19 @@ declare var TextDecoderStream: { }; /** - * The **`TextEncoder`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes. + * The **`TextEncoder`** interface enables you to character encoding a JavaScript string using UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder) */ interface TextEncoder extends TextEncoderCommon { /** - * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the text given in parameters encoded with the specific method for that TextEncoder object. + * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the string character encoding using UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode) */ encode(input?: string): Uint8Array; /** - * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns a dictionary object indicating the progress of the encoding. + * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns an object indicating the progress of the encoding. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto) */ @@ -7702,6 +7660,11 @@ declare var URL: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern) */ interface URLPattern { + /** + * The **`hasRegExpGroups`** read-only property of the URLPattern interface is a boolean indicating whether or not any of the `URLPattern` components contain regular expression capturing groups. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hasRegExpGroups) + */ readonly hasRegExpGroups: boolean; /** * The **`hash`** read-only property of the URLPattern interface is a string containing the pattern used to match the fragment part of a URL. diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index 2a8a338d9..6ce6e8fb6 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -500,6 +500,15 @@ interface RegistrationOptions { updateViaCache?: ServiceWorkerUpdateViaCache; } +interface Report { + body?: ReportBody | null; + type?: string; + url?: string; +} + +interface ReportBody { +} + interface ReportingObserverOptions { buffered?: boolean; types?: string[]; @@ -2121,7 +2130,7 @@ declare var CryptoKey: { }; /** - * The **`CustomEvent`** interface represents events initialized by an application for any purpose. + * The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */ @@ -6133,57 +6142,6 @@ interface ReadableStreamGenericReader { cancel(reason?: any): Promise; } -/** - * The `Report` interface of the Reporting API represents a single report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report) - */ -interface Report { - /** - * The **`body`** read-only property of the Report interface returns the body of the report, which is a `ReportBody` object containing the detailed report information. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body) - */ - readonly body: ReportBody | null; - /** - * The **`type`** read-only property of the Report interface returns the type of report generated, e.g., `deprecation` or `intervention`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type) - */ - readonly type: string; - /** - * The **`url`** read-only property of the Report interface returns the URL of the document that generated the report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url) - */ - readonly url: string; - toJSON(): any; -} - -declare var Report: { - prototype: Report; - new(): Report; -}; - -/** - * The **`ReportBody`** interface of the Reporting API represents the body of a report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody) - */ -interface ReportBody { - /** - * The **`toJSON()`** method of the ReportBody interface is a _serializer_, and returns a JSON representation of the `ReportBody` object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON) - */ - toJSON(): any; -} - -declare var ReportBody: { - prototype: ReportBody; - new(): ReportBody; -}; - /** * The `ReportingObserver` interface of the Reporting API allows you to collect and access reports. * @@ -6533,7 +6491,7 @@ interface ServiceWorkerContainerEventMap { */ interface ServiceWorkerContainer extends EventTarget { /** - * The **`controller`** read-only property of the ServiceWorkerContainer interface returns a `activated` (the same object returned by `null` if the request is a force refresh (_Shift_ + refresh) or if there is no active worker. + * The **`controller`** read-only property of the ServiceWorkerContainer interface represents the active ServiceWorker controlling the current page (associated with this `ServiceWorkerContainer`), or `null` if the page has no active or activating service worker. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller) */ @@ -6873,7 +6831,7 @@ declare var SubtleCrypto: { }; /** - * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, `KOI8-R`, `GBK`, etc. + * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, or `GBK`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder) */ @@ -6928,19 +6886,19 @@ declare var TextDecoderStream: { }; /** - * The **`TextEncoder`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes. + * The **`TextEncoder`** interface enables you to character encoding a JavaScript string using UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder) */ interface TextEncoder extends TextEncoderCommon { /** - * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the text given in parameters encoded with the specific method for that TextEncoder object. + * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the string character encoding using UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode) */ encode(input?: string): Uint8Array; /** - * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns a dictionary object indicating the progress of the encoding. + * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns an object indicating the progress of the encoding. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto) */ @@ -7245,6 +7203,11 @@ declare var URL: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern) */ interface URLPattern { + /** + * The **`hasRegExpGroups`** read-only property of the URLPattern interface is a boolean indicating whether or not any of the `URLPattern` components contain regular expression capturing groups. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hasRegExpGroups) + */ readonly hasRegExpGroups: boolean; /** * The **`hash`** read-only property of the URLPattern interface is a string containing the pattern used to match the fragment part of a URL. diff --git a/baselines/ts5.5/audioworklet.generated.d.ts b/baselines/ts5.5/audioworklet.generated.d.ts index cae1a5fd3..9b946e70a 100644 --- a/baselines/ts5.5/audioworklet.generated.d.ts +++ b/baselines/ts5.5/audioworklet.generated.d.ts @@ -374,7 +374,7 @@ declare var CountQueuingStrategy: { }; /** - * The **`CustomEvent`** interface represents events initialized by an application for any purpose. + * The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */ @@ -1067,7 +1067,7 @@ interface ReadableStreamGenericReader { } /** - * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, `KOI8-R`, `GBK`, etc. + * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, or `GBK`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder) */ @@ -1122,19 +1122,19 @@ declare var TextDecoderStream: { }; /** - * The **`TextEncoder`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes. + * The **`TextEncoder`** interface enables you to character encoding a JavaScript string using UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder) */ interface TextEncoder extends TextEncoderCommon { /** - * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the text given in parameters encoded with the specific method for that TextEncoder object. + * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the string character encoding using UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode) */ encode(input?: string): Uint8Array; /** - * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns a dictionary object indicating the progress of the encoding. + * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns an object indicating the progress of the encoding. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto) */ diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index 04bc20e20..fd818e25f 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -376,6 +376,11 @@ interface ConstantSourceOptions { offset?: number; } +interface ConstrainBooleanOrDOMStringParameters { + exact?: boolean | string; + ideal?: boolean | string; +} + interface ConstrainBooleanParameters { exact?: boolean; ideal?: boolean; @@ -1113,7 +1118,7 @@ interface MediaTrackCapabilities { channelCount?: ULongRange; deviceId?: string; displaySurface?: string; - echoCancellation?: boolean[]; + echoCancellation?: (boolean | string)[]; facingMode?: string[]; frameRate?: DoubleRange; groupId?: string; @@ -1131,7 +1136,7 @@ interface MediaTrackConstraintSet { channelCount?: ConstrainULong; deviceId?: ConstrainDOMString; displaySurface?: ConstrainDOMString; - echoCancellation?: ConstrainBoolean; + echoCancellation?: ConstrainBooleanOrDOMString; facingMode?: ConstrainDOMString; frameRate?: ConstrainDouble; groupId?: ConstrainDOMString; @@ -1153,7 +1158,7 @@ interface MediaTrackSettings { channelCount?: number; deviceId?: string; displaySurface?: string; - echoCancellation?: boolean; + echoCancellation?: boolean | string; facingMode?: string; frameRate?: number; groupId?: string; @@ -2013,6 +2018,15 @@ interface RegistrationOptions { updateViaCache?: ServiceWorkerUpdateViaCache; } +interface Report { + body?: ReportBody | null; + type?: string; + url?: string; +} + +interface ReportBody { +} + interface ReportingObserverOptions { buffered?: boolean; types?: string[]; @@ -2132,7 +2146,7 @@ interface SecurityPolicyViolationEventInit extends EventInit { interface ShadowRootInit { clonable?: boolean; - customElementRegistry?: CustomElementRegistry; + customElementRegistry?: CustomElementRegistry | null; delegatesFocus?: boolean; mode: ShadowRootMode; serializable?: boolean; @@ -2146,6 +2160,16 @@ interface ShareData { url?: string; } +interface SpeechRecognitionErrorEventInit extends EventInit { + error: SpeechRecognitionErrorCode; + message?: string; +} + +interface SpeechRecognitionEventInit extends EventInit { + resultIndex?: number; + results: SpeechRecognitionResultList; +} + interface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit { error: SpeechSynthesisErrorCode; } @@ -4576,91 +4600,6 @@ declare var CDATASection: { new(): CDATASection; }; -/** - * The `CSPViolationReportBody` interface is an extension of the Reporting API that represents the body of a Content Security Policy (CSP) violation report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody) - */ -interface CSPViolationReportBody extends ReportBody { - /** - * The **`blockedURL`** read-only property of the CSPViolationReportBody interface is a string value that represents the resource that was blocked because it violates a Content Security Policy (CSP). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/blockedURL) - */ - readonly blockedURL: string | null; - /** - * The **`columnNumber`** read-only property of the CSPViolationReportBody interface indicates the column number in the source file that triggered the Content Security Policy (CSP) violation. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/columnNumber) - */ - readonly columnNumber: number | null; - /** - * The **`disposition`** read-only property of the CSPViolationReportBody interface indicates whether the user agent is configured to enforce Content Security Policy (CSP) violations or only report them. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/disposition) - */ - readonly disposition: SecurityPolicyViolationEventDisposition; - /** - * The **`documentURL`** read-only property of the CSPViolationReportBody interface is a string that represents the URL of the document or worker that violated the Content Security Policy (CSP). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/documentURL) - */ - readonly documentURL: string; - /** - * The **`effectiveDirective`** read-only property of the CSPViolationReportBody interface is a string that represents the effective Content Security Policy (CSP) directive that was violated. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/effectiveDirective) - */ - readonly effectiveDirective: string; - /** - * The **`lineNumber`** read-only property of the CSPViolationReportBody interface indicates the line number in the source file that triggered the Content Security Policy (CSP) violation. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/lineNumber) - */ - readonly lineNumber: number | null; - /** - * The **`originalPolicy`** read-only property of the CSPViolationReportBody interface is a string that represents the Content Security Policy (CSP) whose enforcement uncovered the violation. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/originalPolicy) - */ - readonly originalPolicy: string; - /** - * The **`referrer`** read-only property of the CSPViolationReportBody interface is a string that represents the URL of the referring page of the resource who's Content Security Policy (CSP) was violated. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/referrer) - */ - readonly referrer: string | null; - /** - * The **`sample`** read-only property of the CSPViolationReportBody interface is a string that contains a part of the resource that violated the Content Security Policy (CSP). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/sample) - */ - readonly sample: string | null; - /** - * The **`sourceFile`** read-only property of the CSPViolationReportBody interface indicates the URL of the source file that violated the Content Security Policy (CSP). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/sourceFile) - */ - readonly sourceFile: string | null; - /** - * The **`statusCode`** read-only property of the CSPViolationReportBody interface is a number representing the HTTP status code of the response to the request that triggered a Content Security Policy (CSP) violation (when loading a window or worker). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/statusCode) - */ - readonly statusCode: number; - /** - * The **`toJSON()`** method of the CSPViolationReportBody interface is a _serializer_, which returns a JSON representation of the `CSPViolationReportBody` object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/toJSON) - */ - toJSON(): any; -} - -declare var CSPViolationReportBody: { - prototype: CSPViolationReportBody; - new(): CSPViolationReportBody; -}; - /** * The **`CSSAnimation`** interface of the Web Animations API represents an Animation object. * @@ -4901,7 +4840,7 @@ interface CSSGroupingRule extends CSSRule { */ deleteRule(index: number): void; /** - * The **`insertRule()`** method of the ```js-nolint insertRule(rule) insertRule(rule, index) ``` - `rule` - : A string - `index` [MISSING: optional_inline] - : An optional index at which to insert the rule; defaults to 0. + * The **`insertRule()`** method of the ```js-nolint insertRule(rule) insertRule(rule, index) ``` - `rule` - : A string - `index` MISSING: optional_inline] - : An optional index at which to insert the rule; defaults to 0. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/insertRule) */ @@ -6414,6 +6353,8 @@ interface CSSStyleProperties extends CSSStyleDeclaration { 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-emoji) */ + fontVariantEmoji: 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) */ @@ -8802,7 +8743,7 @@ declare var CustomElementRegistry: { }; /** - * The **`CustomEvent`** interface represents events initialized by an application for any purpose. + * The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */ @@ -8936,7 +8877,7 @@ interface DOMImplementation { */ createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument; /** - * The **`DOMImplementation.createDocumentType()`** method returns a DocumentType object which can either be used with into the document via methods like Node.insertBefore() or ```js-nolint createDocumentType(qualifiedNameStr, publicId, systemId) ``` - `qualifiedNameStr` - : A string containing the qualified name, like `svg:svg`. + * The **`DOMImplementation.createDocumentType()`** method returns a DocumentType object which can either be used with into the document via methods like Node.insertBefore() or ```js-nolint createDocumentType(name, publicId, systemId) ``` - `name` - : A string containing the name of the doctype, like `html`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocumentType) */ @@ -10470,6 +10411,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent; createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent; createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent; + createEvent(eventInterface: "SpeechRecognitionErrorEvent"): SpeechRecognitionErrorEvent; + createEvent(eventInterface: "SpeechRecognitionEvent"): SpeechRecognitionEvent; createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent; createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent; createEvent(eventInterface: "StorageEvent"): StorageEvent; @@ -13745,7 +13688,12 @@ interface HTMLCollectionOf extends HTMLCollectionBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDListElement) */ interface HTMLDListElement extends HTMLElement { - /** @deprecated */ + /** + * The **`compact`** property of the HTMLDListElement interface indicates that spacing between list items should be reduced. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDListElement/compact) + */ 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; @@ -13839,6 +13787,12 @@ declare var HTMLDetailsElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement) */ interface HTMLDialogElement extends HTMLElement { + /** + * The **`closedBy`** property of the A string; possible values are: - `any` - : The dialog can be dismissed with a light dismiss user action, a platform-specific user action, or a developer-specified mechanism. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/closedBy) + */ + closedBy: string; /** * The **`open`** property of the `open` HTML attribute, indicating whether the dialog is available for interaction. * @@ -15089,7 +15043,7 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement { */ max: string; /** - * The **`maxLength`** property of the HTMLInputElement interface indicates the maximum number of characters (in UTF-16 code units) allowed to be entered for the value of the input element, and the maximum number of characters allowed for the value to be valid. + * The **`maxLength`** property of the HTMLInputElement interface indicates the maximum number of characters (in UTF-16) allowed to be entered for the value of the input element, and the maximum number of characters allowed for the value to be valid. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/maxLength) */ @@ -15101,7 +15055,7 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement { */ min: string; /** - * The **`minLength`** property of the HTMLInputElement interface indicates the minimum number of characters (in UTF-16 code units) required for the value of the input element to be valid. + * The **`minLength`** property of the HTMLInputElement interface indicates the minimum number of characters (in UTF-16) required for the value of the input element to be valid. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/minLength) */ @@ -15223,7 +15177,7 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement { */ readonly webkitEntries: ReadonlyArray; /** - * The **`HTMLInputElement.webkitdirectory`** is a property that reflects the `webkitdirectory` HTML attribute and indicates that the input element should let the user select directories instead of files. + * The **`webkitdirectory`** property of the HTMLInputElement interface reflects the `webkitdirectory` HTML attribute, which indicates that `` elements should let the user select directories instead of files. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitdirectory) */ @@ -15866,7 +15820,12 @@ declare var HTMLMediaElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMenuElement) */ interface HTMLMenuElement extends HTMLElement { - /** @deprecated */ + /** + * The **`compact`** property of the HTMLMenuElement interface indicates that spacing between list items should be reduced. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMenuElement/compact) + */ 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; @@ -16021,7 +15980,12 @@ declare var HTMLModElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement) */ interface HTMLOListElement extends HTMLElement { - /** @deprecated */ + /** + * The **`compact`** property of the HTMLOListElement interface indicates that spacing between list items should be reduced. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/compact) + */ compact: boolean; /** * The **`reversed`** property of the HTMLOListElement interface indicates order of a list. @@ -17595,13 +17559,13 @@ interface HTMLTextAreaElement extends HTMLElement { */ readonly labels: NodeListOf; /** - * The **`maxLength`** property of the HTMLTextAreaElement interface indicates the maximum number of characters (in UTF-16 code units) allowed to be entered for the value of the textarea element, and the maximum number of characters allowed for the value to be valid. + * The **`maxLength`** property of the HTMLTextAreaElement interface indicates the maximum number of characters (in UTF-16) allowed to be entered for the value of the textarea element, and the maximum number of characters allowed for the value to be valid. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/maxLength) */ maxLength: number; /** - * The **`minLength`** property of the HTMLTextAreaElement interface indicates the minimum number of characters (in UTF-16 code units) required for the value of the textarea element to be valid. + * The **`minLength`** property of the HTMLTextAreaElement interface indicates the minimum number of characters (in UTF-16) required for the value of the textarea element to be valid. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/minLength) */ @@ -17655,7 +17619,7 @@ interface HTMLTextAreaElement extends HTMLElement { */ selectionStart: number; /** - * The **`textLength`** read-only property of the HTMLTextAreaElement interface is a non-negative integer representing the number of characters, in UTF-16 code units, of the textarea element's value. + * The **`textLength`** read-only property of the HTMLTextAreaElement interface is a non-negative integer representing the number of characters, in UTF-16, of the textarea element's value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/textLength) */ @@ -17863,7 +17827,12 @@ declare var HTMLTrackElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement) */ interface HTMLUListElement extends HTMLElement { - /** @deprecated */ + /** + * The **`compact`** property of the HTMLUListElement interface indicates that spacing between list items should be reduced. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement/compact) + */ compact: boolean; /** @deprecated */ type: string; @@ -19216,44 +19185,49 @@ declare var InputEvent: { */ interface IntersectionObserver { /** - * The IntersectionObserver interface's read-only **`root`** property identifies the Element or of the viewport for the element which is the observer's target. + * The **`root`** read-only property of the IntersectionObserver interface identifies the Element or Document whose bounds are treated as the bounding box of the viewport for the element which is the observer's target. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/root) */ readonly root: Element | Document | null; /** - * The IntersectionObserver interface's read-only **`rootMargin`** property is a string with syntax similar to that of the CSS margin property. + * The **`rootMargin`** read-only property of the IntersectionObserver interface is a string with syntax similar to that of the CSS margin property. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/rootMargin) */ readonly rootMargin: string; + /** + * The **`scrollMargin`** read-only property of the IntersectionObserver interface adds a margin to all nested scroll container within the root element, including the root element if it is a scroll container. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/scrollMargin) + */ readonly scrollMargin: string; /** - * The IntersectionObserver interface's read-only **`thresholds`** property returns the list of intersection thresholds that was specified when the observer was instantiated with only one threshold ratio was provided when instantiating the object, this will be an array containing that single value. + * The **`thresholds`** read-only property of the IntersectionObserver interface returns the list of intersection thresholds that was specified when the observer was instantiated with IntersectionObserver.IntersectionObserver. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/thresholds) */ readonly thresholds: ReadonlyArray; /** - * The IntersectionObserver method **`disconnect()`** stops watching all of its target elements for visibility changes. + * The **`disconnect()`** method of the IntersectionObserver interface stops the observer watching all of its target elements for visibility changes. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/disconnect) */ disconnect(): void; /** - * The IntersectionObserver method **`observe()`** adds an element to the set of target elements being watched by the `IntersectionObserver`. + * The **`observe()`** method of the IntersectionObserver interface adds an element to the set of target elements being watched by the `IntersectionObserver`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/observe) */ observe(target: Element): void; /** - * The IntersectionObserver method **`takeRecords()`** returns an array of has experienced an intersection change since the last time the intersections were checked, either explicitly through a call to this method or implicitly by an automatic call to the observer's callback. + * The **`takeRecords()`** method of the IntersectionObserver interface returns an array of IntersectionObserverEntry objects, one for each targeted element which has experienced an intersection change since the last time the intersections were checked, either explicitly through a call to this method or implicitly by an automatic call to the observer's callback. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/takeRecords) */ takeRecords(): IntersectionObserverEntry[]; /** - * The IntersectionObserver method **`unobserve()`** instructs the `IntersectionObserver` to stop observing the specified target element. + * The **`unobserve()`** method of the IntersectionObserver interface instructs the `IntersectionObserver` to stop observing the specified target element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/unobserve) */ @@ -19272,43 +19246,43 @@ declare var IntersectionObserver: { */ interface IntersectionObserverEntry { /** - * The IntersectionObserverEntry interface's read-only **`boundingClientRect`** property returns a smallest rectangle that contains the entire target element. + * The **`boundingClientRect`** read-only property of the IntersectionObserverEntry interface returns a DOMRectReadOnly which in essence describes a rectangle describing the smallest rectangle that contains the entire target element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/boundingClientRect) */ readonly boundingClientRect: DOMRectReadOnly; /** - * The IntersectionObserverEntry interface's read-only **`intersectionRatio`** property tells you how much of the target element is currently visible within the root's intersection ratio, as a value between 0.0 and 1.0. + * The **`intersectionRatio`** read-only property of the IntersectionObserverEntry interface tells you how much of the target element is currently visible within the root's intersection ratio, as a value between 0.0 and 1.0. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRatio) */ readonly intersectionRatio: number; /** - * The IntersectionObserverEntry interface's read-only **`intersectionRect`** property is a contains the entire portion of the target element which is currently visible within the intersection root. + * The **`intersectionRect`** read-only property of the IntersectionObserverEntry interface is a DOMRectReadOnly object which describes the smallest rectangle that contains the entire portion of the target element which is currently visible within the intersection root. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRect) */ readonly intersectionRect: DOMRectReadOnly; /** - * The IntersectionObserverEntry interface's read-only **`isIntersecting`** property is a Boolean value which is `true` if the target element intersects with the intersection observer's root. + * The **`isIntersecting`** read-only property of the IntersectionObserverEntry interface is a Boolean value which is `true` if the target element intersects with the intersection observer's root. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/isIntersecting) */ readonly isIntersecting: boolean; /** - * The IntersectionObserverEntry interface's read-only **`rootBounds`** property is a rectangle, offset by the IntersectionObserver.rootMargin if one is specified. + * The **`rootBounds`** read-only property of the IntersectionObserverEntry interface is a DOMRectReadOnly corresponding to the IntersectionObserverEntry.target's root intersection rectangle, offset by the IntersectionObserver.rootMargin if one is specified. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/rootBounds) */ readonly rootBounds: DOMRectReadOnly | null; /** - * The IntersectionObserverEntry interface's read-only **`target`** property indicates which targeted root. + * The **`target`** read-only property of the IntersectionObserverEntry interface indicates which targeted Element has changed its amount of intersection with the intersection root. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/target) */ readonly target: Element; /** - * The IntersectionObserverEntry interface's read-only **`time`** property is a change occurred relative to the time at which the document was created. + * The **`time`** read-only property of the IntersectionObserverEntry interface is a DOMHighResTimeStamp that indicates the time at which the intersection change occurred relative to the time at which the document was created. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/time) */ @@ -23642,13 +23616,13 @@ interface PerformanceNavigationTiming extends PerformanceResourceTiming { */ readonly type: NavigationTimingType; /** - * The **`unloadEventEnd`** read-only property returns a DOMHighResTimeStamp representing the time immediately after the current document's `unload` event handler completes. + * The **`unloadEventEnd`** read-only property returns a DOMHighResTimeStamp representing the time immediately after the previous document's `unload` event handler completes. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventEnd) */ readonly unloadEventEnd: DOMHighResTimeStamp; /** - * The **`unloadEventStart`** read-only property returns a DOMHighResTimeStamp representing the time immediately before the current document's `unload` event handler starts. + * The **`unloadEventStart`** read-only property returns a DOMHighResTimeStamp representing the time immediately before the previous document's `unload` event handler starts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventStart) */ @@ -24304,6 +24278,12 @@ interface PointerEvent extends MouseEvent { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/isPrimary) */ readonly isPrimary: boolean; + /** + * The **`persistentDeviceId`** read-only property of the PointerEvent interface is a unique identifier for the pointing device generating the `PointerEvent`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/persistentDeviceId) + */ + readonly persistentDeviceId: number; /** * The **`pointerId`** read-only property of the event. * @@ -26285,57 +26265,6 @@ declare var RemotePlayback: { new(): RemotePlayback; }; -/** - * The `Report` interface of the Reporting API represents a single report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report) - */ -interface Report { - /** - * The **`body`** read-only property of the Report interface returns the body of the report, which is a `ReportBody` object containing the detailed report information. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body) - */ - readonly body: ReportBody | null; - /** - * The **`type`** read-only property of the Report interface returns the type of report generated, e.g., `deprecation` or `intervention`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type) - */ - readonly type: string; - /** - * The **`url`** read-only property of the Report interface returns the URL of the document that generated the report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url) - */ - readonly url: string; - toJSON(): any; -} - -declare var Report: { - prototype: Report; - new(): Report; -}; - -/** - * The **`ReportBody`** interface of the Reporting API represents the body of a report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody) - */ -interface ReportBody { - /** - * The **`toJSON()`** method of the ReportBody interface is a _serializer_, and returns a JSON representation of the `ReportBody` object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON) - */ - toJSON(): any; -} - -declare var ReportBody: { - prototype: ReportBody; - new(): ReportBody; -}; - /** * The `ReportingObserver` interface of the Reporting API allows you to collect and access reports. * @@ -30828,7 +30757,7 @@ interface ServiceWorkerContainerEventMap { */ interface ServiceWorkerContainer extends EventTarget { /** - * The **`controller`** read-only property of the ServiceWorkerContainer interface returns a `activated` (the same object returned by `null` if the request is a force refresh (_Shift_ + refresh) or if there is no active worker. + * The **`controller`** read-only property of the ServiceWorkerContainer interface represents the active ServiceWorker controlling the current page (associated with this `ServiceWorkerContainer`), or `null` if the page has no active or activating service worker. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller) */ @@ -31005,7 +30934,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot { */ readonly host: Element; /** - * The **`innerHTML`** property of the ShadowRoot interface sets gets or sets the HTML markup to the DOM tree inside the `ShadowRoot`. + * The **`innerHTML`** property of the ShadowRoot interface gets or sets the HTML markup to the DOM tree inside the `ShadowRoot`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/innerHTML) */ @@ -31227,6 +31156,58 @@ declare var SpeechRecognitionAlternative: { new(): SpeechRecognitionAlternative; }; +/** + * The **`SpeechRecognitionErrorEvent`** interface of the Web Speech API represents error messages from the recognition service. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionErrorEvent) + */ +interface SpeechRecognitionErrorEvent extends Event { + /** + * The **`error`** read-only property of the A string naming the type of error. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionErrorEvent/error) + */ + readonly error: SpeechRecognitionErrorCode; + /** + * The **`message`** read-only property of the error in more detail. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionErrorEvent/message) + */ + readonly message: string; +} + +declare var SpeechRecognitionErrorEvent: { + prototype: SpeechRecognitionErrorEvent; + new(type: string, eventInitDict: SpeechRecognitionErrorEventInit): SpeechRecognitionErrorEvent; +}; + +/** + * The **`SpeechRecognitionEvent`** interface of the Web Speech API represents the event object for the SpeechRecognition.result_event and SpeechRecognition.nomatch_event events, and contains all the data associated with an interim or final speech recognition result. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionEvent) + */ +interface SpeechRecognitionEvent extends Event { + /** + * The **`resultIndex`** read-only property of the the SpeechRecognitionResultList 'array' that has actually changed. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionEvent/resultIndex) + */ + readonly resultIndex: number; + /** + * The **`results`** read-only property of the recognition results for the current session. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionEvent/results) + */ + readonly results: SpeechRecognitionResultList; +} + +declare var SpeechRecognitionEvent: { + prototype: SpeechRecognitionEvent; + new(type: string, eventInitDict: SpeechRecognitionEventInit): SpeechRecognitionEvent; +}; + /** * The **`SpeechRecognitionResult`** interface of the Web Speech API represents a single recognition match, which may contain multiple SpeechRecognitionAlternative objects. * Available only in secure contexts. @@ -32009,7 +31990,7 @@ declare var Text: { }; /** - * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, `KOI8-R`, `GBK`, etc. + * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, or `GBK`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder) */ @@ -32064,19 +32045,19 @@ declare var TextDecoderStream: { }; /** - * The **`TextEncoder`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes. + * The **`TextEncoder`** interface enables you to character encoding a JavaScript string using UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder) */ interface TextEncoder extends TextEncoderCommon { /** - * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the text given in parameters encoded with the specific method for that TextEncoder object. + * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the string character encoding using UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode) */ encode(input?: string): Uint8Array; /** - * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns a dictionary object indicating the progress of the encoding. + * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns an object indicating the progress of the encoding. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto) */ @@ -33010,6 +32991,11 @@ declare var webkitURL: typeof URL; * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern) */ interface URLPattern { + /** + * The **`hasRegExpGroups`** read-only property of the URLPattern interface is a boolean indicating whether or not any of the `URLPattern` components contain regular expression capturing groups. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hasRegExpGroups) + */ readonly hasRegExpGroups: boolean; /** * The **`hash`** read-only property of the URLPattern interface is a string containing the pattern used to match the fragment part of a URL. @@ -39503,6 +39489,7 @@ type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasEl type ClipboardItemData = Promise; type ClipboardItems = ClipboardItem[]; type ConstrainBoolean = boolean | ConstrainBooleanParameters; +type ConstrainBooleanOrDOMString = boolean | string | ConstrainBooleanOrDOMStringParameters; type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters; type ConstrainDouble = number | ConstrainDoubleRange; type ConstrainULong = number | ConstrainULongRange; @@ -39737,6 +39724,7 @@ type ServiceWorkerState = "activated" | "activating" | "installed" | "installing type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; type ShadowRootMode = "closed" | "open"; type SlotAssignmentMode = "manual" | "named"; +type SpeechRecognitionErrorCode = "aborted" | "audio-capture" | "language-not-supported" | "network" | "no-speech" | "not-allowed" | "phrases-not-supported" | "service-not-allowed"; 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"; diff --git a/baselines/ts5.5/serviceworker.generated.d.ts b/baselines/ts5.5/serviceworker.generated.d.ts index 1a9b2d88c..6847b2bec 100644 --- a/baselines/ts5.5/serviceworker.generated.d.ts +++ b/baselines/ts5.5/serviceworker.generated.d.ts @@ -570,6 +570,15 @@ interface RegistrationOptions { updateViaCache?: ServiceWorkerUpdateViaCache; } +interface Report { + body?: ReportBody | null; + type?: string; + url?: string; +} + +interface ReportBody { +} + interface ReportingObserverOptions { buffered?: boolean; types?: string[]; @@ -2340,7 +2349,7 @@ declare var CryptoKey: { }; /** - * The **`CustomEvent`** interface represents events initialized by an application for any purpose. + * The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */ @@ -6550,57 +6559,6 @@ interface ReadableStreamGenericReader { cancel(reason?: any): Promise; } -/** - * The `Report` interface of the Reporting API represents a single report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report) - */ -interface Report { - /** - * The **`body`** read-only property of the Report interface returns the body of the report, which is a `ReportBody` object containing the detailed report information. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body) - */ - readonly body: ReportBody | null; - /** - * The **`type`** read-only property of the Report interface returns the type of report generated, e.g., `deprecation` or `intervention`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type) - */ - readonly type: string; - /** - * The **`url`** read-only property of the Report interface returns the URL of the document that generated the report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url) - */ - readonly url: string; - toJSON(): any; -} - -declare var Report: { - prototype: Report; - new(): Report; -}; - -/** - * The **`ReportBody`** interface of the Reporting API represents the body of a report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody) - */ -interface ReportBody { - /** - * The **`toJSON()`** method of the ReportBody interface is a _serializer_, and returns a JSON representation of the `ReportBody` object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON) - */ - toJSON(): any; -} - -declare var ReportBody: { - prototype: ReportBody; - new(): ReportBody; -}; - /** * The `ReportingObserver` interface of the Reporting API allows you to collect and access reports. * @@ -6950,7 +6908,7 @@ interface ServiceWorkerContainerEventMap { */ interface ServiceWorkerContainer extends EventTarget { /** - * The **`controller`** read-only property of the ServiceWorkerContainer interface returns a `activated` (the same object returned by `null` if the request is a force refresh (_Shift_ + refresh) or if there is no active worker. + * The **`controller`** read-only property of the ServiceWorkerContainer interface represents the active ServiceWorker controlling the current page (associated with this `ServiceWorkerContainer`), or `null` if the page has no active or activating service worker. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller) */ @@ -7342,7 +7300,7 @@ declare var SubtleCrypto: { }; /** - * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, `KOI8-R`, `GBK`, etc. + * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, or `GBK`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder) */ @@ -7397,19 +7355,19 @@ declare var TextDecoderStream: { }; /** - * The **`TextEncoder`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes. + * The **`TextEncoder`** interface enables you to character encoding a JavaScript string using UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder) */ interface TextEncoder extends TextEncoderCommon { /** - * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the text given in parameters encoded with the specific method for that TextEncoder object. + * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the string character encoding using UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode) */ encode(input?: string): Uint8Array; /** - * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns a dictionary object indicating the progress of the encoding. + * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns an object indicating the progress of the encoding. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto) */ @@ -7702,6 +7660,11 @@ declare var URL: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern) */ interface URLPattern { + /** + * The **`hasRegExpGroups`** read-only property of the URLPattern interface is a boolean indicating whether or not any of the `URLPattern` components contain regular expression capturing groups. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hasRegExpGroups) + */ readonly hasRegExpGroups: boolean; /** * The **`hash`** read-only property of the URLPattern interface is a string containing the pattern used to match the fragment part of a URL. diff --git a/baselines/ts5.5/sharedworker.generated.d.ts b/baselines/ts5.5/sharedworker.generated.d.ts index 5d667a78d..de00fa37c 100644 --- a/baselines/ts5.5/sharedworker.generated.d.ts +++ b/baselines/ts5.5/sharedworker.generated.d.ts @@ -500,6 +500,15 @@ interface RegistrationOptions { updateViaCache?: ServiceWorkerUpdateViaCache; } +interface Report { + body?: ReportBody | null; + type?: string; + url?: string; +} + +interface ReportBody { +} + interface ReportingObserverOptions { buffered?: boolean; types?: string[]; @@ -2121,7 +2130,7 @@ declare var CryptoKey: { }; /** - * The **`CustomEvent`** interface represents events initialized by an application for any purpose. + * The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */ @@ -6133,57 +6142,6 @@ interface ReadableStreamGenericReader { cancel(reason?: any): Promise; } -/** - * The `Report` interface of the Reporting API represents a single report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report) - */ -interface Report { - /** - * The **`body`** read-only property of the Report interface returns the body of the report, which is a `ReportBody` object containing the detailed report information. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body) - */ - readonly body: ReportBody | null; - /** - * The **`type`** read-only property of the Report interface returns the type of report generated, e.g., `deprecation` or `intervention`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type) - */ - readonly type: string; - /** - * The **`url`** read-only property of the Report interface returns the URL of the document that generated the report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url) - */ - readonly url: string; - toJSON(): any; -} - -declare var Report: { - prototype: Report; - new(): Report; -}; - -/** - * The **`ReportBody`** interface of the Reporting API represents the body of a report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody) - */ -interface ReportBody { - /** - * The **`toJSON()`** method of the ReportBody interface is a _serializer_, and returns a JSON representation of the `ReportBody` object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON) - */ - toJSON(): any; -} - -declare var ReportBody: { - prototype: ReportBody; - new(): ReportBody; -}; - /** * The `ReportingObserver` interface of the Reporting API allows you to collect and access reports. * @@ -6533,7 +6491,7 @@ interface ServiceWorkerContainerEventMap { */ interface ServiceWorkerContainer extends EventTarget { /** - * The **`controller`** read-only property of the ServiceWorkerContainer interface returns a `activated` (the same object returned by `null` if the request is a force refresh (_Shift_ + refresh) or if there is no active worker. + * The **`controller`** read-only property of the ServiceWorkerContainer interface represents the active ServiceWorker controlling the current page (associated with this `ServiceWorkerContainer`), or `null` if the page has no active or activating service worker. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller) */ @@ -6873,7 +6831,7 @@ declare var SubtleCrypto: { }; /** - * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, `KOI8-R`, `GBK`, etc. + * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, or `GBK`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder) */ @@ -6928,19 +6886,19 @@ declare var TextDecoderStream: { }; /** - * The **`TextEncoder`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes. + * The **`TextEncoder`** interface enables you to character encoding a JavaScript string using UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder) */ interface TextEncoder extends TextEncoderCommon { /** - * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the text given in parameters encoded with the specific method for that TextEncoder object. + * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the string character encoding using UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode) */ encode(input?: string): Uint8Array; /** - * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns a dictionary object indicating the progress of the encoding. + * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns an object indicating the progress of the encoding. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto) */ @@ -7245,6 +7203,11 @@ declare var URL: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern) */ interface URLPattern { + /** + * The **`hasRegExpGroups`** read-only property of the URLPattern interface is a boolean indicating whether or not any of the `URLPattern` components contain regular expression capturing groups. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hasRegExpGroups) + */ readonly hasRegExpGroups: boolean; /** * The **`hash`** read-only property of the URLPattern interface is a string containing the pattern used to match the fragment part of a URL. diff --git a/baselines/ts5.5/webworker.generated.d.ts b/baselines/ts5.5/webworker.generated.d.ts index dece3699a..cdaec1532 100644 --- a/baselines/ts5.5/webworker.generated.d.ts +++ b/baselines/ts5.5/webworker.generated.d.ts @@ -714,6 +714,15 @@ interface RegistrationOptions { updateViaCache?: ServiceWorkerUpdateViaCache; } +interface Report { + body?: ReportBody | null; + type?: string; + url?: string; +} + +interface ReportBody { +} + interface ReportingObserverOptions { buffered?: boolean; types?: string[]; @@ -2808,7 +2817,7 @@ declare var CryptoKey: { }; /** - * The **`CustomEvent`** interface represents events initialized by an application for any purpose. + * The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */ @@ -7652,57 +7661,6 @@ interface ReadableStreamGenericReader { cancel(reason?: any): Promise; } -/** - * The `Report` interface of the Reporting API represents a single report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report) - */ -interface Report { - /** - * The **`body`** read-only property of the Report interface returns the body of the report, which is a `ReportBody` object containing the detailed report information. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body) - */ - readonly body: ReportBody | null; - /** - * The **`type`** read-only property of the Report interface returns the type of report generated, e.g., `deprecation` or `intervention`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type) - */ - readonly type: string; - /** - * The **`url`** read-only property of the Report interface returns the URL of the document that generated the report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url) - */ - readonly url: string; - toJSON(): any; -} - -declare var Report: { - prototype: Report; - new(): Report; -}; - -/** - * The **`ReportBody`** interface of the Reporting API represents the body of a report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody) - */ -interface ReportBody { - /** - * The **`toJSON()`** method of the ReportBody interface is a _serializer_, and returns a JSON representation of the `ReportBody` object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON) - */ - toJSON(): any; -} - -declare var ReportBody: { - prototype: ReportBody; - new(): ReportBody; -}; - /** * The `ReportingObserver` interface of the Reporting API allows you to collect and access reports. * @@ -8052,7 +8010,7 @@ interface ServiceWorkerContainerEventMap { */ interface ServiceWorkerContainer extends EventTarget { /** - * The **`controller`** read-only property of the ServiceWorkerContainer interface returns a `activated` (the same object returned by `null` if the request is a force refresh (_Shift_ + refresh) or if there is no active worker. + * The **`controller`** read-only property of the ServiceWorkerContainer interface represents the active ServiceWorker controlling the current page (associated with this `ServiceWorkerContainer`), or `null` if the page has no active or activating service worker. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller) */ @@ -8479,7 +8437,7 @@ declare var SubtleCrypto: { }; /** - * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, `KOI8-R`, `GBK`, etc. + * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, or `GBK`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder) */ @@ -8534,19 +8492,19 @@ declare var TextDecoderStream: { }; /** - * The **`TextEncoder`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes. + * The **`TextEncoder`** interface enables you to character encoding a JavaScript string using UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder) */ interface TextEncoder extends TextEncoderCommon { /** - * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the text given in parameters encoded with the specific method for that TextEncoder object. + * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the string character encoding using UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode) */ encode(input?: string): Uint8Array; /** - * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns a dictionary object indicating the progress of the encoding. + * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns an object indicating the progress of the encoding. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto) */ @@ -8851,6 +8809,11 @@ declare var URL: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern) */ interface URLPattern { + /** + * The **`hasRegExpGroups`** read-only property of the URLPattern interface is a boolean indicating whether or not any of the `URLPattern` components contain regular expression capturing groups. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hasRegExpGroups) + */ readonly hasRegExpGroups: boolean; /** * The **`hash`** read-only property of the URLPattern interface is a string containing the pattern used to match the fragment part of a URL. diff --git a/baselines/ts5.6/audioworklet.generated.d.ts b/baselines/ts5.6/audioworklet.generated.d.ts index cae1a5fd3..9b946e70a 100644 --- a/baselines/ts5.6/audioworklet.generated.d.ts +++ b/baselines/ts5.6/audioworklet.generated.d.ts @@ -374,7 +374,7 @@ declare var CountQueuingStrategy: { }; /** - * The **`CustomEvent`** interface represents events initialized by an application for any purpose. + * The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */ @@ -1067,7 +1067,7 @@ interface ReadableStreamGenericReader { } /** - * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, `KOI8-R`, `GBK`, etc. + * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, or `GBK`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder) */ @@ -1122,19 +1122,19 @@ declare var TextDecoderStream: { }; /** - * The **`TextEncoder`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes. + * The **`TextEncoder`** interface enables you to character encoding a JavaScript string using UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder) */ interface TextEncoder extends TextEncoderCommon { /** - * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the text given in parameters encoded with the specific method for that TextEncoder object. + * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the string character encoding using UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode) */ encode(input?: string): Uint8Array; /** - * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns a dictionary object indicating the progress of the encoding. + * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns an object indicating the progress of the encoding. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto) */ diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index 9210977da..a0f9b4bb6 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -376,6 +376,11 @@ interface ConstantSourceOptions { offset?: number; } +interface ConstrainBooleanOrDOMStringParameters { + exact?: boolean | string; + ideal?: boolean | string; +} + interface ConstrainBooleanParameters { exact?: boolean; ideal?: boolean; @@ -1113,7 +1118,7 @@ interface MediaTrackCapabilities { channelCount?: ULongRange; deviceId?: string; displaySurface?: string; - echoCancellation?: boolean[]; + echoCancellation?: (boolean | string)[]; facingMode?: string[]; frameRate?: DoubleRange; groupId?: string; @@ -1131,7 +1136,7 @@ interface MediaTrackConstraintSet { channelCount?: ConstrainULong; deviceId?: ConstrainDOMString; displaySurface?: ConstrainDOMString; - echoCancellation?: ConstrainBoolean; + echoCancellation?: ConstrainBooleanOrDOMString; facingMode?: ConstrainDOMString; frameRate?: ConstrainDouble; groupId?: ConstrainDOMString; @@ -1153,7 +1158,7 @@ interface MediaTrackSettings { channelCount?: number; deviceId?: string; displaySurface?: string; - echoCancellation?: boolean; + echoCancellation?: boolean | string; facingMode?: string; frameRate?: number; groupId?: string; @@ -2013,6 +2018,15 @@ interface RegistrationOptions { updateViaCache?: ServiceWorkerUpdateViaCache; } +interface Report { + body?: ReportBody | null; + type?: string; + url?: string; +} + +interface ReportBody { +} + interface ReportingObserverOptions { buffered?: boolean; types?: string[]; @@ -2132,7 +2146,7 @@ interface SecurityPolicyViolationEventInit extends EventInit { interface ShadowRootInit { clonable?: boolean; - customElementRegistry?: CustomElementRegistry; + customElementRegistry?: CustomElementRegistry | null; delegatesFocus?: boolean; mode: ShadowRootMode; serializable?: boolean; @@ -2146,6 +2160,16 @@ interface ShareData { url?: string; } +interface SpeechRecognitionErrorEventInit extends EventInit { + error: SpeechRecognitionErrorCode; + message?: string; +} + +interface SpeechRecognitionEventInit extends EventInit { + resultIndex?: number; + results: SpeechRecognitionResultList; +} + interface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit { error: SpeechSynthesisErrorCode; } @@ -4576,91 +4600,6 @@ declare var CDATASection: { new(): CDATASection; }; -/** - * The `CSPViolationReportBody` interface is an extension of the Reporting API that represents the body of a Content Security Policy (CSP) violation report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody) - */ -interface CSPViolationReportBody extends ReportBody { - /** - * The **`blockedURL`** read-only property of the CSPViolationReportBody interface is a string value that represents the resource that was blocked because it violates a Content Security Policy (CSP). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/blockedURL) - */ - readonly blockedURL: string | null; - /** - * The **`columnNumber`** read-only property of the CSPViolationReportBody interface indicates the column number in the source file that triggered the Content Security Policy (CSP) violation. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/columnNumber) - */ - readonly columnNumber: number | null; - /** - * The **`disposition`** read-only property of the CSPViolationReportBody interface indicates whether the user agent is configured to enforce Content Security Policy (CSP) violations or only report them. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/disposition) - */ - readonly disposition: SecurityPolicyViolationEventDisposition; - /** - * The **`documentURL`** read-only property of the CSPViolationReportBody interface is a string that represents the URL of the document or worker that violated the Content Security Policy (CSP). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/documentURL) - */ - readonly documentURL: string; - /** - * The **`effectiveDirective`** read-only property of the CSPViolationReportBody interface is a string that represents the effective Content Security Policy (CSP) directive that was violated. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/effectiveDirective) - */ - readonly effectiveDirective: string; - /** - * The **`lineNumber`** read-only property of the CSPViolationReportBody interface indicates the line number in the source file that triggered the Content Security Policy (CSP) violation. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/lineNumber) - */ - readonly lineNumber: number | null; - /** - * The **`originalPolicy`** read-only property of the CSPViolationReportBody interface is a string that represents the Content Security Policy (CSP) whose enforcement uncovered the violation. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/originalPolicy) - */ - readonly originalPolicy: string; - /** - * The **`referrer`** read-only property of the CSPViolationReportBody interface is a string that represents the URL of the referring page of the resource who's Content Security Policy (CSP) was violated. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/referrer) - */ - readonly referrer: string | null; - /** - * The **`sample`** read-only property of the CSPViolationReportBody interface is a string that contains a part of the resource that violated the Content Security Policy (CSP). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/sample) - */ - readonly sample: string | null; - /** - * The **`sourceFile`** read-only property of the CSPViolationReportBody interface indicates the URL of the source file that violated the Content Security Policy (CSP). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/sourceFile) - */ - readonly sourceFile: string | null; - /** - * The **`statusCode`** read-only property of the CSPViolationReportBody interface is a number representing the HTTP status code of the response to the request that triggered a Content Security Policy (CSP) violation (when loading a window or worker). - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/statusCode) - */ - readonly statusCode: number; - /** - * The **`toJSON()`** method of the CSPViolationReportBody interface is a _serializer_, which returns a JSON representation of the `CSPViolationReportBody` object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/toJSON) - */ - toJSON(): any; -} - -declare var CSPViolationReportBody: { - prototype: CSPViolationReportBody; - new(): CSPViolationReportBody; -}; - /** * The **`CSSAnimation`** interface of the Web Animations API represents an Animation object. * @@ -4902,7 +4841,7 @@ interface CSSGroupingRule extends CSSRule { */ deleteRule(index: number): void; /** - * The **`insertRule()`** method of the ```js-nolint insertRule(rule) insertRule(rule, index) ``` - `rule` - : A string - `index` [MISSING: optional_inline] - : An optional index at which to insert the rule; defaults to 0. + * The **`insertRule()`** method of the ```js-nolint insertRule(rule) insertRule(rule, index) ``` - `rule` - : A string - `index` MISSING: optional_inline] - : An optional index at which to insert the rule; defaults to 0. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/insertRule) */ @@ -6421,6 +6360,8 @@ interface CSSStyleProperties extends CSSStyleDeclaration { 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-emoji) */ + fontVariantEmoji: 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) */ @@ -8810,7 +8751,7 @@ declare var CustomElementRegistry: { }; /** - * The **`CustomEvent`** interface represents events initialized by an application for any purpose. + * The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */ @@ -8944,7 +8885,7 @@ interface DOMImplementation { */ createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument; /** - * The **`DOMImplementation.createDocumentType()`** method returns a DocumentType object which can either be used with into the document via methods like Node.insertBefore() or ```js-nolint createDocumentType(qualifiedNameStr, publicId, systemId) ``` - `qualifiedNameStr` - : A string containing the qualified name, like `svg:svg`. + * The **`DOMImplementation.createDocumentType()`** method returns a DocumentType object which can either be used with into the document via methods like Node.insertBefore() or ```js-nolint createDocumentType(name, publicId, systemId) ``` - `name` - : A string containing the name of the doctype, like `html`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocumentType) */ @@ -10478,6 +10419,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent; createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent; createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent; + createEvent(eventInterface: "SpeechRecognitionErrorEvent"): SpeechRecognitionErrorEvent; + createEvent(eventInterface: "SpeechRecognitionEvent"): SpeechRecognitionEvent; createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent; createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent; createEvent(eventInterface: "StorageEvent"): StorageEvent; @@ -13758,7 +13701,12 @@ interface HTMLCollectionOf extends HTMLCollectionBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDListElement) */ interface HTMLDListElement extends HTMLElement { - /** @deprecated */ + /** + * The **`compact`** property of the HTMLDListElement interface indicates that spacing between list items should be reduced. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDListElement/compact) + */ 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; @@ -13852,6 +13800,12 @@ declare var HTMLDetailsElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement) */ interface HTMLDialogElement extends HTMLElement { + /** + * The **`closedBy`** property of the A string; possible values are: - `any` - : The dialog can be dismissed with a light dismiss user action, a platform-specific user action, or a developer-specified mechanism. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/closedBy) + */ + closedBy: string; /** * The **`open`** property of the `open` HTML attribute, indicating whether the dialog is available for interaction. * @@ -15104,7 +15058,7 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement { */ max: string; /** - * The **`maxLength`** property of the HTMLInputElement interface indicates the maximum number of characters (in UTF-16 code units) allowed to be entered for the value of the input element, and the maximum number of characters allowed for the value to be valid. + * The **`maxLength`** property of the HTMLInputElement interface indicates the maximum number of characters (in UTF-16) allowed to be entered for the value of the input element, and the maximum number of characters allowed for the value to be valid. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/maxLength) */ @@ -15116,7 +15070,7 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement { */ min: string; /** - * The **`minLength`** property of the HTMLInputElement interface indicates the minimum number of characters (in UTF-16 code units) required for the value of the input element to be valid. + * The **`minLength`** property of the HTMLInputElement interface indicates the minimum number of characters (in UTF-16) required for the value of the input element to be valid. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/minLength) */ @@ -15238,7 +15192,7 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement { */ readonly webkitEntries: ReadonlyArray; /** - * The **`HTMLInputElement.webkitdirectory`** is a property that reflects the `webkitdirectory` HTML attribute and indicates that the input element should let the user select directories instead of files. + * The **`webkitdirectory`** property of the HTMLInputElement interface reflects the `webkitdirectory` HTML attribute, which indicates that `` elements should let the user select directories instead of files. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitdirectory) */ @@ -15884,7 +15838,12 @@ declare var HTMLMediaElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMenuElement) */ interface HTMLMenuElement extends HTMLElement { - /** @deprecated */ + /** + * The **`compact`** property of the HTMLMenuElement interface indicates that spacing between list items should be reduced. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMenuElement/compact) + */ 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; @@ -16039,7 +15998,12 @@ declare var HTMLModElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement) */ interface HTMLOListElement extends HTMLElement { - /** @deprecated */ + /** + * The **`compact`** property of the HTMLOListElement interface indicates that spacing between list items should be reduced. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/compact) + */ compact: boolean; /** * The **`reversed`** property of the HTMLOListElement interface indicates order of a list. @@ -17616,13 +17580,13 @@ interface HTMLTextAreaElement extends HTMLElement { */ readonly labels: NodeListOf; /** - * The **`maxLength`** property of the HTMLTextAreaElement interface indicates the maximum number of characters (in UTF-16 code units) allowed to be entered for the value of the textarea element, and the maximum number of characters allowed for the value to be valid. + * The **`maxLength`** property of the HTMLTextAreaElement interface indicates the maximum number of characters (in UTF-16) allowed to be entered for the value of the textarea element, and the maximum number of characters allowed for the value to be valid. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/maxLength) */ maxLength: number; /** - * The **`minLength`** property of the HTMLTextAreaElement interface indicates the minimum number of characters (in UTF-16 code units) required for the value of the textarea element to be valid. + * The **`minLength`** property of the HTMLTextAreaElement interface indicates the minimum number of characters (in UTF-16) required for the value of the textarea element to be valid. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/minLength) */ @@ -17676,7 +17640,7 @@ interface HTMLTextAreaElement extends HTMLElement { */ selectionStart: number; /** - * The **`textLength`** read-only property of the HTMLTextAreaElement interface is a non-negative integer representing the number of characters, in UTF-16 code units, of the textarea element's value. + * The **`textLength`** read-only property of the HTMLTextAreaElement interface is a non-negative integer representing the number of characters, in UTF-16, of the textarea element's value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/textLength) */ @@ -17884,7 +17848,12 @@ declare var HTMLTrackElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement) */ interface HTMLUListElement extends HTMLElement { - /** @deprecated */ + /** + * The **`compact`** property of the HTMLUListElement interface indicates that spacing between list items should be reduced. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement/compact) + */ compact: boolean; /** @deprecated */ type: string; @@ -19237,44 +19206,49 @@ declare var InputEvent: { */ interface IntersectionObserver { /** - * The IntersectionObserver interface's read-only **`root`** property identifies the Element or of the viewport for the element which is the observer's target. + * The **`root`** read-only property of the IntersectionObserver interface identifies the Element or Document whose bounds are treated as the bounding box of the viewport for the element which is the observer's target. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/root) */ readonly root: Element | Document | null; /** - * The IntersectionObserver interface's read-only **`rootMargin`** property is a string with syntax similar to that of the CSS margin property. + * The **`rootMargin`** read-only property of the IntersectionObserver interface is a string with syntax similar to that of the CSS margin property. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/rootMargin) */ readonly rootMargin: string; + /** + * The **`scrollMargin`** read-only property of the IntersectionObserver interface adds a margin to all nested scroll container within the root element, including the root element if it is a scroll container. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/scrollMargin) + */ readonly scrollMargin: string; /** - * The IntersectionObserver interface's read-only **`thresholds`** property returns the list of intersection thresholds that was specified when the observer was instantiated with only one threshold ratio was provided when instantiating the object, this will be an array containing that single value. + * The **`thresholds`** read-only property of the IntersectionObserver interface returns the list of intersection thresholds that was specified when the observer was instantiated with IntersectionObserver.IntersectionObserver. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/thresholds) */ readonly thresholds: ReadonlyArray; /** - * The IntersectionObserver method **`disconnect()`** stops watching all of its target elements for visibility changes. + * The **`disconnect()`** method of the IntersectionObserver interface stops the observer watching all of its target elements for visibility changes. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/disconnect) */ disconnect(): void; /** - * The IntersectionObserver method **`observe()`** adds an element to the set of target elements being watched by the `IntersectionObserver`. + * The **`observe()`** method of the IntersectionObserver interface adds an element to the set of target elements being watched by the `IntersectionObserver`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/observe) */ observe(target: Element): void; /** - * The IntersectionObserver method **`takeRecords()`** returns an array of has experienced an intersection change since the last time the intersections were checked, either explicitly through a call to this method or implicitly by an automatic call to the observer's callback. + * The **`takeRecords()`** method of the IntersectionObserver interface returns an array of IntersectionObserverEntry objects, one for each targeted element which has experienced an intersection change since the last time the intersections were checked, either explicitly through a call to this method or implicitly by an automatic call to the observer's callback. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/takeRecords) */ takeRecords(): IntersectionObserverEntry[]; /** - * The IntersectionObserver method **`unobserve()`** instructs the `IntersectionObserver` to stop observing the specified target element. + * The **`unobserve()`** method of the IntersectionObserver interface instructs the `IntersectionObserver` to stop observing the specified target element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/unobserve) */ @@ -19293,43 +19267,43 @@ declare var IntersectionObserver: { */ interface IntersectionObserverEntry { /** - * The IntersectionObserverEntry interface's read-only **`boundingClientRect`** property returns a smallest rectangle that contains the entire target element. + * The **`boundingClientRect`** read-only property of the IntersectionObserverEntry interface returns a DOMRectReadOnly which in essence describes a rectangle describing the smallest rectangle that contains the entire target element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/boundingClientRect) */ readonly boundingClientRect: DOMRectReadOnly; /** - * The IntersectionObserverEntry interface's read-only **`intersectionRatio`** property tells you how much of the target element is currently visible within the root's intersection ratio, as a value between 0.0 and 1.0. + * The **`intersectionRatio`** read-only property of the IntersectionObserverEntry interface tells you how much of the target element is currently visible within the root's intersection ratio, as a value between 0.0 and 1.0. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRatio) */ readonly intersectionRatio: number; /** - * The IntersectionObserverEntry interface's read-only **`intersectionRect`** property is a contains the entire portion of the target element which is currently visible within the intersection root. + * The **`intersectionRect`** read-only property of the IntersectionObserverEntry interface is a DOMRectReadOnly object which describes the smallest rectangle that contains the entire portion of the target element which is currently visible within the intersection root. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRect) */ readonly intersectionRect: DOMRectReadOnly; /** - * The IntersectionObserverEntry interface's read-only **`isIntersecting`** property is a Boolean value which is `true` if the target element intersects with the intersection observer's root. + * The **`isIntersecting`** read-only property of the IntersectionObserverEntry interface is a Boolean value which is `true` if the target element intersects with the intersection observer's root. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/isIntersecting) */ readonly isIntersecting: boolean; /** - * The IntersectionObserverEntry interface's read-only **`rootBounds`** property is a rectangle, offset by the IntersectionObserver.rootMargin if one is specified. + * The **`rootBounds`** read-only property of the IntersectionObserverEntry interface is a DOMRectReadOnly corresponding to the IntersectionObserverEntry.target's root intersection rectangle, offset by the IntersectionObserver.rootMargin if one is specified. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/rootBounds) */ readonly rootBounds: DOMRectReadOnly | null; /** - * The IntersectionObserverEntry interface's read-only **`target`** property indicates which targeted root. + * The **`target`** read-only property of the IntersectionObserverEntry interface indicates which targeted Element has changed its amount of intersection with the intersection root. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/target) */ readonly target: Element; /** - * The IntersectionObserverEntry interface's read-only **`time`** property is a change occurred relative to the time at which the document was created. + * The **`time`** read-only property of the IntersectionObserverEntry interface is a DOMHighResTimeStamp that indicates the time at which the intersection change occurred relative to the time at which the document was created. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/time) */ @@ -23663,13 +23637,13 @@ interface PerformanceNavigationTiming extends PerformanceResourceTiming { */ readonly type: NavigationTimingType; /** - * The **`unloadEventEnd`** read-only property returns a DOMHighResTimeStamp representing the time immediately after the current document's `unload` event handler completes. + * The **`unloadEventEnd`** read-only property returns a DOMHighResTimeStamp representing the time immediately after the previous document's `unload` event handler completes. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventEnd) */ readonly unloadEventEnd: DOMHighResTimeStamp; /** - * The **`unloadEventStart`** read-only property returns a DOMHighResTimeStamp representing the time immediately before the current document's `unload` event handler starts. + * The **`unloadEventStart`** read-only property returns a DOMHighResTimeStamp representing the time immediately before the previous document's `unload` event handler starts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventStart) */ @@ -24325,6 +24299,12 @@ interface PointerEvent extends MouseEvent { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/isPrimary) */ readonly isPrimary: boolean; + /** + * The **`persistentDeviceId`** read-only property of the PointerEvent interface is a unique identifier for the pointing device generating the `PointerEvent`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/persistentDeviceId) + */ + readonly persistentDeviceId: number; /** * The **`pointerId`** read-only property of the event. * @@ -26306,57 +26286,6 @@ declare var RemotePlayback: { new(): RemotePlayback; }; -/** - * The `Report` interface of the Reporting API represents a single report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report) - */ -interface Report { - /** - * The **`body`** read-only property of the Report interface returns the body of the report, which is a `ReportBody` object containing the detailed report information. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body) - */ - readonly body: ReportBody | null; - /** - * The **`type`** read-only property of the Report interface returns the type of report generated, e.g., `deprecation` or `intervention`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type) - */ - readonly type: string; - /** - * The **`url`** read-only property of the Report interface returns the URL of the document that generated the report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url) - */ - readonly url: string; - toJSON(): any; -} - -declare var Report: { - prototype: Report; - new(): Report; -}; - -/** - * The **`ReportBody`** interface of the Reporting API represents the body of a report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody) - */ -interface ReportBody { - /** - * The **`toJSON()`** method of the ReportBody interface is a _serializer_, and returns a JSON representation of the `ReportBody` object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON) - */ - toJSON(): any; -} - -declare var ReportBody: { - prototype: ReportBody; - new(): ReportBody; -}; - /** * The `ReportingObserver` interface of the Reporting API allows you to collect and access reports. * @@ -30850,7 +30779,7 @@ interface ServiceWorkerContainerEventMap { */ interface ServiceWorkerContainer extends EventTarget { /** - * The **`controller`** read-only property of the ServiceWorkerContainer interface returns a `activated` (the same object returned by `null` if the request is a force refresh (_Shift_ + refresh) or if there is no active worker. + * The **`controller`** read-only property of the ServiceWorkerContainer interface represents the active ServiceWorker controlling the current page (associated with this `ServiceWorkerContainer`), or `null` if the page has no active or activating service worker. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller) */ @@ -31027,7 +30956,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot { */ readonly host: Element; /** - * The **`innerHTML`** property of the ShadowRoot interface sets gets or sets the HTML markup to the DOM tree inside the `ShadowRoot`. + * The **`innerHTML`** property of the ShadowRoot interface gets or sets the HTML markup to the DOM tree inside the `ShadowRoot`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/innerHTML) */ @@ -31249,6 +31178,58 @@ declare var SpeechRecognitionAlternative: { new(): SpeechRecognitionAlternative; }; +/** + * The **`SpeechRecognitionErrorEvent`** interface of the Web Speech API represents error messages from the recognition service. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionErrorEvent) + */ +interface SpeechRecognitionErrorEvent extends Event { + /** + * The **`error`** read-only property of the A string naming the type of error. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionErrorEvent/error) + */ + readonly error: SpeechRecognitionErrorCode; + /** + * The **`message`** read-only property of the error in more detail. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionErrorEvent/message) + */ + readonly message: string; +} + +declare var SpeechRecognitionErrorEvent: { + prototype: SpeechRecognitionErrorEvent; + new(type: string, eventInitDict: SpeechRecognitionErrorEventInit): SpeechRecognitionErrorEvent; +}; + +/** + * The **`SpeechRecognitionEvent`** interface of the Web Speech API represents the event object for the SpeechRecognition.result_event and SpeechRecognition.nomatch_event events, and contains all the data associated with an interim or final speech recognition result. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionEvent) + */ +interface SpeechRecognitionEvent extends Event { + /** + * The **`resultIndex`** read-only property of the the SpeechRecognitionResultList 'array' that has actually changed. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionEvent/resultIndex) + */ + readonly resultIndex: number; + /** + * The **`results`** read-only property of the recognition results for the current session. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionEvent/results) + */ + readonly results: SpeechRecognitionResultList; +} + +declare var SpeechRecognitionEvent: { + prototype: SpeechRecognitionEvent; + new(type: string, eventInitDict: SpeechRecognitionEventInit): SpeechRecognitionEvent; +}; + /** * The **`SpeechRecognitionResult`** interface of the Web Speech API represents a single recognition match, which may contain multiple SpeechRecognitionAlternative objects. * Available only in secure contexts. @@ -32032,7 +32013,7 @@ declare var Text: { }; /** - * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, `KOI8-R`, `GBK`, etc. + * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, or `GBK`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder) */ @@ -32087,19 +32068,19 @@ declare var TextDecoderStream: { }; /** - * The **`TextEncoder`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes. + * The **`TextEncoder`** interface enables you to character encoding a JavaScript string using UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder) */ interface TextEncoder extends TextEncoderCommon { /** - * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the text given in parameters encoded with the specific method for that TextEncoder object. + * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the string character encoding using UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode) */ encode(input?: string): Uint8Array; /** - * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns a dictionary object indicating the progress of the encoding. + * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns an object indicating the progress of the encoding. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto) */ @@ -33033,6 +33014,11 @@ declare var webkitURL: typeof URL; * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern) */ interface URLPattern { + /** + * The **`hasRegExpGroups`** read-only property of the URLPattern interface is a boolean indicating whether or not any of the `URLPattern` components contain regular expression capturing groups. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hasRegExpGroups) + */ readonly hasRegExpGroups: boolean; /** * The **`hash`** read-only property of the URLPattern interface is a string containing the pattern used to match the fragment part of a URL. @@ -39526,6 +39512,7 @@ type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasEl type ClipboardItemData = Promise; type ClipboardItems = ClipboardItem[]; type ConstrainBoolean = boolean | ConstrainBooleanParameters; +type ConstrainBooleanOrDOMString = boolean | string | ConstrainBooleanOrDOMStringParameters; type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters; type ConstrainDouble = number | ConstrainDoubleRange; type ConstrainULong = number | ConstrainULongRange; @@ -39760,6 +39747,7 @@ type ServiceWorkerState = "activated" | "activating" | "installed" | "installing type ServiceWorkerUpdateViaCache = "all" | "imports" | "none"; type ShadowRootMode = "closed" | "open"; type SlotAssignmentMode = "manual" | "named"; +type SpeechRecognitionErrorCode = "aborted" | "audio-capture" | "language-not-supported" | "network" | "no-speech" | "not-allowed" | "phrases-not-supported" | "service-not-allowed"; 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"; diff --git a/baselines/ts5.6/serviceworker.generated.d.ts b/baselines/ts5.6/serviceworker.generated.d.ts index 1a9b2d88c..6847b2bec 100644 --- a/baselines/ts5.6/serviceworker.generated.d.ts +++ b/baselines/ts5.6/serviceworker.generated.d.ts @@ -570,6 +570,15 @@ interface RegistrationOptions { updateViaCache?: ServiceWorkerUpdateViaCache; } +interface Report { + body?: ReportBody | null; + type?: string; + url?: string; +} + +interface ReportBody { +} + interface ReportingObserverOptions { buffered?: boolean; types?: string[]; @@ -2340,7 +2349,7 @@ declare var CryptoKey: { }; /** - * The **`CustomEvent`** interface represents events initialized by an application for any purpose. + * The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */ @@ -6550,57 +6559,6 @@ interface ReadableStreamGenericReader { cancel(reason?: any): Promise; } -/** - * The `Report` interface of the Reporting API represents a single report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report) - */ -interface Report { - /** - * The **`body`** read-only property of the Report interface returns the body of the report, which is a `ReportBody` object containing the detailed report information. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body) - */ - readonly body: ReportBody | null; - /** - * The **`type`** read-only property of the Report interface returns the type of report generated, e.g., `deprecation` or `intervention`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type) - */ - readonly type: string; - /** - * The **`url`** read-only property of the Report interface returns the URL of the document that generated the report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url) - */ - readonly url: string; - toJSON(): any; -} - -declare var Report: { - prototype: Report; - new(): Report; -}; - -/** - * The **`ReportBody`** interface of the Reporting API represents the body of a report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody) - */ -interface ReportBody { - /** - * The **`toJSON()`** method of the ReportBody interface is a _serializer_, and returns a JSON representation of the `ReportBody` object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON) - */ - toJSON(): any; -} - -declare var ReportBody: { - prototype: ReportBody; - new(): ReportBody; -}; - /** * The `ReportingObserver` interface of the Reporting API allows you to collect and access reports. * @@ -6950,7 +6908,7 @@ interface ServiceWorkerContainerEventMap { */ interface ServiceWorkerContainer extends EventTarget { /** - * The **`controller`** read-only property of the ServiceWorkerContainer interface returns a `activated` (the same object returned by `null` if the request is a force refresh (_Shift_ + refresh) or if there is no active worker. + * The **`controller`** read-only property of the ServiceWorkerContainer interface represents the active ServiceWorker controlling the current page (associated with this `ServiceWorkerContainer`), or `null` if the page has no active or activating service worker. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller) */ @@ -7342,7 +7300,7 @@ declare var SubtleCrypto: { }; /** - * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, `KOI8-R`, `GBK`, etc. + * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, or `GBK`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder) */ @@ -7397,19 +7355,19 @@ declare var TextDecoderStream: { }; /** - * The **`TextEncoder`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes. + * The **`TextEncoder`** interface enables you to character encoding a JavaScript string using UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder) */ interface TextEncoder extends TextEncoderCommon { /** - * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the text given in parameters encoded with the specific method for that TextEncoder object. + * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the string character encoding using UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode) */ encode(input?: string): Uint8Array; /** - * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns a dictionary object indicating the progress of the encoding. + * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns an object indicating the progress of the encoding. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto) */ @@ -7702,6 +7660,11 @@ declare var URL: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern) */ interface URLPattern { + /** + * The **`hasRegExpGroups`** read-only property of the URLPattern interface is a boolean indicating whether or not any of the `URLPattern` components contain regular expression capturing groups. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hasRegExpGroups) + */ readonly hasRegExpGroups: boolean; /** * The **`hash`** read-only property of the URLPattern interface is a string containing the pattern used to match the fragment part of a URL. diff --git a/baselines/ts5.6/sharedworker.generated.d.ts b/baselines/ts5.6/sharedworker.generated.d.ts index 5d667a78d..de00fa37c 100644 --- a/baselines/ts5.6/sharedworker.generated.d.ts +++ b/baselines/ts5.6/sharedworker.generated.d.ts @@ -500,6 +500,15 @@ interface RegistrationOptions { updateViaCache?: ServiceWorkerUpdateViaCache; } +interface Report { + body?: ReportBody | null; + type?: string; + url?: string; +} + +interface ReportBody { +} + interface ReportingObserverOptions { buffered?: boolean; types?: string[]; @@ -2121,7 +2130,7 @@ declare var CryptoKey: { }; /** - * The **`CustomEvent`** interface represents events initialized by an application for any purpose. + * The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */ @@ -6133,57 +6142,6 @@ interface ReadableStreamGenericReader { cancel(reason?: any): Promise; } -/** - * The `Report` interface of the Reporting API represents a single report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report) - */ -interface Report { - /** - * The **`body`** read-only property of the Report interface returns the body of the report, which is a `ReportBody` object containing the detailed report information. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body) - */ - readonly body: ReportBody | null; - /** - * The **`type`** read-only property of the Report interface returns the type of report generated, e.g., `deprecation` or `intervention`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type) - */ - readonly type: string; - /** - * The **`url`** read-only property of the Report interface returns the URL of the document that generated the report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url) - */ - readonly url: string; - toJSON(): any; -} - -declare var Report: { - prototype: Report; - new(): Report; -}; - -/** - * The **`ReportBody`** interface of the Reporting API represents the body of a report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody) - */ -interface ReportBody { - /** - * The **`toJSON()`** method of the ReportBody interface is a _serializer_, and returns a JSON representation of the `ReportBody` object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON) - */ - toJSON(): any; -} - -declare var ReportBody: { - prototype: ReportBody; - new(): ReportBody; -}; - /** * The `ReportingObserver` interface of the Reporting API allows you to collect and access reports. * @@ -6533,7 +6491,7 @@ interface ServiceWorkerContainerEventMap { */ interface ServiceWorkerContainer extends EventTarget { /** - * The **`controller`** read-only property of the ServiceWorkerContainer interface returns a `activated` (the same object returned by `null` if the request is a force refresh (_Shift_ + refresh) or if there is no active worker. + * The **`controller`** read-only property of the ServiceWorkerContainer interface represents the active ServiceWorker controlling the current page (associated with this `ServiceWorkerContainer`), or `null` if the page has no active or activating service worker. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller) */ @@ -6873,7 +6831,7 @@ declare var SubtleCrypto: { }; /** - * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, `KOI8-R`, `GBK`, etc. + * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, or `GBK`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder) */ @@ -6928,19 +6886,19 @@ declare var TextDecoderStream: { }; /** - * The **`TextEncoder`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes. + * The **`TextEncoder`** interface enables you to character encoding a JavaScript string using UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder) */ interface TextEncoder extends TextEncoderCommon { /** - * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the text given in parameters encoded with the specific method for that TextEncoder object. + * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the string character encoding using UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode) */ encode(input?: string): Uint8Array; /** - * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns a dictionary object indicating the progress of the encoding. + * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns an object indicating the progress of the encoding. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto) */ @@ -7245,6 +7203,11 @@ declare var URL: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern) */ interface URLPattern { + /** + * The **`hasRegExpGroups`** read-only property of the URLPattern interface is a boolean indicating whether or not any of the `URLPattern` components contain regular expression capturing groups. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hasRegExpGroups) + */ readonly hasRegExpGroups: boolean; /** * The **`hash`** read-only property of the URLPattern interface is a string containing the pattern used to match the fragment part of a URL. diff --git a/baselines/ts5.6/webworker.generated.d.ts b/baselines/ts5.6/webworker.generated.d.ts index dece3699a..cdaec1532 100644 --- a/baselines/ts5.6/webworker.generated.d.ts +++ b/baselines/ts5.6/webworker.generated.d.ts @@ -714,6 +714,15 @@ interface RegistrationOptions { updateViaCache?: ServiceWorkerUpdateViaCache; } +interface Report { + body?: ReportBody | null; + type?: string; + url?: string; +} + +interface ReportBody { +} + interface ReportingObserverOptions { buffered?: boolean; types?: string[]; @@ -2808,7 +2817,7 @@ declare var CryptoKey: { }; /** - * The **`CustomEvent`** interface represents events initialized by an application for any purpose. + * The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */ @@ -7652,57 +7661,6 @@ interface ReadableStreamGenericReader { cancel(reason?: any): Promise; } -/** - * The `Report` interface of the Reporting API represents a single report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report) - */ -interface Report { - /** - * The **`body`** read-only property of the Report interface returns the body of the report, which is a `ReportBody` object containing the detailed report information. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body) - */ - readonly body: ReportBody | null; - /** - * The **`type`** read-only property of the Report interface returns the type of report generated, e.g., `deprecation` or `intervention`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type) - */ - readonly type: string; - /** - * The **`url`** read-only property of the Report interface returns the URL of the document that generated the report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url) - */ - readonly url: string; - toJSON(): any; -} - -declare var Report: { - prototype: Report; - new(): Report; -}; - -/** - * The **`ReportBody`** interface of the Reporting API represents the body of a report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody) - */ -interface ReportBody { - /** - * The **`toJSON()`** method of the ReportBody interface is a _serializer_, and returns a JSON representation of the `ReportBody` object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON) - */ - toJSON(): any; -} - -declare var ReportBody: { - prototype: ReportBody; - new(): ReportBody; -}; - /** * The `ReportingObserver` interface of the Reporting API allows you to collect and access reports. * @@ -8052,7 +8010,7 @@ interface ServiceWorkerContainerEventMap { */ interface ServiceWorkerContainer extends EventTarget { /** - * The **`controller`** read-only property of the ServiceWorkerContainer interface returns a `activated` (the same object returned by `null` if the request is a force refresh (_Shift_ + refresh) or if there is no active worker. + * The **`controller`** read-only property of the ServiceWorkerContainer interface represents the active ServiceWorker controlling the current page (associated with this `ServiceWorkerContainer`), or `null` if the page has no active or activating service worker. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller) */ @@ -8479,7 +8437,7 @@ declare var SubtleCrypto: { }; /** - * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, `KOI8-R`, `GBK`, etc. + * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, or `GBK`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder) */ @@ -8534,19 +8492,19 @@ declare var TextDecoderStream: { }; /** - * The **`TextEncoder`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes. + * The **`TextEncoder`** interface enables you to character encoding a JavaScript string using UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder) */ interface TextEncoder extends TextEncoderCommon { /** - * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the text given in parameters encoded with the specific method for that TextEncoder object. + * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the string character encoding using UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode) */ encode(input?: string): Uint8Array; /** - * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns a dictionary object indicating the progress of the encoding. + * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns an object indicating the progress of the encoding. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto) */ @@ -8851,6 +8809,11 @@ declare var URL: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern) */ interface URLPattern { + /** + * The **`hasRegExpGroups`** read-only property of the URLPattern interface is a boolean indicating whether or not any of the `URLPattern` components contain regular expression capturing groups. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hasRegExpGroups) + */ readonly hasRegExpGroups: boolean; /** * The **`hash`** read-only property of the URLPattern interface is a string containing the pattern used to match the fragment part of a URL. diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index 1f7f345e8..800f6b628 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -714,6 +714,15 @@ interface RegistrationOptions { updateViaCache?: ServiceWorkerUpdateViaCache; } +interface Report { + body?: ReportBody | null; + type?: string; + url?: string; +} + +interface ReportBody { +} + interface ReportingObserverOptions { buffered?: boolean; types?: string[]; @@ -2808,7 +2817,7 @@ declare var CryptoKey: { }; /** - * The **`CustomEvent`** interface represents events initialized by an application for any purpose. + * The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */ @@ -7652,57 +7661,6 @@ interface ReadableStreamGenericReader { cancel(reason?: any): Promise; } -/** - * The `Report` interface of the Reporting API represents a single report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report) - */ -interface Report { - /** - * The **`body`** read-only property of the Report interface returns the body of the report, which is a `ReportBody` object containing the detailed report information. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body) - */ - readonly body: ReportBody | null; - /** - * The **`type`** read-only property of the Report interface returns the type of report generated, e.g., `deprecation` or `intervention`. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type) - */ - readonly type: string; - /** - * The **`url`** read-only property of the Report interface returns the URL of the document that generated the report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url) - */ - readonly url: string; - toJSON(): any; -} - -declare var Report: { - prototype: Report; - new(): Report; -}; - -/** - * The **`ReportBody`** interface of the Reporting API represents the body of a report. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody) - */ -interface ReportBody { - /** - * The **`toJSON()`** method of the ReportBody interface is a _serializer_, and returns a JSON representation of the `ReportBody` object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON) - */ - toJSON(): any; -} - -declare var ReportBody: { - prototype: ReportBody; - new(): ReportBody; -}; - /** * The `ReportingObserver` interface of the Reporting API allows you to collect and access reports. * @@ -8052,7 +8010,7 @@ interface ServiceWorkerContainerEventMap { */ interface ServiceWorkerContainer extends EventTarget { /** - * The **`controller`** read-only property of the ServiceWorkerContainer interface returns a `activated` (the same object returned by `null` if the request is a force refresh (_Shift_ + refresh) or if there is no active worker. + * The **`controller`** read-only property of the ServiceWorkerContainer interface represents the active ServiceWorker controlling the current page (associated with this `ServiceWorkerContainer`), or `null` if the page has no active or activating service worker. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller) */ @@ -8479,7 +8437,7 @@ declare var SubtleCrypto: { }; /** - * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, `KOI8-R`, `GBK`, etc. + * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, or `GBK`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder) */ @@ -8534,19 +8492,19 @@ declare var TextDecoderStream: { }; /** - * The **`TextEncoder`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes. + * The **`TextEncoder`** interface enables you to character encoding a JavaScript string using UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder) */ interface TextEncoder extends TextEncoderCommon { /** - * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the text given in parameters encoded with the specific method for that TextEncoder object. + * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the string character encoding using UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode) */ encode(input?: string): Uint8Array; /** - * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns a dictionary object indicating the progress of the encoding. + * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns an object indicating the progress of the encoding. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto) */ @@ -8851,6 +8809,11 @@ declare var URL: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern) */ interface URLPattern { + /** + * The **`hasRegExpGroups`** read-only property of the URLPattern interface is a boolean indicating whether or not any of the `URLPattern` components contain regular expression capturing groups. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hasRegExpGroups) + */ readonly hasRegExpGroups: boolean; /** * The **`hash`** read-only property of the URLPattern interface is a string containing the pattern used to match the fragment part of a URL. diff --git a/inputfiles/mdn b/inputfiles/mdn index 098773300..12ff9f022 160000 --- a/inputfiles/mdn +++ b/inputfiles/mdn @@ -1 +1 @@ -Subproject commit 09877330004e55244a9e8eee2ca04a750970f72d +Subproject commit 12ff9f022472a6747b6b67946010058fe58ac9c4 diff --git a/package-lock.json b/package-lock.json index 1df705e51..2c2fb0477 100644 --- a/package-lock.json +++ b/package-lock.json @@ -349,9 +349,9 @@ } }, "node_modules/@mdn/browser-compat-data": { - "version": "6.0.24", - "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-6.0.24.tgz", - "integrity": "sha512-Z26Qu1EyLb9cQuEP7nB/0W9EsTvDtJpYkOVPf4hWiyIA/qTgqwDoMPzh5azkz2uhUlSYY6TAokR+2TT7958urg==", + "version": "6.0.31", + "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-6.0.31.tgz", + "integrity": "sha512-27LnrPwLUNaVROOe5GF2tZ8kiNuK3/TdVvKpZ1j040gwieAEnYZ9gnOHITdu4UDeq/C/GP0sbvdKDYqzlvEgQQ==", "dev": true, "license": "CC0-1.0" }, @@ -978,10 +978,11 @@ } }, "node_modules/@webref/css": { - "version": "6.23.2", - "resolved": "https://registry.npmjs.org/@webref/css/-/css-6.23.2.tgz", - "integrity": "sha512-51K12pD+/fWF44+DMXQ6RGPvzDHHr3AW9sUY6uns96Vi/ult+pXUS959MWtIeaTnYCRayXOeJ6kqHvxJ+qi4nw==", + "version": "6.23.4", + "resolved": "https://registry.npmjs.org/@webref/css/-/css-6.23.4.tgz", + "integrity": "sha512-sGx2oCO6kDFidcmrZgAwEet+RnP/qj2r9ZUvR1VNl467Wy6/WyIPI5M5+HrHm7k7tBURQVoV+G8Yie+tA0O+Pw==", "dev": true, + "license": "MIT", "peerDependencies": { "css-tree": "^3.1.0" } @@ -1001,9 +1002,9 @@ "license": "MIT" }, "node_modules/@webref/idl": { - "version": "3.65.0", - "resolved": "https://registry.npmjs.org/@webref/idl/-/idl-3.65.0.tgz", - "integrity": "sha512-TW2xliNxoHIwnZ4KNBoTnff1kQETI2KPbCYj2nyslE9bfwZdkh1gLuzYmSlYyjt5KIhpE6Wf3M4EwbGviyMUEA==", + "version": "3.65.4", + "resolved": "https://registry.npmjs.org/@webref/idl/-/idl-3.65.4.tgz", + "integrity": "sha512-fKcvQzvQ49ENEDpYtIi8t8daE0ylwOOwfTOOxC1RmoZBE7dHovUT7AtrqUUAOrOKfhcedT1PmJE2DGZ16sIdXQ==", "dev": true, "license": "MIT", "peerDependencies": {