@types/chrome 0.0.238 → 0.0.240

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 +16 -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: Thu, 06 Jul 2023 22:02:43 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> { }
@@ -7016,6 +7024,7 @@ declare namespace chrome.runtime {
7016
7024
  | 'declarativeContent'
7017
7025
  | 'declarativeNetRequest'
7018
7026
  | 'declarativeNetRequestFeedback'
7027
+ | 'declarativeNetRequestWithHostAccess'
7019
7028
  | 'declarativeWebRequest'
7020
7029
  | 'desktopCapture'
7021
7030
  | 'documentScan'
@@ -7054,6 +7063,7 @@ declare namespace chrome.runtime {
7054
7063
  | 'scripting'
7055
7064
  | 'search'
7056
7065
  | 'sessions'
7066
+ | 'sidePanel'
7057
7067
  | 'signedInDevices'
7058
7068
  | 'storage'
7059
7069
  | 'system.cpu'
@@ -7353,6 +7363,12 @@ declare namespace chrome.runtime {
7353
7363
  * @since Chrome 25.
7354
7364
  */
7355
7365
  export function reload(): void;
7366
+ /**
7367
+ * Requests an update check for this app/extension.
7368
+ * @since Chrome 109
7369
+ * @return This only returns a Promise when the callback parameter is not specified, and with MV3+.
7370
+ */
7371
+ export function requestUpdateCheck(): Promise<RequestUpdateCheckResult>;
7356
7372
  /**
7357
7373
  * Requests an update check for this app/extension.
7358
7374
  * @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.240",
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": "25f4c5f64b3a77d8ad23243a6f514fe501302c9894d2b07645c054d8ee5f8ac0",
97
97
  "typeScriptVersion": "4.3"
98
98
  }