@types/chrome 0.0.238 → 0.0.239

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 +14 -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: Fri, 23 Jun 2023 20:32:42 GMT
11
+ * Last updated: Tue, 27 Jun 2023 16:32:48 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
@@ -6969,6 +6969,14 @@ declare namespace chrome.runtime {
6969
6969
  /** Result of the update check. */
6970
6970
  export type RequestUpdateCheckStatus = 'throttled' | 'no_update' | 'update_available';
6971
6971
 
6972
+ /** Result of the update check. */
6973
+ export interface RequestUpdateCheckResult {
6974
+ /** The status of the update check. */
6975
+ status: RequestUpdateCheckStatus;
6976
+ /** The version of the available update. */
6977
+ version: string;
6978
+ }
6979
+
6972
6980
  export interface PortDisconnectEvent extends chrome.events.Event<(port: Port) => void> { }
6973
6981
 
6974
6982
  export interface PortMessageEvent extends chrome.events.Event<(message: any, port: Port) => void> { }
@@ -7353,6 +7361,12 @@ declare namespace chrome.runtime {
7353
7361
  * @since Chrome 25.
7354
7362
  */
7355
7363
  export function reload(): void;
7364
+ /**
7365
+ * Requests an update check for this app/extension.
7366
+ * @since Chrome 109
7367
+ * @return This only returns a Promise when the callback parameter is not specified, and with MV3+.
7368
+ */
7369
+ export function requestUpdateCheck(): Promise<RequestUpdateCheckResult>;
7356
7370
  /**
7357
7371
  * Requests an update check for this app/extension.
7358
7372
  * @since Chrome 25.
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.238",
3
+ "version": "0.0.239",
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": "777ef577372d89916ec084a41ccd2c2f3c77f436e3372e8b4034b264ae257979",
96
+ "typesPublisherContentHash": "f7e3c511efd3ee503e8b1621d2cb77ef232dbbe7203cee9f2517874d257b7611",
97
97
  "typeScriptVersion": "4.3"
98
98
  }