@types/chrome 0.1.29 → 0.1.31
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 +21 -5
- chrome/package.json +2 -2
chrome/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for chrome (https://developer.chrome.com/
|
|
|
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: Wed, 19 Nov 2025 21:02:03 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
|
@@ -2524,6 +2524,7 @@ declare namespace chrome {
|
|
|
2524
2524
|
}
|
|
2525
2525
|
|
|
2526
2526
|
/** Declarative event action that redirects a network request to an empty document. */
|
|
2527
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
2527
2528
|
export interface RedirectToEmptyDocument {}
|
|
2528
2529
|
|
|
2529
2530
|
/** Declarative event action that redirects a network request. */
|
|
@@ -2566,6 +2567,7 @@ declare namespace chrome {
|
|
|
2566
2567
|
}
|
|
2567
2568
|
|
|
2568
2569
|
/** Declarative event action that cancels a network request. */
|
|
2570
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
2569
2571
|
export interface CancelRequest {}
|
|
2570
2572
|
|
|
2571
2573
|
/** Removes the request header of the specified name. Do not use SetRequestHeader and RemoveRequestHeader with the same header name on the same request. Each request header name occurs only once in each request. */
|
|
@@ -2633,6 +2635,7 @@ declare namespace chrome {
|
|
|
2633
2635
|
}
|
|
2634
2636
|
|
|
2635
2637
|
/** Declarative event action that redirects a network request to a transparent image. */
|
|
2638
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
2636
2639
|
export interface RedirectToTransparentImage {}
|
|
2637
2640
|
|
|
2638
2641
|
/** Adds a cookie to the request or overrides a cookie, in case another cookie of the same name exists already. Note that it is preferred to use the Cookies API because this is computationally less expensive. */
|
|
@@ -3015,6 +3018,12 @@ declare namespace chrome {
|
|
|
3015
3018
|
onHidden: events.Event<() => void>;
|
|
3016
3019
|
}
|
|
3017
3020
|
|
|
3021
|
+
/**
|
|
3022
|
+
* Theme used by DevTools.
|
|
3023
|
+
* @since Chrome 99
|
|
3024
|
+
*/
|
|
3025
|
+
export type Theme = "default" | "dark";
|
|
3026
|
+
|
|
3018
3027
|
/** Elements panel. */
|
|
3019
3028
|
export const elements: ElementsPanel;
|
|
3020
3029
|
|
|
@@ -3047,6 +3056,12 @@ declare namespace chrome {
|
|
|
3047
3056
|
) => void,
|
|
3048
3057
|
): void;
|
|
3049
3058
|
|
|
3059
|
+
/**
|
|
3060
|
+
* 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.
|
|
3061
|
+
* @since Chrome 99
|
|
3062
|
+
*/
|
|
3063
|
+
export function setThemeChangeHandler(callback?: (theme: Theme) => void): void;
|
|
3064
|
+
|
|
3050
3065
|
/**
|
|
3051
3066
|
* Requests DevTools to open a URL in a Developer Tools panel.
|
|
3052
3067
|
* @param url The URL of the resource to open.
|
|
@@ -3065,7 +3080,7 @@ declare namespace chrome {
|
|
|
3065
3080
|
* The name of the color theme set in user's DevTools settings.
|
|
3066
3081
|
* @since Chrome 59
|
|
3067
3082
|
*/
|
|
3068
|
-
export const themeName:
|
|
3083
|
+
export const themeName: Theme;
|
|
3069
3084
|
}
|
|
3070
3085
|
|
|
3071
3086
|
////////////////////
|
|
@@ -3743,6 +3758,7 @@ declare namespace chrome {
|
|
|
3743
3758
|
SAFE = "safe",
|
|
3744
3759
|
/** The user has accepted the dangerous download. */
|
|
3745
3760
|
ACCEPTED = "accepted",
|
|
3761
|
+
/** Enterprise-related values. */
|
|
3746
3762
|
ALLOWLISTED_BY_POLICY = "allowlistedByPolicy",
|
|
3747
3763
|
ASYNC_SCANNING = "asyncScanning",
|
|
3748
3764
|
ASYNC_LOCAL_PASSWORD_SCANNING = "asyncLocalPasswordScanning",
|
|
@@ -3757,6 +3773,8 @@ declare namespace chrome {
|
|
|
3757
3773
|
PROMPT_FOR_LOCAL_PASSWORD_SCANNING = "promptForLocalPasswordScanning",
|
|
3758
3774
|
ACCOUNT_COMPROMISE = "accountCompromise",
|
|
3759
3775
|
BLOCKED_SCAN_FAILED = "blockedScanFailed",
|
|
3776
|
+
/** For use by the Secure Enterprise Browser extension. When required, Chrome will block the download to disc and download the file directly to Google Drive. */
|
|
3777
|
+
FORCE_SAVE_TO_GDRIVE = "forceSaveToGdrive",
|
|
3760
3778
|
}
|
|
3761
3779
|
|
|
3762
3780
|
export interface DownloadItem {
|
|
@@ -10029,10 +10047,8 @@ declare namespace chrome {
|
|
|
10029
10047
|
*
|
|
10030
10048
|
* Can return its result via Promise in Manifest V3 or later since Chrome 95.
|
|
10031
10049
|
*/
|
|
10032
|
-
getBytesInUse(keys: never[]): Promise<0>;
|
|
10033
10050
|
getBytesInUse<T = { [key: string]: any }>(keys?: keyof T | Array<keyof T> | null): Promise<number>;
|
|
10034
10051
|
getBytesInUse<T = { [key: string]: any }>(callback: (bytesInUse: number) => void): void;
|
|
10035
|
-
getBytesInUse(keys: never[], callback: (bytesInUse: 0) => void): void;
|
|
10036
10052
|
getBytesInUse<T = { [key: string]: any }>(
|
|
10037
10053
|
keys: keyof T | Array<keyof T> | null | undefined,
|
|
10038
10054
|
callback: (bytesInUse: number) => void,
|
|
@@ -10070,12 +10086,10 @@ declare namespace chrome {
|
|
|
10070
10086
|
*
|
|
10071
10087
|
* Can return its result via Promise in Manifest V3 or later since Chrome 95.
|
|
10072
10088
|
*/
|
|
10073
|
-
get(keys: never[] | Record<string, never>): Promise<{ [key: string]: never }>;
|
|
10074
10089
|
get<T = { [key: string]: unknown }>(
|
|
10075
10090
|
keys?: NoInferX<keyof T> | Array<NoInferX<keyof T>> | Partial<NoInferX<T>> | null,
|
|
10076
10091
|
): Promise<T>;
|
|
10077
10092
|
get<T = { [key: string]: unknown }>(callback: (items: T) => void): void;
|
|
10078
|
-
get(keys: never[] | Record<string, never>, callback: (items: { [key: string]: never }) => void): void;
|
|
10079
10093
|
get<T = { [key: string]: unknown }>(
|
|
10080
10094
|
keys: NoInferX<keyof T> | Array<NoInferX<keyof T>> | Partial<NoInferX<T>> | null | undefined,
|
|
10081
10095
|
callback: (items: T) => void,
|
|
@@ -10199,6 +10213,7 @@ declare namespace chrome {
|
|
|
10199
10213
|
}
|
|
10200
10214
|
|
|
10201
10215
|
/** @deprecated Use {@link CpuTime} instead. */
|
|
10216
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
10202
10217
|
interface ProcessorUsage extends CpuTime {}
|
|
10203
10218
|
|
|
10204
10219
|
export interface ProcessorInfo {
|
|
@@ -12423,6 +12438,7 @@ declare namespace chrome {
|
|
|
12423
12438
|
}
|
|
12424
12439
|
|
|
12425
12440
|
/** @deprecated Use {@link Parameters} instead */
|
|
12441
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
12426
12442
|
interface VpnSessionParameters extends Parameters {}
|
|
12427
12443
|
|
|
12428
12444
|
/** The enum is used by the platform to notify the client of the VPN session status. */
|
chrome/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/chrome",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.31",
|
|
4
4
|
"description": "TypeScript definitions for chrome",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome",
|
|
6
6
|
"license": "MIT",
|
|
@@ -94,6 +94,6 @@
|
|
|
94
94
|
"@types/har-format": "*"
|
|
95
95
|
},
|
|
96
96
|
"peerDependencies": {},
|
|
97
|
-
"typesPublisherContentHash": "
|
|
97
|
+
"typesPublisherContentHash": "1514b04207a05c2fb0e3a83bdfe5459198a55479c419054c7228830f760ef351",
|
|
98
98
|
"typeScriptVersion": "5.2"
|
|
99
99
|
}
|