chrome-types 0.1.387 → 0.1.388
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.
- package/_all.d.ts +27 -2
- package/index.d.ts +27 -2
- package/package.json +2 -2
package/_all.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Mon Nov 10 2025 06:01:00 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at dc9049c3e86e3c8da44a6ff6853405633c73fd9a
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -10229,6 +10229,15 @@ declare namespace chrome {
|
|
|
10229
10229
|
): void;
|
|
10230
10230
|
}
|
|
10231
10231
|
|
|
10232
|
+
/**
|
|
10233
|
+
* Theme used by DevTools.
|
|
10234
|
+
*
|
|
10235
|
+
* @chrome-enum "default" Default DevTools theme. This is always the light theme.
|
|
10236
|
+
* @chrome-enum "dark" Dark theme.
|
|
10237
|
+
* @since Chrome 99
|
|
10238
|
+
*/
|
|
10239
|
+
export type Theme = "default" | "dark";
|
|
10240
|
+
|
|
10232
10241
|
/**
|
|
10233
10242
|
* Elements panel.
|
|
10234
10243
|
*/
|
|
@@ -10308,6 +10317,22 @@ declare namespace chrome {
|
|
|
10308
10317
|
|
|
10309
10318
|
callback?: () => void,
|
|
10310
10319
|
): void;
|
|
10320
|
+
|
|
10321
|
+
/**
|
|
10322
|
+
* Specifies the function to be called when the current theme changes in DevTools. To unset the handler, either call the method with no parameters or pass `null` as the parameter.
|
|
10323
|
+
*
|
|
10324
|
+
* @param callback A function that is called when the current theme changes in DevTools.
|
|
10325
|
+
* @since Chrome 99
|
|
10326
|
+
*/
|
|
10327
|
+
export function setThemeChangeHandler(
|
|
10328
|
+
|
|
10329
|
+
/**
|
|
10330
|
+
* @param theme Current theme in DevTools.
|
|
10331
|
+
*/
|
|
10332
|
+
callback?: (
|
|
10333
|
+
theme: Theme,
|
|
10334
|
+
) => void,
|
|
10335
|
+
): void;
|
|
10311
10336
|
}
|
|
10312
10337
|
|
|
10313
10338
|
/**
|
package/index.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Mon Nov 10 2025 06:00:55 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at dc9049c3e86e3c8da44a6ff6853405633c73fd9a
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -6425,6 +6425,15 @@ declare namespace chrome {
|
|
|
6425
6425
|
): void;
|
|
6426
6426
|
}
|
|
6427
6427
|
|
|
6428
|
+
/**
|
|
6429
|
+
* Theme used by DevTools.
|
|
6430
|
+
*
|
|
6431
|
+
* @chrome-enum "default" Default DevTools theme. This is always the light theme.
|
|
6432
|
+
* @chrome-enum "dark" Dark theme.
|
|
6433
|
+
* @since Chrome 99
|
|
6434
|
+
*/
|
|
6435
|
+
export type Theme = "default" | "dark";
|
|
6436
|
+
|
|
6428
6437
|
/**
|
|
6429
6438
|
* Elements panel.
|
|
6430
6439
|
*/
|
|
@@ -6504,6 +6513,22 @@ declare namespace chrome {
|
|
|
6504
6513
|
|
|
6505
6514
|
callback?: () => void,
|
|
6506
6515
|
): void;
|
|
6516
|
+
|
|
6517
|
+
/**
|
|
6518
|
+
* Specifies the function to be called when the current theme changes in DevTools. To unset the handler, either call the method with no parameters or pass `null` as the parameter.
|
|
6519
|
+
*
|
|
6520
|
+
* @param callback A function that is called when the current theme changes in DevTools.
|
|
6521
|
+
* @since Chrome 99
|
|
6522
|
+
*/
|
|
6523
|
+
export function setThemeChangeHandler(
|
|
6524
|
+
|
|
6525
|
+
/**
|
|
6526
|
+
* @param theme Current theme in DevTools.
|
|
6527
|
+
*/
|
|
6528
|
+
callback?: (
|
|
6529
|
+
theme: Theme,
|
|
6530
|
+
) => void,
|
|
6531
|
+
): void;
|
|
6507
6532
|
}
|
|
6508
6533
|
|
|
6509
6534
|
/**
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"type": "module",
|
|
6
6
|
"name": "chrome-types",
|
|
7
7
|
"config": {
|
|
8
|
-
"build-hash": "
|
|
8
|
+
"build-hash": "a035fd636c61d930"
|
|
9
9
|
},
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
"url": "https://github.com/GoogleChrome/chrome-types/issues"
|
|
17
17
|
},
|
|
18
18
|
"homepage": "https://github.com/GoogleChrome/chrome-types",
|
|
19
|
-
"version": "0.1.
|
|
19
|
+
"version": "0.1.388"
|
|
20
20
|
}
|