diff --git a/baselines/audioworklet.generated.d.ts b/baselines/audioworklet.generated.d.ts index d871cf03c..81698c55e 100644 --- a/baselines/audioworklet.generated.d.ts +++ b/baselines/audioworklet.generated.d.ts @@ -600,7 +600,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -831,6 +831,18 @@ declare var MessagePort: { new(): MessagePort; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`PromiseRejectionEvent`** interface represents events which are sent to the global script context when JavaScript Promises are rejected. These events are particularly useful for telemetry and debugging purposes. * @@ -1668,7 +1680,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; + new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module; /** * The WebAssembly.**`Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -1819,12 +1831,12 @@ declare namespace WebAssembly { type ValueType = keyof ValueTypeMap; var JSTag: Tag; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; + function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; + function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; + function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -2035,7 +2047,7 @@ type ReadableStreamController = ReadableStreamDefaultController | Readable type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableStreamReadDoneResult; type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type Transferable = MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; -type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; +type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip"; type ReadableStreamReaderMode = "byob"; type ReadableStreamType = "bytes"; diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 49869687a..2297ecf66 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -3195,6 +3195,11 @@ interface WindowPostMessageOptions extends StructuredSerializeOptions { targetOrigin?: string; } +interface WorkerAndParameters { + type?: RTCRtpScriptTransformType; + worker: Worker; +} + interface WorkerOptions { credentials?: RequestCredentials; name?: string; @@ -9299,7 +9304,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { */ vectorEffect: string; /** - * The vertical-align CSS property sets vertical alignment of an inline, inline-block or table-cell box. + * The vertical-align CSS shorthand property sets the vertical alignment of an inline, inline-block, or table-cell box. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/vertical-align) */ @@ -10494,7 +10499,7 @@ interface CanvasRect { */ interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasSettings, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface { /** - * The **`CanvasRenderingContext2D.canvas`** property, part of the Canvas API, is a read-only reference to the HTMLCanvasElement object that is associated with a given context. It might be null if there is no associated element. + * The **`CanvasRenderingContext2D.canvas`** property, part of the Canvas API, is a read-only reference to the HTMLCanvasElement object that is associated with a given context. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */ @@ -11504,7 +11509,7 @@ declare var DOMException: { */ interface DOMImplementation { /** - * The **`DOMImplementation.createDocument()`** method creates and returns an XMLDocument. + * The **`createDocument()`** method of the DOMImplementation interface creates and returns an XMLDocument. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocument) */ @@ -13000,13 +13005,13 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve */ close(): void; /** - * The **`Document.createAttribute()`** method creates a new attribute node, and returns it. The object created is a node implementing the Attr interface. The DOM does not enforce what sort of attributes can be added to a particular element in this manner. + * The **`createAttribute()`** method of the Document interface creates a new attribute node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttribute) */ createAttribute(localName: string): Attr; /** - * The **`Document.createAttributeNS()`** method creates a new attribute node with the specified namespace URI and qualified name, and returns it. The object created is a node implementing the Attr interface. The DOM does not enforce what sort of attributes can be added to a particular element in this manner. + * The **`createAttributeNS()`** method of the Document interface creates a new attribute node with the specified namespace URI and qualified name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttributeNS) */ @@ -13030,7 +13035,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve */ createDocumentFragment(): DocumentFragment; /** - * In an HTML document, the **`document.createElement()`** method creates the HTML element specified by localName, or an HTMLUnknownElement if localName isn't recognized. + * The **`createElement()`** method of the Document interface creates a new HTMLElement that has the specified localName. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElement) */ @@ -13039,7 +13044,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve createElement(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K]; createElement(tagName: string, options?: ElementCreationOptions): HTMLElement; /** - * Creates an element with the specified namespace URI and qualified name. + * The **`createElementNS()`** method of the Document interface creates a new element with the specified namespace URI and qualified name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElementNS) */ @@ -14012,7 +14017,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp */ setPointerCapture(pointerId: number): void; /** - * The **`toggleAttribute()`** method of the Element interface toggles a Boolean attribute (removing it if it is present and adding it if it is not present) on the given element. + * The **`toggleAttribute()`** method of the Element interface toggles a Boolean attribute on the given element, removing it if present and adding it if not present. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute) */ @@ -14314,7 +14319,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -18529,7 +18534,7 @@ interface HTMLIFrameElement extends HTMLElement { */ height: string; /** - * The **`loading`** property of the HTMLIFrameElement interface is a string that provides a hint to the user agent indicating whether the iframe should be loaded immediately on page load, or only when it is needed. + * The **`loading`** property of the HTMLIFrameElement interface is a string that provides a hint to the browser indicating whether the iframe should be loaded immediately on page load, or only when it is needed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/loading) */ @@ -18672,7 +18677,7 @@ interface HTMLImageElement extends HTMLElement { */ isMap: boolean; /** - * The **`loading`** property of the HTMLImageElement interface provides a hint to the user agent on how to handle the loading of the image which is currently outside the window's visual viewport. This helps to optimize the loading of the document's contents by postponing loading the image until it's expected to be needed, rather than immediately during the initial page load. It reflects the element's loading content attribute. + * The **`loading`** property of the HTMLImageElement interface provides a hint to the browser on how to handle the loading of the image which is currently outside the window's visual viewport. This helps to optimize the loading of the document's contents by postponing loading the image until it's expected to be needed, rather than immediately during the initial page load. It reflects the element's loading content attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/loading) */ @@ -25881,7 +25886,7 @@ declare var NavigationPreloadManager: { }; /** - * The **`NavigationTransition`** interface of the Navigation API represents an ongoing navigation, that is, a navigation that hasn't yet reached the navigatesuccess or navigateerror stage. + * The **`NavigationTransition`** interface of the Navigation API represents an ongoing navigation — a navigation that hasn't yet reached the navigatesuccess or navigateerror stage. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition) */ @@ -26909,7 +26914,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -26940,6 +26945,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`OscillatorNode`** interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency of a given wave to be created—in effect, a constant tone. * @@ -27064,7 +27081,9 @@ declare var PageTransitionEvent: { }; interface PaintTimingMixin { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/paintTime) */ readonly paintTime: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/presentationTime) */ readonly presentationTime: DOMHighResTimeStamp | null; } @@ -28046,6 +28065,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -29909,7 +29934,7 @@ interface RTCRtpScriptTransform { declare var RTCRtpScriptTransform: { prototype: RTCRtpScriptTransform; - new(worker: Worker, options?: any, transfer?: any[]): RTCRtpScriptTransform; + new(workerOrWorkerAndParameters: WorkerOrWorkerAndParameters, options?: any, transfer?: any[]): RTCRtpScriptTransform; }; /** @@ -34996,7 +35021,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -41421,7 +41446,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler */ readonly cookieStore: CookieStore; /** - * The **`customElements`** read-only property of the Window interface returns a reference to the CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. + * The **`customElements`** read-only property of the Window interface returns a reference to the global CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements) */ @@ -42846,7 +42871,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; + new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module; /** * The WebAssembly.**`Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -42997,16 +43022,16 @@ declare namespace WebAssembly { type ValueType = keyof ValueTypeMap; var JSTag: Tag; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; + function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ function compileStreaming(source: Response | PromiseLike, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; + function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */ function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; + function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -43606,7 +43631,7 @@ declare var closed: boolean; */ declare var cookieStore: CookieStore; /** - * The **`customElements`** read-only property of the Window interface returns a reference to the CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. + * The **`customElements`** read-only property of the Window interface returns a reference to the global CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements) */ @@ -44468,6 +44493,7 @@ type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type VibratePattern = number | number[]; type WindowProxy = Window; +type WorkerOrWorkerAndParameters = Worker | WorkerAndParameters; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; type AacBitstreamFormat = "aac" | "adts"; type AlignSetting = "center" | "end" | "left" | "right" | "start"; @@ -44514,7 +44540,7 @@ type ColorGamut = "p3" | "rec2020" | "srgb"; type ColorSpaceConversion = "default" | "none"; type CompositeOperation = "accumulate" | "add" | "replace"; type CompositeOperationOrAuto = "accumulate" | "add" | "auto" | "replace"; -type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; +type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip"; type CookieSameSite = "lax" | "none" | "strict"; type CredentialMediationRequirement = "conditional" | "optional" | "required" | "silent"; type DOMParserSupportedType = "application/xhtml+xml" | "application/xml" | "image/svg+xml" | "text/html" | "text/xml"; @@ -44650,6 +44676,7 @@ type RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnec type RTCPriorityType = "high" | "low" | "medium" | "very-low"; type RTCQualityLimitationReason = "bandwidth" | "cpu" | "none" | "other"; type RTCRtcpMuxPolicy = "require"; +type RTCRtpScriptTransformType = "sframe"; type RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped"; type RTCSctpTransportState = "closed" | "connected" | "connecting"; type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback"; @@ -44665,7 +44692,7 @@ type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origi type RemotePlaybackState = "connected" | "connecting" | "disconnected"; type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload"; type RequestCredentials = "include" | "omit" | "same-origin"; -type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt"; +type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "text" | "track" | "video" | "worker" | "xslt"; type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin"; type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index d1f341b8f..6fd17d301 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -3736,7 +3736,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -7236,7 +7236,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -7267,6 +7267,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. * @@ -7548,6 +7560,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -8490,7 +8508,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -12897,7 +12915,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; + new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module; /** * The WebAssembly.**`Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -13048,16 +13066,16 @@ declare namespace WebAssembly { type ValueType = keyof ValueTypeMap; var JSTag: Tag; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; + function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ function compileStreaming(source: Response | PromiseLike, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; + function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */ function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; + function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -13496,7 +13514,7 @@ type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" type ClientTypes = "all" | "sharedworker" | "window" | "worker"; type ColorGamut = "p3" | "rec2020" | "srgb"; type ColorSpaceConversion = "default" | "none"; -type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; +type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip"; type CookieSameSite = "lax" | "none" | "strict"; type DocumentVisibilityState = "hidden" | "visible"; type EndingType = "native" | "transparent"; @@ -13568,7 +13586,7 @@ type ReadableStreamType = "bytes"; type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url"; type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload"; type RequestCredentials = "include" | "omit" | "same-origin"; -type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt"; +type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "text" | "track" | "video" | "worker" | "xslt"; type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin"; type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index 27b210acd..1fc463bfb 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -3517,7 +3517,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -6894,7 +6894,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -6925,6 +6925,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. * @@ -7206,6 +7218,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -8073,7 +8091,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -12623,7 +12641,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; + new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module; /** * The WebAssembly.**`Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -12774,16 +12792,16 @@ declare namespace WebAssembly { type ValueType = keyof ValueTypeMap; var JSTag: Tag; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; + function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ function compileStreaming(source: Response | PromiseLike, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; + function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */ function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; + function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -13184,7 +13202,7 @@ type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" type ClientTypes = "all" | "sharedworker" | "window" | "worker"; type ColorGamut = "p3" | "rec2020" | "srgb"; type ColorSpaceConversion = "default" | "none"; -type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; +type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip"; type EndingType = "native" | "transparent"; type FileSystemHandleKind = "directory" | "file"; type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; @@ -13253,7 +13271,7 @@ type ReadableStreamType = "bytes"; type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url"; type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload"; type RequestCredentials = "include" | "omit" | "same-origin"; -type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt"; +type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "text" | "track" | "video" | "worker" | "xslt"; type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin"; type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; diff --git a/baselines/ts5.5/audioworklet.generated.d.ts b/baselines/ts5.5/audioworklet.generated.d.ts index d8072fdfe..8254245fa 100644 --- a/baselines/ts5.5/audioworklet.generated.d.ts +++ b/baselines/ts5.5/audioworklet.generated.d.ts @@ -597,7 +597,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -828,6 +828,18 @@ declare var MessagePort: { new(): MessagePort; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`PromiseRejectionEvent`** interface represents events which are sent to the global script context when JavaScript Promises are rejected. These events are particularly useful for telemetry and debugging purposes. * @@ -1665,7 +1677,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; + new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module; /** * The WebAssembly.**`Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -1816,12 +1828,12 @@ declare namespace WebAssembly { type ValueType = keyof ValueTypeMap; var JSTag: Tag; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; + function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; + function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; + function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -2032,6 +2044,6 @@ type ReadableStreamController = ReadableStreamDefaultController | Readable type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableStreamReadDoneResult; type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type Transferable = MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; -type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; +type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip"; type ReadableStreamReaderMode = "byob"; type ReadableStreamType = "bytes"; diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index c2605d732..626891723 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -3192,6 +3192,11 @@ interface WindowPostMessageOptions extends StructuredSerializeOptions { targetOrigin?: string; } +interface WorkerAndParameters { + type?: RTCRtpScriptTransformType; + worker: Worker; +} + interface WorkerOptions { credentials?: RequestCredentials; name?: string; @@ -9289,7 +9294,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { */ vectorEffect: string; /** - * The vertical-align CSS property sets vertical alignment of an inline, inline-block or table-cell box. + * The vertical-align CSS shorthand property sets the vertical alignment of an inline, inline-block, or table-cell box. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/vertical-align) */ @@ -10483,7 +10488,7 @@ interface CanvasRect { */ interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasSettings, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface { /** - * The **`CanvasRenderingContext2D.canvas`** property, part of the Canvas API, is a read-only reference to the HTMLCanvasElement object that is associated with a given context. It might be null if there is no associated element. + * The **`CanvasRenderingContext2D.canvas`** property, part of the Canvas API, is a read-only reference to the HTMLCanvasElement object that is associated with a given context. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */ @@ -11493,7 +11498,7 @@ declare var DOMException: { */ interface DOMImplementation { /** - * The **`DOMImplementation.createDocument()`** method creates and returns an XMLDocument. + * The **`createDocument()`** method of the DOMImplementation interface creates and returns an XMLDocument. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocument) */ @@ -12989,13 +12994,13 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve */ close(): void; /** - * The **`Document.createAttribute()`** method creates a new attribute node, and returns it. The object created is a node implementing the Attr interface. The DOM does not enforce what sort of attributes can be added to a particular element in this manner. + * The **`createAttribute()`** method of the Document interface creates a new attribute node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttribute) */ createAttribute(localName: string): Attr; /** - * The **`Document.createAttributeNS()`** method creates a new attribute node with the specified namespace URI and qualified name, and returns it. The object created is a node implementing the Attr interface. The DOM does not enforce what sort of attributes can be added to a particular element in this manner. + * The **`createAttributeNS()`** method of the Document interface creates a new attribute node with the specified namespace URI and qualified name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttributeNS) */ @@ -13019,7 +13024,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve */ createDocumentFragment(): DocumentFragment; /** - * In an HTML document, the **`document.createElement()`** method creates the HTML element specified by localName, or an HTMLUnknownElement if localName isn't recognized. + * The **`createElement()`** method of the Document interface creates a new HTMLElement that has the specified localName. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElement) */ @@ -13028,7 +13033,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve createElement(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K]; createElement(tagName: string, options?: ElementCreationOptions): HTMLElement; /** - * Creates an element with the specified namespace URI and qualified name. + * The **`createElementNS()`** method of the Document interface creates a new element with the specified namespace URI and qualified name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElementNS) */ @@ -13999,7 +14004,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp */ setPointerCapture(pointerId: number): void; /** - * The **`toggleAttribute()`** method of the Element interface toggles a Boolean attribute (removing it if it is present and adding it if it is not present) on the given element. + * The **`toggleAttribute()`** method of the Element interface toggles a Boolean attribute on the given element, removing it if present and adding it if not present. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute) */ @@ -14300,7 +14305,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -18512,7 +18517,7 @@ interface HTMLIFrameElement extends HTMLElement { */ height: string; /** - * The **`loading`** property of the HTMLIFrameElement interface is a string that provides a hint to the user agent indicating whether the iframe should be loaded immediately on page load, or only when it is needed. + * The **`loading`** property of the HTMLIFrameElement interface is a string that provides a hint to the browser indicating whether the iframe should be loaded immediately on page load, or only when it is needed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/loading) */ @@ -18654,7 +18659,7 @@ interface HTMLImageElement extends HTMLElement { */ isMap: boolean; /** - * The **`loading`** property of the HTMLImageElement interface provides a hint to the user agent on how to handle the loading of the image which is currently outside the window's visual viewport. This helps to optimize the loading of the document's contents by postponing loading the image until it's expected to be needed, rather than immediately during the initial page load. It reflects the element's loading content attribute. + * The **`loading`** property of the HTMLImageElement interface provides a hint to the browser on how to handle the loading of the image which is currently outside the window's visual viewport. This helps to optimize the loading of the document's contents by postponing loading the image until it's expected to be needed, rather than immediately during the initial page load. It reflects the element's loading content attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/loading) */ @@ -25857,7 +25862,7 @@ declare var NavigationPreloadManager: { }; /** - * The **`NavigationTransition`** interface of the Navigation API represents an ongoing navigation, that is, a navigation that hasn't yet reached the navigatesuccess or navigateerror stage. + * The **`NavigationTransition`** interface of the Navigation API represents an ongoing navigation — a navigation that hasn't yet reached the navigatesuccess or navigateerror stage. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition) */ @@ -26885,7 +26890,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -26916,6 +26921,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`OscillatorNode`** interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency of a given wave to be created—in effect, a constant tone. * @@ -27040,7 +27057,9 @@ declare var PageTransitionEvent: { }; interface PaintTimingMixin { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/paintTime) */ readonly paintTime: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/presentationTime) */ readonly presentationTime: DOMHighResTimeStamp | null; } @@ -28022,6 +28041,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -29885,7 +29910,7 @@ interface RTCRtpScriptTransform { declare var RTCRtpScriptTransform: { prototype: RTCRtpScriptTransform; - new(worker: Worker, options?: any, transfer?: any[]): RTCRtpScriptTransform; + new(workerOrWorkerAndParameters: WorkerOrWorkerAndParameters, options?: any, transfer?: any[]): RTCRtpScriptTransform; }; /** @@ -34971,7 +34996,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -41395,7 +41420,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler */ readonly cookieStore: CookieStore; /** - * The **`customElements`** read-only property of the Window interface returns a reference to the CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. + * The **`customElements`** read-only property of the Window interface returns a reference to the global CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements) */ @@ -42820,7 +42845,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; + new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module; /** * The WebAssembly.**`Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -42971,16 +42996,16 @@ declare namespace WebAssembly { type ValueType = keyof ValueTypeMap; var JSTag: Tag; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; + function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ function compileStreaming(source: Response | PromiseLike, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; + function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */ function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; + function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -43580,7 +43605,7 @@ declare var closed: boolean; */ declare var cookieStore: CookieStore; /** - * The **`customElements`** read-only property of the Window interface returns a reference to the CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. + * The **`customElements`** read-only property of the Window interface returns a reference to the global CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements) */ @@ -44442,6 +44467,7 @@ type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type VibratePattern = number | number[]; type WindowProxy = Window; +type WorkerOrWorkerAndParameters = Worker | WorkerAndParameters; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; type AacBitstreamFormat = "aac" | "adts"; type AlignSetting = "center" | "end" | "left" | "right" | "start"; @@ -44488,7 +44514,7 @@ type ColorGamut = "p3" | "rec2020" | "srgb"; type ColorSpaceConversion = "default" | "none"; type CompositeOperation = "accumulate" | "add" | "replace"; type CompositeOperationOrAuto = "accumulate" | "add" | "auto" | "replace"; -type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; +type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip"; type CookieSameSite = "lax" | "none" | "strict"; type CredentialMediationRequirement = "conditional" | "optional" | "required" | "silent"; type DOMParserSupportedType = "application/xhtml+xml" | "application/xml" | "image/svg+xml" | "text/html" | "text/xml"; @@ -44624,6 +44650,7 @@ type RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnec type RTCPriorityType = "high" | "low" | "medium" | "very-low"; type RTCQualityLimitationReason = "bandwidth" | "cpu" | "none" | "other"; type RTCRtcpMuxPolicy = "require"; +type RTCRtpScriptTransformType = "sframe"; type RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped"; type RTCSctpTransportState = "closed" | "connected" | "connecting"; type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback"; @@ -44639,7 +44666,7 @@ type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origi type RemotePlaybackState = "connected" | "connecting" | "disconnected"; type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload"; type RequestCredentials = "include" | "omit" | "same-origin"; -type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt"; +type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "text" | "track" | "video" | "worker" | "xslt"; type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin"; type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; diff --git a/baselines/ts5.5/serviceworker.generated.d.ts b/baselines/ts5.5/serviceworker.generated.d.ts index ae05b3ddf..2c2a3d20e 100644 --- a/baselines/ts5.5/serviceworker.generated.d.ts +++ b/baselines/ts5.5/serviceworker.generated.d.ts @@ -3733,7 +3733,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -7233,7 +7233,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -7264,6 +7264,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. * @@ -7545,6 +7557,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -8487,7 +8505,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -12894,7 +12912,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; + new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module; /** * The WebAssembly.**`Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -13045,16 +13063,16 @@ declare namespace WebAssembly { type ValueType = keyof ValueTypeMap; var JSTag: Tag; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; + function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ function compileStreaming(source: Response | PromiseLike, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; + function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */ function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; + function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -13493,7 +13511,7 @@ type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" type ClientTypes = "all" | "sharedworker" | "window" | "worker"; type ColorGamut = "p3" | "rec2020" | "srgb"; type ColorSpaceConversion = "default" | "none"; -type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; +type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip"; type CookieSameSite = "lax" | "none" | "strict"; type DocumentVisibilityState = "hidden" | "visible"; type EndingType = "native" | "transparent"; @@ -13565,7 +13583,7 @@ type ReadableStreamType = "bytes"; type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url"; type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload"; type RequestCredentials = "include" | "omit" | "same-origin"; -type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt"; +type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "text" | "track" | "video" | "worker" | "xslt"; type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin"; type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; diff --git a/baselines/ts5.5/sharedworker.generated.d.ts b/baselines/ts5.5/sharedworker.generated.d.ts index 227dc54d1..207d52354 100644 --- a/baselines/ts5.5/sharedworker.generated.d.ts +++ b/baselines/ts5.5/sharedworker.generated.d.ts @@ -3514,7 +3514,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -6891,7 +6891,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -6922,6 +6922,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. * @@ -7203,6 +7215,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -8070,7 +8088,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -12620,7 +12638,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; + new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module; /** * The WebAssembly.**`Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -12771,16 +12789,16 @@ declare namespace WebAssembly { type ValueType = keyof ValueTypeMap; var JSTag: Tag; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; + function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ function compileStreaming(source: Response | PromiseLike, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; + function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */ function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; + function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -13181,7 +13199,7 @@ type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" type ClientTypes = "all" | "sharedworker" | "window" | "worker"; type ColorGamut = "p3" | "rec2020" | "srgb"; type ColorSpaceConversion = "default" | "none"; -type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; +type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip"; type EndingType = "native" | "transparent"; type FileSystemHandleKind = "directory" | "file"; type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; @@ -13250,7 +13268,7 @@ type ReadableStreamType = "bytes"; type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url"; type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload"; type RequestCredentials = "include" | "omit" | "same-origin"; -type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt"; +type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "text" | "track" | "video" | "worker" | "xslt"; type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin"; type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; diff --git a/baselines/ts5.5/webworker.generated.d.ts b/baselines/ts5.5/webworker.generated.d.ts index 3298efb4c..45ca9aafb 100644 --- a/baselines/ts5.5/webworker.generated.d.ts +++ b/baselines/ts5.5/webworker.generated.d.ts @@ -4342,7 +4342,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -8107,7 +8107,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -8138,6 +8138,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. * @@ -8419,6 +8431,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -9610,7 +9628,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -14569,7 +14587,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; + new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module; /** * The WebAssembly.**`Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -14720,16 +14738,16 @@ declare namespace WebAssembly { type ValueType = keyof ValueTypeMap; var JSTag: Tag; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; + function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ function compileStreaming(source: Response | PromiseLike, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; + function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */ function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; + function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -15178,7 +15196,7 @@ type ClientTypes = "all" | "sharedworker" | "window" | "worker"; type CodecState = "closed" | "configured" | "unconfigured"; type ColorGamut = "p3" | "rec2020" | "srgb"; type ColorSpaceConversion = "default" | "none"; -type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; +type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip"; type CookieSameSite = "lax" | "none" | "strict"; type DocumentVisibilityState = "hidden" | "visible"; type EncodedAudioChunkType = "delta" | "key"; @@ -15256,7 +15274,7 @@ type ReadableStreamType = "bytes"; type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url"; type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload"; type RequestCredentials = "include" | "omit" | "same-origin"; -type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt"; +type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "text" | "track" | "video" | "worker" | "xslt"; type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin"; type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; diff --git a/baselines/ts5.6/audioworklet.generated.d.ts b/baselines/ts5.6/audioworklet.generated.d.ts index d8072fdfe..8254245fa 100644 --- a/baselines/ts5.6/audioworklet.generated.d.ts +++ b/baselines/ts5.6/audioworklet.generated.d.ts @@ -597,7 +597,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -828,6 +828,18 @@ declare var MessagePort: { new(): MessagePort; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`PromiseRejectionEvent`** interface represents events which are sent to the global script context when JavaScript Promises are rejected. These events are particularly useful for telemetry and debugging purposes. * @@ -1665,7 +1677,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; + new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module; /** * The WebAssembly.**`Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -1816,12 +1828,12 @@ declare namespace WebAssembly { type ValueType = keyof ValueTypeMap; var JSTag: Tag; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; + function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; + function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; + function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -2032,6 +2044,6 @@ type ReadableStreamController = ReadableStreamDefaultController | Readable type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableStreamReadDoneResult; type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type Transferable = MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; -type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; +type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip"; type ReadableStreamReaderMode = "byob"; type ReadableStreamType = "bytes"; diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index 080755c34..711be8497 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -3192,6 +3192,11 @@ interface WindowPostMessageOptions extends StructuredSerializeOptions { targetOrigin?: string; } +interface WorkerAndParameters { + type?: RTCRtpScriptTransformType; + worker: Worker; +} + interface WorkerOptions { credentials?: RequestCredentials; name?: string; @@ -9296,7 +9301,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { */ vectorEffect: string; /** - * The vertical-align CSS property sets vertical alignment of an inline, inline-block or table-cell box. + * The vertical-align CSS shorthand property sets the vertical alignment of an inline, inline-block, or table-cell box. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/vertical-align) */ @@ -10491,7 +10496,7 @@ interface CanvasRect { */ interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasSettings, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface { /** - * The **`CanvasRenderingContext2D.canvas`** property, part of the Canvas API, is a read-only reference to the HTMLCanvasElement object that is associated with a given context. It might be null if there is no associated element. + * The **`CanvasRenderingContext2D.canvas`** property, part of the Canvas API, is a read-only reference to the HTMLCanvasElement object that is associated with a given context. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */ @@ -11501,7 +11506,7 @@ declare var DOMException: { */ interface DOMImplementation { /** - * The **`DOMImplementation.createDocument()`** method creates and returns an XMLDocument. + * The **`createDocument()`** method of the DOMImplementation interface creates and returns an XMLDocument. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocument) */ @@ -12997,13 +13002,13 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve */ close(): void; /** - * The **`Document.createAttribute()`** method creates a new attribute node, and returns it. The object created is a node implementing the Attr interface. The DOM does not enforce what sort of attributes can be added to a particular element in this manner. + * The **`createAttribute()`** method of the Document interface creates a new attribute node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttribute) */ createAttribute(localName: string): Attr; /** - * The **`Document.createAttributeNS()`** method creates a new attribute node with the specified namespace URI and qualified name, and returns it. The object created is a node implementing the Attr interface. The DOM does not enforce what sort of attributes can be added to a particular element in this manner. + * The **`createAttributeNS()`** method of the Document interface creates a new attribute node with the specified namespace URI and qualified name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttributeNS) */ @@ -13027,7 +13032,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve */ createDocumentFragment(): DocumentFragment; /** - * In an HTML document, the **`document.createElement()`** method creates the HTML element specified by localName, or an HTMLUnknownElement if localName isn't recognized. + * The **`createElement()`** method of the Document interface creates a new HTMLElement that has the specified localName. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElement) */ @@ -13036,7 +13041,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve createElement(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K]; createElement(tagName: string, options?: ElementCreationOptions): HTMLElement; /** - * Creates an element with the specified namespace URI and qualified name. + * The **`createElementNS()`** method of the Document interface creates a new element with the specified namespace URI and qualified name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElementNS) */ @@ -14009,7 +14014,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp */ setPointerCapture(pointerId: number): void; /** - * The **`toggleAttribute()`** method of the Element interface toggles a Boolean attribute (removing it if it is present and adding it if it is not present) on the given element. + * The **`toggleAttribute()`** method of the Element interface toggles a Boolean attribute on the given element, removing it if present and adding it if not present. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute) */ @@ -14311,7 +14316,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -18526,7 +18531,7 @@ interface HTMLIFrameElement extends HTMLElement { */ height: string; /** - * The **`loading`** property of the HTMLIFrameElement interface is a string that provides a hint to the user agent indicating whether the iframe should be loaded immediately on page load, or only when it is needed. + * The **`loading`** property of the HTMLIFrameElement interface is a string that provides a hint to the browser indicating whether the iframe should be loaded immediately on page load, or only when it is needed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/loading) */ @@ -18669,7 +18674,7 @@ interface HTMLImageElement extends HTMLElement { */ isMap: boolean; /** - * The **`loading`** property of the HTMLImageElement interface provides a hint to the user agent on how to handle the loading of the image which is currently outside the window's visual viewport. This helps to optimize the loading of the document's contents by postponing loading the image until it's expected to be needed, rather than immediately during the initial page load. It reflects the element's loading content attribute. + * The **`loading`** property of the HTMLImageElement interface provides a hint to the browser on how to handle the loading of the image which is currently outside the window's visual viewport. This helps to optimize the loading of the document's contents by postponing loading the image until it's expected to be needed, rather than immediately during the initial page load. It reflects the element's loading content attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/loading) */ @@ -25878,7 +25883,7 @@ declare var NavigationPreloadManager: { }; /** - * The **`NavigationTransition`** interface of the Navigation API represents an ongoing navigation, that is, a navigation that hasn't yet reached the navigatesuccess or navigateerror stage. + * The **`NavigationTransition`** interface of the Navigation API represents an ongoing navigation — a navigation that hasn't yet reached the navigatesuccess or navigateerror stage. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition) */ @@ -26906,7 +26911,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -26937,6 +26942,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`OscillatorNode`** interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency of a given wave to be created—in effect, a constant tone. * @@ -27061,7 +27078,9 @@ declare var PageTransitionEvent: { }; interface PaintTimingMixin { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/paintTime) */ readonly paintTime: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/presentationTime) */ readonly presentationTime: DOMHighResTimeStamp | null; } @@ -28043,6 +28062,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -29906,7 +29931,7 @@ interface RTCRtpScriptTransform { declare var RTCRtpScriptTransform: { prototype: RTCRtpScriptTransform; - new(worker: Worker, options?: any, transfer?: any[]): RTCRtpScriptTransform; + new(workerOrWorkerAndParameters: WorkerOrWorkerAndParameters, options?: any, transfer?: any[]): RTCRtpScriptTransform; }; /** @@ -34993,7 +35018,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -41418,7 +41443,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler */ readonly cookieStore: CookieStore; /** - * The **`customElements`** read-only property of the Window interface returns a reference to the CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. + * The **`customElements`** read-only property of the Window interface returns a reference to the global CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements) */ @@ -42843,7 +42868,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; + new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module; /** * The WebAssembly.**`Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -42994,16 +43019,16 @@ declare namespace WebAssembly { type ValueType = keyof ValueTypeMap; var JSTag: Tag; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; + function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ function compileStreaming(source: Response | PromiseLike, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; + function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */ function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; + function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -43603,7 +43628,7 @@ declare var closed: boolean; */ declare var cookieStore: CookieStore; /** - * The **`customElements`** read-only property of the Window interface returns a reference to the CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. + * The **`customElements`** read-only property of the Window interface returns a reference to the global CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements) */ @@ -44465,6 +44490,7 @@ type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type VibratePattern = number | number[]; type WindowProxy = Window; +type WorkerOrWorkerAndParameters = Worker | WorkerAndParameters; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; type AacBitstreamFormat = "aac" | "adts"; type AlignSetting = "center" | "end" | "left" | "right" | "start"; @@ -44511,7 +44537,7 @@ type ColorGamut = "p3" | "rec2020" | "srgb"; type ColorSpaceConversion = "default" | "none"; type CompositeOperation = "accumulate" | "add" | "replace"; type CompositeOperationOrAuto = "accumulate" | "add" | "auto" | "replace"; -type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; +type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip"; type CookieSameSite = "lax" | "none" | "strict"; type CredentialMediationRequirement = "conditional" | "optional" | "required" | "silent"; type DOMParserSupportedType = "application/xhtml+xml" | "application/xml" | "image/svg+xml" | "text/html" | "text/xml"; @@ -44647,6 +44673,7 @@ type RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnec type RTCPriorityType = "high" | "low" | "medium" | "very-low"; type RTCQualityLimitationReason = "bandwidth" | "cpu" | "none" | "other"; type RTCRtcpMuxPolicy = "require"; +type RTCRtpScriptTransformType = "sframe"; type RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped"; type RTCSctpTransportState = "closed" | "connected" | "connecting"; type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback"; @@ -44662,7 +44689,7 @@ type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origi type RemotePlaybackState = "connected" | "connecting" | "disconnected"; type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload"; type RequestCredentials = "include" | "omit" | "same-origin"; -type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt"; +type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "text" | "track" | "video" | "worker" | "xslt"; type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin"; type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; diff --git a/baselines/ts5.6/serviceworker.generated.d.ts b/baselines/ts5.6/serviceworker.generated.d.ts index ae05b3ddf..2c2a3d20e 100644 --- a/baselines/ts5.6/serviceworker.generated.d.ts +++ b/baselines/ts5.6/serviceworker.generated.d.ts @@ -3733,7 +3733,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -7233,7 +7233,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -7264,6 +7264,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. * @@ -7545,6 +7557,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -8487,7 +8505,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -12894,7 +12912,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; + new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module; /** * The WebAssembly.**`Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -13045,16 +13063,16 @@ declare namespace WebAssembly { type ValueType = keyof ValueTypeMap; var JSTag: Tag; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; + function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ function compileStreaming(source: Response | PromiseLike, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; + function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */ function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; + function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -13493,7 +13511,7 @@ type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" type ClientTypes = "all" | "sharedworker" | "window" | "worker"; type ColorGamut = "p3" | "rec2020" | "srgb"; type ColorSpaceConversion = "default" | "none"; -type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; +type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip"; type CookieSameSite = "lax" | "none" | "strict"; type DocumentVisibilityState = "hidden" | "visible"; type EndingType = "native" | "transparent"; @@ -13565,7 +13583,7 @@ type ReadableStreamType = "bytes"; type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url"; type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload"; type RequestCredentials = "include" | "omit" | "same-origin"; -type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt"; +type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "text" | "track" | "video" | "worker" | "xslt"; type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin"; type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; diff --git a/baselines/ts5.6/sharedworker.generated.d.ts b/baselines/ts5.6/sharedworker.generated.d.ts index 227dc54d1..207d52354 100644 --- a/baselines/ts5.6/sharedworker.generated.d.ts +++ b/baselines/ts5.6/sharedworker.generated.d.ts @@ -3514,7 +3514,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -6891,7 +6891,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -6922,6 +6922,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. * @@ -7203,6 +7215,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -8070,7 +8088,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -12620,7 +12638,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; + new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module; /** * The WebAssembly.**`Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -12771,16 +12789,16 @@ declare namespace WebAssembly { type ValueType = keyof ValueTypeMap; var JSTag: Tag; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; + function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ function compileStreaming(source: Response | PromiseLike, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; + function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */ function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; + function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -13181,7 +13199,7 @@ type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" type ClientTypes = "all" | "sharedworker" | "window" | "worker"; type ColorGamut = "p3" | "rec2020" | "srgb"; type ColorSpaceConversion = "default" | "none"; -type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; +type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip"; type EndingType = "native" | "transparent"; type FileSystemHandleKind = "directory" | "file"; type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; @@ -13250,7 +13268,7 @@ type ReadableStreamType = "bytes"; type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url"; type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload"; type RequestCredentials = "include" | "omit" | "same-origin"; -type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt"; +type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "text" | "track" | "video" | "worker" | "xslt"; type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin"; type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; diff --git a/baselines/ts5.6/webworker.generated.d.ts b/baselines/ts5.6/webworker.generated.d.ts index 3298efb4c..45ca9aafb 100644 --- a/baselines/ts5.6/webworker.generated.d.ts +++ b/baselines/ts5.6/webworker.generated.d.ts @@ -4342,7 +4342,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -8107,7 +8107,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -8138,6 +8138,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. * @@ -8419,6 +8431,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -9610,7 +9628,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -14569,7 +14587,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; + new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module; /** * The WebAssembly.**`Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -14720,16 +14738,16 @@ declare namespace WebAssembly { type ValueType = keyof ValueTypeMap; var JSTag: Tag; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; + function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ function compileStreaming(source: Response | PromiseLike, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; + function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */ function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; + function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -15178,7 +15196,7 @@ type ClientTypes = "all" | "sharedworker" | "window" | "worker"; type CodecState = "closed" | "configured" | "unconfigured"; type ColorGamut = "p3" | "rec2020" | "srgb"; type ColorSpaceConversion = "default" | "none"; -type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; +type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip"; type CookieSameSite = "lax" | "none" | "strict"; type DocumentVisibilityState = "hidden" | "visible"; type EncodedAudioChunkType = "delta" | "key"; @@ -15256,7 +15274,7 @@ type ReadableStreamType = "bytes"; type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url"; type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload"; type RequestCredentials = "include" | "omit" | "same-origin"; -type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt"; +type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "text" | "track" | "video" | "worker" | "xslt"; type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin"; type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; diff --git a/baselines/ts5.9/audioworklet.generated.d.ts b/baselines/ts5.9/audioworklet.generated.d.ts index 303cc493c..504ee98a3 100644 --- a/baselines/ts5.9/audioworklet.generated.d.ts +++ b/baselines/ts5.9/audioworklet.generated.d.ts @@ -597,7 +597,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -828,6 +828,18 @@ declare var MessagePort: { new(): MessagePort; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`PromiseRejectionEvent`** interface represents events which are sent to the global script context when JavaScript Promises are rejected. These events are particularly useful for telemetry and debugging purposes. * @@ -1665,7 +1677,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; + new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module; /** * The WebAssembly.**`Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -1816,12 +1828,12 @@ declare namespace WebAssembly { type ValueType = keyof ValueTypeMap; var JSTag: Tag; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; + function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; + function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; + function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -2032,6 +2044,6 @@ type ReadableStreamController = ReadableStreamDefaultController | Readable type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableStreamReadDoneResult; type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; type Transferable = MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer; -type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; +type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip"; type ReadableStreamReaderMode = "byob"; type ReadableStreamType = "bytes"; diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index e7d397376..b07c89f40 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -3192,6 +3192,11 @@ interface WindowPostMessageOptions extends StructuredSerializeOptions { targetOrigin?: string; } +interface WorkerAndParameters { + type?: RTCRtpScriptTransformType; + worker: Worker; +} + interface WorkerOptions { credentials?: RequestCredentials; name?: string; @@ -9296,7 +9301,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase { */ vectorEffect: string; /** - * The vertical-align CSS property sets vertical alignment of an inline, inline-block or table-cell box. + * The vertical-align CSS shorthand property sets the vertical alignment of an inline, inline-block, or table-cell box. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/vertical-align) */ @@ -10491,7 +10496,7 @@ interface CanvasRect { */ interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasSettings, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface { /** - * The **`CanvasRenderingContext2D.canvas`** property, part of the Canvas API, is a read-only reference to the HTMLCanvasElement object that is associated with a given context. It might be null if there is no associated element. + * The **`CanvasRenderingContext2D.canvas`** property, part of the Canvas API, is a read-only reference to the HTMLCanvasElement object that is associated with a given context. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */ @@ -11501,7 +11506,7 @@ declare var DOMException: { */ interface DOMImplementation { /** - * The **`DOMImplementation.createDocument()`** method creates and returns an XMLDocument. + * The **`createDocument()`** method of the DOMImplementation interface creates and returns an XMLDocument. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocument) */ @@ -12997,13 +13002,13 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve */ close(): void; /** - * The **`Document.createAttribute()`** method creates a new attribute node, and returns it. The object created is a node implementing the Attr interface. The DOM does not enforce what sort of attributes can be added to a particular element in this manner. + * The **`createAttribute()`** method of the Document interface creates a new attribute node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttribute) */ createAttribute(localName: string): Attr; /** - * The **`Document.createAttributeNS()`** method creates a new attribute node with the specified namespace URI and qualified name, and returns it. The object created is a node implementing the Attr interface. The DOM does not enforce what sort of attributes can be added to a particular element in this manner. + * The **`createAttributeNS()`** method of the Document interface creates a new attribute node with the specified namespace URI and qualified name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttributeNS) */ @@ -13027,7 +13032,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve */ createDocumentFragment(): DocumentFragment; /** - * In an HTML document, the **`document.createElement()`** method creates the HTML element specified by localName, or an HTMLUnknownElement if localName isn't recognized. + * The **`createElement()`** method of the Document interface creates a new HTMLElement that has the specified localName. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElement) */ @@ -13036,7 +13041,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve createElement(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K]; createElement(tagName: string, options?: ElementCreationOptions): HTMLElement; /** - * Creates an element with the specified namespace URI and qualified name. + * The **`createElementNS()`** method of the Document interface creates a new element with the specified namespace URI and qualified name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElementNS) */ @@ -14009,7 +14014,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp */ setPointerCapture(pointerId: number): void; /** - * The **`toggleAttribute()`** method of the Element interface toggles a Boolean attribute (removing it if it is present and adding it if it is not present) on the given element. + * The **`toggleAttribute()`** method of the Element interface toggles a Boolean attribute on the given element, removing it if present and adding it if not present. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute) */ @@ -14311,7 +14316,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -18526,7 +18531,7 @@ interface HTMLIFrameElement extends HTMLElement { */ height: string; /** - * The **`loading`** property of the HTMLIFrameElement interface is a string that provides a hint to the user agent indicating whether the iframe should be loaded immediately on page load, or only when it is needed. + * The **`loading`** property of the HTMLIFrameElement interface is a string that provides a hint to the browser indicating whether the iframe should be loaded immediately on page load, or only when it is needed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/loading) */ @@ -18669,7 +18674,7 @@ interface HTMLImageElement extends HTMLElement { */ isMap: boolean; /** - * The **`loading`** property of the HTMLImageElement interface provides a hint to the user agent on how to handle the loading of the image which is currently outside the window's visual viewport. This helps to optimize the loading of the document's contents by postponing loading the image until it's expected to be needed, rather than immediately during the initial page load. It reflects the element's loading content attribute. + * The **`loading`** property of the HTMLImageElement interface provides a hint to the browser on how to handle the loading of the image which is currently outside the window's visual viewport. This helps to optimize the loading of the document's contents by postponing loading the image until it's expected to be needed, rather than immediately during the initial page load. It reflects the element's loading content attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/loading) */ @@ -25878,7 +25883,7 @@ declare var NavigationPreloadManager: { }; /** - * The **`NavigationTransition`** interface of the Navigation API represents an ongoing navigation, that is, a navigation that hasn't yet reached the navigatesuccess or navigateerror stage. + * The **`NavigationTransition`** interface of the Navigation API represents an ongoing navigation — a navigation that hasn't yet reached the navigatesuccess or navigateerror stage. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition) */ @@ -26906,7 +26911,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -26937,6 +26942,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`OscillatorNode`** interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency of a given wave to be created—in effect, a constant tone. * @@ -27061,7 +27078,9 @@ declare var PageTransitionEvent: { }; interface PaintTimingMixin { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/paintTime) */ readonly paintTime: DOMHighResTimeStamp; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/presentationTime) */ readonly presentationTime: DOMHighResTimeStamp | null; } @@ -28043,6 +28062,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -29906,7 +29931,7 @@ interface RTCRtpScriptTransform { declare var RTCRtpScriptTransform: { prototype: RTCRtpScriptTransform; - new(worker: Worker, options?: any, transfer?: any[]): RTCRtpScriptTransform; + new(workerOrWorkerAndParameters: WorkerOrWorkerAndParameters, options?: any, transfer?: any[]): RTCRtpScriptTransform; }; /** @@ -34993,7 +35018,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -41418,7 +41443,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler */ readonly cookieStore: CookieStore; /** - * The **`customElements`** read-only property of the Window interface returns a reference to the CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. + * The **`customElements`** read-only property of the Window interface returns a reference to the global CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements) */ @@ -42843,7 +42868,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; + new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module; /** * The WebAssembly.**`Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -42994,16 +43019,16 @@ declare namespace WebAssembly { type ValueType = keyof ValueTypeMap; var JSTag: Tag; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; + function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ function compileStreaming(source: Response | PromiseLike, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; + function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */ function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; + function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -43603,7 +43628,7 @@ declare var closed: boolean; */ declare var cookieStore: CookieStore; /** - * The **`customElements`** read-only property of the Window interface returns a reference to the CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. + * The **`customElements`** read-only property of the Window interface returns a reference to the global CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements) */ @@ -44465,6 +44490,7 @@ type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type VibratePattern = number | number[]; type WindowProxy = Window; +type WorkerOrWorkerAndParameters = Worker | WorkerAndParameters; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; type AacBitstreamFormat = "aac" | "adts"; type AlignSetting = "center" | "end" | "left" | "right" | "start"; @@ -44511,7 +44537,7 @@ type ColorGamut = "p3" | "rec2020" | "srgb"; type ColorSpaceConversion = "default" | "none"; type CompositeOperation = "accumulate" | "add" | "replace"; type CompositeOperationOrAuto = "accumulate" | "add" | "auto" | "replace"; -type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; +type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip"; type CookieSameSite = "lax" | "none" | "strict"; type CredentialMediationRequirement = "conditional" | "optional" | "required" | "silent"; type DOMParserSupportedType = "application/xhtml+xml" | "application/xml" | "image/svg+xml" | "text/html" | "text/xml"; @@ -44647,6 +44673,7 @@ type RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnec type RTCPriorityType = "high" | "low" | "medium" | "very-low"; type RTCQualityLimitationReason = "bandwidth" | "cpu" | "none" | "other"; type RTCRtcpMuxPolicy = "require"; +type RTCRtpScriptTransformType = "sframe"; type RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped"; type RTCSctpTransportState = "closed" | "connected" | "connecting"; type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback"; @@ -44662,7 +44689,7 @@ type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origi type RemotePlaybackState = "connected" | "connecting" | "disconnected"; type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload"; type RequestCredentials = "include" | "omit" | "same-origin"; -type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt"; +type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "text" | "track" | "video" | "worker" | "xslt"; type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin"; type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; diff --git a/baselines/ts5.9/serviceworker.generated.d.ts b/baselines/ts5.9/serviceworker.generated.d.ts index 138cf77bd..7f9aff6c7 100644 --- a/baselines/ts5.9/serviceworker.generated.d.ts +++ b/baselines/ts5.9/serviceworker.generated.d.ts @@ -3733,7 +3733,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -7233,7 +7233,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -7264,6 +7264,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. * @@ -7545,6 +7557,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -8487,7 +8505,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -12894,7 +12912,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; + new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module; /** * The WebAssembly.**`Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -13045,16 +13063,16 @@ declare namespace WebAssembly { type ValueType = keyof ValueTypeMap; var JSTag: Tag; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; + function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ function compileStreaming(source: Response | PromiseLike, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; + function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */ function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; + function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -13493,7 +13511,7 @@ type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" type ClientTypes = "all" | "sharedworker" | "window" | "worker"; type ColorGamut = "p3" | "rec2020" | "srgb"; type ColorSpaceConversion = "default" | "none"; -type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; +type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip"; type CookieSameSite = "lax" | "none" | "strict"; type DocumentVisibilityState = "hidden" | "visible"; type EndingType = "native" | "transparent"; @@ -13565,7 +13583,7 @@ type ReadableStreamType = "bytes"; type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url"; type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload"; type RequestCredentials = "include" | "omit" | "same-origin"; -type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt"; +type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "text" | "track" | "video" | "worker" | "xslt"; type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin"; type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; diff --git a/baselines/ts5.9/sharedworker.generated.d.ts b/baselines/ts5.9/sharedworker.generated.d.ts index 281c12ff4..7e9ddeee0 100644 --- a/baselines/ts5.9/sharedworker.generated.d.ts +++ b/baselines/ts5.9/sharedworker.generated.d.ts @@ -3514,7 +3514,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -6891,7 +6891,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -6922,6 +6922,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. * @@ -7203,6 +7215,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -8070,7 +8088,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -12620,7 +12638,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; + new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module; /** * The WebAssembly.**`Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -12771,16 +12789,16 @@ declare namespace WebAssembly { type ValueType = keyof ValueTypeMap; var JSTag: Tag; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; + function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ function compileStreaming(source: Response | PromiseLike, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; + function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */ function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; + function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -13181,7 +13199,7 @@ type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" type ClientTypes = "all" | "sharedworker" | "window" | "worker"; type ColorGamut = "p3" | "rec2020" | "srgb"; type ColorSpaceConversion = "default" | "none"; -type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; +type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip"; type EndingType = "native" | "transparent"; type FileSystemHandleKind = "directory" | "file"; type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap"; @@ -13250,7 +13268,7 @@ type ReadableStreamType = "bytes"; type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url"; type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload"; type RequestCredentials = "include" | "omit" | "same-origin"; -type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt"; +type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "text" | "track" | "video" | "worker" | "xslt"; type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin"; type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; diff --git a/baselines/ts5.9/webworker.generated.d.ts b/baselines/ts5.9/webworker.generated.d.ts index f72c42764..55f7de6bb 100644 --- a/baselines/ts5.9/webworker.generated.d.ts +++ b/baselines/ts5.9/webworker.generated.d.ts @@ -4342,7 +4342,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -8107,7 +8107,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -8138,6 +8138,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. * @@ -8419,6 +8431,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -9610,7 +9628,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -14569,7 +14587,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; + new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module; /** * The WebAssembly.**`Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -14720,16 +14738,16 @@ declare namespace WebAssembly { type ValueType = keyof ValueTypeMap; var JSTag: Tag; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; + function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ function compileStreaming(source: Response | PromiseLike, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; + function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */ function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; + function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -15178,7 +15196,7 @@ type ClientTypes = "all" | "sharedworker" | "window" | "worker"; type CodecState = "closed" | "configured" | "unconfigured"; type ColorGamut = "p3" | "rec2020" | "srgb"; type ColorSpaceConversion = "default" | "none"; -type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; +type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip"; type CookieSameSite = "lax" | "none" | "strict"; type DocumentVisibilityState = "hidden" | "visible"; type EncodedAudioChunkType = "delta" | "key"; @@ -15256,7 +15274,7 @@ type ReadableStreamType = "bytes"; type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url"; type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload"; type RequestCredentials = "include" | "omit" | "same-origin"; -type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt"; +type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "text" | "track" | "video" | "worker" | "xslt"; type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin"; type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index 66b300868..c86ab581f 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -4345,7 +4345,7 @@ interface Event { */ readonly eventPhase: number; /** - * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents. + * The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ @@ -8110,7 +8110,7 @@ interface OffscreenCanvas extends EventTarget { getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null; getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null; /** - * The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering. + * The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap) */ @@ -8141,6 +8141,18 @@ declare var OffscreenCanvasRenderingContext2D: { new(): OffscreenCanvasRenderingContext2D; }; +interface Origin { + readonly opaque: boolean; + isSameOrigin(other: Origin): boolean; + isSameSite(other: Origin): boolean; +} + +declare var Origin: { + prototype: Origin; + new(): Origin; + from(value: any): Origin; +}; + /** * The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. * @@ -8422,6 +8434,12 @@ interface PerformanceResourceTiming extends PerformanceEntry { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */ readonly connectStart: DOMHighResTimeStamp; + /** + * The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType) + */ + readonly contentType: string; /** * The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding. * @@ -9613,7 +9631,7 @@ interface SecurityPolicyViolationEvent extends Event { */ readonly blockedURI: string; /** - * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred. + * The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */ @@ -14572,7 +14590,7 @@ declare namespace WebAssembly { var Module: { prototype: Module; - new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module; + new(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Module; /** * The WebAssembly.**`Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name. * @@ -14723,16 +14741,16 @@ declare namespace WebAssembly { type ValueType = keyof ValueTypeMap; var JSTag: Tag; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */ - function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise; + function compile(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */ function compileStreaming(source: Response | PromiseLike, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */ - function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; + function instantiate(bytes: AllowSharedBufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; function instantiate(moduleObject: Module, importObject?: Imports): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */ function instantiateStreaming(source: Response | PromiseLike, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */ - function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean; + function validate(bytes: AllowSharedBufferSource, options?: WebAssemblyCompileOptions): boolean; } /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */ @@ -15181,7 +15199,7 @@ type ClientTypes = "all" | "sharedworker" | "window" | "worker"; type CodecState = "closed" | "configured" | "unconfigured"; type ColorGamut = "p3" | "rec2020" | "srgb"; type ColorSpaceConversion = "default" | "none"; -type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; +type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip"; type CookieSameSite = "lax" | "none" | "strict"; type DocumentVisibilityState = "hidden" | "visible"; type EncodedAudioChunkType = "delta" | "key"; @@ -15259,7 +15277,7 @@ type ReadableStreamType = "bytes"; type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url"; type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload"; type RequestCredentials = "include" | "omit" | "same-origin"; -type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt"; +type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "text" | "track" | "video" | "worker" | "xslt"; type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin"; type RequestPriority = "auto" | "high" | "low"; type RequestRedirect = "error" | "follow" | "manual"; diff --git a/inputfiles/mdn.json b/inputfiles/mdn.json index cc3b5d2ef..af4469899 100644 --- a/inputfiles/mdn.json +++ b/inputfiles/mdn.json @@ -2427,7 +2427,7 @@ { "mdn_url": "/en-US/docs/Web/API/CanvasRenderingContext2D/canvas", "pageType": "web-api-instance-property", - "summary": "The CanvasRenderingContext2D.canvas property, part of the\nCanvas API, is a read-only reference to the\nHTMLCanvasElement object that is associated with a given context. It\nmight be null if there is no associated element." + "summary": "The CanvasRenderingContext2D.canvas property, part of the\nCanvas API, is a read-only reference to the\nHTMLCanvasElement object that is associated with a given context." }, { "mdn_url": "/en-US/docs/Web/API/CanvasRenderingContext2D/clearRect", @@ -3800,69 +3800,64 @@ "summary": "The CryptoKeyPair dictionary of the Web Crypto API represents a key pair for an asymmetric cryptography algorithm, also known as a public-key algorithm." }, { - "mdn_url": "/en-US/docs/Web/API/CSPViolationReportBody", + "mdn_url": "/en-US/docs/Web/API/CSPViolationReport", "pageType": "web-api-interface", - "summary": "The CSPViolationReportBody interface is an extension of the Reporting API that represents the body of a Content Security Policy (CSP) violation report." + "summary": "The CSPViolationReport dictionary of the Reporting API represents a report that is generated when a document violates its Content Security Policy (CSP)." }, { - "mdn_url": "/en-US/docs/Web/API/CSPViolationReportBody/blockedURL", + "mdn_url": "/en-US/docs/Web/API/CSPViolationReport/blockedURL", "pageType": "web-api-instance-property", - "summary": "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)." + "summary": "The blockedURL property of the CSPViolationReport dictionary is a string value that represents the resource that was blocked because it violates a Content Security Policy (CSP)." }, { - "mdn_url": "/en-US/docs/Web/API/CSPViolationReportBody/columnNumber", + "mdn_url": "/en-US/docs/Web/API/CSPViolationReport/columnNumber", "pageType": "web-api-instance-property", - "summary": "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." + "summary": "The columnNumber property of the CSPViolationReport dictionary indicates the character position in the source file line that triggered the Content Security Policy (CSP) violation." }, { - "mdn_url": "/en-US/docs/Web/API/CSPViolationReportBody/disposition", + "mdn_url": "/en-US/docs/Web/API/CSPViolationReport/disposition", "pageType": "web-api-instance-property", - "summary": "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." + "summary": "The disposition property of the CSPViolationReport dictionary indicates whether the user agent is configured to enforce Content Security Policy (CSP) violations or only report them." }, { - "mdn_url": "/en-US/docs/Web/API/CSPViolationReportBody/documentURL", + "mdn_url": "/en-US/docs/Web/API/CSPViolationReport/documentURL", "pageType": "web-api-instance-property", - "summary": "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)." + "summary": "The documentURL property of the CSPViolationReport dictionary is a string that represents the URL of the document or worker that violated the Content Security Policy (CSP)." }, { - "mdn_url": "/en-US/docs/Web/API/CSPViolationReportBody/effectiveDirective", + "mdn_url": "/en-US/docs/Web/API/CSPViolationReport/effectiveDirective", "pageType": "web-api-instance-property", - "summary": "The effectiveDirective read-only property of the CSPViolationReportBody interface is a string that represents the effective Content Security Policy (CSP) directive that was violated." + "summary": "The effectiveDirective property of the CSPViolationReport dictionary is a string that represents the effective Content Security Policy (CSP) directive that was violated." }, { - "mdn_url": "/en-US/docs/Web/API/CSPViolationReportBody/lineNumber", + "mdn_url": "/en-US/docs/Web/API/CSPViolationReport/lineNumber", "pageType": "web-api-instance-property", - "summary": "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." + "summary": "The lineNumber property of the CSPViolationReport dictionary indicates the line number in the source file where the Content Security Policy (CSP) violation was triggered." }, { - "mdn_url": "/en-US/docs/Web/API/CSPViolationReportBody/originalPolicy", + "mdn_url": "/en-US/docs/Web/API/CSPViolationReport/originalPolicy", "pageType": "web-api-instance-property", - "summary": "The originalPolicy read-only property of the CSPViolationReportBody interface is a string that represents the Content Security Policy (CSP) whose enforcement uncovered the violation." + "summary": "The originalPolicy property of the CSPViolationReport dictionary is a string that represents the Content Security Policy (CSP) whose enforcement uncovered the violation." }, { - "mdn_url": "/en-US/docs/Web/API/CSPViolationReportBody/referrer", + "mdn_url": "/en-US/docs/Web/API/CSPViolationReport/referrer", "pageType": "web-api-instance-property", - "summary": "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." + "summary": "The referrer property of the CSPViolationReport dictionary is a string that represents the URL of the referring page of the resource who's Content Security Policy (CSP) was violated." }, { - "mdn_url": "/en-US/docs/Web/API/CSPViolationReportBody/sample", + "mdn_url": "/en-US/docs/Web/API/CSPViolationReport/sample", "pageType": "web-api-instance-property", - "summary": "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)." + "summary": "The sample property of the CSPViolationReport dictionary is a string that contains a part of the resource that violated the Content Security Policy (CSP)." }, { - "mdn_url": "/en-US/docs/Web/API/CSPViolationReportBody/sourceFile", + "mdn_url": "/en-US/docs/Web/API/CSPViolationReport/sourceFile", "pageType": "web-api-instance-property", - "summary": "The sourceFile read-only property of the CSPViolationReportBody interface indicates the URL of the source file that violated the Content Security Policy (CSP)." + "summary": "The sourceFile property of the CSPViolationReport dictionary indicates the URL of the source file that violated the Content Security Policy (CSP)." }, { - "mdn_url": "/en-US/docs/Web/API/CSPViolationReportBody/statusCode", + "mdn_url": "/en-US/docs/Web/API/CSPViolationReport/statusCode", "pageType": "web-api-instance-property", - "summary": "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_url": "/en-US/docs/Web/API/CSPViolationReportBody/toJSON", - "pageType": "web-api-instance-method", - "summary": "The toJSON() method of the CSPViolationReportBody interface is a serializer, which returns a JSON representation of the CSPViolationReportBody object." + "summary": "The statusCode property of the CSPViolationReport dictionary 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_url": "/en-US/docs/Web/API/CSS", @@ -4597,7 +4592,7 @@ { "mdn_url": "/en-US/docs/Web/API/CSSNumericValue/to", "pageType": "web-api-instance-method", - "summary": "The to() method of the\nCSSNumericValue interface converts a numeric value from one unit to\nanother." + "summary": "The to() method of the CSSNumericValue interface converts a numeric value from one unit to another." }, { "mdn_url": "/en-US/docs/Web/API/CSSNumericValue/toSum", @@ -5362,7 +5357,7 @@ { "mdn_url": "/en-US/docs/Web/API/CustomElementRegistry/whenDefined", "pageType": "web-api-instance-method", - "summary": "The whenDefined() method of the\nCustomElementRegistry interface returns a Promise that\nresolves when the named element is defined." + "summary": "The whenDefined() method of the CustomElementRegistry interface returns a Promise that resolves when the named element is defined." }, { "mdn_url": "/en-US/docs/Web/API/CustomEvent", @@ -5680,44 +5675,9 @@ "summary": "The updateInkTrailStartPoint() method of the DelegatedInkTrailPresenter interface indicates which PointerEvent was used as the last rendering point for the current frame, allowing the OS-level compositor to render a delegated ink trail ahead of the next pointer event being dispatched." }, { - "mdn_url": "/en-US/docs/Web/API/DeprecationReportBody", + "mdn_url": "/en-US/docs/Web/API/DeprecationReport", "pageType": "web-api-interface", - "summary": "The DeprecationReportBody interface of the Reporting API represents the body of a deprecation report." - }, - { - "mdn_url": "/en-US/docs/Web/API/DeprecationReportBody/anticipatedRemoval", - "pageType": "web-api-instance-property", - "summary": "The anticipatedRemoval read-only property of the DeprecationReportBody interface returns the date that the browser version which removes the feature will ship. This value can be used to prioritize warnings. If this property returns null because the date is unknown, then the deprecation should be considered low priority." - }, - { - "mdn_url": "/en-US/docs/Web/API/DeprecationReportBody/columnNumber", - "pageType": "web-api-instance-property", - "summary": "The columnNumber read-only property of the DeprecationReportBody interface returns the line in the source file in which the deprecated feature was used." - }, - { - "mdn_url": "/en-US/docs/Web/API/DeprecationReportBody/id", - "pageType": "web-api-instance-property", - "summary": "The id read-only property of the DeprecationReportBody interface returns a string representing the feature or API that is deprecated. This can be used to group or count related reports." - }, - { - "mdn_url": "/en-US/docs/Web/API/DeprecationReportBody/lineNumber", - "pageType": "web-api-instance-property", - "summary": "The lineNumber read-only property of the DeprecationReportBody interface returns the line in the source file in which the deprecated feature was used." - }, - { - "mdn_url": "/en-US/docs/Web/API/DeprecationReportBody/message", - "pageType": "web-api-instance-property", - "summary": "The message read-only property of the DeprecationReportBody interface returns a human-readable description of the deprecation. This typically matches the message a browser will display in its DevTools console regarding a deprecated feature." - }, - { - "mdn_url": "/en-US/docs/Web/API/DeprecationReportBody/sourceFile", - "pageType": "web-api-instance-property", - "summary": "The sourceFile read-only property of the DeprecationReportBody interface returns the path to the source file where the deprecated feature was used." - }, - { - "mdn_url": "/en-US/docs/Web/API/DeprecationReportBody/toJSON", - "pageType": "web-api-instance-method", - "summary": "The toJSON() method of the DeprecationReportBody interface is a serializer, and returns a JSON representation of the InterventionReportBody object." + "summary": "The DeprecationReport dictionary of the Reporting API represents a deprecation report." }, { "mdn_url": "/en-US/docs/Web/API/Device_Memory_API", @@ -5982,7 +5942,7 @@ { "mdn_url": "/en-US/docs/Web/API/Document/ariaNotify", "pageType": "web-api-instance-method", - "summary": "The ariaNotify() method of the Document interface specifies that a given string of text should be announced by a screen reader if available and activated." + "summary": "The ariaNotify() method of the Document interface queues a string of text to be announced by a screen reader." }, { "mdn_url": "/en-US/docs/Web/API/Document/beforescriptexecute_event", @@ -6012,7 +5972,7 @@ { "mdn_url": "/en-US/docs/Web/API/Document/caretRangeFromPoint", "pageType": "web-api-instance-method", - "summary": "The caretRangeFromPoint() method of the\nDocument interface returns a Range object for the document\nfragment under the specified coordinates." + "summary": "The caretRangeFromPoint() method of the Document interface returns a Range object for the document fragment under the specified coordinates." }, { "mdn_url": "/en-US/docs/Web/API/Document/characterSet", @@ -6057,12 +6017,12 @@ { "mdn_url": "/en-US/docs/Web/API/Document/createAttribute", "pageType": "web-api-instance-method", - "summary": "The Document.createAttribute() method creates a new\nattribute node, and returns it. The object created is a node implementing the\nAttr interface. The DOM does not enforce what sort of attributes can be\nadded to a particular element in this manner." + "summary": "The createAttribute() method of the Document interface creates a new attribute node." }, { "mdn_url": "/en-US/docs/Web/API/Document/createAttributeNS", "pageType": "web-api-instance-method", - "summary": "The Document.createAttributeNS() method creates a new attribute node\nwith the specified namespace URI and qualified name, and returns it.\nThe object created is a node implementing the\nAttr interface. The DOM does not enforce what sort of attributes can be\nadded to a particular element in this manner." + "summary": "The createAttributeNS() method of the Document interface creates a new attribute node with the specified namespace URI and qualified name." }, { "mdn_url": "/en-US/docs/Web/API/Document/createCDATASection", @@ -6082,12 +6042,12 @@ { "mdn_url": "/en-US/docs/Web/API/Document/createElement", "pageType": "web-api-instance-method", - "summary": "In an HTML document, the document.createElement() method creates the HTML element specified by localName, or an HTMLUnknownElement if localName isn't recognized." + "summary": "The createElement() method of the Document interface creates a new HTMLElement that has the specified localName." }, { "mdn_url": "/en-US/docs/Web/API/Document/createElementNS", "pageType": "web-api-instance-method", - "summary": "Creates an element with the specified namespace URI and qualified name." + "summary": "The createElementNS() method of the Document interface creates a new element with the specified namespace URI and qualified name." }, { "mdn_url": "/en-US/docs/Web/API/Document/createEvent", @@ -6852,7 +6812,7 @@ { "mdn_url": "/en-US/docs/Web/API/DOMImplementation/createDocument", "pageType": "web-api-instance-method", - "summary": "The DOMImplementation.createDocument() method creates and\nreturns an XMLDocument." + "summary": "The createDocument() method of the DOMImplementation interface creates and returns an XMLDocument." }, { "mdn_url": "/en-US/docs/Web/API/DOMImplementation/createDocumentType", @@ -7807,7 +7767,7 @@ { "mdn_url": "/en-US/docs/Web/API/Element/ariaNotify", "pageType": "web-api-instance-method", - "summary": "The ariaNotify() method of the Element interface specifies that a given string of text should be announced by a screen reader if available and activated." + "summary": "The ariaNotify() method of the Element interface queues a string of text to be announced by a screen reader." }, { "mdn_url": "/en-US/docs/Web/API/Element/ariaOrientation", @@ -8612,7 +8572,7 @@ { "mdn_url": "/en-US/docs/Web/API/Element/toggleAttribute", "pageType": "web-api-instance-method", - "summary": "The toggleAttribute() method of the\nElement interface toggles a Boolean attribute (removing it if it is\npresent and adding it if it is not present) on the given element." + "summary": "The toggleAttribute() method of the Element interface toggles a Boolean attribute on the given element, removing it if present and adding it if not present." }, { "mdn_url": "/en-US/docs/Web/API/Element/touchcancel_event", @@ -9182,7 +9142,7 @@ { "mdn_url": "/en-US/docs/Web/API/Event/isTrusted", "pageType": "web-api-instance-property", - "summary": "The isTrusted read-only property of the\nEvent interface is a boolean value that is true\nwhen the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()),\nand false when the event was dispatched via\nEventTarget.dispatchEvent().\nThe only exception is the click event, which initializes the isTrusted\nproperty to false in user agents." + "summary": "The isTrusted read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false." }, { "mdn_url": "/en-US/docs/Web/API/Event/originalTarget", @@ -12324,6 +12284,11 @@ "pageType": "web-api-interface", "summary": "The HTMLAnchorElement interface represents hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements. This interface corresponds to element; not to be confused with , which is represented by HTMLLinkElement." }, + { + "mdn_url": "/en-US/docs/Web/API/HTMLAnchorElement/attributionSourceId", + "pageType": "web-api-instance-property", + "summary": "The attributionSourceId property of the HTMLAnchorElement interface gets and sets the attributionsourceid HTML attribute on an element." + }, { "mdn_url": "/en-US/docs/Web/API/HTMLAnchorElement/attributionSrc", "pageType": "web-api-instance-property", @@ -13602,7 +13567,7 @@ { "mdn_url": "/en-US/docs/Web/API/HTMLIFrameElement/loading", "pageType": "web-api-instance-property", - "summary": "The loading property of the HTMLIFrameElement interface is a string that provides a hint to the user agent indicating whether the iframe should be loaded immediately on page load, or only when it is needed." + "summary": "The loading property of the HTMLIFrameElement interface is a string that provides a hint to the browser indicating whether the iframe should be loaded immediately on page load, or only when it is needed." }, { "mdn_url": "/en-US/docs/Web/API/HTMLIFrameElement/name", @@ -13717,7 +13682,7 @@ { "mdn_url": "/en-US/docs/Web/API/HTMLImageElement/loading", "pageType": "web-api-instance-property", - "summary": "The loading property of the HTMLImageElement interface provides a hint to the user agent on how to handle the loading of the image which is currently outside the window's visual viewport. This helps to optimize the loading of the document's contents by postponing loading the image until it's expected to be needed, rather than immediately during the initial page load. It reflects the element's loading content attribute." + "summary": "The loading property of the HTMLImageElement interface provides a hint to the browser on how to handle the loading of the image which is currently outside the window's visual viewport. This helps to optimize the loading of the document's contents by postponing loading the image until it's expected to be needed, rather than immediately during the initial page load. It reflects the element's loading content attribute." }, { "mdn_url": "/en-US/docs/Web/API/HTMLImageElement/longDesc", @@ -14399,6 +14364,11 @@ "pageType": "web-api-instance-method", "summary": "The HTMLMediaElement.fastSeek() method quickly seeks the\nmedia to the new time with precision tradeoff." }, + { + "mdn_url": "/en-US/docs/Web/API/HTMLMediaElement/getStartDate", + "pageType": "web-api-instance-method", + "summary": "The getStartDate() method of the HTMLMediaElement interface returns a new Date object representing the real-world date and time corresponding to the beginning of the media." + }, { "mdn_url": "/en-US/docs/Web/API/HTMLMediaElement/load", "pageType": "web-api-instance-method", @@ -14414,6 +14384,11 @@ "pageType": "web-api-event", "summary": "The loadedmetadata event is fired when the metadata has been loaded." }, + { + "mdn_url": "/en-US/docs/Web/API/HTMLMediaElement/loading", + "pageType": "web-api-instance-property", + "summary": "The loading property of the HTMLMediaElement interface provides a hint to the browser on how to handle the loading of the media which is currently outside the window's visual viewport. This helps to optimize the loading of the document's contents by postponing loading the media until it's expected to be needed, rather than immediately during the initial page load. It reflects the