Skip to content

Commit 0f45f14

Browse files
authored
Co-authored-by: saschanaz <[email protected]>
1 parent b3087a8 commit 0f45f14

11 files changed

+111
-43
lines changed

baselines/dom.generated.d.ts

+10-3
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,10 @@ interface MediaTrackSettings {
11011101
noiseSuppression?: boolean;
11021102
sampleRate?: number;
11031103
sampleSize?: number;
1104+
torch?: boolean;
1105+
whiteBalanceMode?: string;
11041106
width?: number;
1107+
zoom?: number;
11051108
}
11061109

11071110
interface MediaTrackSupportedConstraints {
@@ -1709,6 +1712,9 @@ interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {
17091712
trackIdentifier: string;
17101713
}
17111714

1715+
interface RTCLocalIceCandidateInit extends RTCIceCandidateInit {
1716+
}
1717+
17121718
interface RTCLocalSessionDescriptionInit {
17131719
sdp?: string;
17141720
type?: RTCSdpType;
@@ -15275,7 +15281,7 @@ interface ImageData {
1527515281
*
1527615282
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
1527715283
*/
15278-
readonly data: Uint8ClampedArray;
15284+
readonly data: ImageDataArray;
1527915285
/**
1528015286
* Returns the actual dimensions of the data in the ImageData object, in pixels.
1528115287
*
@@ -15293,7 +15299,7 @@ interface ImageData {
1529315299
declare var ImageData: {
1529415300
prototype: ImageData;
1529515301
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
15296-
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
15302+
new(data: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
1529715303
};
1529815304

1529915305
/**
@@ -19247,7 +19253,7 @@ interface RTCIceCandidate {
1924719253

1924819254
declare var RTCIceCandidate: {
1924919255
prototype: RTCIceCandidate;
19250-
new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;
19256+
new(candidateInitDict?: RTCLocalIceCandidateInit): RTCIceCandidate;
1925119257
};
1925219258

1925319259
interface RTCIceCandidatePair {
@@ -29674,6 +29680,7 @@ type HeadersInit = [string, string][] | Record<string, string> | Headers;
2967429680
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
2967529681
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
2967629682
type ImageBufferSource = AllowSharedBufferSource | ReadableStream;
29683+
type ImageDataArray = Uint8ClampedArray;
2967729684
type Int32List = Int32Array | GLint[];
2967829685
type LineAndPositionSetting = number | AutoKeyword;
2967929686
type MediaProvider = MediaStream | MediaSource | Blob;

baselines/serviceworker.generated.d.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -3689,7 +3689,7 @@ interface ImageData {
36893689
*
36903690
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
36913691
*/
3692-
readonly data: Uint8ClampedArray;
3692+
readonly data: ImageDataArray;
36933693
/**
36943694
* Returns the actual dimensions of the data in the ImageData object, in pixels.
36953695
*
@@ -3707,7 +3707,7 @@ interface ImageData {
37073707
declare var ImageData: {
37083708
prototype: ImageData;
37093709
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
3710-
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
3710+
new(data: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
37113711
};
37123712

37133713
interface ImportMeta {
@@ -8743,6 +8743,7 @@ type HashAlgorithmIdentifier = AlgorithmIdentifier;
87438743
type HeadersInit = [string, string][] | Record<string, string> | Headers;
87448744
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
87458745
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
8746+
type ImageDataArray = Uint8ClampedArray;
87468747
type Int32List = Int32Array | GLint[];
87478748
type MessageEventSource = MessagePort | ServiceWorker;
87488749
type NamedCurve = string;

baselines/sharedworker.generated.d.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -3508,7 +3508,7 @@ interface ImageData {
35083508
*
35093509
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
35103510
*/
3511-
readonly data: Uint8ClampedArray;
3511+
readonly data: ImageDataArray;
35123512
/**
35133513
* Returns the actual dimensions of the data in the ImageData object, in pixels.
35143514
*
@@ -3526,7 +3526,7 @@ interface ImageData {
35263526
declare var ImageData: {
35273527
prototype: ImageData;
35283528
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
3529-
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
3529+
new(data: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
35303530
};
35313531

35323532
interface ImportMeta {
@@ -8666,6 +8666,7 @@ type HashAlgorithmIdentifier = AlgorithmIdentifier;
86668666
type HeadersInit = [string, string][] | Record<string, string> | Headers;
86678667
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
86688668
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
8669+
type ImageDataArray = Uint8ClampedArray;
86698670
type Int32List = Int32Array | GLint[];
86708671
type MessageEventSource = MessagePort | ServiceWorker;
86718672
type NamedCurve = string;

baselines/ts5.5/dom.generated.d.ts

+10-3
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,10 @@ interface MediaTrackSettings {
11011101
noiseSuppression?: boolean;
11021102
sampleRate?: number;
11031103
sampleSize?: number;
1104+
torch?: boolean;
1105+
whiteBalanceMode?: string;
11041106
width?: number;
1107+
zoom?: number;
11051108
}
11061109

11071110
interface MediaTrackSupportedConstraints {
@@ -1709,6 +1712,9 @@ interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {
17091712
trackIdentifier: string;
17101713
}
17111714

1715+
interface RTCLocalIceCandidateInit extends RTCIceCandidateInit {
1716+
}
1717+
17121718
interface RTCLocalSessionDescriptionInit {
17131719
sdp?: string;
17141720
type?: RTCSdpType;
@@ -15255,7 +15261,7 @@ interface ImageData {
1525515261
*
1525615262
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
1525715263
*/
15258-
readonly data: Uint8ClampedArray;
15264+
readonly data: ImageDataArray;
1525915265
/**
1526015266
* Returns the actual dimensions of the data in the ImageData object, in pixels.
1526115267
*
@@ -15273,7 +15279,7 @@ interface ImageData {
1527315279
declare var ImageData: {
1527415280
prototype: ImageData;
1527515281
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
15276-
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
15282+
new(data: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
1527715283
};
1527815284

1527915285
/**
@@ -19227,7 +19233,7 @@ interface RTCIceCandidate {
1922719233

1922819234
declare var RTCIceCandidate: {
1922919235
prototype: RTCIceCandidate;
19230-
new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;
19236+
new(candidateInitDict?: RTCLocalIceCandidateInit): RTCIceCandidate;
1923119237
};
1923219238

1923319239
interface RTCIceCandidatePair {
@@ -29652,6 +29658,7 @@ type HeadersInit = [string, string][] | Record<string, string> | Headers;
2965229658
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
2965329659
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
2965429660
type ImageBufferSource = AllowSharedBufferSource | ReadableStream;
29661+
type ImageDataArray = Uint8ClampedArray;
2965529662
type Int32List = Int32Array | GLint[];
2965629663
type LineAndPositionSetting = number | AutoKeyword;
2965729664
type MediaProvider = MediaStream | MediaSource | Blob;

baselines/ts5.5/serviceworker.generated.d.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -3689,7 +3689,7 @@ interface ImageData {
36893689
*
36903690
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
36913691
*/
3692-
readonly data: Uint8ClampedArray;
3692+
readonly data: ImageDataArray;
36933693
/**
36943694
* Returns the actual dimensions of the data in the ImageData object, in pixels.
36953695
*
@@ -3707,7 +3707,7 @@ interface ImageData {
37073707
declare var ImageData: {
37083708
prototype: ImageData;
37093709
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
3710-
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
3710+
new(data: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
37113711
};
37123712

37133713
interface ImportMeta {
@@ -8743,6 +8743,7 @@ type HashAlgorithmIdentifier = AlgorithmIdentifier;
87438743
type HeadersInit = [string, string][] | Record<string, string> | Headers;
87448744
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
87458745
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
8746+
type ImageDataArray = Uint8ClampedArray;
87468747
type Int32List = Int32Array | GLint[];
87478748
type MessageEventSource = MessagePort | ServiceWorker;
87488749
type NamedCurve = string;

baselines/ts5.5/sharedworker.generated.d.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -3508,7 +3508,7 @@ interface ImageData {
35083508
*
35093509
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
35103510
*/
3511-
readonly data: Uint8ClampedArray;
3511+
readonly data: ImageDataArray;
35123512
/**
35133513
* Returns the actual dimensions of the data in the ImageData object, in pixels.
35143514
*
@@ -3526,7 +3526,7 @@ interface ImageData {
35263526
declare var ImageData: {
35273527
prototype: ImageData;
35283528
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
3529-
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
3529+
new(data: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
35303530
};
35313531

35323532
interface ImportMeta {
@@ -8666,6 +8666,7 @@ type HashAlgorithmIdentifier = AlgorithmIdentifier;
86668666
type HeadersInit = [string, string][] | Record<string, string> | Headers;
86678667
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
86688668
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
8669+
type ImageDataArray = Uint8ClampedArray;
86698670
type Int32List = Int32Array | GLint[];
86708671
type MessageEventSource = MessagePort | ServiceWorker;
86718672
type NamedCurve = string;

baselines/ts5.5/webworker.generated.d.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -4179,7 +4179,7 @@ interface ImageData {
41794179
*
41804180
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
41814181
*/
4182-
readonly data: Uint8ClampedArray;
4182+
readonly data: ImageDataArray;
41834183
/**
41844184
* Returns the actual dimensions of the data in the ImageData object, in pixels.
41854185
*
@@ -4197,7 +4197,7 @@ interface ImageData {
41974197
declare var ImageData: {
41984198
prototype: ImageData;
41994199
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
4200-
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
4200+
new(data: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
42014201
};
42024202

42034203
/**
@@ -9858,6 +9858,7 @@ type HeadersInit = [string, string][] | Record<string, string> | Headers;
98589858
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
98599859
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
98609860
type ImageBufferSource = AllowSharedBufferSource | ReadableStream;
9861+
type ImageDataArray = Uint8ClampedArray;
98619862
type Int32List = Int32Array | GLint[];
98629863
type MessageEventSource = MessagePort | ServiceWorker;
98639864
type NamedCurve = string;

baselines/webworker.generated.d.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -4179,7 +4179,7 @@ interface ImageData {
41794179
*
41804180
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
41814181
*/
4182-
readonly data: Uint8ClampedArray;
4182+
readonly data: ImageDataArray;
41834183
/**
41844184
* Returns the actual dimensions of the data in the ImageData object, in pixels.
41854185
*
@@ -4197,7 +4197,7 @@ interface ImageData {
41974197
declare var ImageData: {
41984198
prototype: ImageData;
41994199
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
4200-
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
4200+
new(data: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
42014201
};
42024202

42034203
/**
@@ -9858,6 +9858,7 @@ type HeadersInit = [string, string][] | Record<string, string> | Headers;
98589858
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
98599859
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
98609860
type ImageBufferSource = AllowSharedBufferSource | ReadableStream;
9861+
type ImageDataArray = Uint8ClampedArray;
98619862
type Int32List = Int32Array | GLint[];
98629863
type MessageEventSource = MessagePort | ServiceWorker;
98639864
type NamedCurve = string;

inputfiles/overridingTypes.jsonc

+12-3
Original file line numberDiff line numberDiff line change
@@ -1945,6 +1945,12 @@
19451945
}
19461946
}
19471947
},
1948+
// XXX: Float16Array is esnext-only as of 2025-04
1949+
// Not sure what to do here, for now disable it.
1950+
"Float16Array": {
1951+
"exposed": "",
1952+
"name": "Float16Array"
1953+
},
19481954
"HTMLButtonElement": {
19491955
"properties": {
19501956
"property": {
@@ -2088,9 +2094,12 @@
20882094
"WebTransportDatagramDuplexStream": {
20892095
"properties": {
20902096
"property": {
2091-
// WebTransportDatagramsWritable is not implemented by anyone as of 2025-03
2097+
// https://github.com/w3c/webtransport/pull/638 removed this but browsers still has this
20922098
"writable": {
2093-
"type": "WritableStream"
2099+
"name": "writable",
2100+
"type": "WritableStream",
2101+
"readonly": true,
2102+
"mdnUrl": "https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable"
20942103
}
20952104
}
20962105
}
@@ -3700,7 +3709,7 @@
37003709
}
37013710
},
37023711
"dictionaries": {
3703-
"dictionary": {
3712+
"dictionary": {
37043713
"FontFaceDescriptors": {
37053714
"members": {
37063715
"member": {

0 commit comments

Comments
 (0)