chrome-types 0.1.398 → 0.1.400

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. package/_all.d.ts +31 -5
  2. package/index.d.ts +31 -5
  3. package/package.json +2 -2
package/_all.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Tue Dec 16 2025 22:33:53 GMT+0000 (Coordinated Universal Time)
18
- // Built at 49a149415b6f6704432f8de936921bf061e4978c
17
+ // Generated on Wed Dec 17 2025 22:47:56 GMT+0000 (Coordinated Universal Time)
18
+ // Built at a587090bd631121fe760192592ee03382cb94b14
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -24927,7 +24927,15 @@ declare namespace chrome {
24927
24927
  export const onMessage: events.Event<(
24928
24928
  message: any,
24929
24929
  sender: MessageSender,
24930
- sendResponse: () => void,
24930
+ /**
24931
+ * @param response The response to return to the message sender.
24932
+ */
24933
+ sendResponse: (
24934
+ /**
24935
+ * @since Pending
24936
+ */
24937
+ response?: any,
24938
+ ) => void,
24931
24939
  ) => boolean | undefined>;
24932
24940
 
24933
24941
  /**
@@ -24936,7 +24944,15 @@ declare namespace chrome {
24936
24944
  export const onMessageExternal: events.Event<(
24937
24945
  message: any,
24938
24946
  sender: MessageSender,
24939
- sendResponse: () => void,
24947
+ /**
24948
+ * @param response The response to return to the message sender.
24949
+ */
24950
+ sendResponse: (
24951
+ /**
24952
+ * @since Pending
24953
+ */
24954
+ response?: any,
24955
+ ) => void,
24940
24956
  ) => boolean | undefined>;
24941
24957
 
24942
24958
  /**
@@ -24948,7 +24964,15 @@ declare namespace chrome {
24948
24964
  export const onUserScriptMessage: events.Event<(
24949
24965
  message: any,
24950
24966
  sender: MessageSender,
24951
- sendResponse: () => void,
24967
+ /**
24968
+ * @param response The response to return to the message sender.
24969
+ */
24970
+ sendResponse: (
24971
+ /**
24972
+ * @since Pending
24973
+ */
24974
+ response?: any,
24975
+ ) => void,
24952
24976
  ) => boolean | undefined>;
24953
24977
 
24954
24978
  /**
@@ -25236,6 +25260,7 @@ declare namespace chrome {
25236
25260
  *
25237
25261
  * @param extensionId The ID of the extension 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](https://developer.chrome.com/docs/extensions/manifest/externally_connectable).
25238
25262
  * @param message The message to send. This message should be a JSON-ifiable object.
25263
+ * @param callback Promise support was added for extension contexts in Chrome 99. When communicating from a web page to an extension, promises are available from Chrome 118.
25239
25264
  */
25240
25265
  export function sendMessage(
25241
25266
 
@@ -25264,6 +25289,7 @@ declare namespace chrome {
25264
25289
  * Sends a single message to event listeners within your extension or a different extension/app. Similar to {@link runtime.connect} but only sends a single message, with an optional response. If sending to your extension, the {@link runtime.onMessage} event will be fired in every frame of your extension (except for the sender's frame), or {@link 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 {@link tabs.sendMessage}.
25265
25290
  *
25266
25291
  * @param message The message to send. This message should be a JSON-ifiable object.
25292
+ * @param callback Promise support was added for extension contexts in Chrome 99. When communicating from a web page to an extension, promises are available from Chrome 118.
25267
25293
  */
25268
25294
  export function sendMessage(
25269
25295
 
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Tue Dec 16 2025 22:33:48 GMT+0000 (Coordinated Universal Time)
18
- // Built at 49a149415b6f6704432f8de936921bf061e4978c
17
+ // Generated on Wed Dec 17 2025 22:47:51 GMT+0000 (Coordinated Universal Time)
18
+ // Built at a587090bd631121fe760192592ee03382cb94b14
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -17637,7 +17637,15 @@ declare namespace chrome {
17637
17637
  export const onMessage: events.Event<(
17638
17638
  message: any,
17639
17639
  sender: MessageSender,
17640
- sendResponse: () => void,
17640
+ /**
17641
+ * @param response The response to return to the message sender.
17642
+ */
17643
+ sendResponse: (
17644
+ /**
17645
+ * @since Pending
17646
+ */
17647
+ response?: any,
17648
+ ) => void,
17641
17649
  ) => boolean | undefined>;
17642
17650
 
17643
17651
  /**
@@ -17646,7 +17654,15 @@ declare namespace chrome {
17646
17654
  export const onMessageExternal: events.Event<(
17647
17655
  message: any,
17648
17656
  sender: MessageSender,
17649
- sendResponse: () => void,
17657
+ /**
17658
+ * @param response The response to return to the message sender.
17659
+ */
17660
+ sendResponse: (
17661
+ /**
17662
+ * @since Pending
17663
+ */
17664
+ response?: any,
17665
+ ) => void,
17650
17666
  ) => boolean | undefined>;
17651
17667
 
17652
17668
  /**
@@ -17658,7 +17674,15 @@ declare namespace chrome {
17658
17674
  export const onUserScriptMessage: events.Event<(
17659
17675
  message: any,
17660
17676
  sender: MessageSender,
17661
- sendResponse: () => void,
17677
+ /**
17678
+ * @param response The response to return to the message sender.
17679
+ */
17680
+ sendResponse: (
17681
+ /**
17682
+ * @since Pending
17683
+ */
17684
+ response?: any,
17685
+ ) => void,
17662
17686
  ) => boolean | undefined>;
17663
17687
 
17664
17688
  /**
@@ -17946,6 +17970,7 @@ declare namespace chrome {
17946
17970
  *
17947
17971
  * @param extensionId The ID of the extension 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](https://developer.chrome.com/docs/extensions/manifest/externally_connectable).
17948
17972
  * @param message The message to send. This message should be a JSON-ifiable object.
17973
+ * @param callback Promise support was added for extension contexts in Chrome 99. When communicating from a web page to an extension, promises are available from Chrome 118.
17949
17974
  */
17950
17975
  export function sendMessage(
17951
17976
 
@@ -17974,6 +17999,7 @@ declare namespace chrome {
17974
17999
  * Sends a single message to event listeners within your extension or a different extension/app. Similar to {@link runtime.connect} but only sends a single message, with an optional response. If sending to your extension, the {@link runtime.onMessage} event will be fired in every frame of your extension (except for the sender's frame), or {@link 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 {@link tabs.sendMessage}.
17975
18000
  *
17976
18001
  * @param message The message to send. This message should be a JSON-ifiable object.
18002
+ * @param callback Promise support was added for extension contexts in Chrome 99. When communicating from a web page to an extension, promises are available from Chrome 118.
17977
18003
  */
17978
18004
  export function sendMessage(
17979
18005
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "5f9c2f862e2b0f74"
8
+ "build-hash": "acb801005439ad21"
9
9
  },
10
10
  "repository": {
11
11
  "type": "git",
@@ -16,5 +16,5 @@
16
16
  "url": "https://github.com/GoogleChrome/chrome-types/issues"
17
17
  },
18
18
  "homepage": "https://github.com/GoogleChrome/chrome-types",
19
- "version": "0.1.398"
19
+ "version": "0.1.400"
20
20
  }