@types/chrome 0.0.331 → 0.0.332
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.
- chrome/README.md +1 -1
- chrome/index.d.ts +12 -5
- chrome/package.json +2 -2
chrome/README.md
CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for chrome (https://developer.chrome.com/
|
|
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: Wed, 09 Jul 2025 09:03:33 GMT
|
12
12
|
* Dependencies: [@types/filesystem](https://npmjs.com/package/@types/filesystem), [@types/har-format](https://npmjs.com/package/@types/har-format)
|
13
13
|
|
14
14
|
# Credits
|
chrome/index.d.ts
CHANGED
@@ -8939,11 +8939,13 @@ declare namespace chrome {
|
|
8939
8939
|
* Use the `chrome.runtime` API to retrieve the service worker, return details about the manifest, and listen for and respond to events in the extension lifecycle. You can also use this API to convert the relative path of URLs to fully-qualified URLs.
|
8940
8940
|
*/
|
8941
8941
|
export namespace runtime {
|
8942
|
-
|
8943
|
-
export const lastError: {
|
8942
|
+
export interface LastError {
|
8944
8943
|
/** Details about the error which occurred. */
|
8945
8944
|
message?: string;
|
8946
|
-
}
|
8945
|
+
}
|
8946
|
+
|
8947
|
+
/** Populated with an error message if calling an API function fails; otherwise undefined. This is only defined within the scope of that function's callback. If an error is produced, but `runtime.lastError` is not accessed within the callback, a message is logged to the console listing the API function that produced the error. API functions that return promises do not set this property. */
|
8948
|
+
export const lastError: LastError | undefined;
|
8947
8949
|
|
8948
8950
|
/** The ID of the extension/app. */
|
8949
8951
|
export const id: string;
|
@@ -9171,6 +9173,11 @@ declare namespace chrome {
|
|
9171
9173
|
name: string;
|
9172
9174
|
}
|
9173
9175
|
|
9176
|
+
export interface UpdateAvailableDetails {
|
9177
|
+
/** The version number of the available update. */
|
9178
|
+
version: string;
|
9179
|
+
}
|
9180
|
+
|
9174
9181
|
export interface UpdateCheckDetails {
|
9175
9182
|
/** The version of the available update. */
|
9176
9183
|
version: string;
|
@@ -9650,7 +9657,7 @@ declare namespace chrome {
|
|
9650
9657
|
*/
|
9651
9658
|
export function requestUpdateCheck(): Promise<RequestUpdateCheckResult>;
|
9652
9659
|
export function requestUpdateCheck(
|
9653
|
-
callback: (status: `${RequestUpdateCheckStatus}`, details?:
|
9660
|
+
callback: (status: `${RequestUpdateCheckStatus}`, details?: UpdateCheckDetails) => void,
|
9654
9661
|
): void;
|
9655
9662
|
|
9656
9663
|
/** Restart the ChromeOS device when the app runs in kiosk mode. Otherwise, it's no-op. */
|
@@ -9769,7 +9776,7 @@ declare namespace chrome {
|
|
9769
9776
|
export const onRestartRequired: events.Event<(reason: `${OnRestartRequiredReason}`) => void>;
|
9770
9777
|
|
9771
9778
|
/** Fired when an update is available, but isn't installed immediately because the app is currently running. If you do nothing, the update will be installed the next time the background page gets unloaded, if you want it to be installed sooner you can explicitly call chrome.runtime.reload(). If your extension is using a persistent background page, the background page of course never gets unloaded, so unless you call chrome.runtime.reload() manually in response to this event the update will not get installed until the next time Chrome itself restarts. If no handlers are listening for this event, and your extension has a persistent background page, it behaves as if chrome.runtime.reload() is called in response to this event. */
|
9772
|
-
export const onUpdateAvailable: events.Event<(details:
|
9779
|
+
export const onUpdateAvailable: events.Event<(details: UpdateAvailableDetails) => void>;
|
9773
9780
|
|
9774
9781
|
/**
|
9775
9782
|
* Fired when a Chrome update is available, but isn't installed immediately because a browser restart is required.
|
chrome/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/chrome",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.332",
|
4
4
|
"description": "TypeScript definitions for chrome",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome",
|
6
6
|
"license": "MIT",
|
@@ -94,6 +94,6 @@
|
|
94
94
|
"@types/har-format": "*"
|
95
95
|
},
|
96
96
|
"peerDependencies": {},
|
97
|
-
"typesPublisherContentHash": "
|
97
|
+
"typesPublisherContentHash": "d751ca481e12d030efb7d4a95ee63bf7b9d5ea11858d00625a4471ca045a1188",
|
98
98
|
"typeScriptVersion": "5.1"
|
99
99
|
}
|