@types/chrome 0.1.28 → 0.1.30
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 +108 -140
- 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: Mon, 17 Nov 2025 22:35:44 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 {
|
|
@@ -10025,209 +10043,157 @@ declare namespace chrome {
|
|
|
10025
10043
|
export interface StorageArea {
|
|
10026
10044
|
/**
|
|
10027
10045
|
* Gets the amount of space (in bytes) being used by one or more items.
|
|
10028
|
-
* @param keys
|
|
10029
|
-
*
|
|
10030
|
-
*
|
|
10046
|
+
* @param keys A single key or list of keys to get the total usage for. An empty list will return 0. Pass in `null` to get the total usage of all of storage.
|
|
10047
|
+
*
|
|
10048
|
+
* Can return its result via Promise in Manifest V3 or later since Chrome 95.
|
|
10031
10049
|
*/
|
|
10050
|
+
getBytesInUse(keys: never[]): Promise<0>;
|
|
10032
10051
|
getBytesInUse<T = { [key: string]: any }>(keys?: keyof T | Array<keyof T> | null): Promise<number>;
|
|
10033
|
-
|
|
10034
|
-
|
|
10035
|
-
* @param keys Optional. A single key or list of keys to get the total usage for. An empty list will return 0. Pass in null to get the total usage of all of storage.
|
|
10036
|
-
* @param callback Callback with the amount of space being used by storage, or on failure (in which case runtime.lastError will be set).
|
|
10037
|
-
* Parameter bytesInUse: Amount of space being used in storage, in bytes.
|
|
10038
|
-
*/
|
|
10052
|
+
getBytesInUse<T = { [key: string]: any }>(callback: (bytesInUse: number) => void): void;
|
|
10053
|
+
getBytesInUse(keys: never[], callback: (bytesInUse: 0) => void): void;
|
|
10039
10054
|
getBytesInUse<T = { [key: string]: any }>(
|
|
10040
|
-
keys: keyof T | Array<keyof T> | null,
|
|
10055
|
+
keys: keyof T | Array<keyof T> | null | undefined,
|
|
10041
10056
|
callback: (bytesInUse: number) => void,
|
|
10042
10057
|
): void;
|
|
10043
|
-
|
|
10044
|
-
* Gets the amount of space (in bytes) being used by one or more items.
|
|
10045
|
-
* @param callback Callback with the amount of space being used by storage, or on failure (in which case runtime.lastError will be set).
|
|
10046
|
-
* Parameter bytesInUse: Amount of space being used in storage, in bytes.
|
|
10047
|
-
*/
|
|
10048
|
-
getBytesInUse(callback: (bytesInUse: number) => void): void;
|
|
10058
|
+
|
|
10049
10059
|
/**
|
|
10050
10060
|
* Removes all items from storage.
|
|
10051
|
-
*
|
|
10052
|
-
*
|
|
10061
|
+
*
|
|
10062
|
+
* Can return its result via Promise in Manifest V3 or later since Chrome 95.
|
|
10053
10063
|
*/
|
|
10054
10064
|
clear(): Promise<void>;
|
|
10055
|
-
/**
|
|
10056
|
-
* Removes all items from storage.
|
|
10057
|
-
* @param callback Optional.
|
|
10058
|
-
* Callback on success, or on failure (in which case runtime.lastError will be set).
|
|
10059
|
-
*/
|
|
10060
10065
|
clear(callback: () => void): void;
|
|
10066
|
+
|
|
10061
10067
|
/**
|
|
10062
10068
|
* Sets multiple items.
|
|
10063
|
-
* @param items An object which gives each key/value pair to update storage with. Any other key/value pairs in storage will not be affected.
|
|
10064
|
-
*
|
|
10065
|
-
*
|
|
10066
|
-
* @since MV3
|
|
10069
|
+
* @param items An object which gives each key/value pair to update storage with. Any other key/value pairs in storage will not be affected. Primitive values such as numbers will serialize as expected. Values with a `typeof` `object` and `function` will typically serialize to `{}`, with the exception of `Array` (serializes as expected), `Date`, and `Regex` (serialize using their `String` representation).
|
|
10070
|
+
*
|
|
10071
|
+
* Can return its result via Promise in Manifest V3 or later since Chrome 95.
|
|
10067
10072
|
*/
|
|
10068
10073
|
set<T = { [key: string]: any }>(items: Partial<T>): Promise<void>;
|
|
10069
|
-
/**
|
|
10070
|
-
* Sets multiple items.
|
|
10071
|
-
* @param items An object which gives each key/value pair to update storage with. Any other key/value pairs in storage will not be affected.
|
|
10072
|
-
* Primitive values such as numbers will serialize as expected. Values with a typeof "object" and "function" will typically serialize to {}, with the exception of Array (serializes as expected), Date, and Regex (serialize using their String representation).
|
|
10073
|
-
* @param callback Optional.
|
|
10074
|
-
* Callback on success, or on failure (in which case runtime.lastError will be set).
|
|
10075
|
-
*/
|
|
10076
10074
|
set<T = { [key: string]: any }>(items: Partial<T>, callback: () => void): void;
|
|
10075
|
+
|
|
10077
10076
|
/**
|
|
10078
10077
|
* Removes one or more items from storage.
|
|
10079
10078
|
* @param keys A single key or a list of keys for items to remove.
|
|
10080
|
-
*
|
|
10081
|
-
*
|
|
10082
|
-
* @since MV3
|
|
10079
|
+
*
|
|
10080
|
+
* Can return its result via Promise in Manifest V3 or later since Chrome 95.
|
|
10083
10081
|
*/
|
|
10084
10082
|
remove<T = { [key: string]: any }>(keys: keyof T | Array<keyof T>): Promise<void>;
|
|
10085
|
-
/**
|
|
10086
|
-
* Removes one or more items from storage.
|
|
10087
|
-
* @param keys A single key or a list of keys for items to remove.
|
|
10088
|
-
* @param callback Optional.
|
|
10089
|
-
* Callback on success, or on failure (in which case runtime.lastError will be set).
|
|
10090
|
-
*/
|
|
10091
10083
|
remove<T = { [key: string]: any }>(keys: keyof T | Array<keyof T>, callback: () => void): void;
|
|
10084
|
+
|
|
10092
10085
|
/**
|
|
10093
10086
|
* Gets one or more items from storage.
|
|
10094
|
-
* @param keys A single key to get, list of keys to get, or a dictionary specifying default values.
|
|
10095
|
-
*
|
|
10096
|
-
*
|
|
10097
|
-
* @since MV3
|
|
10087
|
+
* @param keys A single key to get, list of keys to get, or a dictionary specifying default values (see description of the object). An empty list or object will return an empty result object. Pass in `null` to get the entire contents of storage.
|
|
10088
|
+
*
|
|
10089
|
+
* Can return its result via Promise in Manifest V3 or later since Chrome 95.
|
|
10098
10090
|
*/
|
|
10099
|
-
get<
|
|
10091
|
+
get(keys: never[] | Record<string, never>): Promise<{ [key: string]: never }>;
|
|
10092
|
+
get<T = { [key: string]: unknown }>(
|
|
10100
10093
|
keys?: NoInferX<keyof T> | Array<NoInferX<keyof T>> | Partial<NoInferX<T>> | null,
|
|
10101
10094
|
): Promise<T>;
|
|
10102
|
-
|
|
10103
|
-
|
|
10104
|
-
|
|
10105
|
-
|
|
10106
|
-
* @param callback Callback with storage items, or on failure (in which case runtime.lastError will be set).
|
|
10107
|
-
* Parameter items: Object with items in their key-value mappings.
|
|
10108
|
-
*/
|
|
10109
|
-
get<T = { [key: string]: any }>(
|
|
10110
|
-
keys: NoInferX<keyof T> | Array<NoInferX<keyof T>> | Partial<NoInferX<T>> | null,
|
|
10095
|
+
get<T = { [key: string]: unknown }>(callback: (items: T) => void): void;
|
|
10096
|
+
get(keys: never[] | Record<string, never>, callback: (items: { [key: string]: never }) => void): void;
|
|
10097
|
+
get<T = { [key: string]: unknown }>(
|
|
10098
|
+
keys: NoInferX<keyof T> | Array<NoInferX<keyof T>> | Partial<NoInferX<T>> | null | undefined,
|
|
10111
10099
|
callback: (items: T) => void,
|
|
10112
10100
|
): void;
|
|
10101
|
+
|
|
10113
10102
|
/**
|
|
10114
|
-
*
|
|
10115
|
-
* @param
|
|
10116
|
-
*
|
|
10117
|
-
|
|
10118
|
-
get<T = { [key: string]: any }>(callback: (items: T) => void): void;
|
|
10119
|
-
/**
|
|
10120
|
-
* Sets the desired access level for the storage area. By default, session storage is restricted to trusted contexts (extension pages and service workers), while managed, local, and sync storage allow access from both trusted and untrusted contexts.
|
|
10121
|
-
* @param accessOptions An object containing an accessLevel key which contains the access level of the storage area.
|
|
10122
|
-
* @return A void Promise.
|
|
10123
|
-
* @since Chrome 102
|
|
10124
|
-
*/
|
|
10125
|
-
setAccessLevel(accessOptions: { accessLevel: AccessLevel }): Promise<void>;
|
|
10126
|
-
/**
|
|
10127
|
-
* Sets the desired access level for the storage area. By default, session storage is restricted to trusted contexts (extension pages and service workers), while managed, local, and sync storage allow access from both trusted and untrusted contexts.
|
|
10128
|
-
* @param accessOptions An object containing an accessLevel key which contains the access level of the storage area.
|
|
10129
|
-
* @param callback Optional.
|
|
10103
|
+
* Sets the desired access level for the storage area. By default, session storage is restricted to trusted contexts (extension pages and service workers), while `managed`, `local`, and `sync` storage allow access from both trusted and untrusted contexts.
|
|
10104
|
+
* @param accessOptions The access level of the storage area.
|
|
10105
|
+
*
|
|
10106
|
+
* Can return its result via Promise in Manifest V3 or later.
|
|
10130
10107
|
* @since Chrome 102
|
|
10131
10108
|
*/
|
|
10132
|
-
setAccessLevel(accessOptions: { accessLevel: AccessLevel }
|
|
10133
|
-
|
|
10134
|
-
|
|
10135
|
-
|
|
10136
|
-
|
|
10137
|
-
|
|
10138
|
-
* Parameter items: Object with items in their key-value mappings.
|
|
10139
|
-
*/
|
|
10140
|
-
onChanged: StorageAreaChangedEvent;
|
|
10109
|
+
setAccessLevel(accessOptions: { accessLevel: `${AccessLevel}` }): Promise<void>;
|
|
10110
|
+
setAccessLevel(accessOptions: { accessLevel: `${AccessLevel}` }, callback: () => void): void;
|
|
10111
|
+
|
|
10112
|
+
/** Fired when one or more items change. */
|
|
10113
|
+
onChanged: events.Event<(changes: { [key: string]: StorageChange }) => void>;
|
|
10114
|
+
|
|
10141
10115
|
/**
|
|
10142
10116
|
* Gets all keys from storage.
|
|
10143
|
-
*
|
|
10117
|
+
*
|
|
10118
|
+
* Can return its result via Promise in Manifest V3 or later.
|
|
10144
10119
|
* @since Chrome 130
|
|
10145
10120
|
*/
|
|
10146
10121
|
getKeys(): Promise<string[]>;
|
|
10147
|
-
/**
|
|
10148
|
-
* Gets all keys from storage.
|
|
10149
|
-
* @param callback Callback with storage keys.
|
|
10150
|
-
* Parameter keys: Array of keys in storage.
|
|
10151
|
-
* @since Chrome 130
|
|
10152
|
-
*/
|
|
10153
10122
|
getKeys(callback: (keys: string[]) => void): void;
|
|
10154
10123
|
}
|
|
10155
10124
|
|
|
10156
10125
|
export interface StorageChange {
|
|
10157
|
-
/**
|
|
10158
|
-
newValue?:
|
|
10159
|
-
/**
|
|
10160
|
-
oldValue?:
|
|
10126
|
+
/** The new value of the item, if there is a new value. */
|
|
10127
|
+
newValue?: unknown;
|
|
10128
|
+
/** The old value of the item, if there was an old value. */
|
|
10129
|
+
oldValue?: unknown;
|
|
10161
10130
|
}
|
|
10162
10131
|
|
|
10163
10132
|
export interface LocalStorageArea extends StorageArea {
|
|
10164
|
-
/** The maximum amount (in bytes) of data that can be stored in local storage, as measured by the JSON stringification of every value plus every key's length. This value will be ignored if the extension has the unlimitedStorage permission. Updates that would cause this limit to be exceeded fail immediately and set runtime.lastError. */
|
|
10165
|
-
QUOTA_BYTES:
|
|
10133
|
+
/** The maximum amount (in bytes) of data that can be stored in local storage, as measured by the JSON stringification of every value plus every key's length. This value will be ignored if the extension has the unlimitedStorage permission. Updates that would cause this limit to be exceeded fail immediately and set runtime.lastError when using a callback, or a rejected Promise if using async/await. */
|
|
10134
|
+
QUOTA_BYTES: 10485760;
|
|
10166
10135
|
}
|
|
10167
10136
|
|
|
10168
10137
|
export interface SyncStorageArea extends StorageArea {
|
|
10169
|
-
/** @deprecated
|
|
10170
|
-
MAX_SUSTAINED_WRITE_OPERATIONS_PER_MINUTE:
|
|
10171
|
-
/** The maximum total amount (in bytes) of data that can be stored in sync storage, as measured by the JSON stringification of every value plus every key's length. Updates that would cause this limit to be exceeded fail immediately and set runtime.lastError. */
|
|
10172
|
-
QUOTA_BYTES:
|
|
10173
|
-
/** The maximum size (in bytes) of each individual item in sync storage, as measured by the JSON stringification of its value plus its key length. Updates containing items larger than this limit will fail immediately and set runtime.lastError. */
|
|
10174
|
-
QUOTA_BYTES_PER_ITEM:
|
|
10175
|
-
/** The maximum number of items that can be stored in sync storage. Updates that would cause this limit to be exceeded will fail immediately and set runtime.lastError. */
|
|
10176
|
-
MAX_ITEMS:
|
|
10177
|
-
/**
|
|
10178
|
-
* The maximum number of set
|
|
10179
|
-
*
|
|
10138
|
+
/** @deprecated The storage.sync API no longer has a sustained write operation quota. */
|
|
10139
|
+
MAX_SUSTAINED_WRITE_OPERATIONS_PER_MINUTE: 1000000;
|
|
10140
|
+
/** The maximum total amount (in bytes) of data that can be stored in sync storage, as measured by the JSON stringification of every value plus every key's length. Updates that would cause this limit to be exceeded fail immediately and set runtime.lastError when using a callback, or when a Promise is rejected. */
|
|
10141
|
+
QUOTA_BYTES: 102400;
|
|
10142
|
+
/** The maximum size (in bytes) of each individual item in sync storage, as measured by the JSON stringification of its value plus its key length. Updates containing items larger than this limit will fail immediately and set runtime.lastError when using a callback, or when a Promise is rejected. */
|
|
10143
|
+
QUOTA_BYTES_PER_ITEM: 8192;
|
|
10144
|
+
/** The maximum number of items that can be stored in sync storage. Updates that would cause this limit to be exceeded will fail immediately and set runtime.lastError when using a callback, or when a Promise is rejected. */
|
|
10145
|
+
MAX_ITEMS: 512;
|
|
10146
|
+
/**
|
|
10147
|
+
* The maximum number of `set`, `remove`, or `clear` operations that can be performed each hour. This is 1 every 2 seconds, a lower ceiling than the short term higher writes-per-minute limit.
|
|
10148
|
+
*
|
|
10149
|
+
* Updates that would cause this limit to be exceeded fail immediately and set runtime.lastError when using a callback, or when a Promise is rejected.
|
|
10180
10150
|
*/
|
|
10181
|
-
MAX_WRITE_OPERATIONS_PER_HOUR:
|
|
10151
|
+
MAX_WRITE_OPERATIONS_PER_HOUR: 1800;
|
|
10182
10152
|
/**
|
|
10183
|
-
* The maximum number of set
|
|
10184
|
-
*
|
|
10185
|
-
*
|
|
10153
|
+
* The maximum number of `set`, `remove`, or `clear` operations that can be performed each minute. This is 2 per second, providing higher throughput than writes-per-hour over a shorter period of time.
|
|
10154
|
+
*
|
|
10155
|
+
* Updates that would cause this limit to be exceeded fail immediately and set runtime.lastError when using a callback, or when a Promise is rejected.
|
|
10186
10156
|
*/
|
|
10187
|
-
MAX_WRITE_OPERATIONS_PER_MINUTE:
|
|
10157
|
+
MAX_WRITE_OPERATIONS_PER_MINUTE: 120;
|
|
10188
10158
|
}
|
|
10189
10159
|
|
|
10190
10160
|
export interface SessionStorageArea extends StorageArea {
|
|
10191
|
-
/** The maximum amount (in bytes) of data that can be stored in memory, as measured by estimating the dynamically allocated memory usage of every value and key. Updates that would cause this limit to be exceeded fail immediately and set runtime.lastError. */
|
|
10192
|
-
QUOTA_BYTES:
|
|
10161
|
+
/** The maximum amount (in bytes) of data that can be stored in memory, as measured by estimating the dynamically allocated memory usage of every value and key. Updates that would cause this limit to be exceeded fail immediately and set runtime.lastError when using a callback, or when a Promise is rejected. */
|
|
10162
|
+
QUOTA_BYTES: 10485760;
|
|
10193
10163
|
}
|
|
10194
10164
|
|
|
10195
|
-
export
|
|
10196
|
-
extends chrome.events.Event<(changes: { [key: string]: StorageChange }) => void>
|
|
10197
|
-
{}
|
|
10165
|
+
export type AreaName = "sync" | "local" | "managed" | "session";
|
|
10198
10166
|
|
|
10199
|
-
|
|
10200
|
-
|
|
10201
|
-
|
|
10202
|
-
|
|
10203
|
-
|
|
10204
|
-
|
|
10167
|
+
/**
|
|
10168
|
+
* The storage area's access level.
|
|
10169
|
+
* @since Chrome 102
|
|
10170
|
+
*/
|
|
10171
|
+
export enum AccessLevel {
|
|
10172
|
+
/** Specifies contexts originating from the extension itself. */
|
|
10173
|
+
TRUSTED_CONTEXTS = "TRUSTED_CONTEXTS",
|
|
10174
|
+
/** Specifies contexts originating from outside the extension. */
|
|
10175
|
+
TRUSTED_AND_UNTRUSTED_CONTEXTS = "TRUSTED_AND_UNTRUSTED_CONTEXTS",
|
|
10176
|
+
}
|
|
10205
10177
|
|
|
10206
|
-
/**
|
|
10207
|
-
export
|
|
10208
|
-
TRUSTED_AND_UNTRUSTED_CONTEXTS: "TRUSTED_AND_UNTRUSTED_CONTEXTS";
|
|
10209
|
-
TRUSTED_CONTEXTS: "TRUSTED_CONTEXTS";
|
|
10210
|
-
};
|
|
10178
|
+
/** Items in the `local` storage area are local to each machine. */
|
|
10179
|
+
export const local: LocalStorageArea;
|
|
10211
10180
|
|
|
10212
|
-
/** Items in the
|
|
10213
|
-
export
|
|
10214
|
-
/** Items in the sync storage area are synced using Chrome Sync. */
|
|
10215
|
-
export var sync: SyncStorageArea;
|
|
10181
|
+
/** Items in the `sync` storage area are synced using Chrome Sync. */
|
|
10182
|
+
export const sync: SyncStorageArea;
|
|
10216
10183
|
|
|
10217
|
-
/**
|
|
10218
|
-
|
|
10219
|
-
* @since Chrome 33
|
|
10220
|
-
*/
|
|
10221
|
-
export var managed: StorageArea;
|
|
10184
|
+
/** Items in the `managed` storage area are set by an enterprise policy configured by the domain administrator, and are read-only for the extension; trying to modify this namespace results in an error. For information on configuring a policy, see Manifest for storage areas. */
|
|
10185
|
+
export const managed: StorageArea;
|
|
10222
10186
|
|
|
10223
10187
|
/**
|
|
10224
|
-
* Items in the session storage area are stored in-memory and will not be persisted to disk.
|
|
10188
|
+
* Items in the `session` storage area are stored in-memory and will not be persisted to disk.
|
|
10189
|
+
*
|
|
10190
|
+
* MV3 only
|
|
10225
10191
|
* @since Chrome 102
|
|
10226
10192
|
*/
|
|
10227
|
-
export
|
|
10193
|
+
export const session: SessionStorageArea;
|
|
10228
10194
|
|
|
10229
10195
|
/** Fired when one or more items change. */
|
|
10230
|
-
export
|
|
10196
|
+
export const onChanged: events.Event<(changes: { [key: string]: StorageChange }, areaName: AreaName) => void>;
|
|
10231
10197
|
}
|
|
10232
10198
|
|
|
10233
10199
|
////////////////////
|
|
@@ -10251,6 +10217,7 @@ declare namespace chrome {
|
|
|
10251
10217
|
}
|
|
10252
10218
|
|
|
10253
10219
|
/** @deprecated Use {@link CpuTime} instead. */
|
|
10220
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
10254
10221
|
interface ProcessorUsage extends CpuTime {}
|
|
10255
10222
|
|
|
10256
10223
|
export interface ProcessorInfo {
|
|
@@ -12475,6 +12442,7 @@ declare namespace chrome {
|
|
|
12475
12442
|
}
|
|
12476
12443
|
|
|
12477
12444
|
/** @deprecated Use {@link Parameters} instead */
|
|
12445
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
12478
12446
|
interface VpnSessionParameters extends Parameters {}
|
|
12479
12447
|
|
|
12480
12448
|
/** 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.30",
|
|
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": "6e0942666b668f34563db277f484e8bff1e6f66a63e0d550837119256368d7dc",
|
|
98
98
|
"typeScriptVersion": "5.2"
|
|
99
99
|
}
|