@types/chrome 0.0.237 → 0.0.239
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 +50 -0
- 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, 27 Jun 2023 16:32:48 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
@@ -6969,6 +6969,14 @@ declare namespace chrome.runtime {
|
|
6969
6969
|
/** Result of the update check. */
|
6970
6970
|
export type RequestUpdateCheckStatus = 'throttled' | 'no_update' | 'update_available';
|
6971
6971
|
|
6972
|
+
/** Result of the update check. */
|
6973
|
+
export interface RequestUpdateCheckResult {
|
6974
|
+
/** The status of the update check. */
|
6975
|
+
status: RequestUpdateCheckStatus;
|
6976
|
+
/** The version of the available update. */
|
6977
|
+
version: string;
|
6978
|
+
}
|
6979
|
+
|
6972
6980
|
export interface PortDisconnectEvent extends chrome.events.Event<(port: Port) => void> { }
|
6973
6981
|
|
6974
6982
|
export interface PortMessageEvent extends chrome.events.Event<(message: any, port: Port) => void> { }
|
@@ -7353,6 +7361,12 @@ declare namespace chrome.runtime {
|
|
7353
7361
|
* @since Chrome 25.
|
7354
7362
|
*/
|
7355
7363
|
export function reload(): void;
|
7364
|
+
/**
|
7365
|
+
* Requests an update check for this app/extension.
|
7366
|
+
* @since Chrome 109
|
7367
|
+
* @return This only returns a Promise when the callback parameter is not specified, and with MV3+.
|
7368
|
+
*/
|
7369
|
+
export function requestUpdateCheck(): Promise<RequestUpdateCheckResult>;
|
7356
7370
|
/**
|
7357
7371
|
* Requests an update check for this app/extension.
|
7358
7372
|
* @since Chrome 25.
|
@@ -12331,3 +12345,39 @@ declare namespace chrome.declarativeNetRequest {
|
|
12331
12345
|
* Only available for unpacked extensions with the declarativeNetRequestFeedback permission as this is intended to be used for debugging purposes only. */
|
12332
12346
|
export var onRuleMatchedDebug: RuleMatchedDebugEvent;
|
12333
12347
|
}
|
12348
|
+
|
12349
|
+
////////////////////
|
12350
|
+
// SidePanel
|
12351
|
+
////////////////////
|
12352
|
+
/**
|
12353
|
+
* Availability: @since Chrome 114. Manifest v3.
|
12354
|
+
* https://developer.chrome.com/docs/extensions/reference/sidePanel/
|
12355
|
+
* Permissions: "sidePanel"
|
12356
|
+
*/
|
12357
|
+
declare namespace chrome.sidePanel {
|
12358
|
+
export interface GetPanelOptions {
|
12359
|
+
tabId?: number;
|
12360
|
+
}
|
12361
|
+
|
12362
|
+
export interface PanelBehavior {
|
12363
|
+
openPanelOnActionClick?: boolean;
|
12364
|
+
}
|
12365
|
+
|
12366
|
+
export interface PanelOptions {
|
12367
|
+
enabled?: boolean;
|
12368
|
+
path?: string;
|
12369
|
+
tabId?: number;
|
12370
|
+
}
|
12371
|
+
|
12372
|
+
export interface SidePanel {
|
12373
|
+
default_path: string;
|
12374
|
+
}
|
12375
|
+
|
12376
|
+
export function getOptions(options: GetPanelOptions, callback?: (options: PanelOptions) => void): Promise<PanelOptions>;
|
12377
|
+
|
12378
|
+
export function getPanelBehavior(callback?: (behavior: PanelBehavior) => void): Promise<PanelBehavior>;
|
12379
|
+
|
12380
|
+
export function setOptions(options: PanelOptions, callback?: () => void): Promise<void>;
|
12381
|
+
|
12382
|
+
export function setPanelBehavior(behavior: PanelBehavior, callback?: () => void): Promise<void>;
|
12383
|
+
}
|
chrome/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/chrome",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.239",
|
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": "f7e3c511efd3ee503e8b1621d2cb77ef232dbbe7203cee9f2517874d257b7611",
|
97
97
|
"typeScriptVersion": "4.3"
|
98
98
|
}
|