@types/chrome 0.1.37 → 0.1.38

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 +11 -8
  3. 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: Fri, 20 Feb 2026 20:44:11 GMT
11
+ * Last updated: Mon, 16 Mar 2026 22:44: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
 
14
14
  # Credits
chrome/index.d.ts CHANGED
@@ -4074,14 +4074,17 @@ declare namespace chrome {
4074
4074
  id: string;
4075
4075
  /**
4076
4076
  * Implements the WebCrypto's SubtleCrypto interface. The cryptographic operations, including key generation, are hardware-backed.
4077
- * Only non-extractable keys can be generated. The supported key types are RSASSA-PKCS1-V1_5 and RSA-OAEP (on Chrome versions 134+) with `modulusLength` up to 2048 and ECDSA with `namedCurve` P-256. Each RSASSA-PKCS1-V1_5 and ECDSA key can be used for signing data at most once, unless the extension is allowlisted through the KeyPermissions policy, in which case the key can be used indefinitely. RSA-OAEP keys are supported since Chrome version 134 and can be used by extensions allowlisted through that same policy to unwrap other keys.
4077
+ *
4078
+ * Only non-extractable keys can be generated. The supported key types are RSASSA-PKCS1-V1_5 with `modulusLength` up to 2048 and ECDSA with `namedCurve` P-256. Each key can be used for signing data at most once, unless the extension is allowlisted by the KeyPermissions policy, in which case the key can be used indefinitely.
4079
+ *
4078
4080
  * Keys generated on a specific `Token` cannot be used with any other Tokens, nor can they be used with `window.crypto.subtle`. Equally, `Key` objects created with `window.crypto.subtle` cannot be used with this interface.
4079
4081
  */
4080
4082
  subtleCrypto: SubtleCrypto;
4081
4083
  /**
4082
- * Implements the WebCrypto's SubtleCrypto interface. The cryptographic operations, including key generation, are software-backed.
4083
- * Protection of the keys, and thus implementation of the non-extractable property, is done in software, so the keys are less protected than hardware-backed keys.
4084
- * Only non-extractable keys can be generated. The supported key types are RSASSA-PKCS1-V1_5 and RSA-OAEP (on Chrome versions 134+) with `modulusLength` up to 2048. Each RSASSA-PKCS1-V1_5 key can be used for signing data at most once, unless the extension is allowlisted through the KeyPermissions policy, in which case the key can be used indefinitely. RSA-OAEP keys are supported since Chrome version 134 and can be used by extensions allowlisted through that same policy to unwrap other keys.
4084
+ * Implements the WebCrypto's SubtleCrypto interface. The cryptographic operations, including key generation, are software-backed. Protection of the keys, and thus implementation of the non-extractable property, is done in software, so the keys are less protected than hardware-backed keys.
4085
+ *
4086
+ * Only non-extractable keys can be generated. The only supported key type is RSASSA-PKCS1-V1_5 with `modulusLength` up to 2048. up to 2048. Each key can be used for signing data at most once, unless the extension is allowlisted through the KeyPermissions policy, in which case the key can be used indefinitely.
4087
+ *
4085
4088
  * Keys generated on a specific `Token` cannot be used with any other Tokens, nor can they be used with `window.crypto.subtle`. Equally, `Key` objects created with `window.crypto.subtle` cannot be used with this interface.
4086
4089
  * @since Chrome 97
4087
4090
  */
@@ -9690,7 +9693,7 @@ declare namespace chrome {
9690
9693
  /** Sent after onSuspend to indicate that the app won't be unloaded after all. */
9691
9694
  export const onSuspendCanceled: events.Event<() => void>;
9692
9695
 
9693
- /** Fired when a message is sent from either an extension process (by {@link runtime.sendMessage}) or a content script (by {@link tabs.sendMessage}). */
9696
+ /** Fired when a message is sent from either {@link runtime.sendMessage} or {@link tabs.sendMessage}. */
9694
9697
  export const onMessage: events.Event<
9695
9698
  (message: any, sender: MessageSender, sendResponse: (response?: any) => void) => void
9696
9699
  >;
@@ -11056,7 +11059,7 @@ declare namespace chrome {
11056
11059
  sessionId?: string | undefined;
11057
11060
  /**
11058
11061
  * The ID of the Split View that the tab belongs to.
11059
- * @since Chrome 145
11062
+ * @since Chrome 140
11060
11063
  */
11061
11064
  splitViewId?: number | undefined;
11062
11065
  /**
@@ -11132,7 +11135,7 @@ declare namespace chrome {
11132
11135
 
11133
11136
  /**
11134
11137
  * An ID that represents the absence of a split tab.
11135
- * @since Chrome 145
11138
+ * @since Chrome 140
11136
11139
  */
11137
11140
  export const SPLIT_VIEW_ID_NONE: -1;
11138
11141
 
@@ -11579,7 +11582,7 @@ declare namespace chrome {
11579
11582
  export function duplicate(tabId: number, callback: (tab?: Tab) => void): void;
11580
11583
 
11581
11584
  /**
11582
- * Sends a single message to the content script(s) in the specified tab, with an optional callback to run when a response is sent back. The {@link runtime.onMessage} event is fired in each content script running in the specified tab for the current extension.
11585
+ * Sends a single message to the content script(s) in the specified tab. The {@link runtime.onMessage} event is fired in each content script running in the specified tab for the current extension.
11583
11586
  *
11584
11587
  * Can return its result via Promise in Manifest V3 or later since Chrome 99.
11585
11588
  */
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.1.37",
3
+ "version": "0.1.38",
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": "df76fec6a021d0929c93f32b59caf85c79097833cae716247457666f15a39396",
97
+ "typesPublisherContentHash": "c61640331b717ffedc21826f78c5f1415848bc89734b65b169e28ca4faff7337",
98
98
  "typeScriptVersion": "5.2"
99
99
  }