@types/web 0.0.96 → 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.
- package/README.md +1 -1
- package/index.d.ts +31 -2
- 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.
|
|
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: {
|
|
@@ -3509,6 +3522,7 @@ interface CSSStyleDeclaration {
|
|
|
3509
3522
|
paddingLeft: string;
|
|
3510
3523
|
paddingRight: string;
|
|
3511
3524
|
paddingTop: string;
|
|
3525
|
+
page: string;
|
|
3512
3526
|
pageBreakAfter: string;
|
|
3513
3527
|
pageBreakBefore: string;
|
|
3514
3528
|
pageBreakInside: string;
|
|
@@ -5936,6 +5950,7 @@ declare var FileSystemFileEntry: {
|
|
|
5936
5950
|
/** Available only in secure contexts. */
|
|
5937
5951
|
interface FileSystemFileHandle extends FileSystemHandle {
|
|
5938
5952
|
readonly kind: "file";
|
|
5953
|
+
createWritable(options?: FileSystemCreateWritableOptions): Promise<FileSystemWritableFileStream>;
|
|
5939
5954
|
getFile(): Promise<File>;
|
|
5940
5955
|
}
|
|
5941
5956
|
|
|
@@ -5956,6 +5971,18 @@ declare var FileSystemHandle: {
|
|
|
5956
5971
|
new(): FileSystemHandle;
|
|
5957
5972
|
};
|
|
5958
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
|
+
|
|
5959
5986
|
/** Focus-related events like focus, blur, focusin, or focusout. */
|
|
5960
5987
|
interface FocusEvent extends UIEvent {
|
|
5961
5988
|
readonly relatedTarget: EventTarget | null;
|
|
@@ -17777,7 +17804,7 @@ interface WindowOrWorkerGlobalScope {
|
|
|
17777
17804
|
reportError(e: any): void;
|
|
17778
17805
|
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
17779
17806
|
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
17780
|
-
structuredClone(value:
|
|
17807
|
+
structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;
|
|
17781
17808
|
}
|
|
17782
17809
|
|
|
17783
17810
|
interface WindowSessionStorage {
|
|
@@ -19194,7 +19221,7 @@ declare function queueMicrotask(callback: VoidFunction): void;
|
|
|
19194
19221
|
declare function reportError(e: any): void;
|
|
19195
19222
|
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
19196
19223
|
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
19197
|
-
declare function structuredClone(value:
|
|
19224
|
+
declare function structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;
|
|
19198
19225
|
declare var sessionStorage: Storage;
|
|
19199
19226
|
declare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
19200
19227
|
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -19221,6 +19248,7 @@ type ConstrainULong = number | ConstrainULongRange;
|
|
|
19221
19248
|
type DOMHighResTimeStamp = number;
|
|
19222
19249
|
type EpochTimeStamp = number;
|
|
19223
19250
|
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
|
|
19251
|
+
type FileSystemWriteChunkType = BufferSource | Blob | string | WriteParams;
|
|
19224
19252
|
type Float32List = Float32Array | GLfloat[];
|
|
19225
19253
|
type FormDataEntryValue = File | string;
|
|
19226
19254
|
type GLbitfield = number;
|
|
@@ -19434,4 +19462,5 @@ type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
|
|
|
19434
19462
|
type WakeLockType = "screen";
|
|
19435
19463
|
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
|
19436
19464
|
type WorkerType = "classic" | "module";
|
|
19465
|
+
type WriteCommandType = "seek" | "truncate" | "write";
|
|
19437
19466
|
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
|