diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index ff7b586b7..871717589 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -898,15 +898,11 @@ interface GPUCanvasConfiguration { colorSpace?: PredefinedColorSpace; device: GPUDevice; format: GPUTextureFormat; - toneMapping?: GPUCanvasToneMapping; + toneMapping?: CanvasToneMapping; usage?: GPUTextureUsageFlags; viewFormats?: GPUTextureFormat[]; } -interface GPUCanvasToneMapping { - mode?: GPUCanvasToneMappingMode; -} - interface GPUColorDict { a: number; b: number; @@ -14252,6 +14248,13 @@ interface EXT_color_buffer_half_float { readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; } +interface EXT_conservative_depth { +} + +interface EXT_depth_clamp { + readonly DEPTH_CLAMP_EXT: 0x864F; +} + /** * The WebGL API's **`EXT_float_blend`** extension allows blending and draw buffers with 32-bit floating-point components. * @@ -14283,6 +14286,9 @@ interface EXT_polygon_offset_clamp { readonly POLYGON_OFFSET_CLAMP_EXT: 0x8E1B; } +interface EXT_render_snorm { +} + /** * The **`EXT_sRGB`** extension is part of the WebGL API and adds sRGB support to textures and framebuffer objects. * @@ -26212,6 +26218,9 @@ declare var MutationRecord: { new(): MutationRecord; }; +interface NV_shader_noperspective_interpolation { +} + /** * The **`NamedNodeMap`** interface represents a collection of Attr objects. Objects inside a NamedNodeMap are not in any particular order, unlike NodeList, although they may be accessed by an index as in an array. * @@ -27556,6 +27565,15 @@ interface OES_element_index_uint { interface OES_fbo_render_mipmap { } +interface OES_sample_variables { +} + +interface OES_shader_multisample_interpolation { + readonly MIN_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5B; + readonly MAX_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5C; + readonly FRAGMENT_INTERPOLATION_OFFSET_BITS_OES: 0x8E5D; +} + /** * The **`OES_standard_derivatives`** extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. * @@ -36768,9 +36786,10 @@ interface SpeechGrammarList { */ addFromString(string: string, weight?: number): void; /** + * The **`addFromUri()`** method of the SpeechGrammarList interface takes a grammar present at a specific URI and adds it to the SpeechGrammarList as a new SpeechGrammar object. * @deprecated * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechGrammarList/addFromURI) + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechGrammarList/addFromUri) */ addFromUri(src: string, weight?: number): void; /** @@ -36811,13 +36830,13 @@ interface SpeechRecognitionEventMap { */ interface SpeechRecognition extends EventTarget { /** - * The **`continuous`** property of the SpeechRecognition interface controls whether continuous results are returned for each recognition, or only a single result. + * The **`continuous`** property of the SpeechRecognition interface represents whether recognition returns a single final result, or multiple final results from consecutive recognitions. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognition/continuous) */ continuous: boolean; /** - * The **`grammars`** property of the SpeechRecognition interface returns and sets a collection of SpeechGrammar objects that represent the grammars that will be understood by the current SpeechRecognition. + * The **`grammars`** property of the SpeechRecognition interface represents a collection of SpeechGrammar objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognition/grammars) */ @@ -36887,14 +36906,14 @@ interface SpeechRecognition extends EventTarget { */ abort(): void; /** - * The **`start()`** method of the Web Speech API starts the speech recognition service to listen for incoming audio (from a microphone or an audio track) and returns the results of that recognition. + * The **`start()`** method of the SpeechRecognition interface starts the speech recognition service listening for incoming audio (from a microphone or an audio track). Results are delivered through the result event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognition/start) */ start(): void; start(audioTrack: MediaStreamTrack): void; /** - * The **`stop()`** method of the Web Speech API stops the speech recognition service from listening for incoming audio and attempts to return a SpeechRecognitionResult based on the results captured so far. + * The **`stop()`** method of the SpeechRecognition interface stops the speech recognition service from listening for incoming audio. The service then attempts to return a result based on the audio captured so far, through a result event, or a nomatch event if nothing was recognized. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognition/stop) */ @@ -36909,13 +36928,13 @@ declare var SpeechRecognition: { prototype: SpeechRecognition; new(): SpeechRecognition; /** - * The **`available()`** static method of the Web Speech API checks whether the specified languages are available for speech recognition at the given quality level. + * The **`available()`** static method of the SpeechRecognition interface checks whether the specified languages are available for speech recognition at the given quality level. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognition/available_static) */ available(options: SpeechRecognitionOptions): Promise; /** - * The **`install()`** static method of the Web Speech API installs the required language packs for on-device speech recognition in the specified languages and quality level. + * The **`install()`** static method of the SpeechRecognition interface installs the language packs needed for on-device speech recognition of the specified languages, at the specified quality level. A language pack is the data a browser needs to recognize speech in a particular language. Once it is installed, recognition in that language can run on the user's device, so audio doesn't have to be sent to a remote service. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognition/install_static) */ @@ -36923,20 +36942,20 @@ declare var SpeechRecognition: { }; /** - * The **`SpeechRecognitionAlternative`** interface of the Web Speech API represents a single word that has been recognized by the speech recognition service. + * The **`SpeechRecognitionAlternative`** interface of the Web Speech API represents one possible match for what the user said, as recognized by the speech recognition service. A SpeechRecognitionResult contains one or more alternatives, ordered from most to least confident. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative) */ interface SpeechRecognitionAlternative { /** - * The **`confidence`** read-only property of the SpeechRecognitionResult interface returns a numeric estimate of how confident the speech recognition system is that the recognition is correct. + * The **`confidence`** read-only property of the SpeechRecognitionAlternative interface returns a numeric estimate of how confident the speech recognition system is that the recognition is correct. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/confidence) */ readonly confidence: number; /** - * The **`transcript`** read-only property of the SpeechRecognitionResult interface returns a string containing the transcript of the recognized word(s). + * The **`transcript`** read-only property of the SpeechRecognitionAlternative interface returns a string containing the transcript of the recognized speech. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/transcript) */ @@ -37060,7 +37079,7 @@ declare var SpeechRecognitionResult: { }; /** - * The **`SpeechRecognitionResultList`** interface of the Web Speech API represents a list of SpeechRecognitionResult objects, or a single one if results are being captured in non-continuous mode. + * The **`SpeechRecognitionResultList`** interface of the Web Speech API represents a collection of SpeechRecognitionResult objects. If recognition isn't in continuous mode, it contains only one result. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList) @@ -40010,6 +40029,22 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +interface WEBGL_polygon_mode { + polygonModeWEBGL(face: GLenum, mode: GLenum): void; + readonly POLYGON_MODE_WEBGL: 0x0B40; + readonly POLYGON_OFFSET_LINE_WEBGL: 0x2A02; + readonly LINE_WEBGL: 0x1B01; + readonly FILL_WEBGL: 0x1B02; +} + +interface WEBGL_render_shared_exponent { +} + +interface WEBGL_stencil_texturing { + readonly DEPTH_STENCIL_TEXTURE_MODE_WEBGL: 0x90EA; + readonly STENCIL_INDEX_WEBGL: 0x1901; +} + /** * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. * Available only in secure contexts. @@ -42454,9 +42489,17 @@ declare var WebSocket: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport) */ interface WebTransport { - /** The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingBidirectionalStreams) + */ anticipatedConcurrentIncomingBidirectionalStreams: number | null; - /** The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingUnidirectionalStreams) + */ anticipatedConcurrentIncomingUnidirectionalStreams: number | null; /** * The **`closed`** read-only property of the WebTransport interface returns a promise that resolves when the transport is closed. @@ -42512,7 +42555,11 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) */ readonly reliability: WebTransportReliabilityMode; - /** The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. */ + /** + * The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/responseHeaders) + */ readonly responseHeaders: Headers | null; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. @@ -42608,7 +42655,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */ incomingMaxAge: number | null; - /** The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. */ + /** + * The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxBufferedDatagrams) + */ incomingMaxBufferedDatagrams: number; /** * The **`maxDatagramSize`** read-only property of the WebTransportDatagramDuplexStream interface returns the maximum allowable size of outgoing datagrams, in bytes, that can be written to writable. @@ -42628,7 +42679,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */ outgoingMaxAge: number; - /** The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. */ + /** + * The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxBufferedDatagrams) + */ outgoingMaxBufferedDatagrams: number; /** * The **`readable`** read-only property of the WebTransportDatagramDuplexStream interface returns a ReadableStream instance that can be used to unreliably read incoming datagrams from the stream. @@ -45981,7 +46036,7 @@ type SanitizerPI = string | SanitizerProcessingInstruction; type SelectionDirection = "forward" | "backward" | "none"; type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | MediaStreamTrack | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type VibratePattern = number | number[]; @@ -46063,7 +46118,6 @@ type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract" type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; type GPUCanvasAlphaMode = "opaque" | "premultiplied"; -type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index 09d96ce4a..884f08843 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -76,6 +76,10 @@ interface CacheQueryOptions { ignoreVary?: boolean; } +interface CanvasToneMapping { + mode?: CanvasToneMappingMode; +} + interface ClientQueryOptions { includeUncontrolled?: boolean; type?: ClientTypes; @@ -331,15 +335,11 @@ interface GPUCanvasConfiguration { colorSpace?: PredefinedColorSpace; device: GPUDevice; format: GPUTextureFormat; - toneMapping?: GPUCanvasToneMapping; + toneMapping?: CanvasToneMapping; usage?: GPUTextureUsageFlags; viewFormats?: GPUTextureFormat[]; } -interface GPUCanvasToneMapping { - mode?: GPUCanvasToneMappingMode; -} - interface GPUColorDict { a: number; b: number; @@ -3664,6 +3664,13 @@ interface EXT_color_buffer_half_float { readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; } +interface EXT_conservative_depth { +} + +interface EXT_depth_clamp { + readonly DEPTH_CLAMP_EXT: 0x864F; +} + /** * The WebGL API's **`EXT_float_blend`** extension allows blending and draw buffers with 32-bit floating-point components. * @@ -3695,6 +3702,9 @@ interface EXT_polygon_offset_clamp { readonly POLYGON_OFFSET_CLAMP_EXT: 0x8E1B; } +interface EXT_render_snorm { +} + /** * The **`EXT_sRGB`** extension is part of the WebGL API and adds sRGB support to textures and framebuffer objects. * @@ -7000,6 +7010,9 @@ declare var MessagePort: { new(): MessagePort; }; +interface NV_shader_noperspective_interpolation { +} + /** * The **`NavigationPreloadManager`** interface of the Service Worker API provides methods for managing the preloading of resources in parallel with service worker bootup. * Available only in secure contexts. @@ -7306,6 +7319,15 @@ interface OES_element_index_uint { interface OES_fbo_render_mipmap { } +interface OES_sample_variables { +} + +interface OES_shader_multisample_interpolation { + readonly MIN_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5B; + readonly MAX_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5C; + readonly FRAGMENT_INTERPOLATION_OFFSET_BITS_OES: 0x8E5D; +} + /** * The **`OES_standard_derivatives`** extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. * @@ -10088,6 +10110,22 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +interface WEBGL_polygon_mode { + polygonModeWEBGL(face: GLenum, mode: GLenum): void; + readonly POLYGON_MODE_WEBGL: 0x0B40; + readonly POLYGON_OFFSET_LINE_WEBGL: 0x2A02; + readonly LINE_WEBGL: 0x1B01; + readonly FILL_WEBGL: 0x1B02; +} + +interface WEBGL_render_shared_exponent { +} + +interface WEBGL_stencil_texturing { + readonly DEPTH_STENCIL_TEXTURE_MODE_WEBGL: 0x90EA; + readonly STENCIL_INDEX_WEBGL: 0x1901; +} + /** * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. * Available only in secure contexts. @@ -12443,9 +12481,17 @@ declare var WebSocket: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport) */ interface WebTransport { - /** The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingBidirectionalStreams) + */ anticipatedConcurrentIncomingBidirectionalStreams: number | null; - /** The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingUnidirectionalStreams) + */ anticipatedConcurrentIncomingUnidirectionalStreams: number | null; /** * The **`closed`** read-only property of the WebTransport interface returns a promise that resolves when the transport is closed. @@ -12501,7 +12547,11 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) */ readonly reliability: WebTransportReliabilityMode; - /** The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. */ + /** + * The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/responseHeaders) + */ readonly responseHeaders: Headers | null; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. @@ -12597,7 +12647,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */ incomingMaxAge: number | null; - /** The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. */ + /** + * The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxBufferedDatagrams) + */ incomingMaxBufferedDatagrams: number; /** * The **`maxDatagramSize`** read-only property of the WebTransportDatagramDuplexStream interface returns the maximum allowable size of outgoing datagrams, in bytes, that can be written to writable. @@ -12617,7 +12671,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */ outgoingMaxAge: number; - /** The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. */ + /** + * The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxBufferedDatagrams) + */ outgoingMaxBufferedDatagrams: number; /** * The **`readable`** read-only property of the WebTransportDatagramDuplexStream interface returns a ReadableStream instance that can be used to unreliably read incoming datagrams from the stream. @@ -13898,6 +13956,7 @@ type CanvasLineJoin = "bevel" | "miter" | "round"; type CanvasTextAlign = "center" | "end" | "left" | "right" | "start"; type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top"; type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed"; +type CanvasToneMappingMode = "extended" | "standard"; type ClientTypes = "all" | "sharedworker" | "window" | "worker"; type ColorGamut = "p3" | "rec2020" | "srgb"; type ColorSpaceConversion = "default" | "none"; @@ -13917,7 +13976,6 @@ type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract" type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; type GPUCanvasAlphaMode = "opaque" | "premultiplied"; -type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index 297df3971..a5d5b0045 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -76,6 +76,10 @@ interface CacheQueryOptions { ignoreVary?: boolean; } +interface CanvasToneMapping { + mode?: CanvasToneMappingMode; +} + interface CloseEventInit extends EventInit { code?: number; reason?: string; @@ -275,15 +279,11 @@ interface GPUCanvasConfiguration { colorSpace?: PredefinedColorSpace; device: GPUDevice; format: GPUTextureFormat; - toneMapping?: GPUCanvasToneMapping; + toneMapping?: CanvasToneMapping; usage?: GPUTextureUsageFlags; viewFormats?: GPUTextureFormat[]; } -interface GPUCanvasToneMapping { - mode?: GPUCanvasToneMappingMode; -} - interface GPUColorDict { a: number; b: number; @@ -3426,6 +3426,13 @@ interface EXT_color_buffer_half_float { readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; } +interface EXT_conservative_depth { +} + +interface EXT_depth_clamp { + readonly DEPTH_CLAMP_EXT: 0x864F; +} + /** * The WebGL API's **`EXT_float_blend`** extension allows blending and draw buffers with 32-bit floating-point components. * @@ -3457,6 +3464,9 @@ interface EXT_polygon_offset_clamp { readonly POLYGON_OFFSET_CLAMP_EXT: 0x8E1B; } +interface EXT_render_snorm { +} + /** * The **`EXT_sRGB`** extension is part of the WebGL API and adds sRGB support to textures and framebuffer objects. * @@ -6645,6 +6655,9 @@ declare var MessagePort: { new(): MessagePort; }; +interface NV_shader_noperspective_interpolation { +} + /** * The **`NavigationPreloadManager`** interface of the Service Worker API provides methods for managing the preloading of resources in parallel with service worker bootup. * Available only in secure contexts. @@ -6926,6 +6939,15 @@ interface OES_element_index_uint { interface OES_fbo_render_mipmap { } +interface OES_sample_variables { +} + +interface OES_shader_multisample_interpolation { + readonly MIN_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5B; + readonly MAX_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5C; + readonly FRAGMENT_INTERPOLATION_OFFSET_BITS_OES: 0x8E5D; +} + /** * The **`OES_standard_derivatives`** extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. * @@ -9593,6 +9615,22 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +interface WEBGL_polygon_mode { + polygonModeWEBGL(face: GLenum, mode: GLenum): void; + readonly POLYGON_MODE_WEBGL: 0x0B40; + readonly POLYGON_OFFSET_LINE_WEBGL: 0x2A02; + readonly LINE_WEBGL: 0x1B01; + readonly FILL_WEBGL: 0x1B02; +} + +interface WEBGL_render_shared_exponent { +} + +interface WEBGL_stencil_texturing { + readonly DEPTH_STENCIL_TEXTURE_MODE_WEBGL: 0x90EA; + readonly STENCIL_INDEX_WEBGL: 0x1901; +} + /** * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. * Available only in secure contexts. @@ -11948,9 +11986,17 @@ declare var WebSocket: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport) */ interface WebTransport { - /** The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingBidirectionalStreams) + */ anticipatedConcurrentIncomingBidirectionalStreams: number | null; - /** The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingUnidirectionalStreams) + */ anticipatedConcurrentIncomingUnidirectionalStreams: number | null; /** * The **`closed`** read-only property of the WebTransport interface returns a promise that resolves when the transport is closed. @@ -12006,7 +12052,11 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) */ readonly reliability: WebTransportReliabilityMode; - /** The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. */ + /** + * The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/responseHeaders) + */ readonly responseHeaders: Headers | null; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. @@ -12102,7 +12152,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */ incomingMaxAge: number | null; - /** The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. */ + /** + * The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxBufferedDatagrams) + */ incomingMaxBufferedDatagrams: number; /** * The **`maxDatagramSize`** read-only property of the WebTransportDatagramDuplexStream interface returns the maximum allowable size of outgoing datagrams, in bytes, that can be written to writable. @@ -12122,7 +12176,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */ outgoingMaxAge: number; - /** The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. */ + /** + * The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxBufferedDatagrams) + */ outgoingMaxBufferedDatagrams: number; /** * The **`readable`** read-only property of the WebTransportDatagramDuplexStream interface returns a ReadableStream instance that can be used to unreliably read incoming datagrams from the stream. @@ -13546,6 +13604,7 @@ type CanvasLineJoin = "bevel" | "miter" | "round"; type CanvasTextAlign = "center" | "end" | "left" | "right" | "start"; type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top"; type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed"; +type CanvasToneMappingMode = "extended" | "standard"; type ClientTypes = "all" | "sharedworker" | "window" | "worker"; type ColorGamut = "p3" | "rec2020" | "srgb"; type ColorSpaceConversion = "default" | "none"; @@ -13562,7 +13621,6 @@ type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract" type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; type GPUCanvasAlphaMode = "opaque" | "premultiplied"; -type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index 6eb1805d4..b7d206690 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -895,15 +895,11 @@ interface GPUCanvasConfiguration { colorSpace?: PredefinedColorSpace; device: GPUDevice; format: GPUTextureFormat; - toneMapping?: GPUCanvasToneMapping; + toneMapping?: CanvasToneMapping; usage?: GPUTextureUsageFlags; viewFormats?: GPUTextureFormat[]; } -interface GPUCanvasToneMapping { - mode?: GPUCanvasToneMappingMode; -} - interface GPUColorDict { a: number; b: number; @@ -14240,6 +14236,13 @@ interface EXT_color_buffer_half_float { readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; } +interface EXT_conservative_depth { +} + +interface EXT_depth_clamp { + readonly DEPTH_CLAMP_EXT: 0x864F; +} + /** * The WebGL API's **`EXT_float_blend`** extension allows blending and draw buffers with 32-bit floating-point components. * @@ -14271,6 +14274,9 @@ interface EXT_polygon_offset_clamp { readonly POLYGON_OFFSET_CLAMP_EXT: 0x8E1B; } +interface EXT_render_snorm { +} + /** * The **`EXT_sRGB`** extension is part of the WebGL API and adds sRGB support to textures and framebuffer objects. * @@ -26187,6 +26193,9 @@ declare var MutationRecord: { new(): MutationRecord; }; +interface NV_shader_noperspective_interpolation { +} + /** * The **`NamedNodeMap`** interface represents a collection of Attr objects. Objects inside a NamedNodeMap are not in any particular order, unlike NodeList, although they may be accessed by an index as in an array. * @@ -27531,6 +27540,15 @@ interface OES_element_index_uint { interface OES_fbo_render_mipmap { } +interface OES_sample_variables { +} + +interface OES_shader_multisample_interpolation { + readonly MIN_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5B; + readonly MAX_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5C; + readonly FRAGMENT_INTERPOLATION_OFFSET_BITS_OES: 0x8E5D; +} + /** * The **`OES_standard_derivatives`** extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. * @@ -36742,9 +36760,10 @@ interface SpeechGrammarList { */ addFromString(string: string, weight?: number): void; /** + * The **`addFromUri()`** method of the SpeechGrammarList interface takes a grammar present at a specific URI and adds it to the SpeechGrammarList as a new SpeechGrammar object. * @deprecated * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechGrammarList/addFromURI) + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechGrammarList/addFromUri) */ addFromUri(src: string, weight?: number): void; /** @@ -36785,13 +36804,13 @@ interface SpeechRecognitionEventMap { */ interface SpeechRecognition extends EventTarget { /** - * The **`continuous`** property of the SpeechRecognition interface controls whether continuous results are returned for each recognition, or only a single result. + * The **`continuous`** property of the SpeechRecognition interface represents whether recognition returns a single final result, or multiple final results from consecutive recognitions. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognition/continuous) */ continuous: boolean; /** - * The **`grammars`** property of the SpeechRecognition interface returns and sets a collection of SpeechGrammar objects that represent the grammars that will be understood by the current SpeechRecognition. + * The **`grammars`** property of the SpeechRecognition interface represents a collection of SpeechGrammar objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognition/grammars) */ @@ -36861,14 +36880,14 @@ interface SpeechRecognition extends EventTarget { */ abort(): void; /** - * The **`start()`** method of the Web Speech API starts the speech recognition service to listen for incoming audio (from a microphone or an audio track) and returns the results of that recognition. + * The **`start()`** method of the SpeechRecognition interface starts the speech recognition service listening for incoming audio (from a microphone or an audio track). Results are delivered through the result event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognition/start) */ start(): void; start(audioTrack: MediaStreamTrack): void; /** - * The **`stop()`** method of the Web Speech API stops the speech recognition service from listening for incoming audio and attempts to return a SpeechRecognitionResult based on the results captured so far. + * The **`stop()`** method of the SpeechRecognition interface stops the speech recognition service from listening for incoming audio. The service then attempts to return a result based on the audio captured so far, through a result event, or a nomatch event if nothing was recognized. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognition/stop) */ @@ -36883,13 +36902,13 @@ declare var SpeechRecognition: { prototype: SpeechRecognition; new(): SpeechRecognition; /** - * The **`available()`** static method of the Web Speech API checks whether the specified languages are available for speech recognition at the given quality level. + * The **`available()`** static method of the SpeechRecognition interface checks whether the specified languages are available for speech recognition at the given quality level. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognition/available_static) */ available(options: SpeechRecognitionOptions): Promise; /** - * The **`install()`** static method of the Web Speech API installs the required language packs for on-device speech recognition in the specified languages and quality level. + * The **`install()`** static method of the SpeechRecognition interface installs the language packs needed for on-device speech recognition of the specified languages, at the specified quality level. A language pack is the data a browser needs to recognize speech in a particular language. Once it is installed, recognition in that language can run on the user's device, so audio doesn't have to be sent to a remote service. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognition/install_static) */ @@ -36897,20 +36916,20 @@ declare var SpeechRecognition: { }; /** - * The **`SpeechRecognitionAlternative`** interface of the Web Speech API represents a single word that has been recognized by the speech recognition service. + * The **`SpeechRecognitionAlternative`** interface of the Web Speech API represents one possible match for what the user said, as recognized by the speech recognition service. A SpeechRecognitionResult contains one or more alternatives, ordered from most to least confident. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative) */ interface SpeechRecognitionAlternative { /** - * The **`confidence`** read-only property of the SpeechRecognitionResult interface returns a numeric estimate of how confident the speech recognition system is that the recognition is correct. + * The **`confidence`** read-only property of the SpeechRecognitionAlternative interface returns a numeric estimate of how confident the speech recognition system is that the recognition is correct. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/confidence) */ readonly confidence: number; /** - * The **`transcript`** read-only property of the SpeechRecognitionResult interface returns a string containing the transcript of the recognized word(s). + * The **`transcript`** read-only property of the SpeechRecognitionAlternative interface returns a string containing the transcript of the recognized speech. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/transcript) */ @@ -37034,7 +37053,7 @@ declare var SpeechRecognitionResult: { }; /** - * The **`SpeechRecognitionResultList`** interface of the Web Speech API represents a list of SpeechRecognitionResult objects, or a single one if results are being captured in non-continuous mode. + * The **`SpeechRecognitionResultList`** interface of the Web Speech API represents a collection of SpeechRecognitionResult objects. If recognition isn't in continuous mode, it contains only one result. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList) @@ -39983,6 +40002,22 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +interface WEBGL_polygon_mode { + polygonModeWEBGL(face: GLenum, mode: GLenum): void; + readonly POLYGON_MODE_WEBGL: 0x0B40; + readonly POLYGON_OFFSET_LINE_WEBGL: 0x2A02; + readonly LINE_WEBGL: 0x1B01; + readonly FILL_WEBGL: 0x1B02; +} + +interface WEBGL_render_shared_exponent { +} + +interface WEBGL_stencil_texturing { + readonly DEPTH_STENCIL_TEXTURE_MODE_WEBGL: 0x90EA; + readonly STENCIL_INDEX_WEBGL: 0x1901; +} + /** * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. * Available only in secure contexts. @@ -42427,9 +42462,17 @@ declare var WebSocket: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport) */ interface WebTransport { - /** The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingBidirectionalStreams) + */ anticipatedConcurrentIncomingBidirectionalStreams: number | null; - /** The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingUnidirectionalStreams) + */ anticipatedConcurrentIncomingUnidirectionalStreams: number | null; /** * The **`closed`** read-only property of the WebTransport interface returns a promise that resolves when the transport is closed. @@ -42485,7 +42528,11 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) */ readonly reliability: WebTransportReliabilityMode; - /** The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. */ + /** + * The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/responseHeaders) + */ readonly responseHeaders: Headers | null; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. @@ -42581,7 +42628,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */ incomingMaxAge: number | null; - /** The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. */ + /** + * The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxBufferedDatagrams) + */ incomingMaxBufferedDatagrams: number; /** * The **`maxDatagramSize`** read-only property of the WebTransportDatagramDuplexStream interface returns the maximum allowable size of outgoing datagrams, in bytes, that can be written to writable. @@ -42601,7 +42652,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */ outgoingMaxAge: number; - /** The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. */ + /** + * The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxBufferedDatagrams) + */ outgoingMaxBufferedDatagrams: number; /** * The **`readable`** read-only property of the WebTransportDatagramDuplexStream interface returns a ReadableStream instance that can be used to unreliably read incoming datagrams from the stream. @@ -45954,7 +46009,7 @@ type SanitizerPI = string | SanitizerProcessingInstruction; type SelectionDirection = "forward" | "backward" | "none"; type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | MediaStreamTrack | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type VibratePattern = number | number[]; @@ -46036,7 +46091,6 @@ type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract" type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; type GPUCanvasAlphaMode = "opaque" | "premultiplied"; -type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; diff --git a/baselines/ts5.5/serviceworker.generated.d.ts b/baselines/ts5.5/serviceworker.generated.d.ts index 21d67d9c9..55e3628ad 100644 --- a/baselines/ts5.5/serviceworker.generated.d.ts +++ b/baselines/ts5.5/serviceworker.generated.d.ts @@ -73,6 +73,10 @@ interface CacheQueryOptions { ignoreVary?: boolean; } +interface CanvasToneMapping { + mode?: CanvasToneMappingMode; +} + interface ClientQueryOptions { includeUncontrolled?: boolean; type?: ClientTypes; @@ -328,15 +332,11 @@ interface GPUCanvasConfiguration { colorSpace?: PredefinedColorSpace; device: GPUDevice; format: GPUTextureFormat; - toneMapping?: GPUCanvasToneMapping; + toneMapping?: CanvasToneMapping; usage?: GPUTextureUsageFlags; viewFormats?: GPUTextureFormat[]; } -interface GPUCanvasToneMapping { - mode?: GPUCanvasToneMappingMode; -} - interface GPUColorDict { a: number; b: number; @@ -3661,6 +3661,13 @@ interface EXT_color_buffer_half_float { readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; } +interface EXT_conservative_depth { +} + +interface EXT_depth_clamp { + readonly DEPTH_CLAMP_EXT: 0x864F; +} + /** * The WebGL API's **`EXT_float_blend`** extension allows blending and draw buffers with 32-bit floating-point components. * @@ -3692,6 +3699,9 @@ interface EXT_polygon_offset_clamp { readonly POLYGON_OFFSET_CLAMP_EXT: 0x8E1B; } +interface EXT_render_snorm { +} + /** * The **`EXT_sRGB`** extension is part of the WebGL API and adds sRGB support to textures and framebuffer objects. * @@ -6997,6 +7007,9 @@ declare var MessagePort: { new(): MessagePort; }; +interface NV_shader_noperspective_interpolation { +} + /** * The **`NavigationPreloadManager`** interface of the Service Worker API provides methods for managing the preloading of resources in parallel with service worker bootup. * Available only in secure contexts. @@ -7303,6 +7316,15 @@ interface OES_element_index_uint { interface OES_fbo_render_mipmap { } +interface OES_sample_variables { +} + +interface OES_shader_multisample_interpolation { + readonly MIN_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5B; + readonly MAX_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5C; + readonly FRAGMENT_INTERPOLATION_OFFSET_BITS_OES: 0x8E5D; +} + /** * The **`OES_standard_derivatives`** extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. * @@ -10085,6 +10107,22 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +interface WEBGL_polygon_mode { + polygonModeWEBGL(face: GLenum, mode: GLenum): void; + readonly POLYGON_MODE_WEBGL: 0x0B40; + readonly POLYGON_OFFSET_LINE_WEBGL: 0x2A02; + readonly LINE_WEBGL: 0x1B01; + readonly FILL_WEBGL: 0x1B02; +} + +interface WEBGL_render_shared_exponent { +} + +interface WEBGL_stencil_texturing { + readonly DEPTH_STENCIL_TEXTURE_MODE_WEBGL: 0x90EA; + readonly STENCIL_INDEX_WEBGL: 0x1901; +} + /** * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. * Available only in secure contexts. @@ -12440,9 +12478,17 @@ declare var WebSocket: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport) */ interface WebTransport { - /** The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingBidirectionalStreams) + */ anticipatedConcurrentIncomingBidirectionalStreams: number | null; - /** The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingUnidirectionalStreams) + */ anticipatedConcurrentIncomingUnidirectionalStreams: number | null; /** * The **`closed`** read-only property of the WebTransport interface returns a promise that resolves when the transport is closed. @@ -12498,7 +12544,11 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) */ readonly reliability: WebTransportReliabilityMode; - /** The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. */ + /** + * The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/responseHeaders) + */ readonly responseHeaders: Headers | null; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. @@ -12594,7 +12644,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */ incomingMaxAge: number | null; - /** The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. */ + /** + * The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxBufferedDatagrams) + */ incomingMaxBufferedDatagrams: number; /** * The **`maxDatagramSize`** read-only property of the WebTransportDatagramDuplexStream interface returns the maximum allowable size of outgoing datagrams, in bytes, that can be written to writable. @@ -12614,7 +12668,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */ outgoingMaxAge: number; - /** The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. */ + /** + * The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxBufferedDatagrams) + */ outgoingMaxBufferedDatagrams: number; /** * The **`readable`** read-only property of the WebTransportDatagramDuplexStream interface returns a ReadableStream instance that can be used to unreliably read incoming datagrams from the stream. @@ -13895,6 +13953,7 @@ type CanvasLineJoin = "bevel" | "miter" | "round"; type CanvasTextAlign = "center" | "end" | "left" | "right" | "start"; type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top"; type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed"; +type CanvasToneMappingMode = "extended" | "standard"; type ClientTypes = "all" | "sharedworker" | "window" | "worker"; type ColorGamut = "p3" | "rec2020" | "srgb"; type ColorSpaceConversion = "default" | "none"; @@ -13914,7 +13973,6 @@ type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract" type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; type GPUCanvasAlphaMode = "opaque" | "premultiplied"; -type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; diff --git a/baselines/ts5.5/sharedworker.generated.d.ts b/baselines/ts5.5/sharedworker.generated.d.ts index 480b3fa4b..6e8683ca7 100644 --- a/baselines/ts5.5/sharedworker.generated.d.ts +++ b/baselines/ts5.5/sharedworker.generated.d.ts @@ -73,6 +73,10 @@ interface CacheQueryOptions { ignoreVary?: boolean; } +interface CanvasToneMapping { + mode?: CanvasToneMappingMode; +} + interface CloseEventInit extends EventInit { code?: number; reason?: string; @@ -272,15 +276,11 @@ interface GPUCanvasConfiguration { colorSpace?: PredefinedColorSpace; device: GPUDevice; format: GPUTextureFormat; - toneMapping?: GPUCanvasToneMapping; + toneMapping?: CanvasToneMapping; usage?: GPUTextureUsageFlags; viewFormats?: GPUTextureFormat[]; } -interface GPUCanvasToneMapping { - mode?: GPUCanvasToneMappingMode; -} - interface GPUColorDict { a: number; b: number; @@ -3423,6 +3423,13 @@ interface EXT_color_buffer_half_float { readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; } +interface EXT_conservative_depth { +} + +interface EXT_depth_clamp { + readonly DEPTH_CLAMP_EXT: 0x864F; +} + /** * The WebGL API's **`EXT_float_blend`** extension allows blending and draw buffers with 32-bit floating-point components. * @@ -3454,6 +3461,9 @@ interface EXT_polygon_offset_clamp { readonly POLYGON_OFFSET_CLAMP_EXT: 0x8E1B; } +interface EXT_render_snorm { +} + /** * The **`EXT_sRGB`** extension is part of the WebGL API and adds sRGB support to textures and framebuffer objects. * @@ -6642,6 +6652,9 @@ declare var MessagePort: { new(): MessagePort; }; +interface NV_shader_noperspective_interpolation { +} + /** * The **`NavigationPreloadManager`** interface of the Service Worker API provides methods for managing the preloading of resources in parallel with service worker bootup. * Available only in secure contexts. @@ -6923,6 +6936,15 @@ interface OES_element_index_uint { interface OES_fbo_render_mipmap { } +interface OES_sample_variables { +} + +interface OES_shader_multisample_interpolation { + readonly MIN_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5B; + readonly MAX_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5C; + readonly FRAGMENT_INTERPOLATION_OFFSET_BITS_OES: 0x8E5D; +} + /** * The **`OES_standard_derivatives`** extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. * @@ -9590,6 +9612,22 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +interface WEBGL_polygon_mode { + polygonModeWEBGL(face: GLenum, mode: GLenum): void; + readonly POLYGON_MODE_WEBGL: 0x0B40; + readonly POLYGON_OFFSET_LINE_WEBGL: 0x2A02; + readonly LINE_WEBGL: 0x1B01; + readonly FILL_WEBGL: 0x1B02; +} + +interface WEBGL_render_shared_exponent { +} + +interface WEBGL_stencil_texturing { + readonly DEPTH_STENCIL_TEXTURE_MODE_WEBGL: 0x90EA; + readonly STENCIL_INDEX_WEBGL: 0x1901; +} + /** * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. * Available only in secure contexts. @@ -11945,9 +11983,17 @@ declare var WebSocket: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport) */ interface WebTransport { - /** The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingBidirectionalStreams) + */ anticipatedConcurrentIncomingBidirectionalStreams: number | null; - /** The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingUnidirectionalStreams) + */ anticipatedConcurrentIncomingUnidirectionalStreams: number | null; /** * The **`closed`** read-only property of the WebTransport interface returns a promise that resolves when the transport is closed. @@ -12003,7 +12049,11 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) */ readonly reliability: WebTransportReliabilityMode; - /** The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. */ + /** + * The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/responseHeaders) + */ readonly responseHeaders: Headers | null; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. @@ -12099,7 +12149,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */ incomingMaxAge: number | null; - /** The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. */ + /** + * The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxBufferedDatagrams) + */ incomingMaxBufferedDatagrams: number; /** * The **`maxDatagramSize`** read-only property of the WebTransportDatagramDuplexStream interface returns the maximum allowable size of outgoing datagrams, in bytes, that can be written to writable. @@ -12119,7 +12173,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */ outgoingMaxAge: number; - /** The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. */ + /** + * The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxBufferedDatagrams) + */ outgoingMaxBufferedDatagrams: number; /** * The **`readable`** read-only property of the WebTransportDatagramDuplexStream interface returns a ReadableStream instance that can be used to unreliably read incoming datagrams from the stream. @@ -13543,6 +13601,7 @@ type CanvasLineJoin = "bevel" | "miter" | "round"; type CanvasTextAlign = "center" | "end" | "left" | "right" | "start"; type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top"; type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed"; +type CanvasToneMappingMode = "extended" | "standard"; type ClientTypes = "all" | "sharedworker" | "window" | "worker"; type ColorGamut = "p3" | "rec2020" | "srgb"; type ColorSpaceConversion = "default" | "none"; @@ -13559,7 +13618,6 @@ type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract" type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; type GPUCanvasAlphaMode = "opaque" | "premultiplied"; -type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; diff --git a/baselines/ts5.5/webworker.generated.d.ts b/baselines/ts5.5/webworker.generated.d.ts index 28daced57..c4d91013d 100644 --- a/baselines/ts5.5/webworker.generated.d.ts +++ b/baselines/ts5.5/webworker.generated.d.ts @@ -135,6 +135,10 @@ interface CacheQueryOptions { ignoreVary?: boolean; } +interface CanvasToneMapping { + mode?: CanvasToneMappingMode; +} + interface ClientQueryOptions { includeUncontrolled?: boolean; type?: ClientTypes; @@ -146,6 +150,31 @@ interface CloseEventInit extends EventInit { wasClean?: boolean; } +interface ConstrainBooleanOrDOMStringParameters { + exact?: boolean | string; + ideal?: boolean | string; +} + +interface ConstrainBooleanParameters { + exact?: boolean; + ideal?: boolean; +} + +interface ConstrainDOMStringParameters { + exact?: string | string[]; + ideal?: string | string[]; +} + +interface ConstrainDoubleRange extends DoubleRange { + exact?: number; + ideal?: number; +} + +interface ConstrainULongRange extends ULongRange { + exact?: number; + ideal?: number; +} + interface CookieInit { domain?: string | null; expires?: DOMHighResTimeStamp | null; @@ -232,6 +261,11 @@ interface DOMRectInit { y?: number; } +interface DoubleRange { + max?: number; + min?: number; +} + interface EcKeyGenParams extends Algorithm { namedCurve: NamedCurve; } @@ -418,15 +452,11 @@ interface GPUCanvasConfiguration { colorSpace?: PredefinedColorSpace; device: GPUDevice; format: GPUTextureFormat; - toneMapping?: GPUCanvasToneMapping; + toneMapping?: CanvasToneMapping; usage?: GPUTextureUsageFlags; viewFormats?: GPUTextureFormat[]; } -interface GPUCanvasToneMapping { - mode?: GPUCanvasToneMappingMode; -} - interface GPUColorDict { a: number; b: number; @@ -902,6 +932,68 @@ interface MediaEncodingConfiguration extends MediaConfiguration { interface MediaStreamTrackProcessorInit { maxBufferSize?: number; + track: MediaStreamTrackOrHandle; +} + +interface MediaTrackCapabilities { + aspectRatio?: DoubleRange; + autoGainControl?: boolean[]; + backgroundBlur?: boolean[]; + channelCount?: ULongRange; + deviceId?: string; + displaySurface?: string; + echoCancellation?: (boolean | string)[]; + facingMode?: string[]; + frameRate?: DoubleRange; + groupId?: string; + height?: ULongRange; + noiseSuppression?: boolean[]; + sampleRate?: ULongRange; + sampleSize?: ULongRange; + width?: ULongRange; +} + +interface MediaTrackConstraintSet { + aspectRatio?: ConstrainDouble; + autoGainControl?: ConstrainBoolean; + backgroundBlur?: ConstrainBoolean; + channelCount?: ConstrainULong; + deviceId?: ConstrainDOMString; + displaySurface?: ConstrainDOMString; + echoCancellation?: ConstrainBooleanOrDOMString; + facingMode?: ConstrainDOMString; + frameRate?: ConstrainDouble; + groupId?: ConstrainDOMString; + height?: ConstrainULong; + noiseSuppression?: ConstrainBoolean; + sampleRate?: ConstrainULong; + sampleSize?: ConstrainULong; + width?: ConstrainULong; +} + +interface MediaTrackConstraints extends MediaTrackConstraintSet { + advanced?: MediaTrackConstraintSet[]; +} + +interface MediaTrackSettings { + aspectRatio?: number; + autoGainControl?: boolean; + backgroundBlur?: boolean; + channelCount?: number; + deviceId?: string; + displaySurface?: string; + echoCancellation?: boolean | string; + facingMode?: string; + frameRate?: number; + groupId?: string; + height?: number; + noiseSuppression?: boolean; + sampleRate?: number; + sampleSize?: number; + torch?: boolean; + whiteBalanceMode?: string; + width?: number; + zoom?: number; } interface MessageEventInit extends EventInit { @@ -1328,6 +1420,11 @@ interface Transformer { writableType?: undefined; } +interface ULongRange { + max?: number; + min?: number; +} + interface URLPatternComponentResult { groups: Record; input: string; @@ -4212,6 +4309,13 @@ interface EXT_color_buffer_half_float { readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; } +interface EXT_conservative_depth { +} + +interface EXT_depth_clamp { + readonly DEPTH_CLAMP_EXT: 0x864F; +} + /** * The WebGL API's **`EXT_float_blend`** extension allows blending and draw buffers with 32-bit floating-point components. * @@ -4243,6 +4347,9 @@ interface EXT_polygon_offset_clamp { readonly POLYGON_OFFSET_CLAMP_EXT: 0x8E1B; } +interface EXT_render_snorm { +} + /** * The **`EXT_sRGB`** extension is part of the WebGL API and adds sRGB support to textures and framebuffer objects. * @@ -7753,6 +7860,113 @@ declare var MediaSourceHandle: { new(): MediaSourceHandle; }; +interface MediaStreamTrackEventMap { + "ended": Event; + "mute": Event; + "unmute": Event; +} + +/** + * The **`MediaStreamTrack`** interface of the Media Capture and Streams API represents a single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack) + */ +interface MediaStreamTrack extends EventTarget { + /** + * The **`contentHint`** property of the MediaStreamTrack interface is a string that hints at the type of content the track contains. Allowable values depend on the value of the MediaStreamTrack.kind property. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/contentHint) + */ + contentHint: string; + /** + * The **`enabled`** property of the MediaStreamTrack interface is a Boolean value which is true if the track is allowed to render the source stream or false if it is not. This can be used to intentionally mute a track. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/enabled) + */ + enabled: boolean; + /** + * The **`id`** read-only property of the MediaStreamTrack interface returns a string containing a unique identifier (GUID) for the track, which is generated by the user agent. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/id) + */ + readonly id: string; + /** + * The **`kind`** read-only property of the MediaStreamTrack interface returns a string set to "audio" if the track is an audio track and to "video" if it is a video track. It doesn't change if the track is disassociated from its source. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/kind) + */ + readonly kind: string; + /** + * The **`label`** read-only property of the MediaStreamTrack interface returns a string containing a user agent-assigned label that identifies the track source, as in "internal microphone". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/label) + */ + readonly label: string; + /** + * The **`muted`** read-only property of the MediaStreamTrack interface returns a boolean value indicating whether or not the track is currently unable to provide media output. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/muted) + */ + readonly muted: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/ended_event) */ + onended: ((this: MediaStreamTrack, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/mute_event) */ + onmute: ((this: MediaStreamTrack, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/unmute_event) */ + onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null; + /** + * The **`readyState`** read-only property of the MediaStreamTrack interface returns an enumerated value giving the status of the track. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/readyState) + */ + readonly readyState: MediaStreamTrackState; + /** + * The **`applyConstraints()`** method of the MediaStreamTrack interface applies a set of constraints to the track; these constraints let the website or app establish ideal values and acceptable ranges of values for the constrainable properties of the track, such as frame rate, dimensions, echo cancellation, and so forth. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/applyConstraints) + */ + applyConstraints(constraints?: MediaTrackConstraints): Promise; + /** + * The **`clone()`** method of the MediaStreamTrack interface creates a duplicate of the MediaStreamTrack. This new MediaStreamTrack object is identical except for its unique id. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/clone) + */ + clone(): MediaStreamTrack; + /** + * The **`getCapabilities()`** method of the MediaStreamTrack interface returns an object detailing the accepted values or value range for each constrainable property of the associated MediaStreamTrack, based upon the platform and user agent. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getCapabilities) + */ + getCapabilities(): MediaTrackCapabilities; + /** + * The **`getConstraints()`** method of the MediaStreamTrack interface returns a MediaTrackConstraints object containing the set of constraints most recently established for the track using a prior call to applyConstraints(). These constraints indicate values and ranges of values that the website or application has specified are required or acceptable for the included constrainable properties. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getConstraints) + */ + getConstraints(): MediaTrackConstraints; + /** + * The **`getSettings()`** method of the MediaStreamTrack interface returns an object containing the current values of each of the constrainable properties for the current MediaStreamTrack. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getSettings) + */ + getSettings(): MediaTrackSettings; + /** + * The **`stop()`** method of the MediaStreamTrack interface stops the track. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/stop) + */ + stop(): void; + addEventListener(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var MediaStreamTrack: { + prototype: MediaStreamTrack; + new(): MediaStreamTrack; +}; + /** * The **`MediaStreamTrackProcessor`** interface of the Insertable Streams for MediaStreamTrack API consumes a video MediaStreamTrack object's source and generates a stream of VideoFrame objects. * @@ -7899,6 +8113,9 @@ declare var MessagePort: { new(): MessagePort; }; +interface NV_shader_noperspective_interpolation { +} + /** * The **`NavigationPreloadManager`** interface of the Service Worker API provides methods for managing the preloading of resources in parallel with service worker bootup. * Available only in secure contexts. @@ -8205,6 +8422,15 @@ interface OES_element_index_uint { interface OES_fbo_render_mipmap { } +interface OES_sample_variables { +} + +interface OES_shader_multisample_interpolation { + readonly MIN_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5B; + readonly MAX_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5C; + readonly FRAGMENT_INTERPOLATION_OFFSET_BITS_OES: 0x8E5D; +} + /** * The **`OES_standard_derivatives`** extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. * @@ -8386,6 +8612,25 @@ declare var Origin: { from(value: any): Origin; }; +/** + * The **`OverconstrainedError`** interface of the Media Capture and Streams API indicates that the set of desired capabilities for the current MediaStreamTrack cannot currently be met. When this event is thrown on a MediaStreamTrack, it is muted until either the current constraints can be established or until satisfiable constraints are applied. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError) + */ +interface OverconstrainedError extends DOMException { + /** + * The **`constraint`** read-only property of the OverconstrainedError interface returns the constraint that was supplied in the constructor, meaning the constraint that was not satisfied. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError/constraint) + */ + readonly constraint: string; +} + +declare var OverconstrainedError: { + prototype: OverconstrainedError; + new(constraint: string, message?: string): OverconstrainedError; +}; + /** * 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. * @@ -11669,6 +11914,22 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +interface WEBGL_polygon_mode { + polygonModeWEBGL(face: GLenum, mode: GLenum): void; + readonly POLYGON_MODE_WEBGL: 0x0B40; + readonly POLYGON_OFFSET_LINE_WEBGL: 0x2A02; + readonly LINE_WEBGL: 0x1B01; + readonly FILL_WEBGL: 0x1B02; +} + +interface WEBGL_render_shared_exponent { +} + +interface WEBGL_stencil_texturing { + readonly DEPTH_STENCIL_TEXTURE_MODE_WEBGL: 0x90EA; + readonly STENCIL_INDEX_WEBGL: 0x1901; +} + /** * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. * Available only in secure contexts. @@ -14024,9 +14285,17 @@ declare var WebSocket: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport) */ interface WebTransport { - /** The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingBidirectionalStreams) + */ anticipatedConcurrentIncomingBidirectionalStreams: number | null; - /** The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingUnidirectionalStreams) + */ anticipatedConcurrentIncomingUnidirectionalStreams: number | null; /** * The **`closed`** read-only property of the WebTransport interface returns a promise that resolves when the transport is closed. @@ -14082,7 +14351,11 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) */ readonly reliability: WebTransportReliabilityMode; - /** The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. */ + /** + * The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/responseHeaders) + */ readonly responseHeaders: Headers | null; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. @@ -14178,7 +14451,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */ incomingMaxAge: number | null; - /** The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. */ + /** + * The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxBufferedDatagrams) + */ incomingMaxBufferedDatagrams: number; /** * The **`maxDatagramSize`** read-only property of the WebTransportDatagramDuplexStream interface returns the maximum allowable size of outgoing datagrams, in bytes, that can be written to writable. @@ -14198,7 +14475,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */ outgoingMaxAge: number; - /** The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. */ + /** + * The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxBufferedDatagrams) + */ outgoingMaxBufferedDatagrams: number; /** * The **`readable`** read-only property of the WebTransportDatagramDuplexStream interface returns a ReadableStream instance that can be used to unreliably read incoming datagrams from the stream. @@ -15627,6 +15908,11 @@ type CSSNumberish = number | CSSNumericValue; type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish; type CSSUnparsedSegment = string | CSSVariableReferenceValue; type CanvasImageSource = ImageBitmap | OffscreenCanvas | VideoFrame; +type ConstrainBoolean = boolean | ConstrainBooleanParameters; +type ConstrainBooleanOrDOMString = boolean | string | ConstrainBooleanOrDOMStringParameters; +type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters; +type ConstrainDouble = number | ConstrainDoubleRange; +type ConstrainULong = number | ConstrainULongRange; type CookieList = CookieListItem[]; type DOMHighResTimeStamp = number; type EpochTimeStamp = number; @@ -15678,6 +15964,7 @@ type ImageBitmapSource = CanvasImageSource | Blob | ImageData; type ImageBufferSource = AllowSharedBufferSource | ReadableStream; type ImageDataArray = Uint8ClampedArray; type Int32List = Int32Array | GLint[]; +type MediaStreamTrackOrHandle = MediaStreamTrack; type MessageEventSource = MessagePort | ServiceWorker; type NamedCurve = string; type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext | GPUCanvasContext; @@ -15692,7 +15979,7 @@ type RequestInfo = Request | string; type RouterSource = RouterSourceDict | RouterSourceEnum; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | MediaStreamTrack | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; type URLPatternCompatible = string | URLPatternInit | URLPattern; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; @@ -15715,6 +16002,7 @@ type CanvasLineJoin = "bevel" | "miter" | "round"; type CanvasTextAlign = "center" | "end" | "left" | "right" | "start"; type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top"; type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed"; +type CanvasToneMappingMode = "extended" | "standard"; type ClientTypes = "all" | "sharedworker" | "window" | "worker"; type CodecState = "closed" | "configured" | "unconfigured"; type ColorGamut = "p3" | "rec2020" | "srgb"; @@ -15738,7 +16026,6 @@ type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract" type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; type GPUCanvasAlphaMode = "opaque" | "premultiplied"; -type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; @@ -15783,6 +16070,7 @@ type LockMode = "exclusive" | "shared"; type MediaDecodingType = "file" | "media-source" | "webrtc"; type MediaEncodingType = "record" | "webrtc"; type MediaKeysRequirement = "not-allowed" | "optional" | "required"; +type MediaStreamTrackState = "ended" | "live"; type NotificationDirection = "auto" | "ltr" | "rtl"; type NotificationPermission = "default" | "denied" | "granted"; type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu"; diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index 3149d91e3..eea333625 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -895,15 +895,11 @@ interface GPUCanvasConfiguration { colorSpace?: PredefinedColorSpace; device: GPUDevice; format: GPUTextureFormat; - toneMapping?: GPUCanvasToneMapping; + toneMapping?: CanvasToneMapping; usage?: GPUTextureUsageFlags; viewFormats?: GPUTextureFormat[]; } -interface GPUCanvasToneMapping { - mode?: GPUCanvasToneMappingMode; -} - interface GPUColorDict { a: number; b: number; @@ -14249,6 +14245,13 @@ interface EXT_color_buffer_half_float { readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; } +interface EXT_conservative_depth { +} + +interface EXT_depth_clamp { + readonly DEPTH_CLAMP_EXT: 0x864F; +} + /** * The WebGL API's **`EXT_float_blend`** extension allows blending and draw buffers with 32-bit floating-point components. * @@ -14280,6 +14283,9 @@ interface EXT_polygon_offset_clamp { readonly POLYGON_OFFSET_CLAMP_EXT: 0x8E1B; } +interface EXT_render_snorm { +} + /** * The **`EXT_sRGB`** extension is part of the WebGL API and adds sRGB support to textures and framebuffer objects. * @@ -26209,6 +26215,9 @@ declare var MutationRecord: { new(): MutationRecord; }; +interface NV_shader_noperspective_interpolation { +} + /** * The **`NamedNodeMap`** interface represents a collection of Attr objects. Objects inside a NamedNodeMap are not in any particular order, unlike NodeList, although they may be accessed by an index as in an array. * @@ -27553,6 +27562,15 @@ interface OES_element_index_uint { interface OES_fbo_render_mipmap { } +interface OES_sample_variables { +} + +interface OES_shader_multisample_interpolation { + readonly MIN_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5B; + readonly MAX_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5C; + readonly FRAGMENT_INTERPOLATION_OFFSET_BITS_OES: 0x8E5D; +} + /** * The **`OES_standard_derivatives`** extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. * @@ -36765,9 +36783,10 @@ interface SpeechGrammarList { */ addFromString(string: string, weight?: number): void; /** + * The **`addFromUri()`** method of the SpeechGrammarList interface takes a grammar present at a specific URI and adds it to the SpeechGrammarList as a new SpeechGrammar object. * @deprecated * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechGrammarList/addFromURI) + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechGrammarList/addFromUri) */ addFromUri(src: string, weight?: number): void; /** @@ -36808,13 +36827,13 @@ interface SpeechRecognitionEventMap { */ interface SpeechRecognition extends EventTarget { /** - * The **`continuous`** property of the SpeechRecognition interface controls whether continuous results are returned for each recognition, or only a single result. + * The **`continuous`** property of the SpeechRecognition interface represents whether recognition returns a single final result, or multiple final results from consecutive recognitions. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognition/continuous) */ continuous: boolean; /** - * The **`grammars`** property of the SpeechRecognition interface returns and sets a collection of SpeechGrammar objects that represent the grammars that will be understood by the current SpeechRecognition. + * The **`grammars`** property of the SpeechRecognition interface represents a collection of SpeechGrammar objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognition/grammars) */ @@ -36884,14 +36903,14 @@ interface SpeechRecognition extends EventTarget { */ abort(): void; /** - * The **`start()`** method of the Web Speech API starts the speech recognition service to listen for incoming audio (from a microphone or an audio track) and returns the results of that recognition. + * The **`start()`** method of the SpeechRecognition interface starts the speech recognition service listening for incoming audio (from a microphone or an audio track). Results are delivered through the result event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognition/start) */ start(): void; start(audioTrack: MediaStreamTrack): void; /** - * The **`stop()`** method of the Web Speech API stops the speech recognition service from listening for incoming audio and attempts to return a SpeechRecognitionResult based on the results captured so far. + * The **`stop()`** method of the SpeechRecognition interface stops the speech recognition service from listening for incoming audio. The service then attempts to return a result based on the audio captured so far, through a result event, or a nomatch event if nothing was recognized. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognition/stop) */ @@ -36906,13 +36925,13 @@ declare var SpeechRecognition: { prototype: SpeechRecognition; new(): SpeechRecognition; /** - * The **`available()`** static method of the Web Speech API checks whether the specified languages are available for speech recognition at the given quality level. + * The **`available()`** static method of the SpeechRecognition interface checks whether the specified languages are available for speech recognition at the given quality level. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognition/available_static) */ available(options: SpeechRecognitionOptions): Promise; /** - * The **`install()`** static method of the Web Speech API installs the required language packs for on-device speech recognition in the specified languages and quality level. + * The **`install()`** static method of the SpeechRecognition interface installs the language packs needed for on-device speech recognition of the specified languages, at the specified quality level. A language pack is the data a browser needs to recognize speech in a particular language. Once it is installed, recognition in that language can run on the user's device, so audio doesn't have to be sent to a remote service. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognition/install_static) */ @@ -36920,20 +36939,20 @@ declare var SpeechRecognition: { }; /** - * The **`SpeechRecognitionAlternative`** interface of the Web Speech API represents a single word that has been recognized by the speech recognition service. + * The **`SpeechRecognitionAlternative`** interface of the Web Speech API represents one possible match for what the user said, as recognized by the speech recognition service. A SpeechRecognitionResult contains one or more alternatives, ordered from most to least confident. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative) */ interface SpeechRecognitionAlternative { /** - * The **`confidence`** read-only property of the SpeechRecognitionResult interface returns a numeric estimate of how confident the speech recognition system is that the recognition is correct. + * The **`confidence`** read-only property of the SpeechRecognitionAlternative interface returns a numeric estimate of how confident the speech recognition system is that the recognition is correct. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/confidence) */ readonly confidence: number; /** - * The **`transcript`** read-only property of the SpeechRecognitionResult interface returns a string containing the transcript of the recognized word(s). + * The **`transcript`** read-only property of the SpeechRecognitionAlternative interface returns a string containing the transcript of the recognized speech. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/transcript) */ @@ -37057,7 +37076,7 @@ declare var SpeechRecognitionResult: { }; /** - * The **`SpeechRecognitionResultList`** interface of the Web Speech API represents a list of SpeechRecognitionResult objects, or a single one if results are being captured in non-continuous mode. + * The **`SpeechRecognitionResultList`** interface of the Web Speech API represents a collection of SpeechRecognitionResult objects. If recognition isn't in continuous mode, it contains only one result. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList) @@ -40007,6 +40026,22 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +interface WEBGL_polygon_mode { + polygonModeWEBGL(face: GLenum, mode: GLenum): void; + readonly POLYGON_MODE_WEBGL: 0x0B40; + readonly POLYGON_OFFSET_LINE_WEBGL: 0x2A02; + readonly LINE_WEBGL: 0x1B01; + readonly FILL_WEBGL: 0x1B02; +} + +interface WEBGL_render_shared_exponent { +} + +interface WEBGL_stencil_texturing { + readonly DEPTH_STENCIL_TEXTURE_MODE_WEBGL: 0x90EA; + readonly STENCIL_INDEX_WEBGL: 0x1901; +} + /** * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. * Available only in secure contexts. @@ -42451,9 +42486,17 @@ declare var WebSocket: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport) */ interface WebTransport { - /** The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingBidirectionalStreams) + */ anticipatedConcurrentIncomingBidirectionalStreams: number | null; - /** The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingUnidirectionalStreams) + */ anticipatedConcurrentIncomingUnidirectionalStreams: number | null; /** * The **`closed`** read-only property of the WebTransport interface returns a promise that resolves when the transport is closed. @@ -42509,7 +42552,11 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) */ readonly reliability: WebTransportReliabilityMode; - /** The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. */ + /** + * The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/responseHeaders) + */ readonly responseHeaders: Headers | null; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. @@ -42605,7 +42652,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */ incomingMaxAge: number | null; - /** The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. */ + /** + * The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxBufferedDatagrams) + */ incomingMaxBufferedDatagrams: number; /** * The **`maxDatagramSize`** read-only property of the WebTransportDatagramDuplexStream interface returns the maximum allowable size of outgoing datagrams, in bytes, that can be written to writable. @@ -42625,7 +42676,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */ outgoingMaxAge: number; - /** The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. */ + /** + * The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxBufferedDatagrams) + */ outgoingMaxBufferedDatagrams: number; /** * The **`readable`** read-only property of the WebTransportDatagramDuplexStream interface returns a ReadableStream instance that can be used to unreliably read incoming datagrams from the stream. @@ -45978,7 +46033,7 @@ type SanitizerPI = string | SanitizerProcessingInstruction; type SelectionDirection = "forward" | "backward" | "none"; type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | MediaStreamTrack | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type VibratePattern = number | number[]; @@ -46060,7 +46115,6 @@ type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract" type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; type GPUCanvasAlphaMode = "opaque" | "premultiplied"; -type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; diff --git a/baselines/ts5.6/serviceworker.generated.d.ts b/baselines/ts5.6/serviceworker.generated.d.ts index 21d67d9c9..55e3628ad 100644 --- a/baselines/ts5.6/serviceworker.generated.d.ts +++ b/baselines/ts5.6/serviceworker.generated.d.ts @@ -73,6 +73,10 @@ interface CacheQueryOptions { ignoreVary?: boolean; } +interface CanvasToneMapping { + mode?: CanvasToneMappingMode; +} + interface ClientQueryOptions { includeUncontrolled?: boolean; type?: ClientTypes; @@ -328,15 +332,11 @@ interface GPUCanvasConfiguration { colorSpace?: PredefinedColorSpace; device: GPUDevice; format: GPUTextureFormat; - toneMapping?: GPUCanvasToneMapping; + toneMapping?: CanvasToneMapping; usage?: GPUTextureUsageFlags; viewFormats?: GPUTextureFormat[]; } -interface GPUCanvasToneMapping { - mode?: GPUCanvasToneMappingMode; -} - interface GPUColorDict { a: number; b: number; @@ -3661,6 +3661,13 @@ interface EXT_color_buffer_half_float { readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; } +interface EXT_conservative_depth { +} + +interface EXT_depth_clamp { + readonly DEPTH_CLAMP_EXT: 0x864F; +} + /** * The WebGL API's **`EXT_float_blend`** extension allows blending and draw buffers with 32-bit floating-point components. * @@ -3692,6 +3699,9 @@ interface EXT_polygon_offset_clamp { readonly POLYGON_OFFSET_CLAMP_EXT: 0x8E1B; } +interface EXT_render_snorm { +} + /** * The **`EXT_sRGB`** extension is part of the WebGL API and adds sRGB support to textures and framebuffer objects. * @@ -6997,6 +7007,9 @@ declare var MessagePort: { new(): MessagePort; }; +interface NV_shader_noperspective_interpolation { +} + /** * The **`NavigationPreloadManager`** interface of the Service Worker API provides methods for managing the preloading of resources in parallel with service worker bootup. * Available only in secure contexts. @@ -7303,6 +7316,15 @@ interface OES_element_index_uint { interface OES_fbo_render_mipmap { } +interface OES_sample_variables { +} + +interface OES_shader_multisample_interpolation { + readonly MIN_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5B; + readonly MAX_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5C; + readonly FRAGMENT_INTERPOLATION_OFFSET_BITS_OES: 0x8E5D; +} + /** * The **`OES_standard_derivatives`** extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. * @@ -10085,6 +10107,22 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +interface WEBGL_polygon_mode { + polygonModeWEBGL(face: GLenum, mode: GLenum): void; + readonly POLYGON_MODE_WEBGL: 0x0B40; + readonly POLYGON_OFFSET_LINE_WEBGL: 0x2A02; + readonly LINE_WEBGL: 0x1B01; + readonly FILL_WEBGL: 0x1B02; +} + +interface WEBGL_render_shared_exponent { +} + +interface WEBGL_stencil_texturing { + readonly DEPTH_STENCIL_TEXTURE_MODE_WEBGL: 0x90EA; + readonly STENCIL_INDEX_WEBGL: 0x1901; +} + /** * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. * Available only in secure contexts. @@ -12440,9 +12478,17 @@ declare var WebSocket: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport) */ interface WebTransport { - /** The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingBidirectionalStreams) + */ anticipatedConcurrentIncomingBidirectionalStreams: number | null; - /** The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingUnidirectionalStreams) + */ anticipatedConcurrentIncomingUnidirectionalStreams: number | null; /** * The **`closed`** read-only property of the WebTransport interface returns a promise that resolves when the transport is closed. @@ -12498,7 +12544,11 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) */ readonly reliability: WebTransportReliabilityMode; - /** The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. */ + /** + * The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/responseHeaders) + */ readonly responseHeaders: Headers | null; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. @@ -12594,7 +12644,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */ incomingMaxAge: number | null; - /** The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. */ + /** + * The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxBufferedDatagrams) + */ incomingMaxBufferedDatagrams: number; /** * The **`maxDatagramSize`** read-only property of the WebTransportDatagramDuplexStream interface returns the maximum allowable size of outgoing datagrams, in bytes, that can be written to writable. @@ -12614,7 +12668,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */ outgoingMaxAge: number; - /** The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. */ + /** + * The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxBufferedDatagrams) + */ outgoingMaxBufferedDatagrams: number; /** * The **`readable`** read-only property of the WebTransportDatagramDuplexStream interface returns a ReadableStream instance that can be used to unreliably read incoming datagrams from the stream. @@ -13895,6 +13953,7 @@ type CanvasLineJoin = "bevel" | "miter" | "round"; type CanvasTextAlign = "center" | "end" | "left" | "right" | "start"; type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top"; type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed"; +type CanvasToneMappingMode = "extended" | "standard"; type ClientTypes = "all" | "sharedworker" | "window" | "worker"; type ColorGamut = "p3" | "rec2020" | "srgb"; type ColorSpaceConversion = "default" | "none"; @@ -13914,7 +13973,6 @@ type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract" type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; type GPUCanvasAlphaMode = "opaque" | "premultiplied"; -type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; diff --git a/baselines/ts5.6/sharedworker.generated.d.ts b/baselines/ts5.6/sharedworker.generated.d.ts index 480b3fa4b..6e8683ca7 100644 --- a/baselines/ts5.6/sharedworker.generated.d.ts +++ b/baselines/ts5.6/sharedworker.generated.d.ts @@ -73,6 +73,10 @@ interface CacheQueryOptions { ignoreVary?: boolean; } +interface CanvasToneMapping { + mode?: CanvasToneMappingMode; +} + interface CloseEventInit extends EventInit { code?: number; reason?: string; @@ -272,15 +276,11 @@ interface GPUCanvasConfiguration { colorSpace?: PredefinedColorSpace; device: GPUDevice; format: GPUTextureFormat; - toneMapping?: GPUCanvasToneMapping; + toneMapping?: CanvasToneMapping; usage?: GPUTextureUsageFlags; viewFormats?: GPUTextureFormat[]; } -interface GPUCanvasToneMapping { - mode?: GPUCanvasToneMappingMode; -} - interface GPUColorDict { a: number; b: number; @@ -3423,6 +3423,13 @@ interface EXT_color_buffer_half_float { readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; } +interface EXT_conservative_depth { +} + +interface EXT_depth_clamp { + readonly DEPTH_CLAMP_EXT: 0x864F; +} + /** * The WebGL API's **`EXT_float_blend`** extension allows blending and draw buffers with 32-bit floating-point components. * @@ -3454,6 +3461,9 @@ interface EXT_polygon_offset_clamp { readonly POLYGON_OFFSET_CLAMP_EXT: 0x8E1B; } +interface EXT_render_snorm { +} + /** * The **`EXT_sRGB`** extension is part of the WebGL API and adds sRGB support to textures and framebuffer objects. * @@ -6642,6 +6652,9 @@ declare var MessagePort: { new(): MessagePort; }; +interface NV_shader_noperspective_interpolation { +} + /** * The **`NavigationPreloadManager`** interface of the Service Worker API provides methods for managing the preloading of resources in parallel with service worker bootup. * Available only in secure contexts. @@ -6923,6 +6936,15 @@ interface OES_element_index_uint { interface OES_fbo_render_mipmap { } +interface OES_sample_variables { +} + +interface OES_shader_multisample_interpolation { + readonly MIN_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5B; + readonly MAX_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5C; + readonly FRAGMENT_INTERPOLATION_OFFSET_BITS_OES: 0x8E5D; +} + /** * The **`OES_standard_derivatives`** extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. * @@ -9590,6 +9612,22 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +interface WEBGL_polygon_mode { + polygonModeWEBGL(face: GLenum, mode: GLenum): void; + readonly POLYGON_MODE_WEBGL: 0x0B40; + readonly POLYGON_OFFSET_LINE_WEBGL: 0x2A02; + readonly LINE_WEBGL: 0x1B01; + readonly FILL_WEBGL: 0x1B02; +} + +interface WEBGL_render_shared_exponent { +} + +interface WEBGL_stencil_texturing { + readonly DEPTH_STENCIL_TEXTURE_MODE_WEBGL: 0x90EA; + readonly STENCIL_INDEX_WEBGL: 0x1901; +} + /** * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. * Available only in secure contexts. @@ -11945,9 +11983,17 @@ declare var WebSocket: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport) */ interface WebTransport { - /** The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingBidirectionalStreams) + */ anticipatedConcurrentIncomingBidirectionalStreams: number | null; - /** The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingUnidirectionalStreams) + */ anticipatedConcurrentIncomingUnidirectionalStreams: number | null; /** * The **`closed`** read-only property of the WebTransport interface returns a promise that resolves when the transport is closed. @@ -12003,7 +12049,11 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) */ readonly reliability: WebTransportReliabilityMode; - /** The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. */ + /** + * The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/responseHeaders) + */ readonly responseHeaders: Headers | null; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. @@ -12099,7 +12149,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */ incomingMaxAge: number | null; - /** The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. */ + /** + * The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxBufferedDatagrams) + */ incomingMaxBufferedDatagrams: number; /** * The **`maxDatagramSize`** read-only property of the WebTransportDatagramDuplexStream interface returns the maximum allowable size of outgoing datagrams, in bytes, that can be written to writable. @@ -12119,7 +12173,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */ outgoingMaxAge: number; - /** The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. */ + /** + * The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxBufferedDatagrams) + */ outgoingMaxBufferedDatagrams: number; /** * The **`readable`** read-only property of the WebTransportDatagramDuplexStream interface returns a ReadableStream instance that can be used to unreliably read incoming datagrams from the stream. @@ -13543,6 +13601,7 @@ type CanvasLineJoin = "bevel" | "miter" | "round"; type CanvasTextAlign = "center" | "end" | "left" | "right" | "start"; type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top"; type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed"; +type CanvasToneMappingMode = "extended" | "standard"; type ClientTypes = "all" | "sharedworker" | "window" | "worker"; type ColorGamut = "p3" | "rec2020" | "srgb"; type ColorSpaceConversion = "default" | "none"; @@ -13559,7 +13618,6 @@ type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract" type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; type GPUCanvasAlphaMode = "opaque" | "premultiplied"; -type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; diff --git a/baselines/ts5.6/webworker.generated.d.ts b/baselines/ts5.6/webworker.generated.d.ts index 28daced57..c4d91013d 100644 --- a/baselines/ts5.6/webworker.generated.d.ts +++ b/baselines/ts5.6/webworker.generated.d.ts @@ -135,6 +135,10 @@ interface CacheQueryOptions { ignoreVary?: boolean; } +interface CanvasToneMapping { + mode?: CanvasToneMappingMode; +} + interface ClientQueryOptions { includeUncontrolled?: boolean; type?: ClientTypes; @@ -146,6 +150,31 @@ interface CloseEventInit extends EventInit { wasClean?: boolean; } +interface ConstrainBooleanOrDOMStringParameters { + exact?: boolean | string; + ideal?: boolean | string; +} + +interface ConstrainBooleanParameters { + exact?: boolean; + ideal?: boolean; +} + +interface ConstrainDOMStringParameters { + exact?: string | string[]; + ideal?: string | string[]; +} + +interface ConstrainDoubleRange extends DoubleRange { + exact?: number; + ideal?: number; +} + +interface ConstrainULongRange extends ULongRange { + exact?: number; + ideal?: number; +} + interface CookieInit { domain?: string | null; expires?: DOMHighResTimeStamp | null; @@ -232,6 +261,11 @@ interface DOMRectInit { y?: number; } +interface DoubleRange { + max?: number; + min?: number; +} + interface EcKeyGenParams extends Algorithm { namedCurve: NamedCurve; } @@ -418,15 +452,11 @@ interface GPUCanvasConfiguration { colorSpace?: PredefinedColorSpace; device: GPUDevice; format: GPUTextureFormat; - toneMapping?: GPUCanvasToneMapping; + toneMapping?: CanvasToneMapping; usage?: GPUTextureUsageFlags; viewFormats?: GPUTextureFormat[]; } -interface GPUCanvasToneMapping { - mode?: GPUCanvasToneMappingMode; -} - interface GPUColorDict { a: number; b: number; @@ -902,6 +932,68 @@ interface MediaEncodingConfiguration extends MediaConfiguration { interface MediaStreamTrackProcessorInit { maxBufferSize?: number; + track: MediaStreamTrackOrHandle; +} + +interface MediaTrackCapabilities { + aspectRatio?: DoubleRange; + autoGainControl?: boolean[]; + backgroundBlur?: boolean[]; + channelCount?: ULongRange; + deviceId?: string; + displaySurface?: string; + echoCancellation?: (boolean | string)[]; + facingMode?: string[]; + frameRate?: DoubleRange; + groupId?: string; + height?: ULongRange; + noiseSuppression?: boolean[]; + sampleRate?: ULongRange; + sampleSize?: ULongRange; + width?: ULongRange; +} + +interface MediaTrackConstraintSet { + aspectRatio?: ConstrainDouble; + autoGainControl?: ConstrainBoolean; + backgroundBlur?: ConstrainBoolean; + channelCount?: ConstrainULong; + deviceId?: ConstrainDOMString; + displaySurface?: ConstrainDOMString; + echoCancellation?: ConstrainBooleanOrDOMString; + facingMode?: ConstrainDOMString; + frameRate?: ConstrainDouble; + groupId?: ConstrainDOMString; + height?: ConstrainULong; + noiseSuppression?: ConstrainBoolean; + sampleRate?: ConstrainULong; + sampleSize?: ConstrainULong; + width?: ConstrainULong; +} + +interface MediaTrackConstraints extends MediaTrackConstraintSet { + advanced?: MediaTrackConstraintSet[]; +} + +interface MediaTrackSettings { + aspectRatio?: number; + autoGainControl?: boolean; + backgroundBlur?: boolean; + channelCount?: number; + deviceId?: string; + displaySurface?: string; + echoCancellation?: boolean | string; + facingMode?: string; + frameRate?: number; + groupId?: string; + height?: number; + noiseSuppression?: boolean; + sampleRate?: number; + sampleSize?: number; + torch?: boolean; + whiteBalanceMode?: string; + width?: number; + zoom?: number; } interface MessageEventInit extends EventInit { @@ -1328,6 +1420,11 @@ interface Transformer { writableType?: undefined; } +interface ULongRange { + max?: number; + min?: number; +} + interface URLPatternComponentResult { groups: Record; input: string; @@ -4212,6 +4309,13 @@ interface EXT_color_buffer_half_float { readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; } +interface EXT_conservative_depth { +} + +interface EXT_depth_clamp { + readonly DEPTH_CLAMP_EXT: 0x864F; +} + /** * The WebGL API's **`EXT_float_blend`** extension allows blending and draw buffers with 32-bit floating-point components. * @@ -4243,6 +4347,9 @@ interface EXT_polygon_offset_clamp { readonly POLYGON_OFFSET_CLAMP_EXT: 0x8E1B; } +interface EXT_render_snorm { +} + /** * The **`EXT_sRGB`** extension is part of the WebGL API and adds sRGB support to textures and framebuffer objects. * @@ -7753,6 +7860,113 @@ declare var MediaSourceHandle: { new(): MediaSourceHandle; }; +interface MediaStreamTrackEventMap { + "ended": Event; + "mute": Event; + "unmute": Event; +} + +/** + * The **`MediaStreamTrack`** interface of the Media Capture and Streams API represents a single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack) + */ +interface MediaStreamTrack extends EventTarget { + /** + * The **`contentHint`** property of the MediaStreamTrack interface is a string that hints at the type of content the track contains. Allowable values depend on the value of the MediaStreamTrack.kind property. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/contentHint) + */ + contentHint: string; + /** + * The **`enabled`** property of the MediaStreamTrack interface is a Boolean value which is true if the track is allowed to render the source stream or false if it is not. This can be used to intentionally mute a track. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/enabled) + */ + enabled: boolean; + /** + * The **`id`** read-only property of the MediaStreamTrack interface returns a string containing a unique identifier (GUID) for the track, which is generated by the user agent. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/id) + */ + readonly id: string; + /** + * The **`kind`** read-only property of the MediaStreamTrack interface returns a string set to "audio" if the track is an audio track and to "video" if it is a video track. It doesn't change if the track is disassociated from its source. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/kind) + */ + readonly kind: string; + /** + * The **`label`** read-only property of the MediaStreamTrack interface returns a string containing a user agent-assigned label that identifies the track source, as in "internal microphone". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/label) + */ + readonly label: string; + /** + * The **`muted`** read-only property of the MediaStreamTrack interface returns a boolean value indicating whether or not the track is currently unable to provide media output. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/muted) + */ + readonly muted: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/ended_event) */ + onended: ((this: MediaStreamTrack, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/mute_event) */ + onmute: ((this: MediaStreamTrack, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/unmute_event) */ + onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null; + /** + * The **`readyState`** read-only property of the MediaStreamTrack interface returns an enumerated value giving the status of the track. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/readyState) + */ + readonly readyState: MediaStreamTrackState; + /** + * The **`applyConstraints()`** method of the MediaStreamTrack interface applies a set of constraints to the track; these constraints let the website or app establish ideal values and acceptable ranges of values for the constrainable properties of the track, such as frame rate, dimensions, echo cancellation, and so forth. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/applyConstraints) + */ + applyConstraints(constraints?: MediaTrackConstraints): Promise; + /** + * The **`clone()`** method of the MediaStreamTrack interface creates a duplicate of the MediaStreamTrack. This new MediaStreamTrack object is identical except for its unique id. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/clone) + */ + clone(): MediaStreamTrack; + /** + * The **`getCapabilities()`** method of the MediaStreamTrack interface returns an object detailing the accepted values or value range for each constrainable property of the associated MediaStreamTrack, based upon the platform and user agent. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getCapabilities) + */ + getCapabilities(): MediaTrackCapabilities; + /** + * The **`getConstraints()`** method of the MediaStreamTrack interface returns a MediaTrackConstraints object containing the set of constraints most recently established for the track using a prior call to applyConstraints(). These constraints indicate values and ranges of values that the website or application has specified are required or acceptable for the included constrainable properties. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getConstraints) + */ + getConstraints(): MediaTrackConstraints; + /** + * The **`getSettings()`** method of the MediaStreamTrack interface returns an object containing the current values of each of the constrainable properties for the current MediaStreamTrack. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getSettings) + */ + getSettings(): MediaTrackSettings; + /** + * The **`stop()`** method of the MediaStreamTrack interface stops the track. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/stop) + */ + stop(): void; + addEventListener(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var MediaStreamTrack: { + prototype: MediaStreamTrack; + new(): MediaStreamTrack; +}; + /** * The **`MediaStreamTrackProcessor`** interface of the Insertable Streams for MediaStreamTrack API consumes a video MediaStreamTrack object's source and generates a stream of VideoFrame objects. * @@ -7899,6 +8113,9 @@ declare var MessagePort: { new(): MessagePort; }; +interface NV_shader_noperspective_interpolation { +} + /** * The **`NavigationPreloadManager`** interface of the Service Worker API provides methods for managing the preloading of resources in parallel with service worker bootup. * Available only in secure contexts. @@ -8205,6 +8422,15 @@ interface OES_element_index_uint { interface OES_fbo_render_mipmap { } +interface OES_sample_variables { +} + +interface OES_shader_multisample_interpolation { + readonly MIN_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5B; + readonly MAX_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5C; + readonly FRAGMENT_INTERPOLATION_OFFSET_BITS_OES: 0x8E5D; +} + /** * The **`OES_standard_derivatives`** extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. * @@ -8386,6 +8612,25 @@ declare var Origin: { from(value: any): Origin; }; +/** + * The **`OverconstrainedError`** interface of the Media Capture and Streams API indicates that the set of desired capabilities for the current MediaStreamTrack cannot currently be met. When this event is thrown on a MediaStreamTrack, it is muted until either the current constraints can be established or until satisfiable constraints are applied. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError) + */ +interface OverconstrainedError extends DOMException { + /** + * The **`constraint`** read-only property of the OverconstrainedError interface returns the constraint that was supplied in the constructor, meaning the constraint that was not satisfied. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError/constraint) + */ + readonly constraint: string; +} + +declare var OverconstrainedError: { + prototype: OverconstrainedError; + new(constraint: string, message?: string): OverconstrainedError; +}; + /** * 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. * @@ -11669,6 +11914,22 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +interface WEBGL_polygon_mode { + polygonModeWEBGL(face: GLenum, mode: GLenum): void; + readonly POLYGON_MODE_WEBGL: 0x0B40; + readonly POLYGON_OFFSET_LINE_WEBGL: 0x2A02; + readonly LINE_WEBGL: 0x1B01; + readonly FILL_WEBGL: 0x1B02; +} + +interface WEBGL_render_shared_exponent { +} + +interface WEBGL_stencil_texturing { + readonly DEPTH_STENCIL_TEXTURE_MODE_WEBGL: 0x90EA; + readonly STENCIL_INDEX_WEBGL: 0x1901; +} + /** * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. * Available only in secure contexts. @@ -14024,9 +14285,17 @@ declare var WebSocket: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport) */ interface WebTransport { - /** The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingBidirectionalStreams) + */ anticipatedConcurrentIncomingBidirectionalStreams: number | null; - /** The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingUnidirectionalStreams) + */ anticipatedConcurrentIncomingUnidirectionalStreams: number | null; /** * The **`closed`** read-only property of the WebTransport interface returns a promise that resolves when the transport is closed. @@ -14082,7 +14351,11 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) */ readonly reliability: WebTransportReliabilityMode; - /** The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. */ + /** + * The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/responseHeaders) + */ readonly responseHeaders: Headers | null; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. @@ -14178,7 +14451,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */ incomingMaxAge: number | null; - /** The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. */ + /** + * The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxBufferedDatagrams) + */ incomingMaxBufferedDatagrams: number; /** * The **`maxDatagramSize`** read-only property of the WebTransportDatagramDuplexStream interface returns the maximum allowable size of outgoing datagrams, in bytes, that can be written to writable. @@ -14198,7 +14475,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */ outgoingMaxAge: number; - /** The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. */ + /** + * The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxBufferedDatagrams) + */ outgoingMaxBufferedDatagrams: number; /** * The **`readable`** read-only property of the WebTransportDatagramDuplexStream interface returns a ReadableStream instance that can be used to unreliably read incoming datagrams from the stream. @@ -15627,6 +15908,11 @@ type CSSNumberish = number | CSSNumericValue; type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish; type CSSUnparsedSegment = string | CSSVariableReferenceValue; type CanvasImageSource = ImageBitmap | OffscreenCanvas | VideoFrame; +type ConstrainBoolean = boolean | ConstrainBooleanParameters; +type ConstrainBooleanOrDOMString = boolean | string | ConstrainBooleanOrDOMStringParameters; +type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters; +type ConstrainDouble = number | ConstrainDoubleRange; +type ConstrainULong = number | ConstrainULongRange; type CookieList = CookieListItem[]; type DOMHighResTimeStamp = number; type EpochTimeStamp = number; @@ -15678,6 +15964,7 @@ type ImageBitmapSource = CanvasImageSource | Blob | ImageData; type ImageBufferSource = AllowSharedBufferSource | ReadableStream; type ImageDataArray = Uint8ClampedArray; type Int32List = Int32Array | GLint[]; +type MediaStreamTrackOrHandle = MediaStreamTrack; type MessageEventSource = MessagePort | ServiceWorker; type NamedCurve = string; type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext | GPUCanvasContext; @@ -15692,7 +15979,7 @@ type RequestInfo = Request | string; type RouterSource = RouterSourceDict | RouterSourceEnum; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | MediaStreamTrack | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; type URLPatternCompatible = string | URLPatternInit | URLPattern; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; @@ -15715,6 +16002,7 @@ type CanvasLineJoin = "bevel" | "miter" | "round"; type CanvasTextAlign = "center" | "end" | "left" | "right" | "start"; type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top"; type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed"; +type CanvasToneMappingMode = "extended" | "standard"; type ClientTypes = "all" | "sharedworker" | "window" | "worker"; type CodecState = "closed" | "configured" | "unconfigured"; type ColorGamut = "p3" | "rec2020" | "srgb"; @@ -15738,7 +16026,6 @@ type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract" type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; type GPUCanvasAlphaMode = "opaque" | "premultiplied"; -type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; @@ -15783,6 +16070,7 @@ type LockMode = "exclusive" | "shared"; type MediaDecodingType = "file" | "media-source" | "webrtc"; type MediaEncodingType = "record" | "webrtc"; type MediaKeysRequirement = "not-allowed" | "optional" | "required"; +type MediaStreamTrackState = "ended" | "live"; type NotificationDirection = "auto" | "ltr" | "rtl"; type NotificationPermission = "default" | "denied" | "granted"; type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu"; diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index ca4b1ca2c..961a68440 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -895,15 +895,11 @@ interface GPUCanvasConfiguration { colorSpace?: PredefinedColorSpace; device: GPUDevice; format: GPUTextureFormat; - toneMapping?: GPUCanvasToneMapping; + toneMapping?: CanvasToneMapping; usage?: GPUTextureUsageFlags; viewFormats?: GPUTextureFormat[]; } -interface GPUCanvasToneMapping { - mode?: GPUCanvasToneMappingMode; -} - interface GPUColorDict { a: number; b: number; @@ -14249,6 +14245,13 @@ interface EXT_color_buffer_half_float { readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; } +interface EXT_conservative_depth { +} + +interface EXT_depth_clamp { + readonly DEPTH_CLAMP_EXT: 0x864F; +} + /** * The WebGL API's **`EXT_float_blend`** extension allows blending and draw buffers with 32-bit floating-point components. * @@ -14280,6 +14283,9 @@ interface EXT_polygon_offset_clamp { readonly POLYGON_OFFSET_CLAMP_EXT: 0x8E1B; } +interface EXT_render_snorm { +} + /** * The **`EXT_sRGB`** extension is part of the WebGL API and adds sRGB support to textures and framebuffer objects. * @@ -26209,6 +26215,9 @@ declare var MutationRecord: { new(): MutationRecord; }; +interface NV_shader_noperspective_interpolation { +} + /** * The **`NamedNodeMap`** interface represents a collection of Attr objects. Objects inside a NamedNodeMap are not in any particular order, unlike NodeList, although they may be accessed by an index as in an array. * @@ -27553,6 +27562,15 @@ interface OES_element_index_uint { interface OES_fbo_render_mipmap { } +interface OES_sample_variables { +} + +interface OES_shader_multisample_interpolation { + readonly MIN_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5B; + readonly MAX_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5C; + readonly FRAGMENT_INTERPOLATION_OFFSET_BITS_OES: 0x8E5D; +} + /** * The **`OES_standard_derivatives`** extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. * @@ -36765,9 +36783,10 @@ interface SpeechGrammarList { */ addFromString(string: string, weight?: number): void; /** + * The **`addFromUri()`** method of the SpeechGrammarList interface takes a grammar present at a specific URI and adds it to the SpeechGrammarList as a new SpeechGrammar object. * @deprecated * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechGrammarList/addFromURI) + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechGrammarList/addFromUri) */ addFromUri(src: string, weight?: number): void; /** @@ -36808,13 +36827,13 @@ interface SpeechRecognitionEventMap { */ interface SpeechRecognition extends EventTarget { /** - * The **`continuous`** property of the SpeechRecognition interface controls whether continuous results are returned for each recognition, or only a single result. + * The **`continuous`** property of the SpeechRecognition interface represents whether recognition returns a single final result, or multiple final results from consecutive recognitions. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognition/continuous) */ continuous: boolean; /** - * The **`grammars`** property of the SpeechRecognition interface returns and sets a collection of SpeechGrammar objects that represent the grammars that will be understood by the current SpeechRecognition. + * The **`grammars`** property of the SpeechRecognition interface represents a collection of SpeechGrammar objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognition/grammars) */ @@ -36884,14 +36903,14 @@ interface SpeechRecognition extends EventTarget { */ abort(): void; /** - * The **`start()`** method of the Web Speech API starts the speech recognition service to listen for incoming audio (from a microphone or an audio track) and returns the results of that recognition. + * The **`start()`** method of the SpeechRecognition interface starts the speech recognition service listening for incoming audio (from a microphone or an audio track). Results are delivered through the result event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognition/start) */ start(): void; start(audioTrack: MediaStreamTrack): void; /** - * The **`stop()`** method of the Web Speech API stops the speech recognition service from listening for incoming audio and attempts to return a SpeechRecognitionResult based on the results captured so far. + * The **`stop()`** method of the SpeechRecognition interface stops the speech recognition service from listening for incoming audio. The service then attempts to return a result based on the audio captured so far, through a result event, or a nomatch event if nothing was recognized. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognition/stop) */ @@ -36906,13 +36925,13 @@ declare var SpeechRecognition: { prototype: SpeechRecognition; new(): SpeechRecognition; /** - * The **`available()`** static method of the Web Speech API checks whether the specified languages are available for speech recognition at the given quality level. + * The **`available()`** static method of the SpeechRecognition interface checks whether the specified languages are available for speech recognition at the given quality level. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognition/available_static) */ available(options: SpeechRecognitionOptions): Promise; /** - * The **`install()`** static method of the Web Speech API installs the required language packs for on-device speech recognition in the specified languages and quality level. + * The **`install()`** static method of the SpeechRecognition interface installs the language packs needed for on-device speech recognition of the specified languages, at the specified quality level. A language pack is the data a browser needs to recognize speech in a particular language. Once it is installed, recognition in that language can run on the user's device, so audio doesn't have to be sent to a remote service. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognition/install_static) */ @@ -36920,20 +36939,20 @@ declare var SpeechRecognition: { }; /** - * The **`SpeechRecognitionAlternative`** interface of the Web Speech API represents a single word that has been recognized by the speech recognition service. + * The **`SpeechRecognitionAlternative`** interface of the Web Speech API represents one possible match for what the user said, as recognized by the speech recognition service. A SpeechRecognitionResult contains one or more alternatives, ordered from most to least confident. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative) */ interface SpeechRecognitionAlternative { /** - * The **`confidence`** read-only property of the SpeechRecognitionResult interface returns a numeric estimate of how confident the speech recognition system is that the recognition is correct. + * The **`confidence`** read-only property of the SpeechRecognitionAlternative interface returns a numeric estimate of how confident the speech recognition system is that the recognition is correct. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/confidence) */ readonly confidence: number; /** - * The **`transcript`** read-only property of the SpeechRecognitionResult interface returns a string containing the transcript of the recognized word(s). + * The **`transcript`** read-only property of the SpeechRecognitionAlternative interface returns a string containing the transcript of the recognized speech. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/transcript) */ @@ -37057,7 +37076,7 @@ declare var SpeechRecognitionResult: { }; /** - * The **`SpeechRecognitionResultList`** interface of the Web Speech API represents a list of SpeechRecognitionResult objects, or a single one if results are being captured in non-continuous mode. + * The **`SpeechRecognitionResultList`** interface of the Web Speech API represents a collection of SpeechRecognitionResult objects. If recognition isn't in continuous mode, it contains only one result. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList) @@ -40007,6 +40026,22 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +interface WEBGL_polygon_mode { + polygonModeWEBGL(face: GLenum, mode: GLenum): void; + readonly POLYGON_MODE_WEBGL: 0x0B40; + readonly POLYGON_OFFSET_LINE_WEBGL: 0x2A02; + readonly LINE_WEBGL: 0x1B01; + readonly FILL_WEBGL: 0x1B02; +} + +interface WEBGL_render_shared_exponent { +} + +interface WEBGL_stencil_texturing { + readonly DEPTH_STENCIL_TEXTURE_MODE_WEBGL: 0x90EA; + readonly STENCIL_INDEX_WEBGL: 0x1901; +} + /** * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. * Available only in secure contexts. @@ -42451,9 +42486,17 @@ declare var WebSocket: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport) */ interface WebTransport { - /** The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingBidirectionalStreams) + */ anticipatedConcurrentIncomingBidirectionalStreams: number | null; - /** The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingUnidirectionalStreams) + */ anticipatedConcurrentIncomingUnidirectionalStreams: number | null; /** * The **`closed`** read-only property of the WebTransport interface returns a promise that resolves when the transport is closed. @@ -42509,7 +42552,11 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) */ readonly reliability: WebTransportReliabilityMode; - /** The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. */ + /** + * The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/responseHeaders) + */ readonly responseHeaders: Headers | null; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. @@ -42605,7 +42652,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */ incomingMaxAge: number | null; - /** The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. */ + /** + * The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxBufferedDatagrams) + */ incomingMaxBufferedDatagrams: number; /** * The **`maxDatagramSize`** read-only property of the WebTransportDatagramDuplexStream interface returns the maximum allowable size of outgoing datagrams, in bytes, that can be written to writable. @@ -42625,7 +42676,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */ outgoingMaxAge: number; - /** The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. */ + /** + * The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxBufferedDatagrams) + */ outgoingMaxBufferedDatagrams: number; /** * The **`readable`** read-only property of the WebTransportDatagramDuplexStream interface returns a ReadableStream instance that can be used to unreliably read incoming datagrams from the stream. @@ -45978,7 +46033,7 @@ type SanitizerPI = string | SanitizerProcessingInstruction; type SelectionDirection = "forward" | "backward" | "none"; type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | MediaStreamTrack | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; type VibratePattern = number | number[]; @@ -46060,7 +46115,6 @@ type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract" type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; type GPUCanvasAlphaMode = "opaque" | "premultiplied"; -type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; diff --git a/baselines/ts5.9/serviceworker.generated.d.ts b/baselines/ts5.9/serviceworker.generated.d.ts index b45268f27..f49713f74 100644 --- a/baselines/ts5.9/serviceworker.generated.d.ts +++ b/baselines/ts5.9/serviceworker.generated.d.ts @@ -73,6 +73,10 @@ interface CacheQueryOptions { ignoreVary?: boolean; } +interface CanvasToneMapping { + mode?: CanvasToneMappingMode; +} + interface ClientQueryOptions { includeUncontrolled?: boolean; type?: ClientTypes; @@ -328,15 +332,11 @@ interface GPUCanvasConfiguration { colorSpace?: PredefinedColorSpace; device: GPUDevice; format: GPUTextureFormat; - toneMapping?: GPUCanvasToneMapping; + toneMapping?: CanvasToneMapping; usage?: GPUTextureUsageFlags; viewFormats?: GPUTextureFormat[]; } -interface GPUCanvasToneMapping { - mode?: GPUCanvasToneMappingMode; -} - interface GPUColorDict { a: number; b: number; @@ -3661,6 +3661,13 @@ interface EXT_color_buffer_half_float { readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; } +interface EXT_conservative_depth { +} + +interface EXT_depth_clamp { + readonly DEPTH_CLAMP_EXT: 0x864F; +} + /** * The WebGL API's **`EXT_float_blend`** extension allows blending and draw buffers with 32-bit floating-point components. * @@ -3692,6 +3699,9 @@ interface EXT_polygon_offset_clamp { readonly POLYGON_OFFSET_CLAMP_EXT: 0x8E1B; } +interface EXT_render_snorm { +} + /** * The **`EXT_sRGB`** extension is part of the WebGL API and adds sRGB support to textures and framebuffer objects. * @@ -6997,6 +7007,9 @@ declare var MessagePort: { new(): MessagePort; }; +interface NV_shader_noperspective_interpolation { +} + /** * The **`NavigationPreloadManager`** interface of the Service Worker API provides methods for managing the preloading of resources in parallel with service worker bootup. * Available only in secure contexts. @@ -7303,6 +7316,15 @@ interface OES_element_index_uint { interface OES_fbo_render_mipmap { } +interface OES_sample_variables { +} + +interface OES_shader_multisample_interpolation { + readonly MIN_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5B; + readonly MAX_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5C; + readonly FRAGMENT_INTERPOLATION_OFFSET_BITS_OES: 0x8E5D; +} + /** * The **`OES_standard_derivatives`** extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. * @@ -10085,6 +10107,22 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +interface WEBGL_polygon_mode { + polygonModeWEBGL(face: GLenum, mode: GLenum): void; + readonly POLYGON_MODE_WEBGL: 0x0B40; + readonly POLYGON_OFFSET_LINE_WEBGL: 0x2A02; + readonly LINE_WEBGL: 0x1B01; + readonly FILL_WEBGL: 0x1B02; +} + +interface WEBGL_render_shared_exponent { +} + +interface WEBGL_stencil_texturing { + readonly DEPTH_STENCIL_TEXTURE_MODE_WEBGL: 0x90EA; + readonly STENCIL_INDEX_WEBGL: 0x1901; +} + /** * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. * Available only in secure contexts. @@ -12440,9 +12478,17 @@ declare var WebSocket: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport) */ interface WebTransport { - /** The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingBidirectionalStreams) + */ anticipatedConcurrentIncomingBidirectionalStreams: number | null; - /** The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingUnidirectionalStreams) + */ anticipatedConcurrentIncomingUnidirectionalStreams: number | null; /** * The **`closed`** read-only property of the WebTransport interface returns a promise that resolves when the transport is closed. @@ -12498,7 +12544,11 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) */ readonly reliability: WebTransportReliabilityMode; - /** The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. */ + /** + * The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/responseHeaders) + */ readonly responseHeaders: Headers | null; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. @@ -12594,7 +12644,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */ incomingMaxAge: number | null; - /** The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. */ + /** + * The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxBufferedDatagrams) + */ incomingMaxBufferedDatagrams: number; /** * The **`maxDatagramSize`** read-only property of the WebTransportDatagramDuplexStream interface returns the maximum allowable size of outgoing datagrams, in bytes, that can be written to writable. @@ -12614,7 +12668,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */ outgoingMaxAge: number; - /** The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. */ + /** + * The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxBufferedDatagrams) + */ outgoingMaxBufferedDatagrams: number; /** * The **`readable`** read-only property of the WebTransportDatagramDuplexStream interface returns a ReadableStream instance that can be used to unreliably read incoming datagrams from the stream. @@ -13895,6 +13953,7 @@ type CanvasLineJoin = "bevel" | "miter" | "round"; type CanvasTextAlign = "center" | "end" | "left" | "right" | "start"; type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top"; type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed"; +type CanvasToneMappingMode = "extended" | "standard"; type ClientTypes = "all" | "sharedworker" | "window" | "worker"; type ColorGamut = "p3" | "rec2020" | "srgb"; type ColorSpaceConversion = "default" | "none"; @@ -13914,7 +13973,6 @@ type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract" type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; type GPUCanvasAlphaMode = "opaque" | "premultiplied"; -type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; diff --git a/baselines/ts5.9/sharedworker.generated.d.ts b/baselines/ts5.9/sharedworker.generated.d.ts index 7d73e2648..af8f75fd3 100644 --- a/baselines/ts5.9/sharedworker.generated.d.ts +++ b/baselines/ts5.9/sharedworker.generated.d.ts @@ -73,6 +73,10 @@ interface CacheQueryOptions { ignoreVary?: boolean; } +interface CanvasToneMapping { + mode?: CanvasToneMappingMode; +} + interface CloseEventInit extends EventInit { code?: number; reason?: string; @@ -272,15 +276,11 @@ interface GPUCanvasConfiguration { colorSpace?: PredefinedColorSpace; device: GPUDevice; format: GPUTextureFormat; - toneMapping?: GPUCanvasToneMapping; + toneMapping?: CanvasToneMapping; usage?: GPUTextureUsageFlags; viewFormats?: GPUTextureFormat[]; } -interface GPUCanvasToneMapping { - mode?: GPUCanvasToneMappingMode; -} - interface GPUColorDict { a: number; b: number; @@ -3423,6 +3423,13 @@ interface EXT_color_buffer_half_float { readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; } +interface EXT_conservative_depth { +} + +interface EXT_depth_clamp { + readonly DEPTH_CLAMP_EXT: 0x864F; +} + /** * The WebGL API's **`EXT_float_blend`** extension allows blending and draw buffers with 32-bit floating-point components. * @@ -3454,6 +3461,9 @@ interface EXT_polygon_offset_clamp { readonly POLYGON_OFFSET_CLAMP_EXT: 0x8E1B; } +interface EXT_render_snorm { +} + /** * The **`EXT_sRGB`** extension is part of the WebGL API and adds sRGB support to textures and framebuffer objects. * @@ -6642,6 +6652,9 @@ declare var MessagePort: { new(): MessagePort; }; +interface NV_shader_noperspective_interpolation { +} + /** * The **`NavigationPreloadManager`** interface of the Service Worker API provides methods for managing the preloading of resources in parallel with service worker bootup. * Available only in secure contexts. @@ -6923,6 +6936,15 @@ interface OES_element_index_uint { interface OES_fbo_render_mipmap { } +interface OES_sample_variables { +} + +interface OES_shader_multisample_interpolation { + readonly MIN_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5B; + readonly MAX_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5C; + readonly FRAGMENT_INTERPOLATION_OFFSET_BITS_OES: 0x8E5D; +} + /** * The **`OES_standard_derivatives`** extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. * @@ -9590,6 +9612,22 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +interface WEBGL_polygon_mode { + polygonModeWEBGL(face: GLenum, mode: GLenum): void; + readonly POLYGON_MODE_WEBGL: 0x0B40; + readonly POLYGON_OFFSET_LINE_WEBGL: 0x2A02; + readonly LINE_WEBGL: 0x1B01; + readonly FILL_WEBGL: 0x1B02; +} + +interface WEBGL_render_shared_exponent { +} + +interface WEBGL_stencil_texturing { + readonly DEPTH_STENCIL_TEXTURE_MODE_WEBGL: 0x90EA; + readonly STENCIL_INDEX_WEBGL: 0x1901; +} + /** * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. * Available only in secure contexts. @@ -11945,9 +11983,17 @@ declare var WebSocket: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport) */ interface WebTransport { - /** The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingBidirectionalStreams) + */ anticipatedConcurrentIncomingBidirectionalStreams: number | null; - /** The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingUnidirectionalStreams) + */ anticipatedConcurrentIncomingUnidirectionalStreams: number | null; /** * The **`closed`** read-only property of the WebTransport interface returns a promise that resolves when the transport is closed. @@ -12003,7 +12049,11 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) */ readonly reliability: WebTransportReliabilityMode; - /** The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. */ + /** + * The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/responseHeaders) + */ readonly responseHeaders: Headers | null; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. @@ -12099,7 +12149,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */ incomingMaxAge: number | null; - /** The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. */ + /** + * The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxBufferedDatagrams) + */ incomingMaxBufferedDatagrams: number; /** * The **`maxDatagramSize`** read-only property of the WebTransportDatagramDuplexStream interface returns the maximum allowable size of outgoing datagrams, in bytes, that can be written to writable. @@ -12119,7 +12173,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */ outgoingMaxAge: number; - /** The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. */ + /** + * The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxBufferedDatagrams) + */ outgoingMaxBufferedDatagrams: number; /** * The **`readable`** read-only property of the WebTransportDatagramDuplexStream interface returns a ReadableStream instance that can be used to unreliably read incoming datagrams from the stream. @@ -13543,6 +13601,7 @@ type CanvasLineJoin = "bevel" | "miter" | "round"; type CanvasTextAlign = "center" | "end" | "left" | "right" | "start"; type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top"; type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed"; +type CanvasToneMappingMode = "extended" | "standard"; type ClientTypes = "all" | "sharedworker" | "window" | "worker"; type ColorGamut = "p3" | "rec2020" | "srgb"; type ColorSpaceConversion = "default" | "none"; @@ -13559,7 +13618,6 @@ type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract" type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; type GPUCanvasAlphaMode = "opaque" | "premultiplied"; -type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; diff --git a/baselines/ts5.9/webworker.generated.d.ts b/baselines/ts5.9/webworker.generated.d.ts index b1e0bf379..4d42e505d 100644 --- a/baselines/ts5.9/webworker.generated.d.ts +++ b/baselines/ts5.9/webworker.generated.d.ts @@ -135,6 +135,10 @@ interface CacheQueryOptions { ignoreVary?: boolean; } +interface CanvasToneMapping { + mode?: CanvasToneMappingMode; +} + interface ClientQueryOptions { includeUncontrolled?: boolean; type?: ClientTypes; @@ -146,6 +150,31 @@ interface CloseEventInit extends EventInit { wasClean?: boolean; } +interface ConstrainBooleanOrDOMStringParameters { + exact?: boolean | string; + ideal?: boolean | string; +} + +interface ConstrainBooleanParameters { + exact?: boolean; + ideal?: boolean; +} + +interface ConstrainDOMStringParameters { + exact?: string | string[]; + ideal?: string | string[]; +} + +interface ConstrainDoubleRange extends DoubleRange { + exact?: number; + ideal?: number; +} + +interface ConstrainULongRange extends ULongRange { + exact?: number; + ideal?: number; +} + interface CookieInit { domain?: string | null; expires?: DOMHighResTimeStamp | null; @@ -232,6 +261,11 @@ interface DOMRectInit { y?: number; } +interface DoubleRange { + max?: number; + min?: number; +} + interface EcKeyGenParams extends Algorithm { namedCurve: NamedCurve; } @@ -418,15 +452,11 @@ interface GPUCanvasConfiguration { colorSpace?: PredefinedColorSpace; device: GPUDevice; format: GPUTextureFormat; - toneMapping?: GPUCanvasToneMapping; + toneMapping?: CanvasToneMapping; usage?: GPUTextureUsageFlags; viewFormats?: GPUTextureFormat[]; } -interface GPUCanvasToneMapping { - mode?: GPUCanvasToneMappingMode; -} - interface GPUColorDict { a: number; b: number; @@ -902,6 +932,68 @@ interface MediaEncodingConfiguration extends MediaConfiguration { interface MediaStreamTrackProcessorInit { maxBufferSize?: number; + track: MediaStreamTrackOrHandle; +} + +interface MediaTrackCapabilities { + aspectRatio?: DoubleRange; + autoGainControl?: boolean[]; + backgroundBlur?: boolean[]; + channelCount?: ULongRange; + deviceId?: string; + displaySurface?: string; + echoCancellation?: (boolean | string)[]; + facingMode?: string[]; + frameRate?: DoubleRange; + groupId?: string; + height?: ULongRange; + noiseSuppression?: boolean[]; + sampleRate?: ULongRange; + sampleSize?: ULongRange; + width?: ULongRange; +} + +interface MediaTrackConstraintSet { + aspectRatio?: ConstrainDouble; + autoGainControl?: ConstrainBoolean; + backgroundBlur?: ConstrainBoolean; + channelCount?: ConstrainULong; + deviceId?: ConstrainDOMString; + displaySurface?: ConstrainDOMString; + echoCancellation?: ConstrainBooleanOrDOMString; + facingMode?: ConstrainDOMString; + frameRate?: ConstrainDouble; + groupId?: ConstrainDOMString; + height?: ConstrainULong; + noiseSuppression?: ConstrainBoolean; + sampleRate?: ConstrainULong; + sampleSize?: ConstrainULong; + width?: ConstrainULong; +} + +interface MediaTrackConstraints extends MediaTrackConstraintSet { + advanced?: MediaTrackConstraintSet[]; +} + +interface MediaTrackSettings { + aspectRatio?: number; + autoGainControl?: boolean; + backgroundBlur?: boolean; + channelCount?: number; + deviceId?: string; + displaySurface?: string; + echoCancellation?: boolean | string; + facingMode?: string; + frameRate?: number; + groupId?: string; + height?: number; + noiseSuppression?: boolean; + sampleRate?: number; + sampleSize?: number; + torch?: boolean; + whiteBalanceMode?: string; + width?: number; + zoom?: number; } interface MessageEventInit extends EventInit { @@ -1328,6 +1420,11 @@ interface Transformer { writableType?: undefined; } +interface ULongRange { + max?: number; + min?: number; +} + interface URLPatternComponentResult { groups: Record; input: string; @@ -4212,6 +4309,13 @@ interface EXT_color_buffer_half_float { readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; } +interface EXT_conservative_depth { +} + +interface EXT_depth_clamp { + readonly DEPTH_CLAMP_EXT: 0x864F; +} + /** * The WebGL API's **`EXT_float_blend`** extension allows blending and draw buffers with 32-bit floating-point components. * @@ -4243,6 +4347,9 @@ interface EXT_polygon_offset_clamp { readonly POLYGON_OFFSET_CLAMP_EXT: 0x8E1B; } +interface EXT_render_snorm { +} + /** * The **`EXT_sRGB`** extension is part of the WebGL API and adds sRGB support to textures and framebuffer objects. * @@ -7753,6 +7860,113 @@ declare var MediaSourceHandle: { new(): MediaSourceHandle; }; +interface MediaStreamTrackEventMap { + "ended": Event; + "mute": Event; + "unmute": Event; +} + +/** + * The **`MediaStreamTrack`** interface of the Media Capture and Streams API represents a single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack) + */ +interface MediaStreamTrack extends EventTarget { + /** + * The **`contentHint`** property of the MediaStreamTrack interface is a string that hints at the type of content the track contains. Allowable values depend on the value of the MediaStreamTrack.kind property. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/contentHint) + */ + contentHint: string; + /** + * The **`enabled`** property of the MediaStreamTrack interface is a Boolean value which is true if the track is allowed to render the source stream or false if it is not. This can be used to intentionally mute a track. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/enabled) + */ + enabled: boolean; + /** + * The **`id`** read-only property of the MediaStreamTrack interface returns a string containing a unique identifier (GUID) for the track, which is generated by the user agent. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/id) + */ + readonly id: string; + /** + * The **`kind`** read-only property of the MediaStreamTrack interface returns a string set to "audio" if the track is an audio track and to "video" if it is a video track. It doesn't change if the track is disassociated from its source. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/kind) + */ + readonly kind: string; + /** + * The **`label`** read-only property of the MediaStreamTrack interface returns a string containing a user agent-assigned label that identifies the track source, as in "internal microphone". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/label) + */ + readonly label: string; + /** + * The **`muted`** read-only property of the MediaStreamTrack interface returns a boolean value indicating whether or not the track is currently unable to provide media output. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/muted) + */ + readonly muted: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/ended_event) */ + onended: ((this: MediaStreamTrack, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/mute_event) */ + onmute: ((this: MediaStreamTrack, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/unmute_event) */ + onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null; + /** + * The **`readyState`** read-only property of the MediaStreamTrack interface returns an enumerated value giving the status of the track. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/readyState) + */ + readonly readyState: MediaStreamTrackState; + /** + * The **`applyConstraints()`** method of the MediaStreamTrack interface applies a set of constraints to the track; these constraints let the website or app establish ideal values and acceptable ranges of values for the constrainable properties of the track, such as frame rate, dimensions, echo cancellation, and so forth. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/applyConstraints) + */ + applyConstraints(constraints?: MediaTrackConstraints): Promise; + /** + * The **`clone()`** method of the MediaStreamTrack interface creates a duplicate of the MediaStreamTrack. This new MediaStreamTrack object is identical except for its unique id. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/clone) + */ + clone(): MediaStreamTrack; + /** + * The **`getCapabilities()`** method of the MediaStreamTrack interface returns an object detailing the accepted values or value range for each constrainable property of the associated MediaStreamTrack, based upon the platform and user agent. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getCapabilities) + */ + getCapabilities(): MediaTrackCapabilities; + /** + * The **`getConstraints()`** method of the MediaStreamTrack interface returns a MediaTrackConstraints object containing the set of constraints most recently established for the track using a prior call to applyConstraints(). These constraints indicate values and ranges of values that the website or application has specified are required or acceptable for the included constrainable properties. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getConstraints) + */ + getConstraints(): MediaTrackConstraints; + /** + * The **`getSettings()`** method of the MediaStreamTrack interface returns an object containing the current values of each of the constrainable properties for the current MediaStreamTrack. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getSettings) + */ + getSettings(): MediaTrackSettings; + /** + * The **`stop()`** method of the MediaStreamTrack interface stops the track. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/stop) + */ + stop(): void; + addEventListener(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var MediaStreamTrack: { + prototype: MediaStreamTrack; + new(): MediaStreamTrack; +}; + /** * The **`MediaStreamTrackProcessor`** interface of the Insertable Streams for MediaStreamTrack API consumes a video MediaStreamTrack object's source and generates a stream of VideoFrame objects. * @@ -7899,6 +8113,9 @@ declare var MessagePort: { new(): MessagePort; }; +interface NV_shader_noperspective_interpolation { +} + /** * The **`NavigationPreloadManager`** interface of the Service Worker API provides methods for managing the preloading of resources in parallel with service worker bootup. * Available only in secure contexts. @@ -8205,6 +8422,15 @@ interface OES_element_index_uint { interface OES_fbo_render_mipmap { } +interface OES_sample_variables { +} + +interface OES_shader_multisample_interpolation { + readonly MIN_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5B; + readonly MAX_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5C; + readonly FRAGMENT_INTERPOLATION_OFFSET_BITS_OES: 0x8E5D; +} + /** * The **`OES_standard_derivatives`** extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. * @@ -8386,6 +8612,25 @@ declare var Origin: { from(value: any): Origin; }; +/** + * The **`OverconstrainedError`** interface of the Media Capture and Streams API indicates that the set of desired capabilities for the current MediaStreamTrack cannot currently be met. When this event is thrown on a MediaStreamTrack, it is muted until either the current constraints can be established or until satisfiable constraints are applied. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError) + */ +interface OverconstrainedError extends DOMException { + /** + * The **`constraint`** read-only property of the OverconstrainedError interface returns the constraint that was supplied in the constructor, meaning the constraint that was not satisfied. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError/constraint) + */ + readonly constraint: string; +} + +declare var OverconstrainedError: { + prototype: OverconstrainedError; + new(constraint: string, message?: string): OverconstrainedError; +}; + /** * 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. * @@ -11669,6 +11914,22 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +interface WEBGL_polygon_mode { + polygonModeWEBGL(face: GLenum, mode: GLenum): void; + readonly POLYGON_MODE_WEBGL: 0x0B40; + readonly POLYGON_OFFSET_LINE_WEBGL: 0x2A02; + readonly LINE_WEBGL: 0x1B01; + readonly FILL_WEBGL: 0x1B02; +} + +interface WEBGL_render_shared_exponent { +} + +interface WEBGL_stencil_texturing { + readonly DEPTH_STENCIL_TEXTURE_MODE_WEBGL: 0x90EA; + readonly STENCIL_INDEX_WEBGL: 0x1901; +} + /** * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. * Available only in secure contexts. @@ -14024,9 +14285,17 @@ declare var WebSocket: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport) */ interface WebTransport { - /** The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingBidirectionalStreams) + */ anticipatedConcurrentIncomingBidirectionalStreams: number | null; - /** The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingUnidirectionalStreams) + */ anticipatedConcurrentIncomingUnidirectionalStreams: number | null; /** * The **`closed`** read-only property of the WebTransport interface returns a promise that resolves when the transport is closed. @@ -14082,7 +14351,11 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) */ readonly reliability: WebTransportReliabilityMode; - /** The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. */ + /** + * The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/responseHeaders) + */ readonly responseHeaders: Headers | null; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. @@ -14178,7 +14451,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */ incomingMaxAge: number | null; - /** The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. */ + /** + * The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxBufferedDatagrams) + */ incomingMaxBufferedDatagrams: number; /** * The **`maxDatagramSize`** read-only property of the WebTransportDatagramDuplexStream interface returns the maximum allowable size of outgoing datagrams, in bytes, that can be written to writable. @@ -14198,7 +14475,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */ outgoingMaxAge: number; - /** The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. */ + /** + * The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxBufferedDatagrams) + */ outgoingMaxBufferedDatagrams: number; /** * The **`readable`** read-only property of the WebTransportDatagramDuplexStream interface returns a ReadableStream instance that can be used to unreliably read incoming datagrams from the stream. @@ -15627,6 +15908,11 @@ type CSSNumberish = number | CSSNumericValue; type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish; type CSSUnparsedSegment = string | CSSVariableReferenceValue; type CanvasImageSource = ImageBitmap | OffscreenCanvas | VideoFrame; +type ConstrainBoolean = boolean | ConstrainBooleanParameters; +type ConstrainBooleanOrDOMString = boolean | string | ConstrainBooleanOrDOMStringParameters; +type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters; +type ConstrainDouble = number | ConstrainDoubleRange; +type ConstrainULong = number | ConstrainULongRange; type CookieList = CookieListItem[]; type DOMHighResTimeStamp = number; type EpochTimeStamp = number; @@ -15678,6 +15964,7 @@ type ImageBitmapSource = CanvasImageSource | Blob | ImageData; type ImageBufferSource = AllowSharedBufferSource | ReadableStream; type ImageDataArray = Uint8ClampedArray; type Int32List = Int32Array | GLint[]; +type MediaStreamTrackOrHandle = MediaStreamTrack; type MessageEventSource = MessagePort | ServiceWorker; type NamedCurve = string; type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext | GPUCanvasContext; @@ -15692,7 +15979,7 @@ type RequestInfo = Request | string; type RouterSource = RouterSourceDict | RouterSourceEnum; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | MediaStreamTrack | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; type URLPatternCompatible = string | URLPatternInit | URLPattern; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; @@ -15715,6 +16002,7 @@ type CanvasLineJoin = "bevel" | "miter" | "round"; type CanvasTextAlign = "center" | "end" | "left" | "right" | "start"; type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top"; type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed"; +type CanvasToneMappingMode = "extended" | "standard"; type ClientTypes = "all" | "sharedworker" | "window" | "worker"; type CodecState = "closed" | "configured" | "unconfigured"; type ColorGamut = "p3" | "rec2020" | "srgb"; @@ -15738,7 +16026,6 @@ type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract" type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; type GPUCanvasAlphaMode = "opaque" | "premultiplied"; -type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; @@ -15783,6 +16070,7 @@ type LockMode = "exclusive" | "shared"; type MediaDecodingType = "file" | "media-source" | "webrtc"; type MediaEncodingType = "record" | "webrtc"; type MediaKeysRequirement = "not-allowed" | "optional" | "required"; +type MediaStreamTrackState = "ended" | "live"; type NotificationDirection = "auto" | "ltr" | "rtl"; type NotificationPermission = "default" | "denied" | "granted"; type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu"; diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index c1019a8a6..c0dfeef7d 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -138,6 +138,10 @@ interface CacheQueryOptions { ignoreVary?: boolean; } +interface CanvasToneMapping { + mode?: CanvasToneMappingMode; +} + interface ClientQueryOptions { includeUncontrolled?: boolean; type?: ClientTypes; @@ -149,6 +153,31 @@ interface CloseEventInit extends EventInit { wasClean?: boolean; } +interface ConstrainBooleanOrDOMStringParameters { + exact?: boolean | string; + ideal?: boolean | string; +} + +interface ConstrainBooleanParameters { + exact?: boolean; + ideal?: boolean; +} + +interface ConstrainDOMStringParameters { + exact?: string | string[]; + ideal?: string | string[]; +} + +interface ConstrainDoubleRange extends DoubleRange { + exact?: number; + ideal?: number; +} + +interface ConstrainULongRange extends ULongRange { + exact?: number; + ideal?: number; +} + interface CookieInit { domain?: string | null; expires?: DOMHighResTimeStamp | null; @@ -235,6 +264,11 @@ interface DOMRectInit { y?: number; } +interface DoubleRange { + max?: number; + min?: number; +} + interface EcKeyGenParams extends Algorithm { namedCurve: NamedCurve; } @@ -421,15 +455,11 @@ interface GPUCanvasConfiguration { colorSpace?: PredefinedColorSpace; device: GPUDevice; format: GPUTextureFormat; - toneMapping?: GPUCanvasToneMapping; + toneMapping?: CanvasToneMapping; usage?: GPUTextureUsageFlags; viewFormats?: GPUTextureFormat[]; } -interface GPUCanvasToneMapping { - mode?: GPUCanvasToneMappingMode; -} - interface GPUColorDict { a: number; b: number; @@ -905,6 +935,68 @@ interface MediaEncodingConfiguration extends MediaConfiguration { interface MediaStreamTrackProcessorInit { maxBufferSize?: number; + track: MediaStreamTrackOrHandle; +} + +interface MediaTrackCapabilities { + aspectRatio?: DoubleRange; + autoGainControl?: boolean[]; + backgroundBlur?: boolean[]; + channelCount?: ULongRange; + deviceId?: string; + displaySurface?: string; + echoCancellation?: (boolean | string)[]; + facingMode?: string[]; + frameRate?: DoubleRange; + groupId?: string; + height?: ULongRange; + noiseSuppression?: boolean[]; + sampleRate?: ULongRange; + sampleSize?: ULongRange; + width?: ULongRange; +} + +interface MediaTrackConstraintSet { + aspectRatio?: ConstrainDouble; + autoGainControl?: ConstrainBoolean; + backgroundBlur?: ConstrainBoolean; + channelCount?: ConstrainULong; + deviceId?: ConstrainDOMString; + displaySurface?: ConstrainDOMString; + echoCancellation?: ConstrainBooleanOrDOMString; + facingMode?: ConstrainDOMString; + frameRate?: ConstrainDouble; + groupId?: ConstrainDOMString; + height?: ConstrainULong; + noiseSuppression?: ConstrainBoolean; + sampleRate?: ConstrainULong; + sampleSize?: ConstrainULong; + width?: ConstrainULong; +} + +interface MediaTrackConstraints extends MediaTrackConstraintSet { + advanced?: MediaTrackConstraintSet[]; +} + +interface MediaTrackSettings { + aspectRatio?: number; + autoGainControl?: boolean; + backgroundBlur?: boolean; + channelCount?: number; + deviceId?: string; + displaySurface?: string; + echoCancellation?: boolean | string; + facingMode?: string; + frameRate?: number; + groupId?: string; + height?: number; + noiseSuppression?: boolean; + sampleRate?: number; + sampleSize?: number; + torch?: boolean; + whiteBalanceMode?: string; + width?: number; + zoom?: number; } interface MessageEventInit extends EventInit { @@ -1331,6 +1423,11 @@ interface Transformer { writableType?: undefined; } +interface ULongRange { + max?: number; + min?: number; +} + interface URLPatternComponentResult { groups: Record; input: string; @@ -4215,6 +4312,13 @@ interface EXT_color_buffer_half_float { readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; } +interface EXT_conservative_depth { +} + +interface EXT_depth_clamp { + readonly DEPTH_CLAMP_EXT: 0x864F; +} + /** * The WebGL API's **`EXT_float_blend`** extension allows blending and draw buffers with 32-bit floating-point components. * @@ -4246,6 +4350,9 @@ interface EXT_polygon_offset_clamp { readonly POLYGON_OFFSET_CLAMP_EXT: 0x8E1B; } +interface EXT_render_snorm { +} + /** * The **`EXT_sRGB`** extension is part of the WebGL API and adds sRGB support to textures and framebuffer objects. * @@ -7756,6 +7863,113 @@ declare var MediaSourceHandle: { new(): MediaSourceHandle; }; +interface MediaStreamTrackEventMap { + "ended": Event; + "mute": Event; + "unmute": Event; +} + +/** + * The **`MediaStreamTrack`** interface of the Media Capture and Streams API represents a single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack) + */ +interface MediaStreamTrack extends EventTarget { + /** + * The **`contentHint`** property of the MediaStreamTrack interface is a string that hints at the type of content the track contains. Allowable values depend on the value of the MediaStreamTrack.kind property. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/contentHint) + */ + contentHint: string; + /** + * The **`enabled`** property of the MediaStreamTrack interface is a Boolean value which is true if the track is allowed to render the source stream or false if it is not. This can be used to intentionally mute a track. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/enabled) + */ + enabled: boolean; + /** + * The **`id`** read-only property of the MediaStreamTrack interface returns a string containing a unique identifier (GUID) for the track, which is generated by the user agent. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/id) + */ + readonly id: string; + /** + * The **`kind`** read-only property of the MediaStreamTrack interface returns a string set to "audio" if the track is an audio track and to "video" if it is a video track. It doesn't change if the track is disassociated from its source. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/kind) + */ + readonly kind: string; + /** + * The **`label`** read-only property of the MediaStreamTrack interface returns a string containing a user agent-assigned label that identifies the track source, as in "internal microphone". + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/label) + */ + readonly label: string; + /** + * The **`muted`** read-only property of the MediaStreamTrack interface returns a boolean value indicating whether or not the track is currently unable to provide media output. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/muted) + */ + readonly muted: boolean; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/ended_event) */ + onended: ((this: MediaStreamTrack, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/mute_event) */ + onmute: ((this: MediaStreamTrack, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/unmute_event) */ + onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null; + /** + * The **`readyState`** read-only property of the MediaStreamTrack interface returns an enumerated value giving the status of the track. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/readyState) + */ + readonly readyState: MediaStreamTrackState; + /** + * The **`applyConstraints()`** method of the MediaStreamTrack interface applies a set of constraints to the track; these constraints let the website or app establish ideal values and acceptable ranges of values for the constrainable properties of the track, such as frame rate, dimensions, echo cancellation, and so forth. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/applyConstraints) + */ + applyConstraints(constraints?: MediaTrackConstraints): Promise; + /** + * The **`clone()`** method of the MediaStreamTrack interface creates a duplicate of the MediaStreamTrack. This new MediaStreamTrack object is identical except for its unique id. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/clone) + */ + clone(): MediaStreamTrack; + /** + * The **`getCapabilities()`** method of the MediaStreamTrack interface returns an object detailing the accepted values or value range for each constrainable property of the associated MediaStreamTrack, based upon the platform and user agent. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getCapabilities) + */ + getCapabilities(): MediaTrackCapabilities; + /** + * The **`getConstraints()`** method of the MediaStreamTrack interface returns a MediaTrackConstraints object containing the set of constraints most recently established for the track using a prior call to applyConstraints(). These constraints indicate values and ranges of values that the website or application has specified are required or acceptable for the included constrainable properties. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getConstraints) + */ + getConstraints(): MediaTrackConstraints; + /** + * The **`getSettings()`** method of the MediaStreamTrack interface returns an object containing the current values of each of the constrainable properties for the current MediaStreamTrack. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getSettings) + */ + getSettings(): MediaTrackSettings; + /** + * The **`stop()`** method of the MediaStreamTrack interface stops the track. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/stop) + */ + stop(): void; + addEventListener(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; + removeEventListener(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; +} + +declare var MediaStreamTrack: { + prototype: MediaStreamTrack; + new(): MediaStreamTrack; +}; + /** * The **`MediaStreamTrackProcessor`** interface of the Insertable Streams for MediaStreamTrack API consumes a video MediaStreamTrack object's source and generates a stream of VideoFrame objects. * @@ -7902,6 +8116,9 @@ declare var MessagePort: { new(): MessagePort; }; +interface NV_shader_noperspective_interpolation { +} + /** * The **`NavigationPreloadManager`** interface of the Service Worker API provides methods for managing the preloading of resources in parallel with service worker bootup. * Available only in secure contexts. @@ -8208,6 +8425,15 @@ interface OES_element_index_uint { interface OES_fbo_render_mipmap { } +interface OES_sample_variables { +} + +interface OES_shader_multisample_interpolation { + readonly MIN_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5B; + readonly MAX_FRAGMENT_INTERPOLATION_OFFSET_OES: 0x8E5C; + readonly FRAGMENT_INTERPOLATION_OFFSET_BITS_OES: 0x8E5D; +} + /** * The **`OES_standard_derivatives`** extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. * @@ -8389,6 +8615,25 @@ declare var Origin: { from(value: any): Origin; }; +/** + * The **`OverconstrainedError`** interface of the Media Capture and Streams API indicates that the set of desired capabilities for the current MediaStreamTrack cannot currently be met. When this event is thrown on a MediaStreamTrack, it is muted until either the current constraints can be established or until satisfiable constraints are applied. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError) + */ +interface OverconstrainedError extends DOMException { + /** + * The **`constraint`** read-only property of the OverconstrainedError interface returns the constraint that was supplied in the constructor, meaning the constraint that was not satisfied. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError/constraint) + */ + readonly constraint: string; +} + +declare var OverconstrainedError: { + prototype: OverconstrainedError; + new(constraint: string, message?: string): OverconstrainedError; +}; + /** * 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. * @@ -11672,6 +11917,22 @@ interface WEBGL_multi_draw { multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void; } +interface WEBGL_polygon_mode { + polygonModeWEBGL(face: GLenum, mode: GLenum): void; + readonly POLYGON_MODE_WEBGL: 0x0B40; + readonly POLYGON_OFFSET_LINE_WEBGL: 0x2A02; + readonly LINE_WEBGL: 0x1B01; + readonly FILL_WEBGL: 0x1B02; +} + +interface WEBGL_render_shared_exponent { +} + +interface WEBGL_stencil_texturing { + readonly DEPTH_STENCIL_TEXTURE_MODE_WEBGL: 0x90EA; + readonly STENCIL_INDEX_WEBGL: 0x1901; +} + /** * The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation. * Available only in secure contexts. @@ -14027,9 +14288,17 @@ declare var WebSocket: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport) */ interface WebTransport { - /** The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingBidirectionalStreams`** property of the WebTransport interface represents the number of incoming bidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingBidirectionalStreams) + */ anticipatedConcurrentIncomingBidirectionalStreams: number | null; - /** The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. */ + /** + * The **`anticipatedConcurrentIncomingUnidirectionalStreams`** property of the WebTransport interface represents the number of incoming unidirectional streams that the application expects the server to have open at the same time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/anticipatedConcurrentIncomingUnidirectionalStreams) + */ anticipatedConcurrentIncomingUnidirectionalStreams: number | null; /** * The **`closed`** read-only property of the WebTransport interface returns a promise that resolves when the transport is closed. @@ -14085,7 +14354,11 @@ interface WebTransport { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability) */ readonly reliability: WebTransportReliabilityMode; - /** The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. */ + /** + * The **`responseHeaders`** read-only property of the WebTransport interface returns the HTTP headers from the server's response to the request that set up the session. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/responseHeaders) + */ readonly responseHeaders: Headers | null; /** * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session. @@ -14181,7 +14454,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */ incomingMaxAge: number | null; - /** The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. */ + /** + * The **`incomingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of incoming datagrams that can be queued while waiting to be read from the readable stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxBufferedDatagrams) + */ incomingMaxBufferedDatagrams: number; /** * The **`maxDatagramSize`** read-only property of the WebTransportDatagramDuplexStream interface returns the maximum allowable size of outgoing datagrams, in bytes, that can be written to writable. @@ -14201,7 +14478,11 @@ interface WebTransportDatagramDuplexStream { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */ outgoingMaxAge: number; - /** The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. */ + /** + * The **`outgoingMaxBufferedDatagrams`** property of the WebTransportDatagramDuplexStream interface represents the maximum number of outgoing datagrams that can be queued for sending on each WebTransportDatagramsWritable before backpressure is applied. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxBufferedDatagrams) + */ outgoingMaxBufferedDatagrams: number; /** * The **`readable`** read-only property of the WebTransportDatagramDuplexStream interface returns a ReadableStream instance that can be used to unreliably read incoming datagrams from the stream. @@ -15630,6 +15911,11 @@ type CSSNumberish = number | CSSNumericValue; type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish; type CSSUnparsedSegment = string | CSSVariableReferenceValue; type CanvasImageSource = ImageBitmap | OffscreenCanvas | VideoFrame; +type ConstrainBoolean = boolean | ConstrainBooleanParameters; +type ConstrainBooleanOrDOMString = boolean | string | ConstrainBooleanOrDOMStringParameters; +type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters; +type ConstrainDouble = number | ConstrainDoubleRange; +type ConstrainULong = number | ConstrainULongRange; type CookieList = CookieListItem[]; type DOMHighResTimeStamp = number; type EpochTimeStamp = number; @@ -15681,6 +15967,7 @@ type ImageBitmapSource = CanvasImageSource | Blob | ImageData; type ImageBufferSource = AllowSharedBufferSource | ReadableStream; type ImageDataArray = Uint8ClampedArray; type Int32List = Int32Array | GLint[]; +type MediaStreamTrackOrHandle = MediaStreamTrack; type MessageEventSource = MessagePort | ServiceWorker; type NamedCurve = string; type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext | GPUCanvasContext; @@ -15695,7 +15982,7 @@ type RequestInfo = Request | string; type RouterSource = RouterSourceDict | RouterSourceEnum; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | MediaStreamTrack | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | WebTransportDatagramsWritable | ArrayBuffer; type URLPatternCompatible = string | URLPatternInit | URLPattern; type URLPatternInput = string | URLPatternInit; type Uint32List = Uint32Array | GLuint[]; @@ -15718,6 +16005,7 @@ type CanvasLineJoin = "bevel" | "miter" | "round"; type CanvasTextAlign = "center" | "end" | "left" | "right" | "start"; type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top"; type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed"; +type CanvasToneMappingMode = "extended" | "standard"; type ClientTypes = "all" | "sharedworker" | "window" | "worker"; type CodecState = "closed" | "configured" | "unconfigured"; type ColorGamut = "p3" | "rec2020" | "srgb"; @@ -15741,7 +16029,6 @@ type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract" type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform"; type GPUBufferMapState = "mapped" | "pending" | "unmapped"; type GPUCanvasAlphaMode = "opaque" | "premultiplied"; -type GPUCanvasToneMappingMode = "extended" | "standard"; type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal"; type GPUCompilationMessageType = "error" | "info" | "warning"; type GPUCullMode = "back" | "front" | "none"; @@ -15786,6 +16073,7 @@ type LockMode = "exclusive" | "shared"; type MediaDecodingType = "file" | "media-source" | "webrtc"; type MediaEncodingType = "record" | "webrtc"; type MediaKeysRequirement = "not-allowed" | "optional" | "required"; +type MediaStreamTrackState = "ended" | "live"; type NotificationDirection = "auto" | "ltr" | "rtl"; type NotificationPermission = "default" | "denied" | "granted"; type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu"; diff --git a/inputfiles/mdn.json b/inputfiles/mdn.json index 324634af9..e0e4b8736 100644 --- a/inputfiles/mdn.json +++ b/inputfiles/mdn.json @@ -28570,9 +28570,9 @@ "summary": "The addFromString() method of the\nSpeechGrammarList interface takes a grammar present in a specific\nstring within the code base (e.g., stored in a variable) and adds it to\nthe SpeechGrammarList as a new SpeechGrammar object." }, { - "mdn_url": "/en-US/docs/Web/API/SpeechGrammarList/addFromURI", + "mdn_url": "/en-US/docs/Web/API/SpeechGrammarList/addFromUri", "pageType": "web-api-instance-method", - "summary": "The addFromURI() method of the\nSpeechGrammarList interface takes a grammar present at a specific URI and\nadds it to the SpeechGrammarList as a new SpeechGrammar\nobject." + "summary": "The addFromUri() method of the SpeechGrammarList interface takes a grammar present at a specific URI and adds it to the SpeechGrammarList as a new SpeechGrammar object." }, { "mdn_url": "/en-US/docs/Web/API/SpeechGrammarList/item", @@ -28612,12 +28612,12 @@ { "mdn_url": "/en-US/docs/Web/API/SpeechRecognition/available_static", "pageType": "web-api-static-method", - "summary": "The available() static method of the Web Speech API checks whether the specified languages are available for speech recognition at the given quality level." + "summary": "The available() static method of the SpeechRecognition interface checks whether the specified languages are available for speech recognition at the given quality level." }, { "mdn_url": "/en-US/docs/Web/API/SpeechRecognition/continuous", "pageType": "web-api-instance-property", - "summary": "The continuous property of the\nSpeechRecognition interface controls whether continuous results are\nreturned for each recognition, or only a single result." + "summary": "The continuous property of the SpeechRecognition interface represents whether recognition returns a single final result, or multiple final results from consecutive recognitions." }, { "mdn_url": "/en-US/docs/Web/API/SpeechRecognition/end_event", @@ -28632,12 +28632,12 @@ { "mdn_url": "/en-US/docs/Web/API/SpeechRecognition/grammars", "pageType": "web-api-instance-property", - "summary": "The grammars property of the\nSpeechRecognition interface returns and sets a collection of\nSpeechGrammar objects that represent the grammars that will be understood\nby the current SpeechRecognition." + "summary": "The grammars property of the SpeechRecognition interface represents a collection of SpeechGrammar objects." }, { "mdn_url": "/en-US/docs/Web/API/SpeechRecognition/install_static", "pageType": "web-api-static-method", - "summary": "The install() static method of the Web Speech API installs the required language packs for on-device speech recognition in the specified languages and quality level." + "summary": "The install() static method of the SpeechRecognition interface installs the language packs needed for on-device speech recognition of the specified languages, at the specified quality level.\nA language pack is the data a browser needs to recognize speech in a particular language.\nOnce it is installed, recognition in that language can run on the user's device, so audio doesn't have to be sent to a remote service." }, { "mdn_url": "/en-US/docs/Web/API/SpeechRecognition/interimResults", @@ -28672,7 +28672,7 @@ { "mdn_url": "/en-US/docs/Web/API/SpeechRecognition/result_event", "pageType": "web-api-event", - "summary": "The result event of the Web Speech API is fired when the speech recognition service returns a result — a word or phrase has been positively recognized and this has been communicated back to the app" + "summary": "The result event of the SpeechRecognition interface is fired when the speech recognition service returns a result.\nThis can be a final result, or an interim result that may still change (if interimResults is true)." }, { "mdn_url": "/en-US/docs/Web/API/SpeechRecognition/soundend_event", @@ -28702,17 +28702,17 @@ { "mdn_url": "/en-US/docs/Web/API/SpeechRecognition/start", "pageType": "web-api-instance-method", - "summary": "The start() method of the Web Speech API starts the speech recognition service to listen for incoming audio (from a microphone or an audio track) and returns the results of that recognition." + "summary": "The start() method of the SpeechRecognition interface starts the speech recognition service listening for incoming audio (from a microphone or an audio track).\nResults are delivered through the result event." }, { "mdn_url": "/en-US/docs/Web/API/SpeechRecognition/start_event", "pageType": "web-api-event", - "summary": "The start event of the Web Speech API SpeechRecognition object is fired when the speech recognition service has begun listening to incoming audio with intent to recognize grammars associated with the current SpeechRecognition." + "summary": "The start event of the SpeechRecognition interface is fired when the speech recognition service has begun listening to incoming audio with the intention of recognizing speech." }, { "mdn_url": "/en-US/docs/Web/API/SpeechRecognition/stop", "pageType": "web-api-instance-method", - "summary": "The stop() method of the Web Speech API stops the speech recognition service from listening for incoming audio and attempts to return a SpeechRecognitionResult based on the results captured so far." + "summary": "The stop() method of the SpeechRecognition interface stops the speech recognition service from listening for incoming audio.\nThe service then attempts to return a result based on the audio captured so far, through a result event, or a nomatch event if nothing was recognized." }, { "mdn_url": "/en-US/docs/Web/API/SpeechRecognition/unspokenPunctuation", @@ -28722,17 +28722,17 @@ { "mdn_url": "/en-US/docs/Web/API/SpeechRecognitionAlternative", "pageType": "web-api-interface", - "summary": "The SpeechRecognitionAlternative interface of the Web Speech API represents a single word that has been recognized by the speech recognition service." + "summary": "The SpeechRecognitionAlternative interface of the Web Speech API represents one possible match for what the user said, as recognized by the speech recognition service.\nA SpeechRecognitionResult contains one or more alternatives, ordered from most to least confident." }, { "mdn_url": "/en-US/docs/Web/API/SpeechRecognitionAlternative/confidence", "pageType": "web-api-instance-property", - "summary": "The confidence read-only property of the\nSpeechRecognitionResult interface returns a numeric estimate of how\nconfident the speech recognition system is that the recognition is correct." + "summary": "The confidence read-only property of the SpeechRecognitionAlternative interface returns a numeric estimate of how confident the speech recognition system is that the recognition is correct." }, { "mdn_url": "/en-US/docs/Web/API/SpeechRecognitionAlternative/transcript", "pageType": "web-api-instance-property", - "summary": "The transcript read-only property of the\nSpeechRecognitionResult interface returns a string containing the\ntranscript of the recognized word(s)." + "summary": "The transcript read-only property of the SpeechRecognitionAlternative interface returns a string containing the transcript of the recognized speech." }, { "mdn_url": "/en-US/docs/Web/API/SpeechRecognitionErrorEvent", @@ -28817,7 +28817,7 @@ { "mdn_url": "/en-US/docs/Web/API/SpeechRecognitionResultList", "pageType": "web-api-interface", - "summary": "The SpeechRecognitionResultList interface of the Web Speech API represents a list of SpeechRecognitionResult objects, or a single one if results are being captured in non-continuous mode." + "summary": "The SpeechRecognitionResultList interface of the Web Speech API represents a collection of SpeechRecognitionResult objects.\nIf recognition isn't in continuous mode, it contains only one result." }, { "mdn_url": "/en-US/docs/Web/API/SpeechRecognitionResultList/item", diff --git a/package-lock.json b/package-lock.json index 7a1065af6..89e318c38 100644 --- a/package-lock.json +++ b/package-lock.json @@ -330,9 +330,9 @@ } }, "node_modules/@mdn/browser-compat-data": { - "version": "8.1.9", - "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-8.1.9.tgz", - "integrity": "sha512-7d8D9yzVS4ugLbt4clzc5DKU8dq85K0lRebjzpP43GxSr7vYKmczgfuEU+0beimjl5YmnHkcErtolg5t5ttb0A==", + "version": "8.1.10", + "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-8.1.10.tgz", + "integrity": "sha512-hz+rLSYXWOcBI8OF+xMzVpA1vxbtYbYSPLPiw/IhKMTiKL7L5+YuyGDPr+QKhnRsgYERxvi4MYc0J74JTakD7A==", "dev": true, "license": "CC0-1.0" }, @@ -1098,9 +1098,9 @@ } }, "node_modules/@webref/css": { - "version": "8.7.9", - "resolved": "https://registry.npmjs.org/@webref/css/-/css-8.7.9.tgz", - "integrity": "sha512-8dhPv268iKMdGu81rPhWEQm9da3GeKEfYZFRTecQLAyg+j+aykATw8jspHrecJ6kuBoF3Xt91RARc3b7d2ni0g==", + "version": "8.7.10", + "resolved": "https://registry.npmjs.org/@webref/css/-/css-8.7.10.tgz", + "integrity": "sha512-RMzZwF9XtX4x2wVjO2zAVJJu5Rofs5RktWlEhegwpdB4Z72BfpLfaRfGVQxV5qCSNDxa1vLlex35Yw7GRLTPdA==", "dev": true, "license": "MIT", "peerDependencies": { @@ -1122,9 +1122,9 @@ "license": "MIT" }, "node_modules/@webref/idl": { - "version": "3.87.0", - "resolved": "https://registry.npmjs.org/@webref/idl/-/idl-3.87.0.tgz", - "integrity": "sha512-28JokxfNnINrMafSAWDnqiNkDIATuwWBJydHcVfdVz/RH9GyJdCWd9v+jv5+UNX0X4u0byOysIePiYZKlrjxyA==", + "version": "3.87.1", + "resolved": "https://registry.npmjs.org/@webref/idl/-/idl-3.87.1.tgz", + "integrity": "sha512-I+iJs9DJPvGplegXoyCLsybkFt+5OMR8yoKJPICibfannbUCJNDqqJIrL5r97Mld0S3u90eQPeurzScDZq7+Nw==", "dev": true, "license": "MIT", "peerDependencies": {