@types/chrome 0.0.178 → 0.0.179

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 +11 -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, 04 Feb 2022 03:31:26 GMT
11
+ * Last updated: Thu, 24 Feb 2022 20:01:52 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
@@ -7070,6 +7070,17 @@ declare namespace chrome.runtime {
7070
7070
  * @since Chrome 32.
7071
7071
  */
7072
7072
  export function restart(): void;
7073
+ /**
7074
+ * Restart the ChromeOS device when the app runs in kiosk mode after the
7075
+ * given seconds. If called again before the time ends, the reboot will
7076
+ * be delayed. If called with a value of -1, the reboot will be
7077
+ * cancelled. It's a no-op in non-kiosk mode. It's only allowed to be
7078
+ * called repeatedly by the first extension to invoke this API.
7079
+ * @since Chrome 53.
7080
+ * @param seconds
7081
+ * @param callback
7082
+ */
7083
+ export function restartAfterDelay(seconds: number, callback?: () => void): void;
7073
7084
  /**
7074
7085
  * Sends a single message to event listeners within your extension/app or a different extension/app. Similar to runtime.connect but only sends a single message, with an optional response. If sending to your extension, the runtime.onMessage event will be fired in each page, or runtime.onMessageExternal, if a different extension. Note that extensions cannot send messages to content scripts using this method. To send messages to content scripts, use tabs.sendMessage.
7075
7086
  * @since Chrome 26.
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.178",
3
+ "version": "0.0.179",
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": "986bc801af162f902f7b811c231291ad71cc9e87873ffc738f31228ec34616f1",
101
+ "typesPublisherContentHash": "036ad1a56198f9fcf2dd6fe8fdc63bd2ed266aece78877d6dd4ed3d9293d2fb9",
102
102
  "typeScriptVersion": "3.8"
103
103
  }