@types/chrome 0.0.185 → 0.0.188
Sign up to get free protection for your applications and to get access to all the features.
- chrome/README.md +2 -2
- chrome/index.d.ts +60 -1
- chrome/package.json +2 -7
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, 19 May 2022 09:01:39 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), [
|
16
|
+
These definitions were written by [Matthew Kimber](https://github.com/matthewkimber), [otiai10](https://github.com/otiai10), [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
@@ -2,7 +2,6 @@
|
|
2
2
|
// Project: http://developer.chrome.com/extensions/
|
3
3
|
// Definitions by: Matthew Kimber <https://github.com/matthewkimber>
|
4
4
|
// otiai10 <https://github.com/otiai10>
|
5
|
-
// RReverser <https://github.com/rreverser>
|
6
5
|
// sreimer15 <https://github.com/sreimer15>
|
7
6
|
// MatCarlson <https://github.com/MatCarlson>
|
8
7
|
// ekinsol <https://github.com/ekinsol>
|
@@ -7362,6 +7361,12 @@ declare namespace chrome.runtime {
|
|
7362
7361
|
* @param callback Called with results
|
7363
7362
|
*/
|
7364
7363
|
export function getPlatformInfo(callback: (platformInfo: PlatformInfo) => void): void;
|
7364
|
+
/**
|
7365
|
+
* Returns information about the current platform.
|
7366
|
+
* @since Chrome 29.
|
7367
|
+
* @return The `getPlatformInfo` method provides its result via callback or returned as a `Promise` (MV3 only).
|
7368
|
+
*/
|
7369
|
+
export function getPlatformInfo(): Promise<PlatformInfo>;
|
7365
7370
|
/**
|
7366
7371
|
* Converts a relative path within an app/extension install directory to a fully-qualified URL.
|
7367
7372
|
* @param path A path to a resource within an app/extension expressed relative to its install directory.
|
@@ -11545,6 +11550,8 @@ declare namespace chrome.declarativeNetRequest {
|
|
11545
11550
|
domainType?: DomainType | undefined;
|
11546
11551
|
|
11547
11552
|
/**
|
11553
|
+
* @deprecated since Chrome 101. Use initiatorDomains instead.
|
11554
|
+
|
11548
11555
|
* The rule will only match network requests originating from the list of domains.
|
11549
11556
|
* If the list is omitted, the rule is applied to requests from all domains.
|
11550
11557
|
* An empty list is not allowed.
|
@@ -11558,6 +11565,8 @@ declare namespace chrome.declarativeNetRequest {
|
|
11558
11565
|
domains?: string[] | undefined;
|
11559
11566
|
|
11560
11567
|
/**
|
11568
|
+
* @deprecated since Chrome 101. Use excludedInitiatorDomains instead
|
11569
|
+
*
|
11561
11570
|
* The rule will not match network requests originating from the list of excludedDomains.
|
11562
11571
|
* If the list is empty or omitted, no domains are excluded.
|
11563
11572
|
* This takes precedence over domains.
|
@@ -11570,6 +11579,56 @@ declare namespace chrome.declarativeNetRequest {
|
|
11570
11579
|
*/
|
11571
11580
|
excludedDomains?: string[] | undefined;
|
11572
11581
|
|
11582
|
+
/**
|
11583
|
+
* The rule will only match network requests originating from the list of initiatorDomains.
|
11584
|
+
* If the list is omitted, the rule is applied to requests from all domains.
|
11585
|
+
* An empty list is not allowed.
|
11586
|
+
*
|
11587
|
+
* Notes:
|
11588
|
+
* Sub-domains like "a.example.com" are also allowed.
|
11589
|
+
* The entries must consist of only ascii characters.
|
11590
|
+
* Use punycode encoding for internationalized domains.
|
11591
|
+
* This matches against the request initiator and not the request url.
|
11592
|
+
*/
|
11593
|
+
initiatorDomains?: string[] | undefined;
|
11594
|
+
|
11595
|
+
/**
|
11596
|
+
* The rule will not match network requests originating from the list of excludedInitiatorDomains.
|
11597
|
+
* If the list is empty or omitted, no domains are excluded.
|
11598
|
+
* This takes precedence over initiatorDomains.
|
11599
|
+
*
|
11600
|
+
* Notes:
|
11601
|
+
* Sub-domains like "a.example.com" are also allowed.
|
11602
|
+
* The entries must consist of only ascii characters.
|
11603
|
+
* Use punycode encoding for internationalized domains.
|
11604
|
+
* This matches against the request initiator and not the request url.
|
11605
|
+
*/
|
11606
|
+
excludedInitiatorDomains?: string[] | undefined;
|
11607
|
+
|
11608
|
+
/**
|
11609
|
+
* The rule will only match network requests when the domain matches one from the list of requestDomains.
|
11610
|
+
* If the list is omitted, the rule is applied to requests from all domains.
|
11611
|
+
* An empty list is not allowed.
|
11612
|
+
*
|
11613
|
+
* Notes:
|
11614
|
+
* Sub-domains like "a.example.com" are also allowed.
|
11615
|
+
* The entries must consist of only ascii characters.
|
11616
|
+
* Use punycode encoding for internationalized domains.
|
11617
|
+
*/
|
11618
|
+
requestDomains?: string[] | undefined;
|
11619
|
+
|
11620
|
+
/**
|
11621
|
+
* The rule will not match network requests when the domains matches one from the list of excludedRequestDomains.
|
11622
|
+
* If the list is empty or omitted, no domains are excluded.
|
11623
|
+
* This takes precedence over requestDomains.
|
11624
|
+
*
|
11625
|
+
* Notes:
|
11626
|
+
* Sub-domains like "a.example.com" are also allowed.
|
11627
|
+
* The entries must consist of only ascii characters.
|
11628
|
+
* Use punycode encoding for internationalized domains.
|
11629
|
+
*/
|
11630
|
+
excludedRequestDomains?: string[] | undefined;
|
11631
|
+
|
11573
11632
|
/**
|
11574
11633
|
* List of request methods which the rule won't match.
|
11575
11634
|
* Only one of requestMethods and excludedRequestMethods should be specified.
|
chrome/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/chrome",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.188",
|
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",
|
@@ -15,11 +15,6 @@
|
|
15
15
|
"url": "https://github.com/otiai10",
|
16
16
|
"githubUsername": "otiai10"
|
17
17
|
},
|
18
|
-
{
|
19
|
-
"name": "RReverser",
|
20
|
-
"url": "https://github.com/rreverser",
|
21
|
-
"githubUsername": "rreverser"
|
22
|
-
},
|
23
18
|
{
|
24
19
|
"name": "sreimer15",
|
25
20
|
"url": "https://github.com/sreimer15",
|
@@ -98,6 +93,6 @@
|
|
98
93
|
"@types/filesystem": "*",
|
99
94
|
"@types/har-format": "*"
|
100
95
|
},
|
101
|
-
"typesPublisherContentHash": "
|
96
|
+
"typesPublisherContentHash": "7bea6faa725ef974639df153ecbad4b2883c9ed2e935c626e89fed1cf41bebd7",
|
102
97
|
"typeScriptVersion": "3.9"
|
103
98
|
}
|