@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.
- chrome/README.md +1 -1
- chrome/index.d.ts +11 -8
- 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:
|
|
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
|
-
*
|
|
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
|
-
*
|
|
4084
|
-
* Only non-extractable keys can be generated. The supported key
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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": "
|
|
97
|
+
"typesPublisherContentHash": "c61640331b717ffedc21826f78c5f1415848bc89734b65b169e28ca4faff7337",
|
|
98
98
|
"typeScriptVersion": "5.2"
|
|
99
99
|
}
|