@types/sharedworker 0.0.94 → 0.0.95
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.
- package/README.md +1 -1
- package/index.d.ts +26 -0
- 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.
|
|
31
|
+
You can read what changed in version 0.0.95 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.95.
|
package/index.d.ts
CHANGED
|
@@ -182,6 +182,10 @@ interface FilePropertyBag extends BlobPropertyBag {
|
|
|
182
182
|
lastModified?: number;
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
+
interface FileSystemCreateWritableOptions {
|
|
186
|
+
keepExistingData?: boolean;
|
|
187
|
+
}
|
|
188
|
+
|
|
185
189
|
interface FileSystemGetDirectoryOptions {
|
|
186
190
|
create?: boolean;
|
|
187
191
|
}
|
|
@@ -692,6 +696,13 @@ interface WorkerOptions {
|
|
|
692
696
|
type?: WorkerType;
|
|
693
697
|
}
|
|
694
698
|
|
|
699
|
+
interface WriteParams {
|
|
700
|
+
data?: BufferSource | Blob | string | null;
|
|
701
|
+
position?: number | null;
|
|
702
|
+
size?: number | null;
|
|
703
|
+
type: WriteCommandType;
|
|
704
|
+
}
|
|
705
|
+
|
|
695
706
|
/** 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. */
|
|
696
707
|
interface ANGLE_instanced_arrays {
|
|
697
708
|
drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
|
|
@@ -1890,6 +1901,7 @@ declare var FileSystemDirectoryHandle: {
|
|
|
1890
1901
|
/** Available only in secure contexts. */
|
|
1891
1902
|
interface FileSystemFileHandle extends FileSystemHandle {
|
|
1892
1903
|
readonly kind: "file";
|
|
1904
|
+
createWritable(options?: FileSystemCreateWritableOptions): Promise<FileSystemWritableFileStream>;
|
|
1893
1905
|
getFile(): Promise<File>;
|
|
1894
1906
|
}
|
|
1895
1907
|
|
|
@@ -1910,6 +1922,18 @@ declare var FileSystemHandle: {
|
|
|
1910
1922
|
new(): FileSystemHandle;
|
|
1911
1923
|
};
|
|
1912
1924
|
|
|
1925
|
+
/** Available only in secure contexts. */
|
|
1926
|
+
interface FileSystemWritableFileStream extends WritableStream {
|
|
1927
|
+
seek(position: number): Promise<void>;
|
|
1928
|
+
truncate(size: number): Promise<void>;
|
|
1929
|
+
write(data: FileSystemWriteChunkType): Promise<void>;
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1932
|
+
declare var FileSystemWritableFileStream: {
|
|
1933
|
+
prototype: FileSystemWritableFileStream;
|
|
1934
|
+
new(): FileSystemWritableFileStream;
|
|
1935
|
+
};
|
|
1936
|
+
|
|
1913
1937
|
interface FontFace {
|
|
1914
1938
|
ascentOverride: string;
|
|
1915
1939
|
descentOverride: string;
|
|
@@ -6161,6 +6185,7 @@ type CanvasImageSource = ImageBitmap | OffscreenCanvas;
|
|
|
6161
6185
|
type DOMHighResTimeStamp = number;
|
|
6162
6186
|
type EpochTimeStamp = number;
|
|
6163
6187
|
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
|
|
6188
|
+
type FileSystemWriteChunkType = BufferSource | Blob | string | WriteParams;
|
|
6164
6189
|
type Float32List = Float32Array | GLfloat[];
|
|
6165
6190
|
type FormDataEntryValue = File | string;
|
|
6166
6191
|
type GLbitfield = number;
|
|
@@ -6255,4 +6280,5 @@ type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
|
|
|
6255
6280
|
type TransferFunction = "hlg" | "pq" | "srgb";
|
|
6256
6281
|
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
|
6257
6282
|
type WorkerType = "classic" | "module";
|
|
6283
|
+
type WriteCommandType = "seek" | "truncate" | "write";
|
|
6258
6284
|
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
|