@types/chrome 0.0.217 → 0.0.218

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 -15
  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, 19 Feb 2023 20:32:44 GMT
11
+ * Last updated: Tue, 28 Feb 2023 02:32:36 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
@@ -1729,26 +1729,13 @@ declare namespace chrome.contextMenus {
1729
1729
  * @param updateProperties The properties to update. Accepts the same values as the create function.
1730
1730
  * @param callback Called when the context menu has been updated.
1731
1731
  */
1732
- export function update(id: string, updateProperties: UpdateProperties, callback?: () => void): void;
1733
- /**
1734
- * Updates a previously created context menu item.
1735
- * @param id The ID of the item to update.
1736
- * @param updateProperties The properties to update. Accepts the same values as the create function.
1737
- * @param callback Called when the context menu has been updated.
1738
- */
1739
- export function update(id: number, updateProperties: UpdateProperties, callback?: () => void): void;
1740
- /**
1741
- * Removes a context menu item.
1742
- * @param menuItemId The ID of the context menu item to remove.
1743
- * @param callback Called when the context menu has been removed.
1744
- */
1745
- export function remove(menuItemId: string, callback?: () => void): void;
1732
+ export function update(id: string | number, updateProperties: UpdateProperties, callback?: () => void): void;
1746
1733
  /**
1747
1734
  * Removes a context menu item.
1748
1735
  * @param menuItemId The ID of the context menu item to remove.
1749
1736
  * @param callback Called when the context menu has been removed.
1750
1737
  */
1751
- export function remove(menuItemId: number, callback?: () => void): void;
1738
+ export function remove(menuItemId: string | number, callback?: () => void): void;
1752
1739
 
1753
1740
  /**
1754
1741
  * Since Chrome 21.
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.217",
3
+ "version": "0.0.218",
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": "38d57c64da31ca3ba901327553f7e6054711549e3652c5717e62e59987c4d9e9",
96
+ "typesPublisherContentHash": "7f719c6796d1282e638038ec4cb6f25e315fa60c5ce8dc0861fc11f38c73ed21",
97
97
  "typeScriptVersion": "4.2"
98
98
  }