@types/web 0.0.97 → 0.0.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.d.ts +31 -3
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
47
47
 
48
48
  ## Deploy Metadata
49
49
 
50
- You can read what changed in version 0.0.97 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.97.
50
+ You can read what changed in version 0.0.99 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.99.
package/index.d.ts CHANGED
@@ -498,6 +498,10 @@ interface FilePropertyBag extends BlobPropertyBag {
498
498
  lastModified?: number;
499
499
  }
500
500
 
501
+ interface FileSystemCreateWritableOptions {
502
+ keepExistingData?: boolean;
503
+ }
504
+
501
505
  interface FileSystemFlags {
502
506
  create?: boolean;
503
507
  exclusive?: boolean;
@@ -1999,7 +2003,7 @@ interface VideoEncoderConfig {
1999
2003
  alpha?: AlphaOption;
2000
2004
  avc?: AvcEncoderConfig;
2001
2005
  bitrate?: number;
2002
- bitrateMode?: BitrateMode;
2006
+ bitrateMode?: VideoEncoderBitrateMode;
2003
2007
  codec: string;
2004
2008
  displayHeight?: number;
2005
2009
  displayWidth?: number;
@@ -2107,6 +2111,13 @@ interface WorkletOptions {
2107
2111
  credentials?: RequestCredentials;
2108
2112
  }
2109
2113
 
2114
+ interface WriteParams {
2115
+ data?: BufferSource | Blob | string | null;
2116
+ position?: number | null;
2117
+ size?: number | null;
2118
+ type: WriteCommandType;
2119
+ }
2120
+
2110
2121
  type NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; };
2111
2122
 
2112
2123
  declare var NodeFilter: {
@@ -2803,6 +2814,8 @@ declare var CSSConditionRule: {
2803
2814
  };
2804
2815
 
2805
2816
  interface CSSContainerRule extends CSSConditionRule {
2817
+ readonly containerName: string;
2818
+ readonly containerQuery: string;
2806
2819
  }
2807
2820
 
2808
2821
  declare var CSSContainerRule: {
@@ -5937,6 +5950,7 @@ declare var FileSystemFileEntry: {
5937
5950
  /** Available only in secure contexts. */
5938
5951
  interface FileSystemFileHandle extends FileSystemHandle {
5939
5952
  readonly kind: "file";
5953
+ createWritable(options?: FileSystemCreateWritableOptions): Promise<FileSystemWritableFileStream>;
5940
5954
  getFile(): Promise<File>;
5941
5955
  }
5942
5956
 
@@ -5957,6 +5971,18 @@ declare var FileSystemHandle: {
5957
5971
  new(): FileSystemHandle;
5958
5972
  };
5959
5973
 
5974
+ /** Available only in secure contexts. */
5975
+ interface FileSystemWritableFileStream extends WritableStream {
5976
+ seek(position: number): Promise<void>;
5977
+ truncate(size: number): Promise<void>;
5978
+ write(data: FileSystemWriteChunkType): Promise<void>;
5979
+ }
5980
+
5981
+ declare var FileSystemWritableFileStream: {
5982
+ prototype: FileSystemWritableFileStream;
5983
+ new(): FileSystemWritableFileStream;
5984
+ };
5985
+
5960
5986
  /** Focus-related events like focus, blur, focusin, or focusout. */
5961
5987
  interface FocusEvent extends UIEvent {
5962
5988
  readonly relatedTarget: EventTarget | null;
@@ -19222,6 +19248,7 @@ type ConstrainULong = number | ConstrainULongRange;
19222
19248
  type DOMHighResTimeStamp = number;
19223
19249
  type EpochTimeStamp = number;
19224
19250
  type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
19251
+ type FileSystemWriteChunkType = BufferSource | Blob | string | WriteParams;
19225
19252
  type Float32List = Float32Array | GLfloat[];
19226
19253
  type FormDataEntryValue = File | string;
19227
19254
  type GLbitfield = number;
@@ -19280,7 +19307,6 @@ type AutomationRate = "a-rate" | "k-rate";
19280
19307
  type AvcBitstreamFormat = "annexb" | "avc";
19281
19308
  type BinaryType = "arraybuffer" | "blob";
19282
19309
  type BiquadFilterType = "allpass" | "bandpass" | "highpass" | "highshelf" | "lowpass" | "lowshelf" | "notch" | "peaking";
19283
- type BitrateMode = "constant" | "variable";
19284
19310
  type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum";
19285
19311
  type CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time";
19286
19312
  type CanPlayTypeResult = "" | "maybe" | "probably";
@@ -19329,7 +19355,7 @@ type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
19329
19355
  type IDBRequestReadyState = "done" | "pending";
19330
19356
  type IDBTransactionDurability = "default" | "relaxed" | "strict";
19331
19357
  type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
19332
- type ImageOrientation = "flipY" | "from-image";
19358
+ type ImageOrientation = "flipY" | "from-image" | "none";
19333
19359
  type ImageSmoothingQuality = "high" | "low" | "medium";
19334
19360
  type InsertPosition = "afterbegin" | "afterend" | "beforebegin" | "beforeend";
19335
19361
  type IterationCompositeOperation = "accumulate" | "replace";
@@ -19428,6 +19454,7 @@ type TouchType = "direct" | "stylus";
19428
19454
  type TransferFunction = "hlg" | "pq" | "srgb";
19429
19455
  type UserVerificationRequirement = "discouraged" | "preferred" | "required";
19430
19456
  type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";
19457
+ type VideoEncoderBitrateMode = "constant" | "quantizer" | "variable";
19431
19458
  type VideoFacingModeEnum = "environment" | "left" | "right" | "user";
19432
19459
  type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
19433
19460
  type VideoPixelFormat = "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "NV12" | "RGBA" | "RGBX";
@@ -19435,4 +19462,5 @@ type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
19435
19462
  type WakeLockType = "screen";
19436
19463
  type WebGLPowerPreference = "default" | "high-performance" | "low-power";
19437
19464
  type WorkerType = "classic" | "module";
19465
+ type WriteCommandType = "seek" | "truncate" | "write";
19438
19466
  type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.97",
3
+ "version": "0.0.99",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],