@types/chrome 0.0.237 → 0.0.238

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. chrome/README.md +1 -1
  2. chrome/index.d.ts +36 -0
  3. 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: Thu, 25 May 2023 20:34:07 GMT
11
+ * Last updated: Fri, 23 Jun 2023 20:32:42 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
@@ -12331,3 +12331,39 @@ declare namespace chrome.declarativeNetRequest {
12331
12331
  * Only available for unpacked extensions with the declarativeNetRequestFeedback permission as this is intended to be used for debugging purposes only. */
12332
12332
  export var onRuleMatchedDebug: RuleMatchedDebugEvent;
12333
12333
  }
12334
+
12335
+ ////////////////////
12336
+ // SidePanel
12337
+ ////////////////////
12338
+ /**
12339
+ * Availability: @since Chrome 114. Manifest v3.
12340
+ * https://developer.chrome.com/docs/extensions/reference/sidePanel/
12341
+ * Permissions: "sidePanel"
12342
+ */
12343
+ declare namespace chrome.sidePanel {
12344
+ export interface GetPanelOptions {
12345
+ tabId?: number;
12346
+ }
12347
+
12348
+ export interface PanelBehavior {
12349
+ openPanelOnActionClick?: boolean;
12350
+ }
12351
+
12352
+ export interface PanelOptions {
12353
+ enabled?: boolean;
12354
+ path?: string;
12355
+ tabId?: number;
12356
+ }
12357
+
12358
+ export interface SidePanel {
12359
+ default_path: string;
12360
+ }
12361
+
12362
+ export function getOptions(options: GetPanelOptions, callback?: (options: PanelOptions) => void): Promise<PanelOptions>;
12363
+
12364
+ export function getPanelBehavior(callback?: (behavior: PanelBehavior) => void): Promise<PanelBehavior>;
12365
+
12366
+ export function setOptions(options: PanelOptions, callback?: () => void): Promise<void>;
12367
+
12368
+ export function setPanelBehavior(behavior: PanelBehavior, callback?: () => void): Promise<void>;
12369
+ }
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.237",
3
+ "version": "0.0.238",
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": "e06352e39c69b4ac24c612d4adfc4414614c702dc9e23b0b1e12fa0313f851f2",
96
+ "typesPublisherContentHash": "777ef577372d89916ec084a41ccd2c2f3c77f436e3372e8b4034b264ae257979",
97
97
  "typeScriptVersion": "4.3"
98
98
  }