@types/chrome 0.0.163 → 0.0.167
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 +2 -2
- chrome/index.d.ts +31 -5
- chrome/package.json +8 -3
chrome/README.md
CHANGED
|
@@ -8,9 +8,9 @@ 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: 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
|
|
|
15
15
|
# Credits
|
|
16
|
-
These definitions were written by [Matthew Kimber](https://github.com/matthewkimber), [otiai10](https://github.com/otiai10), [couven92](https://github.com/couven92), [RReverser](https://github.com/rreverser), [sreimer15](https://github.com/sreimer15), [MatCarlson](https://github.com/MatCarlson), [ekinsol](https://github.com/ekinsol), [Thierry Régagnon](https://github.com/tregagnon), [Brian Wilson](https://github.com/echoabstract), [Sebastiaan Pasma](https://github.com/spasma), [bdbai](https://github.com/bdbai), [pokutuna](https://github.com/pokutuna), [Jason Xian](https://github.com/JasonXian), [userTim](https://github.com/usertim), [Idan Zeierman](https://github.com/idan315),
|
|
16
|
+
These definitions were written by [Matthew Kimber](https://github.com/matthewkimber), [otiai10](https://github.com/otiai10), [couven92](https://github.com/couven92), [RReverser](https://github.com/rreverser), [sreimer15](https://github.com/sreimer15), [MatCarlson](https://github.com/MatCarlson), [ekinsol](https://github.com/ekinsol), [Thierry Régagnon](https://github.com/tregagnon), [Brian Wilson](https://github.com/echoabstract), [Sebastiaan Pasma](https://github.com/spasma), [bdbai](https://github.com/bdbai), [pokutuna](https://github.com/pokutuna), [Jason Xian](https://github.com/JasonXian), [userTim](https://github.com/usertim), [Idan Zeierman](https://github.com/idan315), [Nicolas Rodriguez](https://github.com/nicolas377), and [Ido Salomon](https://github.com/idosal).
|
chrome/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
// userTim <https://github.com/usertim>
|
|
17
17
|
// Idan Zeierman <https://github.com/idan315>
|
|
18
18
|
// Nicolas Rodriguez <https://github.com/nicolas377>
|
|
19
|
+
// Ido Salomon <https://github.com/idosal>
|
|
19
20
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
20
21
|
// TypeScript Version: 2.4
|
|
21
22
|
|
|
@@ -2042,7 +2043,16 @@ declare namespace chrome.declarativeContent {
|
|
|
2042
2043
|
constructor(options: PageStateMatcherProperties);
|
|
2043
2044
|
}
|
|
2044
2045
|
|
|
2045
|
-
/**
|
|
2046
|
+
/**
|
|
2047
|
+
* Declarative event action that enables the extension's action while the corresponding conditions are met.
|
|
2048
|
+
* Manifest v3.
|
|
2049
|
+
*/
|
|
2050
|
+
export class ShowAction { }
|
|
2051
|
+
|
|
2052
|
+
/**
|
|
2053
|
+
* Declarative event action that shows the extension's page action while the corresponding conditions are met.
|
|
2054
|
+
* Manifest v2.
|
|
2055
|
+
*/
|
|
2046
2056
|
export class ShowPageAction { }
|
|
2047
2057
|
|
|
2048
2058
|
/** Declarative event action that changes the icon of the page action while the corresponding conditions are met. */
|
|
@@ -6478,6 +6488,13 @@ declare namespace chrome.runtime {
|
|
|
6478
6488
|
export type PlatformArch = 'arm' | 'arm64' | 'x86-32' | 'x86-64' | 'mips' | 'mips64';
|
|
6479
6489
|
/** https://developer.chrome.com/docs/extensions/reference/runtime/#type-PlatformNaclArch */
|
|
6480
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
|
+
}
|
|
6481
6498
|
|
|
6482
6499
|
export interface LastError {
|
|
6483
6500
|
/** Optional. Details about the error which occurred. */
|
|
@@ -6492,9 +6509,8 @@ declare namespace chrome.runtime {
|
|
|
6492
6509
|
export interface InstalledDetails {
|
|
6493
6510
|
/**
|
|
6494
6511
|
* The reason that this event is being dispatched.
|
|
6495
|
-
* One of: "install", "update", "chrome_update", or "shared_module_update"
|
|
6496
6512
|
*/
|
|
6497
|
-
reason:
|
|
6513
|
+
reason: OnInstalledReason;
|
|
6498
6514
|
/**
|
|
6499
6515
|
* Optional.
|
|
6500
6516
|
* Indicates the previous version of the extension, which has just been updated. This is present only if 'reason' is 'update'.
|
|
@@ -10730,10 +10746,20 @@ declare namespace chrome.windows {
|
|
|
10730
10746
|
}
|
|
10731
10747
|
|
|
10732
10748
|
export interface WindowIdEvent
|
|
10733
|
-
extends chrome.events.Event<(windowId: number
|
|
10749
|
+
extends chrome.events.Event<(windowId: number) => void> {
|
|
10750
|
+
addListener(
|
|
10751
|
+
callback: (windowId: number) => void,
|
|
10752
|
+
filters?: WindowEventFilter,
|
|
10753
|
+
): void;
|
|
10754
|
+
}
|
|
10734
10755
|
|
|
10735
10756
|
export interface WindowReferenceEvent
|
|
10736
|
-
extends chrome.events.Event<(window: Window
|
|
10757
|
+
extends chrome.events.Event<(window: Window) => void> {
|
|
10758
|
+
addListener(
|
|
10759
|
+
callback: (window: Window) => void,
|
|
10760
|
+
filters?: WindowEventFilter,
|
|
10761
|
+
): void;
|
|
10762
|
+
}
|
|
10737
10763
|
|
|
10738
10764
|
/**
|
|
10739
10765
|
* Specifies what type of browser window to create.
|
chrome/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/chrome",
|
|
3
|
-
"version": "0.0.
|
|
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",
|
|
@@ -84,6 +84,11 @@
|
|
|
84
84
|
"name": "Nicolas Rodriguez",
|
|
85
85
|
"url": "https://github.com/nicolas377",
|
|
86
86
|
"githubUsername": "nicolas377"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "Ido Salomon",
|
|
90
|
+
"url": "https://github.com/idosal",
|
|
91
|
+
"githubUsername": "idosal"
|
|
87
92
|
}
|
|
88
93
|
],
|
|
89
94
|
"main": "",
|
|
@@ -98,6 +103,6 @@
|
|
|
98
103
|
"@types/filesystem": "*",
|
|
99
104
|
"@types/har-format": "*"
|
|
100
105
|
},
|
|
101
|
-
"typesPublisherContentHash": "
|
|
102
|
-
"typeScriptVersion": "3.
|
|
106
|
+
"typesPublisherContentHash": "9c6c3c3c312e6bf36acace82e27911b1cfae87b3580e48ccd4f0cbe1b4da7b14",
|
|
107
|
+
"typeScriptVersion": "3.8"
|
|
103
108
|
}
|