Skip to content

Update to @webref/[email protected] #1977

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,10 @@ interface MediaTrackSettings {
noiseSuppression?: boolean;
sampleRate?: number;
sampleSize?: number;
torch?: boolean;
whiteBalanceMode?: string;
width?: number;
zoom?: number;
}

interface MediaTrackSupportedConstraints {
Expand Down Expand Up @@ -1709,6 +1712,9 @@ interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {
trackIdentifier: string;
}

interface RTCLocalIceCandidateInit extends RTCIceCandidateInit {
}

interface RTCLocalSessionDescriptionInit {
sdp?: string;
type?: RTCSdpType;
Expand Down Expand Up @@ -15275,7 +15281,7 @@ interface ImageData {
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
*/
readonly data: Uint8ClampedArray;
readonly data: ImageDataArray;
/**
* Returns the actual dimensions of the data in the ImageData object, in pixels.
*
Expand All @@ -15293,7 +15299,7 @@ interface ImageData {
declare var ImageData: {
prototype: ImageData;
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
new(data: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
};

/**
Expand Down Expand Up @@ -19247,7 +19253,7 @@ interface RTCIceCandidate {

declare var RTCIceCandidate: {
prototype: RTCIceCandidate;
new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;
new(candidateInitDict?: RTCLocalIceCandidateInit): RTCIceCandidate;
};

interface RTCIceCandidatePair {
Expand Down Expand Up @@ -29674,6 +29680,7 @@ type HeadersInit = [string, string][] | Record<string, string> | Headers;
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
type ImageBufferSource = AllowSharedBufferSource | ReadableStream;
type ImageDataArray = Uint8ClampedArray;
type Int32List = Int32Array | GLint[];
type LineAndPositionSetting = number | AutoKeyword;
type MediaProvider = MediaStream | MediaSource | Blob;
Expand Down
5 changes: 3 additions & 2 deletions baselines/serviceworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3689,7 +3689,7 @@ interface ImageData {
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
*/
readonly data: Uint8ClampedArray;
readonly data: ImageDataArray;
/**
* Returns the actual dimensions of the data in the ImageData object, in pixels.
*
Expand All @@ -3707,7 +3707,7 @@ interface ImageData {
declare var ImageData: {
prototype: ImageData;
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
new(data: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
};

interface ImportMeta {
Expand Down Expand Up @@ -8743,6 +8743,7 @@ type HashAlgorithmIdentifier = AlgorithmIdentifier;
type HeadersInit = [string, string][] | Record<string, string> | Headers;
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
type ImageDataArray = Uint8ClampedArray;
type Int32List = Int32Array | GLint[];
type MessageEventSource = MessagePort | ServiceWorker;
type NamedCurve = string;
Expand Down
5 changes: 3 additions & 2 deletions baselines/sharedworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3508,7 +3508,7 @@ interface ImageData {
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
*/
readonly data: Uint8ClampedArray;
readonly data: ImageDataArray;
/**
* Returns the actual dimensions of the data in the ImageData object, in pixels.
*
Expand All @@ -3526,7 +3526,7 @@ interface ImageData {
declare var ImageData: {
prototype: ImageData;
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
new(data: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
};

interface ImportMeta {
Expand Down Expand Up @@ -8666,6 +8666,7 @@ type HashAlgorithmIdentifier = AlgorithmIdentifier;
type HeadersInit = [string, string][] | Record<string, string> | Headers;
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
type ImageDataArray = Uint8ClampedArray;
type Int32List = Int32Array | GLint[];
type MessageEventSource = MessagePort | ServiceWorker;
type NamedCurve = string;
Expand Down
13 changes: 10 additions & 3 deletions baselines/ts5.5/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,10 @@ interface MediaTrackSettings {
noiseSuppression?: boolean;
sampleRate?: number;
sampleSize?: number;
torch?: boolean;
whiteBalanceMode?: string;
width?: number;
zoom?: number;
}

interface MediaTrackSupportedConstraints {
Expand Down Expand Up @@ -1709,6 +1712,9 @@ interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {
trackIdentifier: string;
}

interface RTCLocalIceCandidateInit extends RTCIceCandidateInit {
}

interface RTCLocalSessionDescriptionInit {
sdp?: string;
type?: RTCSdpType;
Expand Down Expand Up @@ -15255,7 +15261,7 @@ interface ImageData {
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
*/
readonly data: Uint8ClampedArray;
readonly data: ImageDataArray;
/**
* Returns the actual dimensions of the data in the ImageData object, in pixels.
*
Expand All @@ -15273,7 +15279,7 @@ interface ImageData {
declare var ImageData: {
prototype: ImageData;
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
new(data: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
};

/**
Expand Down Expand Up @@ -19227,7 +19233,7 @@ interface RTCIceCandidate {

declare var RTCIceCandidate: {
prototype: RTCIceCandidate;
new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;
new(candidateInitDict?: RTCLocalIceCandidateInit): RTCIceCandidate;
};

interface RTCIceCandidatePair {
Expand Down Expand Up @@ -29652,6 +29658,7 @@ type HeadersInit = [string, string][] | Record<string, string> | Headers;
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
type ImageBufferSource = AllowSharedBufferSource | ReadableStream;
type ImageDataArray = Uint8ClampedArray;
type Int32List = Int32Array | GLint[];
type LineAndPositionSetting = number | AutoKeyword;
type MediaProvider = MediaStream | MediaSource | Blob;
Expand Down
5 changes: 3 additions & 2 deletions baselines/ts5.5/serviceworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3689,7 +3689,7 @@ interface ImageData {
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
*/
readonly data: Uint8ClampedArray;
readonly data: ImageDataArray;
/**
* Returns the actual dimensions of the data in the ImageData object, in pixels.
*
Expand All @@ -3707,7 +3707,7 @@ interface ImageData {
declare var ImageData: {
prototype: ImageData;
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
new(data: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
};

interface ImportMeta {
Expand Down Expand Up @@ -8743,6 +8743,7 @@ type HashAlgorithmIdentifier = AlgorithmIdentifier;
type HeadersInit = [string, string][] | Record<string, string> | Headers;
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
type ImageDataArray = Uint8ClampedArray;
type Int32List = Int32Array | GLint[];
type MessageEventSource = MessagePort | ServiceWorker;
type NamedCurve = string;
Expand Down
5 changes: 3 additions & 2 deletions baselines/ts5.5/sharedworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3508,7 +3508,7 @@ interface ImageData {
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
*/
readonly data: Uint8ClampedArray;
readonly data: ImageDataArray;
/**
* Returns the actual dimensions of the data in the ImageData object, in pixels.
*
Expand All @@ -3526,7 +3526,7 @@ interface ImageData {
declare var ImageData: {
prototype: ImageData;
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
new(data: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
};

interface ImportMeta {
Expand Down Expand Up @@ -8666,6 +8666,7 @@ type HashAlgorithmIdentifier = AlgorithmIdentifier;
type HeadersInit = [string, string][] | Record<string, string> | Headers;
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
type ImageDataArray = Uint8ClampedArray;
type Int32List = Int32Array | GLint[];
type MessageEventSource = MessagePort | ServiceWorker;
type NamedCurve = string;
Expand Down
5 changes: 3 additions & 2 deletions baselines/ts5.5/webworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4179,7 +4179,7 @@ interface ImageData {
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
*/
readonly data: Uint8ClampedArray;
readonly data: ImageDataArray;
/**
* Returns the actual dimensions of the data in the ImageData object, in pixels.
*
Expand All @@ -4197,7 +4197,7 @@ interface ImageData {
declare var ImageData: {
prototype: ImageData;
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
new(data: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
};

/**
Expand Down Expand Up @@ -9858,6 +9858,7 @@ type HeadersInit = [string, string][] | Record<string, string> | Headers;
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
type ImageBufferSource = AllowSharedBufferSource | ReadableStream;
type ImageDataArray = Uint8ClampedArray;
type Int32List = Int32Array | GLint[];
type MessageEventSource = MessagePort | ServiceWorker;
type NamedCurve = string;
Expand Down
5 changes: 3 additions & 2 deletions baselines/webworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4179,7 +4179,7 @@ interface ImageData {
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
*/
readonly data: Uint8ClampedArray;
readonly data: ImageDataArray;
/**
* Returns the actual dimensions of the data in the ImageData object, in pixels.
*
Expand All @@ -4197,7 +4197,7 @@ interface ImageData {
declare var ImageData: {
prototype: ImageData;
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
new(data: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
};

/**
Expand Down Expand Up @@ -9858,6 +9858,7 @@ type HeadersInit = [string, string][] | Record<string, string> | Headers;
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
type ImageBufferSource = AllowSharedBufferSource | ReadableStream;
type ImageDataArray = Uint8ClampedArray;
type Int32List = Int32Array | GLint[];
type MessageEventSource = MessagePort | ServiceWorker;
type NamedCurve = string;
Expand Down
15 changes: 12 additions & 3 deletions inputfiles/overridingTypes.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -1945,6 +1945,12 @@
}
}
},
// XXX: Float16Array is esnext-only as of 2025-04
// Not sure what to do here, for now disable it.
"Float16Array": {
"exposed": "",
"name": "Float16Array"
},
"HTMLButtonElement": {
"properties": {
"property": {
Expand Down Expand Up @@ -2088,9 +2094,12 @@
"WebTransportDatagramDuplexStream": {
"properties": {
"property": {
// WebTransportDatagramsWritable is not implemented by anyone as of 2025-03
// https://github.com/w3c/webtransport/pull/638 removed this but browsers still has this
"writable": {
"type": "WritableStream"
"name": "writable",
"type": "WritableStream",
"readonly": true,
"mdnUrl": "https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable"
}
}
}
Expand Down Expand Up @@ -3700,7 +3709,7 @@
}
},
"dictionaries": {
"dictionary": {
"dictionary": {
"FontFaceDescriptors": {
"members": {
"member": {
Expand Down
Loading