@types/chrome 0.0.311 → 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.
Files changed (3) hide show
  1. chrome/README.md +1 -1
  2. chrome/index.d.ts +0 -107
  3. 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: Tue, 25 Mar 2025 18:02:40 GMT
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
@@ -13417,113 +13417,6 @@ declare namespace chrome {
13417
13417
  export const onErrorOccurred: WebResponseErrorEvent;
13418
13418
  }
13419
13419
 
13420
- ////////////////////
13421
- // Web Store
13422
- ////////////////////
13423
- /**
13424
- * Use the chrome.webstore API to initiate app and extension installations "inline" from your site.
13425
- * @since Chrome 15
13426
- */
13427
- export namespace webstore {
13428
- /**
13429
- * @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.
13430
- * @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.
13431
- * @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.
13432
- * 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.
13433
- * Optional parameter errorCode: The error code from the stable set of possible errors.
13434
- * * Enum of the possible install results, including error codes sent back in the event that an inline installation has failed.
13435
- * * * "otherError": An uncommon, unrecognized, or unexpected error. In some cases, the readable error string can provide more information.
13436
- * * * "aborted": The operation was aborted as the requestor is no longer alive.
13437
- * * * "installInProgress": An installation of the same extension is in progress.
13438
- * * * "notPermitted": The installation is not permitted.
13439
- * * * "invalidId": Invalid Chrome Web Store item ID.
13440
- * * * "webstoreRequestError": Failed to retrieve extension metadata from the Web Store.
13441
- * * * "invalidWebstoreResponse": The extension metadata retrieved from the Web Store was invalid.
13442
- * * * "invalidManifest": An error occurred while parsing the extension manifest retrieved from the Web Store.
13443
- * * * "iconError": Failed to retrieve the extension's icon from the Web Store, or the icon was invalid.
13444
- * * * "userCanceled": The user canceled the operation.
13445
- * * * "blacklisted": The extension is blacklisted.
13446
- * * * "missingDependencies": Unsatisfied dependencies, such as shared modules.
13447
- * * * "requirementViolations": Unsatisfied requirements, such as webgl.
13448
- * * * "blockedByPolicy": The extension is blocked by management policies.
13449
- * * * "launchFeatureDisabled": The launch feature is not available.
13450
- * * * "launchUnsupportedExtensionType": The launch feature is not supported for the extension type.
13451
- * * * "launchInProgress": A launch of the same extension is in progress.
13452
- */
13453
- export function install(
13454
- url: string,
13455
- successCallback?: Function,
13456
- failureCallback?: (error: string, errorCode?: string) => void,
13457
- ): void;
13458
- /**
13459
- * @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.
13460
- * @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.
13461
- * 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.
13462
- * Optional parameter errorCode: The error code from the stable set of possible errors.
13463
- * * Enum of the possible install results, including error codes sent back in the event that an inline installation has failed.
13464
- * * * "otherError": An uncommon, unrecognized, or unexpected error. In some cases, the readable error string can provide more information.
13465
- * * * "aborted": The operation was aborted as the requestor is no longer alive.
13466
- * * * "installInProgress": An installation of the same extension is in progress.
13467
- * * * "notPermitted": The installation is not permitted.
13468
- * * * "invalidId": Invalid Chrome Web Store item ID.
13469
- * * * "webstoreRequestError": Failed to retrieve extension metadata from the Web Store.
13470
- * * * "invalidWebstoreResponse": The extension metadata retrieved from the Web Store was invalid.
13471
- * * * "invalidManifest": An error occurred while parsing the extension manifest retrieved from the Web Store.
13472
- * * * "iconError": Failed to retrieve the extension's icon from the Web Store, or the icon was invalid.
13473
- * * * "userCanceled": The user canceled the operation.
13474
- * * * "blacklisted": The extension is blacklisted.
13475
- * * * "missingDependencies": Unsatisfied dependencies, such as shared modules.
13476
- * * * "requirementViolations": Unsatisfied requirements, such as webgl.
13477
- * * * "blockedByPolicy": The extension is blocked by management policies.
13478
- * * * "launchFeatureDisabled": The launch feature is not available.
13479
- * * * "launchUnsupportedExtensionType": The launch feature is not supported for the extension type.
13480
- * * * "launchInProgress": A launch of the same extension is in progress.
13481
- */
13482
- export function install(
13483
- successCallback: Function,
13484
- failureCallback?: (error: string, errorCode?: string) => void,
13485
- ): void;
13486
- /**
13487
- * @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.
13488
- * 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.
13489
- * Optional parameter errorCode: The error code from the stable set of possible errors.
13490
- * * Enum of the possible install results, including error codes sent back in the event that an inline installation has failed.
13491
- * * * "otherError": An uncommon, unrecognized, or unexpected error. In some cases, the readable error string can provide more information.
13492
- * * * "aborted": The operation was aborted as the requestor is no longer alive.
13493
- * * * "installInProgress": An installation of the same extension is in progress.
13494
- * * * "notPermitted": The installation is not permitted.
13495
- * * * "invalidId": Invalid Chrome Web Store item ID.
13496
- * * * "webstoreRequestError": Failed to retrieve extension metadata from the Web Store.
13497
- * * * "invalidWebstoreResponse": The extension metadata retrieved from the Web Store was invalid.
13498
- * * * "invalidManifest": An error occurred while parsing the extension manifest retrieved from the Web Store.
13499
- * * * "iconError": Failed to retrieve the extension's icon from the Web Store, or the icon was invalid.
13500
- * * * "userCanceled": The user canceled the operation.
13501
- * * * "blacklisted": The extension is blacklisted.
13502
- * * * "missingDependencies": Unsatisfied dependencies, such as shared modules.
13503
- * * * "requirementViolations": Unsatisfied requirements, such as webgl.
13504
- * * * "blockedByPolicy": The extension is blocked by management policies.
13505
- * * * "launchFeatureDisabled": The launch feature is not available.
13506
- * * * "launchUnsupportedExtensionType": The launch feature is not supported for the extension type.
13507
- * * * "launchInProgress": A launch of the same extension is in progress.
13508
- */
13509
- export function install(failureCallback?: (error: string, errorCode?: string) => void): void;
13510
-
13511
- export interface InstallationStageEvent extends chrome.events.Event<(stage: string) => void> {}
13512
-
13513
- export interface DownloadProgressEvent extends chrome.events.Event<(percentDownloaded: number) => void> {}
13514
-
13515
- /**
13516
- * 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.
13517
- * @since Chrome 35
13518
- */
13519
- export var onInstallStageChanged: InstallationStageEvent;
13520
- /**
13521
- * 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.
13522
- * @since Chrome 35
13523
- */
13524
- export var onDownloadProgress: DownloadProgressEvent;
13525
- }
13526
-
13527
13420
  ////////////////////
13528
13421
  // Windows
13529
13422
  ////////////////////
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.311",
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": "a4164ceabf4e2cc62e31a7ae5de0105ad181cd2c9f13f527185923459b0717a7",
97
+ "typesPublisherContentHash": "946c5cec75f638137ed362493ef90c1c53bef558d2f55821ec66b0faa37a9607",
98
98
  "typeScriptVersion": "5.0"
99
99
  }