@types/chrome 0.0.240 → 0.0.242
Sign up to get free protection for your applications and to get access to all the features.
- chrome/README.md +1 -1
- chrome/index.d.ts +17 -8
- chrome/package.json +2 -2
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:
|
11
|
+
* Last updated: Tue, 25 Jul 2023 14:02:51 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
|
|
chrome/index.d.ts
CHANGED
@@ -5906,7 +5906,13 @@ declare namespace chrome.offscreen {
|
|
5906
5906
|
/** The offscreen document needs to use WebRTC APIs. */
|
5907
5907
|
WEB_RTC = "WEB_RTC",
|
5908
5908
|
/** The offscreen document needs to interact with the clipboard APIs(e.g. Navigator.clipboard). */
|
5909
|
-
CLIPBOARD = "CLIPBOARD"
|
5909
|
+
CLIPBOARD = "CLIPBOARD",
|
5910
|
+
/** Specifies that the offscreen document needs access to localStorage. */
|
5911
|
+
LOCAL_STORAGE = "LOCAL_STORAGE",
|
5912
|
+
/** Specifies that the offscreen document needs to spawn workers. */
|
5913
|
+
WORKERS = "WORKERS",
|
5914
|
+
/** Specifies that the offscreen document needs to use navigator.geolocation. */
|
5915
|
+
GEOLOCATION = "GEOLOCATION",
|
5910
5916
|
}
|
5911
5917
|
|
5912
5918
|
/** The parameters describing the offscreen document to create. */
|
@@ -6813,6 +6819,9 @@ declare namespace chrome.serial.onReceiveError {
|
|
6813
6819
|
export function addListener(callback: (info: OnReceiveErrorInfo) => void): void;
|
6814
6820
|
}
|
6815
6821
|
|
6822
|
+
type DocumentLifecycle = 'prerender' | 'active' | 'cached' | 'pending_deletion';
|
6823
|
+
type FrameType = 'outermost_frame' | 'fenced_frame' | 'sub_frame';
|
6824
|
+
|
6816
6825
|
////////////////////
|
6817
6826
|
// Runtime
|
6818
6827
|
////////////////////
|
@@ -6910,7 +6919,7 @@ declare namespace chrome.runtime {
|
|
6910
6919
|
* The lifecycle the document that opened the connection is in at the time the port was created. Note that the lifecycle state of the document may have changed since port creation.
|
6911
6920
|
* @since Chrome 106.
|
6912
6921
|
*/
|
6913
|
-
documentLifecycle?:
|
6922
|
+
documentLifecycle?: DocumentLifecycle | undefined;
|
6914
6923
|
/**
|
6915
6924
|
* A UUID of the document that opened the connection.
|
6916
6925
|
* @since Chrome 106.
|
@@ -10693,11 +10702,11 @@ declare namespace chrome.webNavigation {
|
|
10693
10702
|
/** A UUID of the document loaded. */
|
10694
10703
|
documentId: string;
|
10695
10704
|
/** The lifecycle the document is in. */
|
10696
|
-
documentLifecycle:
|
10705
|
+
documentLifecycle: DocumentLifecycle;
|
10697
10706
|
/** True if the last navigation in this frame was interrupted by an error, i.e. the onErrorOccurred event fired. */
|
10698
10707
|
errorOccurred: boolean;
|
10699
10708
|
/** The type of frame the navigation occurred in. */
|
10700
|
-
frameType:
|
10709
|
+
frameType: FrameType;
|
10701
10710
|
/** A UUID of the parent document owning this frame. This is not set if there is no parent. */
|
10702
10711
|
parentDocumentId?: string | undefined;
|
10703
10712
|
/** ID of frame that wraps the frame. Set to -1 of no parent frame exists. */
|
@@ -10736,11 +10745,11 @@ declare namespace chrome.webNavigation {
|
|
10736
10745
|
/** 0 indicates the navigation happens in the tab content window; a positive value indicates navigation in a subframe. Frame IDs are unique for a given tab and process. */
|
10737
10746
|
frameId: number;
|
10738
10747
|
/** The type of frame the navigation occurred in. */
|
10739
|
-
frameType:
|
10748
|
+
frameType: FrameType;
|
10740
10749
|
/** A UUID of the document loaded. (This is not set for onBeforeNavigate callbacks.) */
|
10741
10750
|
documentId?: string | undefined;
|
10742
10751
|
/** The lifecycle the document is in. */
|
10743
|
-
documentLifecycle:
|
10752
|
+
documentLifecycle: DocumentLifecycle;
|
10744
10753
|
/** A UUID of the parent document owning this frame. This is not set if there is no parent. */
|
10745
10754
|
parentDocumentId?: string | undefined;
|
10746
10755
|
/**
|
@@ -11008,8 +11017,8 @@ declare namespace chrome.webRequest {
|
|
11008
11017
|
/** Optional. The HTTP request headers that are going to be sent out with this request. */
|
11009
11018
|
requestHeaders?: HttpHeader[] | undefined;
|
11010
11019
|
documentId: string;
|
11011
|
-
documentLifecycle:
|
11012
|
-
frameType:
|
11020
|
+
documentLifecycle: DocumentLifecycle;
|
11021
|
+
frameType: FrameType;
|
11013
11022
|
frameId: number;
|
11014
11023
|
initiator?: string | undefined;
|
11015
11024
|
parentDocumentId?: string | undefined;
|
chrome/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/chrome",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.242",
|
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": "
|
96
|
+
"typesPublisherContentHash": "e52de98a71476aec0ccd56349c6fd1e77213b52814fd2c34d3925a061daf134c",
|
97
97
|
"typeScriptVersion": "4.3"
|
98
98
|
}
|