@types/chrome 0.0.253 → 0.0.255
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.
- chrome/README.md +1 -1
- chrome/index.d.ts +23 -1
- 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:
|
|
11
|
+
* Last updated: Thu, 04 Jan 2024 18:36:09 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
|
@@ -7235,7 +7235,9 @@ declare namespace chrome.runtime {
|
|
|
7235
7235
|
icons?: ManifestIcons | undefined;
|
|
7236
7236
|
|
|
7237
7237
|
// Optional
|
|
7238
|
-
author?:
|
|
7238
|
+
author?: {
|
|
7239
|
+
email: string;
|
|
7240
|
+
} | undefined;
|
|
7239
7241
|
background_page?: string | undefined;
|
|
7240
7242
|
chrome_settings_overrides?: {
|
|
7241
7243
|
homepage?: string | undefined;
|
|
@@ -12357,6 +12359,17 @@ declare namespace chrome.declarativeNetRequest {
|
|
|
12357
12359
|
removeRuleIds?: number[] | undefined;
|
|
12358
12360
|
}
|
|
12359
12361
|
|
|
12362
|
+
export interface UpdateStaticRulesOptions {
|
|
12363
|
+
/** Set of ids corresponding to rules in the Ruleset to disable. */
|
|
12364
|
+
disableRuleIds?: number[];
|
|
12365
|
+
|
|
12366
|
+
/** Set of ids corresponding to rules in the Ruleset to enable. */
|
|
12367
|
+
enableRuleIds?: number[];
|
|
12368
|
+
|
|
12369
|
+
/** The id corresponding to a static Ruleset. */
|
|
12370
|
+
rulesetId: string;
|
|
12371
|
+
}
|
|
12372
|
+
|
|
12360
12373
|
export interface UpdateRulesetOptions {
|
|
12361
12374
|
/** The set of ids corresponding to a static Ruleset that should be disabled. */
|
|
12362
12375
|
disableRulesetIds?: string[] | undefined;
|
|
@@ -12573,6 +12586,15 @@ declare namespace chrome.declarativeNetRequest {
|
|
|
12573
12586
|
*/
|
|
12574
12587
|
export function updateSessionRules(options: UpdateRuleOptions): Promise<void>;
|
|
12575
12588
|
|
|
12589
|
+
/** Disables and enables individual static rules in a Ruleset.
|
|
12590
|
+
* Changes to rules belonging to a disabled Ruleset will take effect the next time that it becomes enabled.
|
|
12591
|
+
*
|
|
12592
|
+
* @return The `updateStaticRules` method either calls a provided callback if its finished or returns as a `Promise` (MV3 only).
|
|
12593
|
+
* @since Chrome 111
|
|
12594
|
+
*/
|
|
12595
|
+
export function updateStaticRules(options: UpdateStaticRulesOptions): Promise<void>;
|
|
12596
|
+
export function updateStaticRules(options: UpdateStaticRulesOptions, callback?: () => void): void;
|
|
12597
|
+
|
|
12576
12598
|
/** The rule that has been matched along with information about the associated request. */
|
|
12577
12599
|
export interface RuleMatchedDebugEvent extends chrome.events.Event<(info: MatchedRuleInfoDebug) => void> {}
|
|
12578
12600
|
|
chrome/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/chrome",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.255",
|
|
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": "
|
|
97
|
-
"typeScriptVersion": "4.
|
|
96
|
+
"typesPublisherContentHash": "e365b5ef0edfa1d146b1d225acfd166f292363e852ccbf713a24ef20d97a9319",
|
|
97
|
+
"typeScriptVersion": "4.6"
|
|
98
98
|
}
|