@types/chrome 0.0.320 → 0.0.321

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 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: Mon, 05 May 2025 21:02:40 GMT
11
+ * Last updated: Fri, 09 May 2025 14:02:26 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
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-wrapper-object-types */
1
2
  declare namespace chrome {
2
3
  ////////////////////
3
4
  // Cast
chrome/index.d.ts CHANGED
@@ -2355,13 +2355,13 @@ declare namespace chrome {
2355
2355
  export function sendCommand(
2356
2356
  target: DebuggerSession,
2357
2357
  method: string,
2358
- commandParams?: Object,
2359
- ): Promise<Object | undefined>;
2358
+ commandParams?: { [key: string]: unknown },
2359
+ ): Promise<object | undefined>;
2360
2360
  export function sendCommand(
2361
2361
  target: DebuggerSession,
2362
2362
  method: string,
2363
- commandParams?: Object,
2364
- callback?: (result?: Object) => void,
2363
+ commandParams?: { [key: string]: unknown },
2364
+ callback?: (result?: object) => void,
2365
2365
  ): void;
2366
2366
 
2367
2367
  /**
@@ -2375,7 +2375,7 @@ declare namespace chrome {
2375
2375
  /** Fired when browser terminates debugging session for the tab. This happens when either the tab is being closed or Chrome DevTools is being invoked for the attached tab. */
2376
2376
  export const onDetach: chrome.events.Event<(source: Debuggee, reason: `${DetachReason}`) => void>;
2377
2377
  /** Fired whenever debugging target issues instrumentation event. */
2378
- export const onEvent: chrome.events.Event<(source: DebuggerSession, method: string, params?: Object) => void>;
2378
+ export const onEvent: chrome.events.Event<(source: DebuggerSession, method: string, params?: object) => void>;
2379
2379
  }
2380
2380
 
2381
2381
  export { _debugger as debugger };
@@ -2669,7 +2669,7 @@ declare namespace chrome {
2669
2669
  /**
2670
2670
  * Set to undefined if the resource content was set successfully; describes error otherwise.
2671
2671
  */
2672
- error?: Object,
2672
+ error?: object,
2673
2673
  ) => void,
2674
2674
  ): void;
2675
2675
  }
@@ -2942,13 +2942,13 @@ declare namespace chrome {
2942
2942
  * @param rootTitle An optional title for the root of the expression tree.
2943
2943
  * @param callback A callback invoked after the sidebar is updated with the object.
2944
2944
  */
2945
- setObject(jsonObject: Object, rootTitle?: string, callback?: () => void): void;
2945
+ setObject(jsonObject: { [key: string]: unknown }, rootTitle?: string, callback?: () => void): void;
2946
2946
  /**
2947
2947
  * Sets a JSON-compliant object to be displayed in the sidebar pane.
2948
2948
  * @param jsonObject An object to be displayed in context of the inspected page. Evaluated in the context of the caller (API client).
2949
2949
  * @param callback A callback invoked after the sidebar is updated with the object.
2950
2950
  */
2951
- setObject(jsonObject: Object, callback?: () => void): void;
2951
+ setObject(jsonObject: { [key: string]: unknown }, callback?: () => void): void;
2952
2952
  /**
2953
2953
  * Sets an HTML page to be displayed in the sidebar pane.
2954
2954
  * @param path Relative path of an extension page to display within the sidebar.
@@ -3035,19 +3035,19 @@ declare namespace chrome {
3035
3035
  * @param recording A recording of the user interaction with the page. This should match [Puppeteer's recording schema](https://github.com/puppeteer/replay/blob/main/docs/api/interfaces/Schema.UserFlow.md).
3036
3036
  * @since Chrome 112
3037
3037
  */
3038
- replay?(recording: object): void;
3038
+ replay?(recording: { [key: string]: unknown }): void;
3039
3039
 
3040
3040
  /**
3041
3041
  * Converts a recording from the Recorder panel format into a string.
3042
3042
  * @param recording A recording of the user interaction with the page. This should match [Puppeteer's recording schema](https://github.com/puppeteer/replay/blob/main/docs/api/interfaces/Schema.UserFlow.md).
3043
3043
  */
3044
- stringify?(recording: object): void;
3044
+ stringify?(recording: { [key: string]: unknown }): void;
3045
3045
 
3046
3046
  /**
3047
3047
  * Converts a step of the recording from the Recorder panel format into a string.
3048
3048
  * @param step A step of the recording of a user interaction with the page. This should match [Puppeteer's step schema](https://github.com/puppeteer/replay/blob/main/docs/api/modules/Schema.md#step).
3049
3049
  */
3050
- stringifyStep?(step: object): void;
3050
+ stringifyStep?(step: { [key: string]: unknown }): void;
3051
3051
  }
3052
3052
 
3053
3053
  /**
@@ -4516,7 +4516,7 @@ declare namespace chrome {
4516
4516
 
4517
4517
  export interface SelectionResult {
4518
4518
  /** Optional. Selected file entry. It will be null if a file hasn't been selected. */
4519
- entry?: Object | null | undefined;
4519
+ entry?: object | null | undefined;
4520
4520
  /** Whether the file has been selected. */
4521
4521
  success: boolean;
4522
4522
  }
@@ -5412,25 +5412,25 @@ declare namespace chrome {
5412
5412
  * @param details This parameter is currently unused.
5413
5413
  * @return The `getDefaultFontSize` method provides its result via callback or returned as a `Promise` (MV3 only).
5414
5414
  */
5415
- export function getDefaultFontSize(details?: Object): Promise<FontSizeDetails>;
5415
+ export function getDefaultFontSize(details?: unknown): Promise<FontSizeDetails>;
5416
5416
  /**
5417
5417
  * Gets the default font size.
5418
5418
  * @param details This parameter is currently unused.
5419
5419
  */
5420
5420
  export function getDefaultFontSize(callback: (options: FontSizeDetails) => void): void;
5421
- export function getDefaultFontSize(details: Object, callback: (options: FontSizeDetails) => void): void;
5421
+ export function getDefaultFontSize(details: unknown, callback: (options: FontSizeDetails) => void): void;
5422
5422
  /**
5423
5423
  * Gets the minimum font size.
5424
5424
  * @param details This parameter is currently unused.
5425
5425
  * @return The `getMinimumFontSize` method provides its result via callback or returned as a `Promise` (MV3 only).
5426
5426
  */
5427
- export function getMinimumFontSize(details?: object): Promise<FontSizeDetails>;
5427
+ export function getMinimumFontSize(details?: unknown): Promise<FontSizeDetails>;
5428
5428
  /**
5429
5429
  * Gets the minimum font size.
5430
5430
  * @param details This parameter is currently unused.
5431
5431
  */
5432
5432
  export function getMinimumFontSize(callback: (options: FontSizeDetails) => void): void;
5433
- export function getMinimumFontSize(details: object, callback: (options: FontSizeDetails) => void): void;
5433
+ export function getMinimumFontSize(details: unknown, callback: (options: FontSizeDetails) => void): void;
5434
5434
  /**
5435
5435
  * Sets the minimum font size.
5436
5436
  * @return The `setMinimumFontSize` method provides its result via callback or returned as a `Promise` (MV3 only). It has no parameters.
@@ -5445,25 +5445,25 @@ declare namespace chrome {
5445
5445
  * @param details This parameter is currently unused.
5446
5446
  * @return The `getDefaultFixedFontSize` method provides its result via callback or returned as a `Promise` (MV3 only).
5447
5447
  */
5448
- export function getDefaultFixedFontSize(details?: Object): Promise<FontSizeDetails>;
5448
+ export function getDefaultFixedFontSize(details?: unknown): Promise<FontSizeDetails>;
5449
5449
  /**
5450
5450
  * Gets the default size for fixed width fonts.
5451
5451
  * @param details This parameter is currently unused.
5452
5452
  */
5453
5453
  export function getDefaultFixedFontSize(callback: (details: FontSizeDetails) => void): void;
5454
- export function getDefaultFixedFontSize(details: Object, callback: (details: FontSizeDetails) => void): void;
5454
+ export function getDefaultFixedFontSize(details: unknown, callback: (details: FontSizeDetails) => void): void;
5455
5455
  /**
5456
5456
  * Clears the default font size set by this extension, if any.
5457
5457
  * @param details This parameter is currently unused.
5458
5458
  * @return The `clearDefaultFontSize` method provides its result via callback or returned as a `Promise` (MV3 only). It has no parameters.
5459
5459
  */
5460
- export function clearDefaultFontSize(details?: Object): Promise<void>;
5460
+ export function clearDefaultFontSize(details?: unknown): Promise<void>;
5461
5461
  /**
5462
5462
  * Clears the default font size set by this extension, if any.
5463
5463
  * @param details This parameter is currently unused.
5464
5464
  */
5465
5465
  export function clearDefaultFontSize(callback: () => void): void;
5466
- export function clearDefaultFontSize(details: Object, callback: () => void): void;
5466
+ export function clearDefaultFontSize(details: unknown, callback: () => void): void;
5467
5467
  /**
5468
5468
  * Sets the default size for fixed width fonts.
5469
5469
  * @return The `setDefaultFixedFontSize` method provides its result via callback or returned as a `Promise` (MV3 only). It has no parameters.
@@ -5496,13 +5496,13 @@ declare namespace chrome {
5496
5496
  * @param details This parameter is currently unused.
5497
5497
  * @return The `clearMinimumFontSize` method provides its result via callback or returned as a `Promise` (MV3 only). It has no parameters.
5498
5498
  */
5499
- export function clearMinimumFontSize(details?: Object): Promise<void>;
5499
+ export function clearMinimumFontSize(details?: unknown): Promise<void>;
5500
5500
  /**
5501
5501
  * Clears the minimum font size set by this extension, if any.
5502
5502
  * @param details This parameter is currently unused.
5503
5503
  */
5504
5504
  export function clearMinimumFontSize(callback: () => void): void;
5505
- export function clearMinimumFontSize(details: Object, callback: () => void): void;
5505
+ export function clearMinimumFontSize(details: unknown, callback: () => void): void;
5506
5506
  /**
5507
5507
  * Gets a list of fonts on the system.
5508
5508
  * @return The `getFontList` method provides its result via callback or returned as a `Promise` (MV3 only).
@@ -5517,12 +5517,12 @@ declare namespace chrome {
5517
5517
  * @param details This parameter is currently unused.
5518
5518
  * @return The `clearDefaultFixedFontSize` method provides its result via callback or returned as a `Promise` (MV3 only). It has no parameters.
5519
5519
  */
5520
- export function clearDefaultFixedFontSize(details: Object): Promise<void>;
5520
+ export function clearDefaultFixedFontSize(details: unknown): Promise<void>;
5521
5521
  /**
5522
5522
  * Clears the default fixed font size set by this extension, if any.
5523
5523
  * @param details This parameter is currently unused.
5524
5524
  */
5525
- export function clearDefaultFixedFontSize(details: Object, callback: () => void): void;
5525
+ export function clearDefaultFixedFontSize(details: unknown, callback: () => void): void;
5526
5526
 
5527
5527
  /** Fired when the default fixed font size setting changes. */
5528
5528
  export var onDefaultFixedFontSizeChanged: DefaultFixedFontSizeChangedEvent;
@@ -5551,12 +5551,12 @@ declare namespace chrome {
5551
5551
  /** Optional. Time-to-live of the message in seconds. If it is not possible to send the message within that time, an onSendError event will be raised. A time-to-live of 0 indicates that the message should be sent immediately or fail if it's not possible. The maximum and a default value of time-to-live is 86400 seconds (1 day). */
5552
5552
  timeToLive?: number | undefined;
5553
5553
  /** Message data to send to the server. Case-insensitive goog. and google, as well as case-sensitive collapse_key are disallowed as key prefixes. Sum of all key/value pairs should not exceed gcm.MAX_MESSAGE_SIZE. */
5554
- data: Object;
5554
+ data: { [key: string]: unknown };
5555
5555
  }
5556
5556
 
5557
5557
  export interface IncomingMessage {
5558
5558
  /** The message data. */
5559
- data: Object;
5559
+ data: { [key: string]: unknown };
5560
5560
  /**
5561
5561
  * Optional.
5562
5562
  * The sender who issued the message.
@@ -5576,7 +5576,7 @@ declare namespace chrome {
5576
5576
  /** Optional. The ID of the message with this error, if error is related to a specific message. */
5577
5577
  messageId?: string | undefined;
5578
5578
  /** Additional details related to the error, when available. */
5579
- detail: Object;
5579
+ detail: object;
5580
5580
  }
5581
5581
 
5582
5582
  export interface MessageReceptionEvent extends chrome.events.Event<(message: IncomingMessage) => void> {}
@@ -6245,7 +6245,7 @@ declare namespace chrome {
6245
6245
  }
6246
6246
 
6247
6247
  export interface MenuItemParameters {
6248
- items: Object[];
6248
+ items: MenuItem[];
6249
6249
  engineId: string;
6250
6250
  }
6251
6251
 
@@ -7186,7 +7186,7 @@ declare namespace chrome {
7186
7186
  * @since Chrome 29
7187
7187
  * @param callback Returns the set of notification_ids currently in the system.
7188
7188
  */
7189
- export function getAll(callback: (notifications: Object) => void): void;
7189
+ export function getAll(callback: (notifications: { [key: string]: true }) => void): void;
7190
7190
  /**
7191
7191
  * Retrieves whether the user has enabled notifications from this app or extension.
7192
7192
  * @since Chrome 32
@@ -7626,7 +7626,7 @@ declare namespace chrome {
7626
7626
  */
7627
7627
  export function getKeyPair(
7628
7628
  certificate: ArrayBuffer,
7629
- parameters: Object,
7629
+ parameters: { [key: string]: unknown },
7630
7630
  callback: (publicKey: CryptoKey, privateKey: CryptoKey | null) => void,
7631
7631
  ): void;
7632
7632
  /**
@@ -7640,7 +7640,7 @@ declare namespace chrome {
7640
7640
  */
7641
7641
  export function getKeyPairBySpki(
7642
7642
  publicKeySpkiDer: ArrayBuffer,
7643
- parameters: Object,
7643
+ parameters: { [key: string]: unknown },
7644
7644
  callback: (publicKey: CryptoKey, privateKey: CryptoKey | null) => void,
7645
7645
  ): void;
7646
7646
  /** An implementation of WebCrypto's SubtleCrypto that allows crypto operations on keys of client certificates that are available to this extension. */
@@ -7716,7 +7716,7 @@ declare namespace chrome {
7716
7716
  /** The print job title. */
7717
7717
  title: string;
7718
7718
  /** Print ticket in CJT format. */
7719
- ticket: Object;
7719
+ ticket: { [key: string]: unknown };
7720
7720
  /** The document content type. Supported formats are "application/pdf" and "image/pwg-raster". */
7721
7721
  contentType: string;
7722
7722
  /** Blob containing the document data to print. Format must match |contentType|. */
@@ -9508,7 +9508,7 @@ declare namespace chrome {
9508
9508
  */
9509
9509
  export function sendNativeMessage(
9510
9510
  application: string,
9511
- message: Object,
9511
+ message: object,
9512
9512
  responseCallback: (response: any) => void,
9513
9513
  ): void;
9514
9514
  /**
@@ -9519,7 +9519,7 @@ declare namespace chrome {
9519
9519
  */
9520
9520
  export function sendNativeMessage(
9521
9521
  application: string,
9522
- message: Object,
9522
+ message: object,
9523
9523
  ): Promise<any>;
9524
9524
  /**
9525
9525
  * Sets the URL to be visited upon uninstallation. This may be used to clean up server-side data, do analytics, and implement surveys. Maximum 255 characters.
@@ -10205,7 +10205,11 @@ declare namespace chrome {
10205
10205
  address: string;
10206
10206
  }
10207
10207
 
10208
- export function create(type: string, options?: Object, callback?: (createInfo: CreateInfo) => void): void;
10208
+ export function create(
10209
+ type: string,
10210
+ options?: { [key: string]: unknown },
10211
+ callback?: (createInfo: CreateInfo) => void,
10212
+ ): void;
10209
10213
  export function destroy(socketId: number): void;
10210
10214
  export function connect(
10211
10215
  socketId: number,
@@ -12840,7 +12844,7 @@ declare namespace chrome {
12840
12844
  export interface VpnConfigRemovalEvent extends chrome.events.Event<(id: string) => void> {}
12841
12845
 
12842
12846
  export interface VpnConfigCreationEvent
12843
- extends chrome.events.Event<(id: string, name: string, data: Object) => void>
12847
+ extends chrome.events.Event<(id: string, name: string, data: { [key: string]: unknown }) => void>
12844
12848
  {}
12845
12849
 
12846
12850
  export interface VpnUiEvent extends chrome.events.Event<(event: string, id?: string) => void> {}
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.320",
3
+ "version": "0.0.321",
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": "ca0090d3efdc623fd23f23a45948bb1a51e67fa8ab94d9d70f9e170d1e655dfa",
97
+ "typesPublisherContentHash": "33d65645ce9ffaef274abbe355db02d4c5dcdaa8cae6dbb749c23fe8472eb113",
98
98
  "typeScriptVersion": "5.1"
99
99
  }