@types/chrome 0.0.259 → 0.0.260
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 +4 -3
- chrome/package.json +2 -2
chrome/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for chrome (http://developer.chrome.com/e
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated: Thu,
|
|
11
|
+
* Last updated: Thu, 01 Feb 2024 10:06:59 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
|
@@ -6345,7 +6345,7 @@ declare namespace chrome.permissions {
|
|
|
6345
6345
|
permissions?: string[] | undefined;
|
|
6346
6346
|
/**
|
|
6347
6347
|
* Optional.
|
|
6348
|
-
* List of origin permissions. Anything listed here must be a subset of a host that appears in the
|
|
6348
|
+
* List of origin permissions. Anything listed here must be a subset of a host that appears in the optional host permission list in the manifest (optional_permissions in MV2, optional_host_permissions in MV3). For example, if http://*.example.com/ or http://* appears in the optional permissions, you can request an origin of http://help.example.com/. Any path is ignored.
|
|
6349
6349
|
*/
|
|
6350
6350
|
origins?: string[] | undefined;
|
|
6351
6351
|
}
|
|
@@ -6378,12 +6378,12 @@ declare namespace chrome.permissions {
|
|
|
6378
6378
|
*/
|
|
6379
6379
|
export function getAll(callback: (permissions: Permissions) => void): void;
|
|
6380
6380
|
/**
|
|
6381
|
-
* Requests access to the specified permissions. These permissions must be defined in the optional_permissions
|
|
6381
|
+
* Requests access to the specified permissions. These permissions must be defined in the optional_permissions or optional_host_permissions (MV3 only) fields of the manifest. If there are any problems requesting the permissions, runtime.lastError will be set.
|
|
6382
6382
|
* @return A Promise that resolves with boolean: True if the user granted the specified permissions.
|
|
6383
6383
|
*/
|
|
6384
6384
|
export function request(permissions: Permissions): Promise<boolean>;
|
|
6385
6385
|
/**
|
|
6386
|
-
* Requests access to the specified permissions. These permissions must be defined in the optional_permissions
|
|
6386
|
+
* Requests access to the specified permissions. These permissions must be defined in the optional_permissions or optional_host_permissions (MV3 only) fields of the manifest. If there are any problems requesting the permissions, runtime.lastError will be set.
|
|
6387
6387
|
* Parameter granted: True if the user granted the specified permissions.
|
|
6388
6388
|
*/
|
|
6389
6389
|
export function request(permissions: Permissions, callback?: (granted: boolean) => void): void;
|
|
@@ -7604,6 +7604,7 @@ declare namespace chrome.runtime {
|
|
|
7604
7604
|
};
|
|
7605
7605
|
host_permissions?: string[] | undefined;
|
|
7606
7606
|
optional_permissions?: ManifestPermissions[] | undefined;
|
|
7607
|
+
optional_host_permissions?: string[] | undefined;
|
|
7607
7608
|
permissions?: ManifestPermissions[] | undefined;
|
|
7608
7609
|
web_accessible_resources?: Array<{ resources: string[]; matches: string[] }> | undefined;
|
|
7609
7610
|
}
|
chrome/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/chrome",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.260",
|
|
4
4
|
"description": "TypeScript definitions for chrome",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome",
|
|
6
6
|
"license": "MIT",
|
|
@@ -93,6 +93,6 @@
|
|
|
93
93
|
"@types/filesystem": "*",
|
|
94
94
|
"@types/har-format": "*"
|
|
95
95
|
},
|
|
96
|
-
"typesPublisherContentHash": "
|
|
96
|
+
"typesPublisherContentHash": "24977c2600af976810efe722beae3df8b42fa25f3c116b4f68c2c1e3e65f5e33",
|
|
97
97
|
"typeScriptVersion": "4.6"
|
|
98
98
|
}
|