@types/chrome 0.0.186 → 0.0.187

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. chrome/README.md +1 -1
  2. chrome/index.d.ts +6 -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: Sun, 15 May 2022 02:31:34 GMT
11
+ * Last updated: Thu, 19 May 2022 05:31:38 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
@@ -7362,6 +7362,12 @@ declare namespace chrome.runtime {
7362
7362
  * @param callback Called with results
7363
7363
  */
7364
7364
  export function getPlatformInfo(callback: (platformInfo: PlatformInfo) => void): void;
7365
+ /**
7366
+ * Returns information about the current platform.
7367
+ * @since Chrome 29.
7368
+ * @return The `getPlatformInfo` method provides its result via callback or returned as a `Promise` (MV3 only).
7369
+ */
7370
+ export function getPlatformInfo(): Promise<PlatformInfo>;
7365
7371
  /**
7366
7372
  * Converts a relative path within an app/extension install directory to a fully-qualified URL.
7367
7373
  * @param path A path to a resource within an app/extension expressed relative to its install directory.
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.186",
3
+ "version": "0.0.187",
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",
@@ -98,6 +98,6 @@
98
98
  "@types/filesystem": "*",
99
99
  "@types/har-format": "*"
100
100
  },
101
- "typesPublisherContentHash": "c587aec722ad7e28a6faf22860c3387c31c4d913ad63f586b60de7bf907f3be6",
101
+ "typesPublisherContentHash": "affe4b56fa07c12506cd4708c9702186e1027eb0157ba3d7cf6cc60d17ff6eb4",
102
102
  "typeScriptVersion": "3.9"
103
103
  }