@types/chrome 0.0.184 → 0.0.187

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.
Files changed (3) hide show
  1. chrome/README.md +1 -1
  2. chrome/index.d.ts +61 -1
  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, 03 May 2022 23:31:39 GMT
11
+ * Last updated: Thu, 19 May 2022 05:31:38 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
@@ -7362,6 +7362,12 @@ declare namespace chrome.runtime {
7362
7362
  * @param callback Called with results
7363
7363
  */
7364
7364
  export function getPlatformInfo(callback: (platformInfo: PlatformInfo) => void): void;
7365
+ /**
7366
+ * Returns information about the current platform.
7367
+ * @since Chrome 29.
7368
+ * @return The `getPlatformInfo` method provides its result via callback or returned as a `Promise` (MV3 only).
7369
+ */
7370
+ export function getPlatformInfo(): Promise<PlatformInfo>;
7365
7371
  /**
7366
7372
  * Converts a relative path within an app/extension install directory to a fully-qualified URL.
7367
7373
  * @param path A path to a resource within an app/extension expressed relative to its install directory.
@@ -9930,7 +9936,7 @@ declare namespace chrome.tabs {
9930
9936
  /** An ID that represents the absence of a group. */
9931
9937
  export var TAB_GROUP_ID_NONE: -1;
9932
9938
 
9933
- export type ColorEnum = 'grey' | 'blue' | 'red' | 'yellow' | 'green' | 'pink' | 'purple' | 'cyan';
9939
+ export type ColorEnum = 'grey' | 'blue' | 'red' | 'yellow' | 'green' | 'pink' | 'purple' | 'cyan' | 'orange';
9934
9940
 
9935
9941
  export interface TabGroup {
9936
9942
  /** Whether the group is collapsed. A collapsed group is one whose tabs are hidden. */
@@ -11545,6 +11551,8 @@ declare namespace chrome.declarativeNetRequest {
11545
11551
  domainType?: DomainType | undefined;
11546
11552
 
11547
11553
  /**
11554
+ * @deprecated since Chrome 101. Use initiatorDomains instead.
11555
+
11548
11556
  * The rule will only match network requests originating from the list of domains.
11549
11557
  * If the list is omitted, the rule is applied to requests from all domains.
11550
11558
  * An empty list is not allowed.
@@ -11558,6 +11566,8 @@ declare namespace chrome.declarativeNetRequest {
11558
11566
  domains?: string[] | undefined;
11559
11567
 
11560
11568
  /**
11569
+ * @deprecated since Chrome 101. Use excludedInitiatorDomains instead
11570
+ *
11561
11571
  * The rule will not match network requests originating from the list of excludedDomains.
11562
11572
  * If the list is empty or omitted, no domains are excluded.
11563
11573
  * This takes precedence over domains.
@@ -11570,6 +11580,56 @@ declare namespace chrome.declarativeNetRequest {
11570
11580
  */
11571
11581
  excludedDomains?: string[] | undefined;
11572
11582
 
11583
+ /**
11584
+ * The rule will only match network requests originating from the list of initiatorDomains.
11585
+ * If the list is omitted, the rule is applied to requests from all domains.
11586
+ * An empty list is not allowed.
11587
+ *
11588
+ * Notes:
11589
+ * Sub-domains like "a.example.com" are also allowed.
11590
+ * The entries must consist of only ascii characters.
11591
+ * Use punycode encoding for internationalized domains.
11592
+ * This matches against the request initiator and not the request url.
11593
+ */
11594
+ initiatorDomains?: string[] | undefined;
11595
+
11596
+ /**
11597
+ * The rule will not match network requests originating from the list of excludedInitiatorDomains.
11598
+ * If the list is empty or omitted, no domains are excluded.
11599
+ * This takes precedence over initiatorDomains.
11600
+ *
11601
+ * Notes:
11602
+ * Sub-domains like "a.example.com" are also allowed.
11603
+ * The entries must consist of only ascii characters.
11604
+ * Use punycode encoding for internationalized domains.
11605
+ * This matches against the request initiator and not the request url.
11606
+ */
11607
+ excludedInitiatorDomains?: string[] | undefined;
11608
+
11609
+ /**
11610
+ * The rule will only match network requests when the domain matches one from the list of requestDomains.
11611
+ * If the list is omitted, the rule is applied to requests from all domains.
11612
+ * An empty list is not allowed.
11613
+ *
11614
+ * Notes:
11615
+ * Sub-domains like "a.example.com" are also allowed.
11616
+ * The entries must consist of only ascii characters.
11617
+ * Use punycode encoding for internationalized domains.
11618
+ */
11619
+ requestDomains?: string[] | undefined;
11620
+
11621
+ /**
11622
+ * The rule will not match network requests when the domains matches one from the list of excludedRequestDomains.
11623
+ * If the list is empty or omitted, no domains are excluded.
11624
+ * This takes precedence over requestDomains.
11625
+ *
11626
+ * Notes:
11627
+ * Sub-domains like "a.example.com" are also allowed.
11628
+ * The entries must consist of only ascii characters.
11629
+ * Use punycode encoding for internationalized domains.
11630
+ */
11631
+ excludedRequestDomains?: string[] | undefined;
11632
+
11573
11633
  /**
11574
11634
  * List of request methods which the rule won't match.
11575
11635
  * 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.184",
3
+ "version": "0.0.187",
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": "26cff7a88ee98738d5bd4f065437e632a01f41e385ad9befea1c320c8d7744e3",
101
+ "typesPublisherContentHash": "affe4b56fa07c12506cd4708c9702186e1027eb0157ba3d7cf6cc60d17ff6eb4",
102
102
  "typeScriptVersion": "3.9"
103
103
  }