@types/chrome 0.1.43 → 0.2.1

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.
Files changed (3) hide show
  1. chrome/README.md +1 -1
  2. chrome/index.d.ts +16 -39
  3. chrome/package.json +3 -3
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: Fri, 05 Jun 2026 19:08:36 GMT
11
+ * Last updated: Wed, 01 Jul 2026 06:54:58 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
@@ -2248,7 +2248,7 @@ declare namespace chrome {
2248
2248
  *
2249
2249
  * Permissions: "debugger"
2250
2250
  */
2251
- export namespace _debugger {
2251
+ namespace _debugger {
2252
2252
  /** Debuggee identifier. Either tabId, extensionId or targetId must be specified */
2253
2253
  interface Debuggee {
2254
2254
  /** The id of the tab which you intend to debug. */
@@ -9182,6 +9182,7 @@ declare namespace chrome {
9182
9182
  | "identity"
9183
9183
  | "identity.email"
9184
9184
  | "idle"
9185
+ | "input"
9185
9186
  | "loginState"
9186
9187
  | "management"
9187
9188
  | "nativeMessaging"
@@ -9223,11 +9224,6 @@ declare namespace chrome {
9223
9224
  | "webRequestBlocking"
9224
9225
  | "webRequestAuthProvider";
9225
9226
 
9226
- /**
9227
- * @deprecated Use `ManifestPermission` instead.
9228
- */
9229
- type ManifestPermissions = ManifestPermission;
9230
-
9231
9227
  /** Source : https://developer.chrome.com/docs/extensions/reference/api/permissions */
9232
9228
  type ManifestOptionalPermission = Exclude<
9233
9229
  ManifestPermission,
@@ -9245,11 +9241,6 @@ declare namespace chrome {
9245
9241
  | "webAuthenticationProxy"
9246
9242
  >;
9247
9243
 
9248
- /**
9249
- * @deprecated Use `ManifestOptionalPermission` instead.
9250
- */
9251
- type ManifestOptionalPermissions = ManifestOptionalPermission;
9252
-
9253
9244
  interface SearchProvider {
9254
9245
  name?: string | undefined;
9255
9246
  keyword?: string | undefined;
@@ -10118,12 +10109,7 @@ declare namespace chrome {
10118
10109
  * Permissions: "storage"
10119
10110
  */
10120
10111
  export namespace storage {
10121
- /** NoInfer for old TypeScript versions (Required TS 5.4+) */
10122
- type NoInferX<T> = T[][T extends any ? 0 : never];
10123
- // The next line prevents things without the export keyword from being automatically exported (like NoInferX)
10124
- export {};
10125
-
10126
- export interface StorageArea {
10112
+ interface StorageArea {
10127
10113
  /**
10128
10114
  * Gets the amount of space (in bytes) being used by one or more items.
10129
10115
  * @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.
@@ -10170,11 +10156,11 @@ declare namespace chrome {
10170
10156
  * Can return its result via Promise in Manifest V3 or later since Chrome 95.
10171
10157
  */
10172
10158
  get<T = { [key: string]: unknown }>(
10173
- keys?: NoInferX<keyof T> | Array<NoInferX<keyof T>> | Partial<NoInferX<T>> | null,
10159
+ keys?: NoInfer<keyof T> | Array<NoInfer<keyof T>> | Partial<NoInfer<T>> | null | undefined,
10174
10160
  ): Promise<T>;
10175
10161
  get<T = { [key: string]: unknown }>(callback: (items: T) => void): void;
10176
10162
  get<T = { [key: string]: unknown }>(
10177
- keys: NoInferX<keyof T> | Array<NoInferX<keyof T>> | Partial<NoInferX<T>> | null | undefined,
10163
+ keys: NoInfer<keyof T> | Array<NoInfer<keyof T>> | Partial<NoInfer<T>> | null | undefined,
10178
10164
  callback: (items: T) => void,
10179
10165
  ): void;
10180
10166
 
@@ -10201,19 +10187,19 @@ declare namespace chrome {
10201
10187
  getKeys(callback: (keys: string[]) => void): void;
10202
10188
  }
10203
10189
 
10204
- export interface StorageChange {
10190
+ interface StorageChange {
10205
10191
  /** The new value of the item, if there is a new value. */
10206
10192
  newValue?: unknown;
10207
10193
  /** The old value of the item, if there was an old value. */
10208
10194
  oldValue?: unknown;
10209
10195
  }
10210
10196
 
10211
- export interface LocalStorageArea extends StorageArea {
10197
+ interface LocalStorageArea extends StorageArea {
10212
10198
  /** 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. */
10213
10199
  QUOTA_BYTES: 10485760;
10214
10200
  }
10215
10201
 
10216
- export interface SyncStorageArea extends StorageArea {
10202
+ interface SyncStorageArea extends StorageArea {
10217
10203
  /** @deprecated The storage.sync API no longer has a sustained write operation quota. */
10218
10204
  MAX_SUSTAINED_WRITE_OPERATIONS_PER_MINUTE: 1000000;
10219
10205
  /** 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. */
@@ -10236,18 +10222,18 @@ declare namespace chrome {
10236
10222
  MAX_WRITE_OPERATIONS_PER_MINUTE: 120;
10237
10223
  }
10238
10224
 
10239
- export interface SessionStorageArea extends StorageArea {
10225
+ interface SessionStorageArea extends StorageArea {
10240
10226
  /** 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. */
10241
10227
  QUOTA_BYTES: 10485760;
10242
10228
  }
10243
10229
 
10244
- export type AreaName = "sync" | "local" | "managed" | "session";
10230
+ type AreaName = "sync" | "local" | "managed" | "session";
10245
10231
 
10246
10232
  /**
10247
10233
  * The storage area's access level.
10248
10234
  * @since Chrome 102
10249
10235
  */
10250
- export enum AccessLevel {
10236
+ enum AccessLevel {
10251
10237
  /** Specifies contexts originating from the extension itself. */
10252
10238
  TRUSTED_CONTEXTS = "TRUSTED_CONTEXTS",
10253
10239
  /** Specifies contexts originating from outside the extension. */
@@ -10255,13 +10241,13 @@ declare namespace chrome {
10255
10241
  }
10256
10242
 
10257
10243
  /** Items in the `local` storage area are local to each machine. */
10258
- export const local: LocalStorageArea;
10244
+ const local: LocalStorageArea;
10259
10245
 
10260
10246
  /** Items in the `sync` storage area are synced using Chrome Sync. */
10261
- export const sync: SyncStorageArea;
10247
+ const sync: SyncStorageArea;
10262
10248
 
10263
10249
  /** 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. */
10264
- export const managed: StorageArea;
10250
+ const managed: StorageArea;
10265
10251
 
10266
10252
  /**
10267
10253
  * Items in the `session` storage area are stored in-memory and will not be persisted to disk.
@@ -10269,10 +10255,10 @@ declare namespace chrome {
10269
10255
  * MV3 only
10270
10256
  * @since Chrome 102
10271
10257
  */
10272
- export const session: SessionStorageArea;
10258
+ const session: SessionStorageArea;
10273
10259
 
10274
10260
  /** Fired when one or more items change. */
10275
- export const onChanged: events.Event<(changes: { [key: string]: StorageChange }, areaName: AreaName) => void>;
10261
+ const onChanged: events.Event<(changes: { [key: string]: StorageChange }, areaName: AreaName) => void>;
10276
10262
  }
10277
10263
 
10278
10264
  ////////////////////
@@ -10295,10 +10281,6 @@ declare namespace chrome {
10295
10281
  total: number;
10296
10282
  }
10297
10283
 
10298
- /** @deprecated Use {@link CpuTime} instead. */
10299
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
10300
- interface ProcessorUsage extends CpuTime {}
10301
-
10302
10284
  interface ProcessorInfo {
10303
10285
  /** Cumulative usage info for this logical processor. */
10304
10286
  usage: CpuTime;
@@ -12531,10 +12513,6 @@ declare namespace chrome {
12531
12513
  reconnect?: string | undefined;
12532
12514
  }
12533
12515
 
12534
- /** @deprecated Use {@link Parameters} instead */
12535
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
12536
- interface VpnSessionParameters extends Parameters {}
12537
-
12538
12516
  /** The enum is used by the platform to notify the client of the VPN session status. */
12539
12517
  enum PlatformMessage {
12540
12518
  /** Indicates that the VPN configuration connected. */
@@ -13439,7 +13417,6 @@ declare namespace chrome {
13439
13417
 
13440
13418
  /** Fired before sending an HTTP request, once the request headers are available. This may occur after a TCP connection is made to the server, but before any HTTP data is sent. */
13441
13419
  const onBeforeSendHeaders: WebRequestEvent<
13442
- // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
13443
13420
  (details: OnBeforeSendHeadersDetails) => BlockingResponse | undefined,
13444
13421
  `${OnBeforeSendHeadersOptions}`[]
13445
13422
  >;
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.1.43",
3
+ "version": "0.2.1",
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": "815cfb37881758742411286170fc59183d9f9be0b578d95aba2695caf3caff66",
98
- "typeScriptVersion": "5.3"
97
+ "typesPublisherContentHash": "7763ec07b62aff736c7f9dd7975ea465f5f3c00a938b55bb4db3e91c89ac0647",
98
+ "typeScriptVersion": "5.6"
99
99
  }