@types/chrome 0.0.178 → 0.0.179
Sign up to get free protection for your applications and to get access to all the features.
- chrome/README.md +1 -1
- chrome/index.d.ts +11 -0
- 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:
|
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.
|
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": "
|
101
|
+
"typesPublisherContentHash": "036ad1a56198f9fcf2dd6fe8fdc63bd2ed266aece78877d6dd4ed3d9293d2fb9",
|
102
102
|
"typeScriptVersion": "3.8"
|
103
103
|
}
|