Skip to content

Commit 513aae2

Browse files
authored
Manually update to webref/[email protected] (#1524)
Co-authored-by: saschanaz <[email protected]>
1 parent 8f8e42d commit 513aae2

File tree

7 files changed

+768
-731
lines changed

7 files changed

+768
-731
lines changed

baselines/dom.generated.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2001,7 +2001,7 @@ interface VideoEncoderConfig {
20012001
alpha?: AlphaOption;
20022002
avc?: AvcEncoderConfig;
20032003
bitrate?: number;
2004-
bitrateMode?: BitrateMode;
2004+
bitrateMode?: VideoEncoderBitrateMode;
20052005
codec: string;
20062006
displayHeight?: number;
20072007
displayWidth?: number;
@@ -19305,7 +19305,6 @@ type AutomationRate = "a-rate" | "k-rate";
1930519305
type AvcBitstreamFormat = "annexb" | "avc";
1930619306
type BinaryType = "arraybuffer" | "blob";
1930719307
type BiquadFilterType = "allpass" | "bandpass" | "highpass" | "highshelf" | "lowpass" | "lowshelf" | "notch" | "peaking";
19308-
type BitrateMode = "constant" | "variable";
1930919308
type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum";
1931019309
type CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time";
1931119310
type CanPlayTypeResult = "" | "maybe" | "probably";
@@ -19354,7 +19353,7 @@ type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
1935419353
type IDBRequestReadyState = "done" | "pending";
1935519354
type IDBTransactionDurability = "default" | "relaxed" | "strict";
1935619355
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
19357-
type ImageOrientation = "flipY" | "from-image";
19356+
type ImageOrientation = "flipY" | "from-image" | "none";
1935819357
type ImageSmoothingQuality = "high" | "low" | "medium";
1935919358
type InsertPosition = "afterbegin" | "afterend" | "beforebegin" | "beforeend";
1936019359
type IterationCompositeOperation = "accumulate" | "replace";
@@ -19453,6 +19452,7 @@ type TouchType = "direct" | "stylus";
1945319452
type TransferFunction = "hlg" | "pq" | "srgb";
1945419453
type UserVerificationRequirement = "discouraged" | "preferred" | "required";
1945519454
type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";
19455+
type VideoEncoderBitrateMode = "constant" | "quantizer" | "variable";
1945619456
type VideoFacingModeEnum = "environment" | "left" | "right" | "user";
1945719457
type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
1945819458
type VideoPixelFormat = "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "NV12" | "RGBA" | "RGBX";

baselines/serviceworker.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6238,7 +6238,7 @@ type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
62386238
type IDBRequestReadyState = "done" | "pending";
62396239
type IDBTransactionDurability = "default" | "relaxed" | "strict";
62406240
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
6241-
type ImageOrientation = "flipY" | "from-image";
6241+
type ImageOrientation = "flipY" | "from-image" | "none";
62426242
type ImageSmoothingQuality = "high" | "low" | "medium";
62436243
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
62446244
type KeyType = "private" | "public" | "secret";

baselines/sharedworker.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6246,7 +6246,7 @@ type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
62466246
type IDBRequestReadyState = "done" | "pending";
62476247
type IDBTransactionDurability = "default" | "relaxed" | "strict";
62486248
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
6249-
type ImageOrientation = "flipY" | "from-image";
6249+
type ImageOrientation = "flipY" | "from-image" | "none";
62506250
type ImageSmoothingQuality = "high" | "low" | "medium";
62516251
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
62526252
type KeyType = "private" | "public" | "secret";

baselines/webworker.generated.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ interface VideoEncoderConfig {
779779
alpha?: AlphaOption;
780780
avc?: AvcEncoderConfig;
781781
bitrate?: number;
782-
bitrateMode?: BitrateMode;
782+
bitrateMode?: VideoEncoderBitrateMode;
783783
codec: string;
784784
displayHeight?: number;
785785
displayWidth?: number;
@@ -6735,7 +6735,6 @@ type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams |
67356735
type AlphaOption = "discard" | "keep";
67366736
type AvcBitstreamFormat = "annexb" | "avc";
67376737
type BinaryType = "arraybuffer" | "blob";
6738-
type BitrateMode = "constant" | "variable";
67396738
type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum";
67406739
type CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time";
67416740
type CanvasDirection = "inherit" | "ltr" | "rtl";
@@ -6767,7 +6766,7 @@ type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
67676766
type IDBRequestReadyState = "done" | "pending";
67686767
type IDBTransactionDurability = "default" | "relaxed" | "strict";
67696768
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
6770-
type ImageOrientation = "flipY" | "from-image";
6769+
type ImageOrientation = "flipY" | "from-image" | "none";
67716770
type ImageSmoothingQuality = "high" | "low" | "medium";
67726771
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
67736772
type KeyType = "private" | "public" | "secret";
@@ -6800,6 +6799,7 @@ type ServiceWorkerState = "activated" | "activating" | "installed" | "installing
68006799
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
68016800
type TransferFunction = "hlg" | "pq" | "srgb";
68026801
type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";
6802+
type VideoEncoderBitrateMode = "constant" | "quantizer" | "variable";
68036803
type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
68046804
type VideoPixelFormat = "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "NV12" | "RGBA" | "RGBX";
68056805
type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";

inputfiles/overridingTypes.jsonc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,14 @@
455455
},
456456
"ValueType": {
457457
"legacyNamespace": "WebAssembly"
458+
},
459+
"ImageOrientation": {
460+
"value": [
461+
// The spec removed this but it's still in browsers and WebKit doesn't support the new one.
462+
// Keep it until it's safer to fully migrate.
463+
// See https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/1507#issuecomment-1454792451
464+
"none"
465+
]
458466
}
459467
}
460468
},

inputfiles/removedTypes.jsonc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,13 @@
596596
}
597597
}
598598
},
599+
"VideoEncoderEncodeOptions": {
600+
"members": {
601+
"member": {
602+
"vp9": null // Blink only as of 2023-03
603+
}
604+
}
605+
},
599606
"VideoFrameInit": {
600607
"members": {
601608
"member": {

0 commit comments

Comments
 (0)