@types/chrome 0.0.218 → 0.0.219

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 +10 -21
  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: Tue, 28 Feb 2023 02:32:36 GMT
11
+ * Last updated: Thu, 02 Mar 2023 23:02:41 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
@@ -11513,7 +11513,7 @@ declare namespace chrome.declarativeNetRequest {
11513
11513
  type: RuleActionType;
11514
11514
  }
11515
11515
 
11516
- export type RuleCondition = {
11516
+ export interface RuleCondition {
11517
11517
  /**
11518
11518
  * Specifies whether the network request is first-party or third-party to the domain from which it originated.
11519
11519
  * If omitted, all requests are accepted.
@@ -11679,26 +11679,15 @@ declare namespace chrome.declarativeNetRequest {
11679
11679
  * For example, when the request url is http://abc.рф?q=ф, the urlFilter will be matched against the url http://abc.xn--p1ai/?q=%D1%84.
11680
11680
  */
11681
11681
  urlFilter?: string | undefined;
11682
- } & (
11683
- | {
11684
- /**
11685
- * List of resource types which the rule won't match.
11686
- * Only one of {@link chrome.declarativeNetRequest.RuleCondition.resourceTypes}
11687
- * and {@link chrome.declarativeNetRequest.RuleCondition.excludedResourceTypes} should be specified.
11688
- * If neither of them is specified, all resource types except "main_frame" are blocked.
11689
- */
11690
- excludedResourceTypes?: ResourceType[] | undefined;
11691
- }
11692
- | {
11693
- /**
11694
- * List of resource types which the rule can match.
11695
- * An empty list is not allowed.
11696
- *
11697
- * Note: this must be specified for allowAllRequests rules and may only include the sub_frame and main_frame resource types.
11698
- */
11699
- resourceTypes?: ResourceType[] | undefined;
11700
- }
11701
- );
11682
+
11683
+ /**
11684
+ * List of resource types which the rule can match.
11685
+ * An empty list is not allowed.
11686
+ *
11687
+ * Note: this must be specified for allowAllRequests rules and may only include the sub_frame and main_frame resource types.
11688
+ */
11689
+ resourceTypes?: ResourceType[] | undefined;
11690
+ }
11702
11691
 
11703
11692
  export interface MatchedRule {
11704
11693
  /** A matching rule's ID. */
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.218",
3
+ "version": "0.0.219",
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",
@@ -93,6 +93,6 @@
93
93
  "@types/filesystem": "*",
94
94
  "@types/har-format": "*"
95
95
  },
96
- "typesPublisherContentHash": "7f719c6796d1282e638038ec4cb6f25e315fa60c5ce8dc0861fc11f38c73ed21",
96
+ "typesPublisherContentHash": "a1321da46e66464a3e59cf8b3dcfc46964a2e33742550c2a39eb940757545dd2",
97
97
  "typeScriptVersion": "4.2"
98
98
  }