@types/chrome 0.0.170 → 0.0.171

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 +2 -3
  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: Sun, 12 Dec 2021 06:31:08 GMT
11
+ * Last updated: Mon, 13 Dec 2021 18:31:05 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
@@ -1632,10 +1632,9 @@ declare namespace chrome.contextMenus {
1632
1632
  /**
1633
1633
  * Creates a new context menu item. Note that if an error occurs during creation, you may not find out until the creation callback fires (the details will be in chrome.runtime.lastError).
1634
1634
  * @param callback Called when the item has been created in the browser. If there were any problems creating the item, details will be available in chrome.runtime.lastError.
1635
- * If you specify the callback parameter, it should be a function that looks like this:
1636
- * function() {...};
1635
+ * @returns The ID of the newly created item.
1637
1636
  */
1638
- export function create(createProperties: CreateProperties, callback?: () => void): void;
1637
+ export function create(createProperties: CreateProperties, callback?: () => void): number | string;
1639
1638
  /**
1640
1639
  * Updates a previously created context menu item.
1641
1640
  * @param id The ID of the item to update.
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.170",
3
+ "version": "0.0.171",
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",
@@ -103,6 +103,6 @@
103
103
  "@types/filesystem": "*",
104
104
  "@types/har-format": "*"
105
105
  },
106
- "typesPublisherContentHash": "7b8a3b7326117b80093beaf50ba7c6f0b7dc907c6c86559c665d9a422daa47ac",
106
+ "typesPublisherContentHash": "991837772f8e1f780ce2d4e9f1696110899c9ae085ab4e66e4aac15390142b6c",
107
107
  "typeScriptVersion": "3.8"
108
108
  }