@types/chrome 0.0.266 → 0.0.267

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. chrome/README.md +1 -1
  2. chrome/index.d.ts +10 -1
  3. chrome/package.json +2 -2
chrome/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for chrome (http://developer.chrome.com/e
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Sun, 07 Apr 2024 09:35:59 GMT
11
+ * Last updated: Sat, 27 Apr 2024 23:07:26 GMT
12
12
  * Dependencies: [@types/filesystem](https://npmjs.com/package/@types/filesystem), [@types/har-format](https://npmjs.com/package/@types/har-format)
13
13
 
14
14
  # Credits
chrome/index.d.ts CHANGED
@@ -3779,6 +3779,11 @@ declare namespace chrome.fileSystemProvider {
3779
3779
  id: string;
3780
3780
  }
3781
3781
 
3782
+ export interface CloudFileInfo {
3783
+ /** A tag that represents the version of the file. */
3784
+ versionTag?: string | undefined;
3785
+ }
3786
+
3782
3787
  export interface EntryMetadata {
3783
3788
  /** True if it is a directory. Must be provided if requested in `options`. */
3784
3789
  isDirectory?: boolean;
@@ -3794,6 +3799,8 @@ declare namespace chrome.fileSystemProvider {
3794
3799
  thumbnail?: string | undefined;
3795
3800
  /** Optional. Cloud storage representation of this entry. Must be provided if requested in `options` and the file is backed by cloud storage. For local files not backed by cloud storage, it should be undefined when requested. */
3796
3801
  cloudIdentifier?: CloudIdentifier | undefined;
3802
+ /** Optional. Information that identifies a specific file in the underlying cloud file system. Must be provided if requested in `options` and the file is backed by cloud storage. */
3803
+ cloudFileInfo?: CloudFileInfo | undefined;
3797
3804
  }
3798
3805
 
3799
3806
  export interface FileSystemInfo {
@@ -3931,6 +3938,8 @@ declare namespace chrome.fileSystemProvider {
3931
3938
  thumbnail: boolean;
3932
3939
  /** Set to true if `cloudIdentifier` is requested. */
3933
3940
  cloudIdentifier: boolean;
3941
+ /** Set to true if `cloudFileInfo` is requested. */
3942
+ cloudFileInfo: boolean;
3934
3943
  }
3935
3944
 
3936
3945
  export interface DirectoryPathRequestedEventOptions extends RequestedEventOptions {
@@ -4039,7 +4048,7 @@ declare namespace chrome.fileSystemProvider {
4039
4048
  chrome.events.Event<
4040
4049
  (
4041
4050
  options: OpenFileRequestedEventOptions,
4042
- successCallback: Function,
4051
+ successCallback: (metadata?: EntryMetadata) => void,
4043
4052
  errorCallback: (error: string) => void,
4044
4053
  ) => void
4045
4054
  >
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.266",
3
+ "version": "0.0.267",
4
4
  "description": "TypeScript definitions for chrome",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome",
6
6
  "license": "MIT",
@@ -93,6 +93,6 @@
93
93
  "@types/filesystem": "*",
94
94
  "@types/har-format": "*"
95
95
  },
96
- "typesPublisherContentHash": "a6004e3bd4b3b10a9b226024fe0d1cb43e65d2ea1862d8ca3bcf9c5ba3a71713",
96
+ "typesPublisherContentHash": "d21a90653c0ee65ac9a146a42fa7c837263588b5706b4100fcae0979c795ab40",
97
97
  "typeScriptVersion": "4.7"
98
98
  }