@types/web 0.0.97 → 0.0.98

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 +28 -0
  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.98 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.98.
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;
@@ -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;
@@ -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.98",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],