@types/chrome 0.0.253 → 0.0.254

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 +20 -0
  3. chrome/package.json +3 -3
chrome/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for chrome (http://developer.chrome.com/e
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 22 Nov 2023 00:24:48 GMT
11
+ * Last updated: Wed, 06 Dec 2023 17:36:02 GMT
12
12
  * Dependencies: [@types/filesystem](https://npmjs.com/package/@types/filesystem), [@types/har-format](https://npmjs.com/package/@types/har-format)
13
13
 
14
14
  # Credits
chrome/index.d.ts CHANGED
@@ -12357,6 +12357,17 @@ declare namespace chrome.declarativeNetRequest {
12357
12357
  removeRuleIds?: number[] | undefined;
12358
12358
  }
12359
12359
 
12360
+ export interface UpdateStaticRulesOptions {
12361
+ /** Set of ids corresponding to rules in the Ruleset to disable. */
12362
+ disableRuleIds?: number[];
12363
+
12364
+ /** Set of ids corresponding to rules in the Ruleset to enable. */
12365
+ enableRuleIds?: number[];
12366
+
12367
+ /** The id corresponding to a static Ruleset. */
12368
+ rulesetId: string;
12369
+ }
12370
+
12360
12371
  export interface UpdateRulesetOptions {
12361
12372
  /** The set of ids corresponding to a static Ruleset that should be disabled. */
12362
12373
  disableRulesetIds?: string[] | undefined;
@@ -12573,6 +12584,15 @@ declare namespace chrome.declarativeNetRequest {
12573
12584
  */
12574
12585
  export function updateSessionRules(options: UpdateRuleOptions): Promise<void>;
12575
12586
 
12587
+ /** Disables and enables individual static rules in a Ruleset.
12588
+ * Changes to rules belonging to a disabled Ruleset will take effect the next time that it becomes enabled.
12589
+ *
12590
+ * @return The `updateStaticRules` method either calls a provided callback if its finished or returns as a `Promise` (MV3 only).
12591
+ * @since Chrome 111
12592
+ */
12593
+ export function updateStaticRules(options: UpdateStaticRulesOptions): Promise<void>;
12594
+ export function updateStaticRules(options: UpdateStaticRulesOptions, callback?: () => void): void;
12595
+
12576
12596
  /** The rule that has been matched along with information about the associated request. */
12577
12597
  export interface RuleMatchedDebugEvent extends chrome.events.Event<(info: MatchedRuleInfoDebug) => void> {}
12578
12598
 
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.253",
3
+ "version": "0.0.254",
4
4
  "description": "TypeScript definitions for chrome",
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": "eda2c149e8ff79b18eb174bd439276a5ee8edfc15730f3f599fa8167e8d54e14",
97
- "typeScriptVersion": "4.5"
96
+ "typesPublisherContentHash": "9636b04926086c6b6e888009beacd5a3b664031b6db0b07f29111291370681e0",
97
+ "typeScriptVersion": "4.6"
98
98
  }