@types/chrome 0.0.183 → 0.0.186
Sign up to get free protection for your applications and to get access to all the features.
- chrome/README.md +1 -1
- chrome/index.d.ts +56 -2
- 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:
|
11
|
+
* Last updated: Sun, 15 May 2022 02:31:34 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
@@ -9930,7 +9930,7 @@ declare namespace chrome.tabs {
|
|
9930
9930
|
/** An ID that represents the absence of a group. */
|
9931
9931
|
export var TAB_GROUP_ID_NONE: -1;
|
9932
9932
|
|
9933
|
-
export type ColorEnum = 'grey' | 'blue' | 'red' | 'yellow' | 'green' | 'pink' | 'purple' | 'cyan';
|
9933
|
+
export type ColorEnum = 'grey' | 'blue' | 'red' | 'yellow' | 'green' | 'pink' | 'purple' | 'cyan' | 'orange';
|
9934
9934
|
|
9935
9935
|
export interface TabGroup {
|
9936
9936
|
/** Whether the group is collapsed. A collapsed group is one whose tabs are hidden. */
|
@@ -11514,7 +11514,7 @@ declare namespace chrome.declarativeNetRequest {
|
|
11514
11514
|
* Defaults to 1.
|
11515
11515
|
* When specified, should be >= 1.
|
11516
11516
|
*/
|
11517
|
-
priority
|
11517
|
+
priority?: number | undefined;
|
11518
11518
|
}
|
11519
11519
|
|
11520
11520
|
export interface RuleAction {
|
@@ -11545,6 +11545,8 @@ declare namespace chrome.declarativeNetRequest {
|
|
11545
11545
|
domainType?: DomainType | undefined;
|
11546
11546
|
|
11547
11547
|
/**
|
11548
|
+
* @deprecated since Chrome 101. Use initiatorDomains instead.
|
11549
|
+
|
11548
11550
|
* The rule will only match network requests originating from the list of domains.
|
11549
11551
|
* If the list is omitted, the rule is applied to requests from all domains.
|
11550
11552
|
* An empty list is not allowed.
|
@@ -11558,6 +11560,8 @@ declare namespace chrome.declarativeNetRequest {
|
|
11558
11560
|
domains?: string[] | undefined;
|
11559
11561
|
|
11560
11562
|
/**
|
11563
|
+
* @deprecated since Chrome 101. Use excludedInitiatorDomains instead
|
11564
|
+
*
|
11561
11565
|
* The rule will not match network requests originating from the list of excludedDomains.
|
11562
11566
|
* If the list is empty or omitted, no domains are excluded.
|
11563
11567
|
* This takes precedence over domains.
|
@@ -11570,6 +11574,56 @@ declare namespace chrome.declarativeNetRequest {
|
|
11570
11574
|
*/
|
11571
11575
|
excludedDomains?: string[] | undefined;
|
11572
11576
|
|
11577
|
+
/**
|
11578
|
+
* The rule will only match network requests originating from the list of initiatorDomains.
|
11579
|
+
* If the list is omitted, the rule is applied to requests from all domains.
|
11580
|
+
* An empty list is not allowed.
|
11581
|
+
*
|
11582
|
+
* Notes:
|
11583
|
+
* Sub-domains like "a.example.com" are also allowed.
|
11584
|
+
* The entries must consist of only ascii characters.
|
11585
|
+
* Use punycode encoding for internationalized domains.
|
11586
|
+
* This matches against the request initiator and not the request url.
|
11587
|
+
*/
|
11588
|
+
initiatorDomains?: string[] | undefined;
|
11589
|
+
|
11590
|
+
/**
|
11591
|
+
* The rule will not match network requests originating from the list of excludedInitiatorDomains.
|
11592
|
+
* If the list is empty or omitted, no domains are excluded.
|
11593
|
+
* This takes precedence over initiatorDomains.
|
11594
|
+
*
|
11595
|
+
* Notes:
|
11596
|
+
* Sub-domains like "a.example.com" are also allowed.
|
11597
|
+
* The entries must consist of only ascii characters.
|
11598
|
+
* Use punycode encoding for internationalized domains.
|
11599
|
+
* This matches against the request initiator and not the request url.
|
11600
|
+
*/
|
11601
|
+
excludedInitiatorDomains?: string[] | undefined;
|
11602
|
+
|
11603
|
+
/**
|
11604
|
+
* The rule will only match network requests when the domain matches one from the list of requestDomains.
|
11605
|
+
* If the list is omitted, the rule is applied to requests from all domains.
|
11606
|
+
* An empty list is not allowed.
|
11607
|
+
*
|
11608
|
+
* Notes:
|
11609
|
+
* Sub-domains like "a.example.com" are also allowed.
|
11610
|
+
* The entries must consist of only ascii characters.
|
11611
|
+
* Use punycode encoding for internationalized domains.
|
11612
|
+
*/
|
11613
|
+
requestDomains?: string[] | undefined;
|
11614
|
+
|
11615
|
+
/**
|
11616
|
+
* The rule will not match network requests when the domains matches one from the list of excludedRequestDomains.
|
11617
|
+
* If the list is empty or omitted, no domains are excluded.
|
11618
|
+
* This takes precedence over requestDomains.
|
11619
|
+
*
|
11620
|
+
* Notes:
|
11621
|
+
* Sub-domains like "a.example.com" are also allowed.
|
11622
|
+
* The entries must consist of only ascii characters.
|
11623
|
+
* Use punycode encoding for internationalized domains.
|
11624
|
+
*/
|
11625
|
+
excludedRequestDomains?: string[] | undefined;
|
11626
|
+
|
11573
11627
|
/**
|
11574
11628
|
* List of request methods which the rule won't match.
|
11575
11629
|
* 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.186",
|
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",
|
@@ -98,6 +98,6 @@
|
|
98
98
|
"@types/filesystem": "*",
|
99
99
|
"@types/har-format": "*"
|
100
100
|
},
|
101
|
-
"typesPublisherContentHash": "
|
101
|
+
"typesPublisherContentHash": "c587aec722ad7e28a6faf22860c3387c31c4d913ad63f586b60de7bf907f3be6",
|
102
102
|
"typeScriptVersion": "3.9"
|
103
103
|
}
|