@types/chrome 0.0.245 → 0.0.247

Sign up to get free protection for your applications and to get access to all the features.
chrome/LICENSE CHANGED
File without changes
chrome/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Chrome extension development (http://
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 04 Sep 2023 15:40:47 GMT
11
+ * Last updated: Tue, 17 Oct 2023 08:35:46 GMT
12
12
  * Dependencies: [@types/filesystem](https://npmjs.com/package/@types/filesystem), [@types/har-format](https://npmjs.com/package/@types/har-format)
13
13
  * Global values: `chrome`
14
14
 
File without changes
File without changes
chrome/index.d.ts CHANGED
@@ -2781,6 +2781,22 @@ declare namespace chrome.documentScan {
2781
2781
  export function scan(options: DocumentScanOptions, callback: (result: DocumentScanCallbackArg) => void): void;
2782
2782
  }
2783
2783
 
2784
+ ////////////////////
2785
+ // DOM
2786
+ ////////////////////
2787
+ /**
2788
+ * Use the chrome.dom API to programmatically access shadow root in an HTMLElement.
2789
+ * Availability: Since Chrome 88+.
2790
+ */
2791
+ declare namespace chrome.dom {
2792
+ /**
2793
+ * Since Chrome 88+.
2794
+ * Requests chrome to return the open/closed shadow roots else return null.
2795
+ * @param element reference of HTMLElement.
2796
+ */
2797
+ export function openOrClosedShadowRoot(element: HTMLElement): ShadowRoot;
2798
+ }
2799
+
2784
2800
  ////////////////////
2785
2801
  // Dev Tools - Downloads
2786
2802
  ////////////////////
@@ -3716,6 +3732,13 @@ declare namespace chrome.fileSystemProvider {
3716
3732
  lastTag?: string | undefined;
3717
3733
  }
3718
3734
 
3735
+ export interface CloudIdentifier {
3736
+ /** Identifier for the cloud storage provider (e.g. 'drive.google.com'). */
3737
+ providerName: string;
3738
+ /** The provider's identifier for the given file/directory. */
3739
+ id: string;
3740
+ }
3741
+
3719
3742
  export interface EntryMetadata {
3720
3743
  /** True if it is a directory. Must be provided if requested in `options`. */
3721
3744
  isDirectory?: boolean;
@@ -3729,6 +3752,8 @@ declare namespace chrome.fileSystemProvider {
3729
3752
  mimeType?: string | undefined;
3730
3753
  /** Optional. Thumbnail image as a data URI in either PNG, JPEG or WEBP format, at most 32 KB in size. Optional, but can be provided only when explicitly requested by the onGetMetadataRequested event. */
3731
3754
  thumbnail?: string | undefined;
3755
+ /** 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. */
3756
+ cloudIdentifier?: CloudIdentifier | undefined;
3732
3757
  }
3733
3758
 
3734
3759
  export interface FileSystemInfo {
@@ -3852,34 +3877,36 @@ declare namespace chrome.fileSystemProvider {
3852
3877
  }
3853
3878
 
3854
3879
  export interface MetadataRequestedEventOptions extends EntryPathRequestedEventOptions {
3855
- /** Set to true if the thumbnail is requested. */
3856
- thumbnail: boolean;
3857
- /** Set to true if is_directory value is requested. */
3880
+ /** Set to true if `is_directory` value is requested. */
3858
3881
  isDirectory: boolean;
3859
- /** Set to true if name value is requested. */
3882
+ /** Set to true if `name` value is requested. */
3860
3883
  name: boolean;
3861
- /** Set to true if size value is requested. */
3884
+ /** Set to true if `size` value is requested. */
3862
3885
  size: boolean;
3863
- /** Set to true if modificationTime value is requested. */
3886
+ /** Set to true if `modificationTime` value is requested. */
3864
3887
  modificationTime: boolean;
3865
- /** Set to true if mimeType value is requested. */
3888
+ /** Set to true if `mimeType` value is requested. */
3866
3889
  mimeType: boolean;
3890
+ /** Set to true if `thumbnail` is requested. */
3891
+ thumbnail: boolean;
3892
+ /** Set to true if `cloudIdentifier` is requested. */
3893
+ cloudIdentifier: boolean;
3867
3894
  }
3868
3895
 
3869
3896
  export interface DirectoryPathRequestedEventOptions extends RequestedEventOptions {
3870
3897
  /** The path of the directory which is to be operated on. */
3871
3898
  directoryPath: string;
3872
- /** Set to true if is_directory value is requested. */
3899
+ /** Set to true if `is_directory` value is requested. */
3873
3900
  isDirectory: boolean;
3874
- /** Set to true if name value is requested. */
3901
+ /** Set to true if `name` value is requested. */
3875
3902
  name: boolean;
3876
- /** Set to true if size value is requested. */
3903
+ /** Set to true if `size` value is requested. */
3877
3904
  size: boolean;
3878
- /** Set to true if modificationTime value is requested. */
3905
+ /** Set to true if `modificationTime` value is requested. */
3879
3906
  modificationTime: boolean;
3880
- /** Set to true if mimeType value is requested. */
3907
+ /** Set to true if `mimeType` value is requested. */
3881
3908
  mimeType: boolean;
3882
- /** Set to true if the thumbnail is requested. */
3909
+ /** Set to true if `thumbnail` is requested. */
3883
3910
  thumbnail: boolean;
3884
3911
  }
3885
3912
 
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.245",
3
+ "version": "0.0.247",
4
4
  "description": "TypeScript definitions for Chrome extension development",
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": "1681e11b9d44dd962039169af8b8f1b073e1b060dcdd20f7ba10c1550f20c3d9",
97
- "typeScriptVersion": "4.3"
96
+ "typesPublisherContentHash": "512090978eb88598330492b74665ed86878337edf6a414a257d546788aab1765",
97
+ "typeScriptVersion": "4.5"
98
98
  }