@types/serviceworker 0.0.65 → 0.0.67

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 +27 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -28,4 +28,4 @@ This project does not respect semantic versioning as almost every change could p
28
28
 
29
29
  ## Deploy Metadata
30
30
 
31
- You can read what changed in version 0.0.65 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.65.
31
+ You can read what changed in version 0.0.67 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.67.
package/index.d.ts CHANGED
@@ -207,6 +207,10 @@ interface FilePropertyBag extends BlobPropertyBag {
207
207
  lastModified?: number;
208
208
  }
209
209
 
210
+ interface FileSystemCreateWritableOptions {
211
+ keepExistingData?: boolean;
212
+ }
213
+
210
214
  interface FileSystemGetDirectoryOptions {
211
215
  create?: boolean;
212
216
  }
@@ -720,6 +724,13 @@ interface WebGLContextEventInit extends EventInit {
720
724
  statusMessage?: string;
721
725
  }
722
726
 
727
+ interface WriteParams {
728
+ data?: BufferSource | Blob | string | null;
729
+ position?: number | null;
730
+ size?: number | null;
731
+ type: WriteCommandType;
732
+ }
733
+
723
734
  /** The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. */
724
735
  interface ANGLE_instanced_arrays {
725
736
  drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
@@ -1971,6 +1982,7 @@ declare var FileSystemDirectoryHandle: {
1971
1982
  /** Available only in secure contexts. */
1972
1983
  interface FileSystemFileHandle extends FileSystemHandle {
1973
1984
  readonly kind: "file";
1985
+ createWritable(options?: FileSystemCreateWritableOptions): Promise<FileSystemWritableFileStream>;
1974
1986
  getFile(): Promise<File>;
1975
1987
  }
1976
1988
 
@@ -1991,6 +2003,18 @@ declare var FileSystemHandle: {
1991
2003
  new(): FileSystemHandle;
1992
2004
  };
1993
2005
 
2006
+ /** Available only in secure contexts. */
2007
+ interface FileSystemWritableFileStream extends WritableStream {
2008
+ seek(position: number): Promise<void>;
2009
+ truncate(size: number): Promise<void>;
2010
+ write(data: FileSystemWriteChunkType): Promise<void>;
2011
+ }
2012
+
2013
+ declare var FileSystemWritableFileStream: {
2014
+ prototype: FileSystemWritableFileStream;
2015
+ new(): FileSystemWritableFileStream;
2016
+ };
2017
+
1994
2018
  interface FontFace {
1995
2019
  ascentOverride: string;
1996
2020
  descentOverride: string;
@@ -6150,6 +6174,7 @@ type CanvasImageSource = ImageBitmap | OffscreenCanvas;
6150
6174
  type DOMHighResTimeStamp = number;
6151
6175
  type EpochTimeStamp = number;
6152
6176
  type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
6177
+ type FileSystemWriteChunkType = BufferSource | Blob | string | WriteParams;
6153
6178
  type Float32List = Float32Array | GLfloat[];
6154
6179
  type FormDataEntryValue = File | string;
6155
6180
  type GLbitfield = number;
@@ -6215,7 +6240,7 @@ type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
6215
6240
  type IDBRequestReadyState = "done" | "pending";
6216
6241
  type IDBTransactionDurability = "default" | "relaxed" | "strict";
6217
6242
  type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
6218
- type ImageOrientation = "flipY" | "from-image";
6243
+ type ImageOrientation = "flipY" | "from-image" | "none";
6219
6244
  type ImageSmoothingQuality = "high" | "low" | "medium";
6220
6245
  type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
6221
6246
  type KeyType = "private" | "public" | "secret";
@@ -6247,3 +6272,4 @@ type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
6247
6272
  type TransferFunction = "hlg" | "pq" | "srgb";
6248
6273
  type WebGLPowerPreference = "default" | "high-performance" | "low-power";
6249
6274
  type WorkerType = "classic" | "module";
6275
+ type WriteCommandType = "seek" | "truncate" | "write";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/serviceworker",
3
- "version": "0.0.65",
3
+ "version": "0.0.67",
4
4
  "description": "Types for the global scope of Service Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],