@types/chrome 0.0.162 → 0.0.166
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 +24 -4
- 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: Thu, 02 Dec 2021 01:31:03 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
|
|
@@ -774,7 +775,7 @@ declare namespace chrome.browserAction {
|
|
774
775
|
|
775
776
|
export interface BadgeTextDetails {
|
776
777
|
/** Any number of characters can be passed, but only about four can fit in the space. */
|
777
|
-
text?: string |
|
778
|
+
text?: string | null;
|
778
779
|
/** Optional. Limits the change to when a particular tab is selected. Automatically resets when the tab is closed. */
|
779
780
|
tabId?: number | undefined;
|
780
781
|
}
|
@@ -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. */
|
@@ -10730,10 +10740,20 @@ declare namespace chrome.windows {
|
|
10730
10740
|
}
|
10731
10741
|
|
10732
10742
|
export interface WindowIdEvent
|
10733
|
-
extends chrome.events.Event<(windowId: number
|
10743
|
+
extends chrome.events.Event<(windowId: number) => void> {
|
10744
|
+
addListener(
|
10745
|
+
callback: (windowId: number) => void,
|
10746
|
+
filters?: WindowEventFilter,
|
10747
|
+
): void;
|
10748
|
+
}
|
10734
10749
|
|
10735
10750
|
export interface WindowReferenceEvent
|
10736
|
-
extends chrome.events.Event<(window: Window
|
10751
|
+
extends chrome.events.Event<(window: Window) => void> {
|
10752
|
+
addListener(
|
10753
|
+
callback: (window: Window) => void,
|
10754
|
+
filters?: WindowEventFilter,
|
10755
|
+
): void;
|
10756
|
+
}
|
10737
10757
|
|
10738
10758
|
/**
|
10739
10759
|
* 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.166",
|
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": "f832dec8364fd12f0e0dcd9324d75ea3acded604e45d458a8493b5e501acc7ab",
|
107
|
+
"typeScriptVersion": "3.8"
|
103
108
|
}
|