@types/chrome 0.0.214 → 0.0.216

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 +16 -1
  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: Sat, 18 Feb 2023 01:02:37 GMT
11
+ * Last updated: Sat, 18 Feb 2023 05:02:40 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
@@ -312,6 +312,14 @@ declare namespace chrome.action {
312
312
  */
313
313
  export function setBadgeText(details: BadgeTextDetails, callback?: () => void): void;
314
314
 
315
+ /**
316
+ * Since Chrome 88.
317
+ * Sets the icon for the action. The icon can be specified either as the path to an image file or as the pixel data from a canvas element,
318
+ * or as dictionary of either one of those. Either the path or the imageData property must be specified.
319
+ * @return The `setIcon` method provides its result via callback or returned as a `Promise` (MV3 only). Since Chrome 96.
320
+ */
321
+ export function setIcon(details: TabIconDetails): Promise<void>;
322
+
315
323
  /**
316
324
  * Since Chrome 88.
317
325
  * Sets the icon for the action. The icon can be specified either as the path to an image file or as the pixel data from a canvas element,
@@ -319,7 +327,7 @@ declare namespace chrome.action {
319
327
  * @param callback The callback parameter should be a function that looks like this:
320
328
  * () => {...}
321
329
  */
322
- export function setIcon(details: TabIconDetails, callback?: () => void): void;
330
+ export function setIcon(details: TabIconDetails, callback: () => void): void;
323
331
 
324
332
  /**
325
333
  * Since Chrome 88.
@@ -6728,6 +6736,13 @@ declare namespace chrome.search {
6728
6736
  * function() => {...}
6729
6737
  */
6730
6738
  export function query(options: QueryInfo, callback: () => void): void;
6739
+
6740
+ /**
6741
+ * Used to query the default search provider. In case of an error, runtime.lastError will be set.
6742
+ * @param options search configuration options.
6743
+ * @return The `query` method provides its result via callback or returned as a `Promise` (MV3 only). It has no parameters.
6744
+ */
6745
+ export function query(options: QueryInfo): Promise<void>;
6731
6746
  }
6732
6747
 
6733
6748
  ////////////////////
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.214",
3
+ "version": "0.0.216",
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": "7a84048d2293ad0662e244dd0717a09a9d05da169dee3b30b2acceaa09feb3f4",
96
+ "typesPublisherContentHash": "386c0a038a481eb96cf125ed1aff3926356f138d5ec127abed722b2106e0f2f0",
97
97
  "typeScriptVersion": "4.2"
98
98
  }