@types/chrome 0.0.166 → 0.0.167

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. chrome/README.md +1 -1
  2. chrome/index.d.ts +8 -2
  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: Thu, 02 Dec 2021 01:31:03 GMT
11
+ * Last updated: Mon, 06 Dec 2021 02:01:00 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
@@ -6488,6 +6488,13 @@ declare namespace chrome.runtime {
6488
6488
  export type PlatformArch = 'arm' | 'arm64' | 'x86-32' | 'x86-64' | 'mips' | 'mips64';
6489
6489
  /** https://developer.chrome.com/docs/extensions/reference/runtime/#type-PlatformNaclArch */
6490
6490
  export type PlatformNaclArch = 'arm' | 'x86-32' | 'x86-64' | 'mips' | 'mips64';
6491
+ /** https://developer.chrome.com/docs/extensions/reference/runtime/#type-OnInstalledReason */
6492
+ export enum OnInstalledReason {
6493
+ INSTALL = 'install',
6494
+ UPDATE = 'update',
6495
+ CHROME_UPDATE = 'chrome_update',
6496
+ SHARED_MODULE_UPDATE = 'shared_module_update'
6497
+ }
6491
6498
 
6492
6499
  export interface LastError {
6493
6500
  /** Optional. Details about the error which occurred. */
@@ -6502,9 +6509,8 @@ declare namespace chrome.runtime {
6502
6509
  export interface InstalledDetails {
6503
6510
  /**
6504
6511
  * The reason that this event is being dispatched.
6505
- * One of: "install", "update", "chrome_update", or "shared_module_update"
6506
6512
  */
6507
- reason: string;
6513
+ reason: OnInstalledReason;
6508
6514
  /**
6509
6515
  * Optional.
6510
6516
  * Indicates the previous version of the extension, which has just been updated. This is present only if 'reason' is 'update'.
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.166",
3
+ "version": "0.0.167",
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",
@@ -103,6 +103,6 @@
103
103
  "@types/filesystem": "*",
104
104
  "@types/har-format": "*"
105
105
  },
106
- "typesPublisherContentHash": "f832dec8364fd12f0e0dcd9324d75ea3acded604e45d458a8493b5e501acc7ab",
106
+ "typesPublisherContentHash": "9c6c3c3c312e6bf36acace82e27911b1cfae87b3580e48ccd4f0cbe1b4da7b14",
107
107
  "typeScriptVersion": "3.8"
108
108
  }