@types/chrome 0.0.252 → 0.0.254

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 +26 -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: Mon, 20 Nov 2023 23:36:23 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
@@ -11288,10 +11288,12 @@ declare namespace chrome.webRequest {
11288
11288
 
11289
11289
  export interface WebRequestBodyEvent extends
11290
11290
  chrome.events.EventWithRequiredFilterInAddListener<
11291
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
11291
11292
  (details: WebRequestBodyDetails) => BlockingResponse | void
11292
11293
  >
11293
11294
  {
11294
11295
  addListener(
11296
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
11295
11297
  callback: (details: WebRequestBodyDetails) => BlockingResponse | void,
11296
11298
  filter: RequestFilter,
11297
11299
  opt_extraInfoSpec?: string[],
@@ -11300,10 +11302,12 @@ declare namespace chrome.webRequest {
11300
11302
 
11301
11303
  export interface WebRequestHeadersSynchronousEvent extends
11302
11304
  chrome.events.EventWithRequiredFilterInAddListener<
11305
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
11303
11306
  (details: WebRequestHeadersDetails) => BlockingResponse | void
11304
11307
  >
11305
11308
  {
11306
11309
  addListener(
11310
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
11307
11311
  callback: (details: WebRequestHeadersDetails) => BlockingResponse | void,
11308
11312
  filter: RequestFilter,
11309
11313
  opt_extraInfoSpec?: string[],
@@ -11328,10 +11332,12 @@ declare namespace chrome.webRequest {
11328
11332
 
11329
11333
  export interface WebResponseHeadersEvent extends
11330
11334
  chrome.events.EventWithRequiredFilterInAddListener<
11335
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
11331
11336
  (details: WebResponseHeadersDetails) => BlockingResponse | void
11332
11337
  >
11333
11338
  {
11334
11339
  addListener(
11340
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
11335
11341
  callback: (details: WebResponseHeadersDetails) => BlockingResponse | void,
11336
11342
  filter: RequestFilter,
11337
11343
  opt_extraInfoSpec?: string[],
@@ -12351,6 +12357,17 @@ declare namespace chrome.declarativeNetRequest {
12351
12357
  removeRuleIds?: number[] | undefined;
12352
12358
  }
12353
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
+
12354
12371
  export interface UpdateRulesetOptions {
12355
12372
  /** The set of ids corresponding to a static Ruleset that should be disabled. */
12356
12373
  disableRulesetIds?: string[] | undefined;
@@ -12567,6 +12584,15 @@ declare namespace chrome.declarativeNetRequest {
12567
12584
  */
12568
12585
  export function updateSessionRules(options: UpdateRuleOptions): Promise<void>;
12569
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
+
12570
12596
  /** The rule that has been matched along with information about the associated request. */
12571
12597
  export interface RuleMatchedDebugEvent extends chrome.events.Event<(info: MatchedRuleInfoDebug) => void> {}
12572
12598
 
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.252",
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": "dca1bd9e1bd607c199132d09e1051c5c05dd3351ac7400b5749a5775f7daf4e5",
97
- "typeScriptVersion": "4.5"
96
+ "typesPublisherContentHash": "9636b04926086c6b6e888009beacd5a3b664031b6db0b07f29111291370681e0",
97
+ "typeScriptVersion": "4.6"
98
98
  }