Skip to content

Commit

Permalink
Update dom packages for TS 4.7 (#59983)
Browse files Browse the repository at this point in the history
- dom-mediacapture-transform
- dom-navigation-preload
- dom-webcodecs

These types now match the declarations that will ship with TS 4.7.
  • Loading branch information
sandersn committed Apr 20, 2022
1 parent c9dc0b3 commit d9f6a81
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion types/dom-mediacapture-transform/index.d.ts
Expand Up @@ -2,7 +2,7 @@
// Project: https://w3c.github.io/mediacapture-transform/
// Definitions by: Ben Wagner <https://github.com/dogben>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 3.9
// Minimum TypeScript Version: 4.7

// In general, these types are only available behind a command line flag or an origin trial in
// Chrome 90+.
Expand Down
4 changes: 2 additions & 2 deletions types/dom-navigation-preload/index.d.ts
Expand Up @@ -25,6 +25,6 @@ declare var NavigationPreloadManager: {

/*~ https://w3c.github.io/ServiceWorker/#dictdef-navigationpreloadstate */
interface NavigationPreloadState {
enabled: boolean;
headerValue: string;
enabled?: boolean;
headerValue?: string;
}
2 changes: 1 addition & 1 deletion types/dom-webcodecs/index.d.ts
Expand Up @@ -2,7 +2,7 @@
// Project: https://w3c.github.io/webcodecs/
// Definitions by: Ben Wagner <https://github.com/dogben>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 3.9
// Minimum TypeScript Version: 4.7

// Versioning:
// Until the WebCodecs spec is finalized, the major version number is 0. I have chosen to use minor
Expand Down
6 changes: 3 additions & 3 deletions types/dom-webcodecs/webcodecs.generated.d.ts
Expand Up @@ -411,7 +411,7 @@ type EncodedAudioChunkType = "delta" | "key";
type EncodedVideoChunkType = "delta" | "key";
type HardwarePreference = "no-preference" | "prefer-hardware" | "prefer-software";
type LatencyMode = "quality" | "realtime";
type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";
type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
// type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";
// type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
type VideoPixelFormat = "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "NV12" | "RGBA" | "RGBX";
type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
// type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";

0 comments on commit d9f6a81

Please sign in to comment.