@types/chrome 0.0.205 → 0.0.206

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. chrome/README.md +1 -1
  2. chrome/index.d.ts +4 -4
  3. chrome/package.json +2 -2
chrome/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Chrome extension development (http://
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 21 Dec 2022 02:32:36 GMT
11
+ * Last updated: Wed, 21 Dec 2022 09:02:30 GMT
12
12
  * Dependencies: [@types/filesystem](https://npmjs.com/package/@types/filesystem), [@types/har-format](https://npmjs.com/package/@types/har-format)
13
13
  * Global values: `chrome`
14
14
 
chrome/index.d.ts CHANGED
@@ -7447,7 +7447,7 @@ declare namespace chrome.runtime {
7447
7447
  * @param extensionId The ID of the extension/app to send the message to. If omitted, the message will be sent to your own extension/app. Required if sending messages from a web page for web messaging.
7448
7448
  * Parameter response: The JSON response object sent by the handler of the message. If an error occurs while connecting to the extension, the callback will be called with no arguments and runtime.lastError will be set to the error message.
7449
7449
  */
7450
- export function sendMessage<M = any, R = any>(extensionId: string, message: M, responseCallback: (response: R) => void): void;
7450
+ export function sendMessage<M = any, R = any>(extensionId: string | undefined | null, message: M, responseCallback: (response: R) => void): void;
7451
7451
  /**
7452
7452
  * Sends a single message to event listeners within your extension/app or a different extension/app. Similar to runtime.connect but only sends a single message, with an optional response. If sending to your extension, the runtime.onMessage event will be fired in each page, or runtime.onMessageExternal, if a different extension. Note that extensions cannot send messages to content scripts using this method. To send messages to content scripts, use tabs.sendMessage.
7453
7453
  * @since Chrome 32.
@@ -7455,7 +7455,7 @@ declare namespace chrome.runtime {
7455
7455
  * Parameter response: The JSON response object sent by the handler of the message. If an error occurs while connecting to the extension, the callback will be called with no arguments and runtime.lastError will be set to the error message.
7456
7456
  */
7457
7457
  export function sendMessage<Message = any, Response = any>(
7458
- extensionId: string,
7458
+ extensionId: string | undefined | null,
7459
7459
  message: Message,
7460
7460
  options: MessageOptions,
7461
7461
  responseCallback: (response: Response) => void,
@@ -7478,14 +7478,14 @@ declare namespace chrome.runtime {
7478
7478
  * @since Chrome 26.
7479
7479
  * @param extensionId The ID of the extension/app to send the message to. If omitted, the message will be sent to your own extension/app. Required if sending messages from a web page for web messaging.
7480
7480
  */
7481
- export function sendMessage<M = any, R = any>(extensionId: string, message: M): Promise<R>;
7481
+ export function sendMessage<M = any, R = any>(extensionId: string | undefined | null, message: M): Promise<R>;
7482
7482
  /**
7483
7483
  * Sends a single message to event listeners within your extension/app or a different extension/app. Similar to runtime.connect but only sends a single message, with an optional response. If sending to your extension, the runtime.onMessage event will be fired in each page, or runtime.onMessageExternal, if a different extension. Note that extensions cannot send messages to content scripts using this method. To send messages to content scripts, use tabs.sendMessage.
7484
7484
  * @since Chrome 32.
7485
7485
  * @param extensionId The ID of the extension/app to send the message to. If omitted, the message will be sent to your own extension/app. Required if sending messages from a web page for web messaging.
7486
7486
  */
7487
7487
  export function sendMessage<Message = any, Response = any>(
7488
- extensionId: string,
7488
+ extensionId: string | undefined | null,
7489
7489
  message: Message,
7490
7490
  options: MessageOptions,
7491
7491
  ): Promise<Response>;
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.205",
3
+ "version": "0.0.206",
4
4
  "description": "TypeScript definitions for Chrome extension development",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome",
6
6
  "license": "MIT",
@@ -88,6 +88,6 @@
88
88
  "@types/filesystem": "*",
89
89
  "@types/har-format": "*"
90
90
  },
91
- "typesPublisherContentHash": "dfab864a7a0233539d2c6d7a6dd163c14ffd328c549f55520ce0ee93b9fbc814",
91
+ "typesPublisherContentHash": "448bad736c04fa89b8b85e2af98b1a7fb13e3fba6aec29936117a600ba0f9d47",
92
92
  "typeScriptVersion": "4.2"
93
93
  }