@types/chrome 0.0.310 → 0.0.312
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 +0 -133
- chrome/package.json +2 -2
chrome/README.md
CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for chrome (http://developer.chrome.com/e
|
|
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: Tue, 25 Mar 2025 19:02:18 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
@@ -9796,32 +9796,6 @@ declare namespace chrome {
|
|
9796
9796
|
export function updateContentScripts(scripts: RegisteredContentScript[], callback: () => void): void;
|
9797
9797
|
}
|
9798
9798
|
|
9799
|
-
////////////////////
|
9800
|
-
// Script Badge
|
9801
|
-
////////////////////
|
9802
|
-
export namespace scriptBadge {
|
9803
|
-
export interface GetPopupDetails {
|
9804
|
-
tabId: number;
|
9805
|
-
}
|
9806
|
-
|
9807
|
-
export interface AttentionDetails {
|
9808
|
-
tabId: number;
|
9809
|
-
}
|
9810
|
-
|
9811
|
-
export interface SetPopupDetails {
|
9812
|
-
tabId: number;
|
9813
|
-
popup: string;
|
9814
|
-
}
|
9815
|
-
|
9816
|
-
export interface ScriptBadgeClickedEvent extends chrome.events.Event<(tab: chrome.tabs.Tab) => void> {}
|
9817
|
-
|
9818
|
-
export function getPopup(details: GetPopupDetails, callback: Function): void;
|
9819
|
-
export function getAttention(details: AttentionDetails): void;
|
9820
|
-
export function setPopup(details: SetPopupDetails): void;
|
9821
|
-
|
9822
|
-
export var onClicked: ScriptBadgeClickedEvent;
|
9823
|
-
}
|
9824
|
-
|
9825
9799
|
////////////////////
|
9826
9800
|
// Sessions
|
9827
9801
|
////////////////////
|
@@ -13443,113 +13417,6 @@ declare namespace chrome {
|
|
13443
13417
|
export const onErrorOccurred: WebResponseErrorEvent;
|
13444
13418
|
}
|
13445
13419
|
|
13446
|
-
////////////////////
|
13447
|
-
// Web Store
|
13448
|
-
////////////////////
|
13449
|
-
/**
|
13450
|
-
* Use the chrome.webstore API to initiate app and extension installations "inline" from your site.
|
13451
|
-
* @since Chrome 15
|
13452
|
-
*/
|
13453
|
-
export namespace webstore {
|
13454
|
-
/**
|
13455
|
-
* @param url Optional. If you have more than one <link> tag on your page with the chrome-webstore-item relation, you can choose which item you'd like to install by passing in its URL here. If it is omitted, then the first (or only) link will be used. An exception will be thrown if the passed in URL does not exist on the page.
|
13456
|
-
* @param successCallback Optional. This function is invoked when inline installation successfully completes (after the dialog is shown and the user agrees to add the item to Chrome). You may wish to use this to hide the user interface element that prompted the user to install the app or extension.
|
13457
|
-
* @param failureCallback Optional. This function is invoked when inline installation does not successfully complete. Possible reasons for this include the user canceling the dialog, the linked item not being found in the store, or the install being initiated from a non-verified site.
|
13458
|
-
* Parameter error: The failure detail. You may wish to inspect or log this for debugging purposes, but you should not rely on specific strings being passed back.
|
13459
|
-
* Optional parameter errorCode: The error code from the stable set of possible errors.
|
13460
|
-
* * Enum of the possible install results, including error codes sent back in the event that an inline installation has failed.
|
13461
|
-
* * * "otherError": An uncommon, unrecognized, or unexpected error. In some cases, the readable error string can provide more information.
|
13462
|
-
* * * "aborted": The operation was aborted as the requestor is no longer alive.
|
13463
|
-
* * * "installInProgress": An installation of the same extension is in progress.
|
13464
|
-
* * * "notPermitted": The installation is not permitted.
|
13465
|
-
* * * "invalidId": Invalid Chrome Web Store item ID.
|
13466
|
-
* * * "webstoreRequestError": Failed to retrieve extension metadata from the Web Store.
|
13467
|
-
* * * "invalidWebstoreResponse": The extension metadata retrieved from the Web Store was invalid.
|
13468
|
-
* * * "invalidManifest": An error occurred while parsing the extension manifest retrieved from the Web Store.
|
13469
|
-
* * * "iconError": Failed to retrieve the extension's icon from the Web Store, or the icon was invalid.
|
13470
|
-
* * * "userCanceled": The user canceled the operation.
|
13471
|
-
* * * "blacklisted": The extension is blacklisted.
|
13472
|
-
* * * "missingDependencies": Unsatisfied dependencies, such as shared modules.
|
13473
|
-
* * * "requirementViolations": Unsatisfied requirements, such as webgl.
|
13474
|
-
* * * "blockedByPolicy": The extension is blocked by management policies.
|
13475
|
-
* * * "launchFeatureDisabled": The launch feature is not available.
|
13476
|
-
* * * "launchUnsupportedExtensionType": The launch feature is not supported for the extension type.
|
13477
|
-
* * * "launchInProgress": A launch of the same extension is in progress.
|
13478
|
-
*/
|
13479
|
-
export function install(
|
13480
|
-
url: string,
|
13481
|
-
successCallback?: Function,
|
13482
|
-
failureCallback?: (error: string, errorCode?: string) => void,
|
13483
|
-
): void;
|
13484
|
-
/**
|
13485
|
-
* @param successCallback Optional. This function is invoked when inline installation successfully completes (after the dialog is shown and the user agrees to add the item to Chrome). You may wish to use this to hide the user interface element that prompted the user to install the app or extension.
|
13486
|
-
* @param failureCallback Optional. This function is invoked when inline installation does not successfully complete. Possible reasons for this include the user canceling the dialog, the linked item not being found in the store, or the install being initiated from a non-verified site.
|
13487
|
-
* Parameter error: The failure detail. You may wish to inspect or log this for debugging purposes, but you should not rely on specific strings being passed back.
|
13488
|
-
* Optional parameter errorCode: The error code from the stable set of possible errors.
|
13489
|
-
* * Enum of the possible install results, including error codes sent back in the event that an inline installation has failed.
|
13490
|
-
* * * "otherError": An uncommon, unrecognized, or unexpected error. In some cases, the readable error string can provide more information.
|
13491
|
-
* * * "aborted": The operation was aborted as the requestor is no longer alive.
|
13492
|
-
* * * "installInProgress": An installation of the same extension is in progress.
|
13493
|
-
* * * "notPermitted": The installation is not permitted.
|
13494
|
-
* * * "invalidId": Invalid Chrome Web Store item ID.
|
13495
|
-
* * * "webstoreRequestError": Failed to retrieve extension metadata from the Web Store.
|
13496
|
-
* * * "invalidWebstoreResponse": The extension metadata retrieved from the Web Store was invalid.
|
13497
|
-
* * * "invalidManifest": An error occurred while parsing the extension manifest retrieved from the Web Store.
|
13498
|
-
* * * "iconError": Failed to retrieve the extension's icon from the Web Store, or the icon was invalid.
|
13499
|
-
* * * "userCanceled": The user canceled the operation.
|
13500
|
-
* * * "blacklisted": The extension is blacklisted.
|
13501
|
-
* * * "missingDependencies": Unsatisfied dependencies, such as shared modules.
|
13502
|
-
* * * "requirementViolations": Unsatisfied requirements, such as webgl.
|
13503
|
-
* * * "blockedByPolicy": The extension is blocked by management policies.
|
13504
|
-
* * * "launchFeatureDisabled": The launch feature is not available.
|
13505
|
-
* * * "launchUnsupportedExtensionType": The launch feature is not supported for the extension type.
|
13506
|
-
* * * "launchInProgress": A launch of the same extension is in progress.
|
13507
|
-
*/
|
13508
|
-
export function install(
|
13509
|
-
successCallback: Function,
|
13510
|
-
failureCallback?: (error: string, errorCode?: string) => void,
|
13511
|
-
): void;
|
13512
|
-
/**
|
13513
|
-
* @param failureCallback Optional. This function is invoked when inline installation does not successfully complete. Possible reasons for this include the user canceling the dialog, the linked item not being found in the store, or the install being initiated from a non-verified site.
|
13514
|
-
* Parameter error: The failure detail. You may wish to inspect or log this for debugging purposes, but you should not rely on specific strings being passed back.
|
13515
|
-
* Optional parameter errorCode: The error code from the stable set of possible errors.
|
13516
|
-
* * Enum of the possible install results, including error codes sent back in the event that an inline installation has failed.
|
13517
|
-
* * * "otherError": An uncommon, unrecognized, or unexpected error. In some cases, the readable error string can provide more information.
|
13518
|
-
* * * "aborted": The operation was aborted as the requestor is no longer alive.
|
13519
|
-
* * * "installInProgress": An installation of the same extension is in progress.
|
13520
|
-
* * * "notPermitted": The installation is not permitted.
|
13521
|
-
* * * "invalidId": Invalid Chrome Web Store item ID.
|
13522
|
-
* * * "webstoreRequestError": Failed to retrieve extension metadata from the Web Store.
|
13523
|
-
* * * "invalidWebstoreResponse": The extension metadata retrieved from the Web Store was invalid.
|
13524
|
-
* * * "invalidManifest": An error occurred while parsing the extension manifest retrieved from the Web Store.
|
13525
|
-
* * * "iconError": Failed to retrieve the extension's icon from the Web Store, or the icon was invalid.
|
13526
|
-
* * * "userCanceled": The user canceled the operation.
|
13527
|
-
* * * "blacklisted": The extension is blacklisted.
|
13528
|
-
* * * "missingDependencies": Unsatisfied dependencies, such as shared modules.
|
13529
|
-
* * * "requirementViolations": Unsatisfied requirements, such as webgl.
|
13530
|
-
* * * "blockedByPolicy": The extension is blocked by management policies.
|
13531
|
-
* * * "launchFeatureDisabled": The launch feature is not available.
|
13532
|
-
* * * "launchUnsupportedExtensionType": The launch feature is not supported for the extension type.
|
13533
|
-
* * * "launchInProgress": A launch of the same extension is in progress.
|
13534
|
-
*/
|
13535
|
-
export function install(failureCallback?: (error: string, errorCode?: string) => void): void;
|
13536
|
-
|
13537
|
-
export interface InstallationStageEvent extends chrome.events.Event<(stage: string) => void> {}
|
13538
|
-
|
13539
|
-
export interface DownloadProgressEvent extends chrome.events.Event<(percentDownloaded: number) => void> {}
|
13540
|
-
|
13541
|
-
/**
|
13542
|
-
* Fired when an inline installation enters a new InstallStage. In order to receive notifications about this event, listeners must be registered before the inline installation begins.
|
13543
|
-
* @since Chrome 35
|
13544
|
-
*/
|
13545
|
-
export var onInstallStageChanged: InstallationStageEvent;
|
13546
|
-
/**
|
13547
|
-
* Fired periodically with the download progress of an inline install. In order to receive notifications about this event, listeners must be registered before the inline installation begins.
|
13548
|
-
* @since Chrome 35
|
13549
|
-
*/
|
13550
|
-
export var onDownloadProgress: DownloadProgressEvent;
|
13551
|
-
}
|
13552
|
-
|
13553
13420
|
////////////////////
|
13554
13421
|
// Windows
|
13555
13422
|
////////////////////
|
chrome/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/chrome",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.312",
|
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": "946c5cec75f638137ed362493ef90c1c53bef558d2f55821ec66b0faa37a9607",
|
98
98
|
"typeScriptVersion": "5.0"
|
99
99
|
}
|