@types/web 0.0.47 → 0.0.48

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 +61 -9
  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.47 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.47.
50
+ You can read what changed in version 0.0.48 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.48.
package/index.d.ts CHANGED
@@ -469,6 +469,18 @@ interface FileSystemFlags {
469
469
  exclusive?: boolean;
470
470
  }
471
471
 
472
+ interface FileSystemGetDirectoryOptions {
473
+ create?: boolean;
474
+ }
475
+
476
+ interface FileSystemGetFileOptions {
477
+ create?: boolean;
478
+ }
479
+
480
+ interface FileSystemRemoveOptions {
481
+ recursive?: boolean;
482
+ }
483
+
472
484
  interface FocusEventInit extends UIEventInit {
473
485
  relatedTarget?: EventTarget | null;
474
486
  }
@@ -1181,7 +1193,7 @@ interface RTCAnswerOptions extends RTCOfferAnswerOptions {
1181
1193
  }
1182
1194
 
1183
1195
  interface RTCCertificateExpiration {
1184
- expires?: EpochTimeStamp;
1196
+ expires?: number;
1185
1197
  }
1186
1198
 
1187
1199
  interface RTCConfiguration {
@@ -1630,7 +1642,7 @@ interface StreamPipeOptions {
1630
1642
  }
1631
1643
 
1632
1644
  interface StructuredSerializeOptions {
1633
- transfer?: any[];
1645
+ transfer?: Transferable[];
1634
1646
  }
1635
1647
 
1636
1648
  interface SubmitEventInit extends EventInit {
@@ -3235,7 +3247,7 @@ declare var CacheStorage: {
3235
3247
 
3236
3248
  interface CanvasCompositing {
3237
3249
  globalAlpha: number;
3238
- globalCompositeOperation: string;
3250
+ globalCompositeOperation: GlobalCompositeOperation;
3239
3251
  }
3240
3252
 
3241
3253
  interface CanvasDrawImage {
@@ -5078,6 +5090,19 @@ declare var FileSystemDirectoryEntry: {
5078
5090
  new(): FileSystemDirectoryEntry;
5079
5091
  };
5080
5092
 
5093
+ /** Available only in secure contexts. */
5094
+ interface FileSystemDirectoryHandle extends FileSystemHandle {
5095
+ getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
5096
+ getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
5097
+ removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
5098
+ resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;
5099
+ }
5100
+
5101
+ declare var FileSystemDirectoryHandle: {
5102
+ prototype: FileSystemDirectoryHandle;
5103
+ new(): FileSystemDirectoryHandle;
5104
+ };
5105
+
5081
5106
  interface FileSystemDirectoryReader {
5082
5107
  readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;
5083
5108
  }
@@ -5110,6 +5135,28 @@ declare var FileSystemFileEntry: {
5110
5135
  new(): FileSystemFileEntry;
5111
5136
  };
5112
5137
 
5138
+ /** Available only in secure contexts. */
5139
+ interface FileSystemFileHandle extends FileSystemHandle {
5140
+ getFile(): Promise<File>;
5141
+ }
5142
+
5143
+ declare var FileSystemFileHandle: {
5144
+ prototype: FileSystemFileHandle;
5145
+ new(): FileSystemFileHandle;
5146
+ };
5147
+
5148
+ /** Available only in secure contexts. */
5149
+ interface FileSystemHandle {
5150
+ readonly kind: FileSystemHandleKind;
5151
+ readonly name: string;
5152
+ isSameEntry(other: FileSystemHandle): Promise<boolean>;
5153
+ }
5154
+
5155
+ declare var FileSystemHandle: {
5156
+ prototype: FileSystemHandle;
5157
+ new(): FileSystemHandle;
5158
+ };
5159
+
5113
5160
  /** Focus-related events like focus, blur, focusin, or focusout. */
5114
5161
  interface FocusEvent extends UIEvent {
5115
5162
  readonly relatedTarget: EventTarget | null;
@@ -6627,7 +6674,8 @@ interface HTMLImageElement extends HTMLElement {
6627
6674
  hspace: number;
6628
6675
  /** Sets or retrieves whether the image is a server-side image map. */
6629
6676
  isMap: boolean;
6630
- loading: string;
6677
+ /** Sets or retrieves the policy for loading image elements that are outside the viewport. */
6678
+ loading: "eager" | "lazy";
6631
6679
  /**
6632
6680
  * Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.
6633
6681
  * @deprecated
@@ -7085,6 +7133,7 @@ interface HTMLMetaElement extends HTMLElement {
7085
7133
  content: string;
7086
7134
  /** Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. */
7087
7135
  httpEquiv: string;
7136
+ media: string;
7088
7137
  /** Sets or retrieves the value specified in the content attribute of the meta object. */
7089
7138
  name: string;
7090
7139
  /**
@@ -13377,6 +13426,7 @@ declare var StorageEvent: {
13377
13426
  /** Available only in secure contexts. */
13378
13427
  interface StorageManager {
13379
13428
  estimate(): Promise<StorageEstimate>;
13429
+ getDirectory(): Promise<FileSystemDirectoryHandle>;
13380
13430
  persist(): Promise<boolean>;
13381
13431
  persisted(): Promise<boolean>;
13382
13432
  }
@@ -16310,8 +16360,8 @@ interface WindowOrWorkerGlobalScope {
16310
16360
  readonly performance: Performance;
16311
16361
  atob(data: string): string;
16312
16362
  btoa(data: string): string;
16313
- clearInterval(handle?: number): void;
16314
- clearTimeout(handle?: number): void;
16363
+ clearInterval(id?: number): void;
16364
+ clearTimeout(id?: number): void;
16315
16365
  createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
16316
16366
  createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
16317
16367
  fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
@@ -16805,7 +16855,7 @@ declare namespace WebAssembly {
16805
16855
 
16806
16856
  type ImportExportKind = "function" | "global" | "memory" | "table";
16807
16857
  type TableKind = "anyfunc" | "externref";
16808
- type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64";
16858
+ type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128";
16809
16859
  type ExportValue = Function | Global | Memory | Table;
16810
16860
  type Exports = Record<string, ExportValue>;
16811
16861
  type ImportValue = ExportValue | number;
@@ -17585,8 +17635,8 @@ declare var origin: string;
17585
17635
  declare var performance: Performance;
17586
17636
  declare function atob(data: string): string;
17587
17637
  declare function btoa(data: string): string;
17588
- declare function clearInterval(handle?: number): void;
17589
- declare function clearTimeout(handle?: number): void;
17638
+ declare function clearInterval(id?: number): void;
17639
+ declare function clearTimeout(id?: number): void;
17590
17640
  declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
17591
17641
  declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
17592
17642
  declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
@@ -17703,12 +17753,14 @@ type DocumentReadyState = "complete" | "interactive" | "loading";
17703
17753
  type DocumentVisibilityState = "hidden" | "visible";
17704
17754
  type EndOfStreamError = "decode" | "network";
17705
17755
  type EndingType = "native" | "transparent";
17756
+ type FileSystemHandleKind = "directory" | "file";
17706
17757
  type FillMode = "auto" | "backwards" | "both" | "forwards" | "none";
17707
17758
  type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
17708
17759
  type FontFaceSetLoadStatus = "loaded" | "loading";
17709
17760
  type FullscreenNavigationUI = "auto" | "hide" | "show";
17710
17761
  type GamepadHapticActuatorType = "vibration";
17711
17762
  type GamepadMappingType = "" | "standard" | "xr-standard";
17763
+ type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
17712
17764
  type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
17713
17765
  type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
17714
17766
  type IDBRequestReadyState = "done" | "pending";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.47",
3
+ "version": "0.0.48",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "MIT",
6
6
  "contributors": [],