@types/chrome 0.0.315 → 0.0.316

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 +22 -5
  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, 11 Apr 2025 22:02:17 GMT
11
+ * Last updated: Tue, 22 Apr 2025 15:36:51 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
@@ -8956,7 +8956,7 @@ declare namespace chrome {
8956
8956
  default_popup?: string | undefined;
8957
8957
  }
8958
8958
 
8959
- // Source: https://developer.chrome.com/docs/extensions/mv3/declare_permissions/
8959
+ /** Source: https://developer.chrome.com/docs/extensions/reference/permissions-list */
8960
8960
  export type ManifestPermissions =
8961
8961
  | "accessibilityFeatures.modify"
8962
8962
  | "accessibilityFeatures.read"
@@ -9013,11 +9013,11 @@ declare namespace chrome {
9013
9013
  | "privacy"
9014
9014
  | "processes"
9015
9015
  | "proxy"
9016
+ | "readingList"
9016
9017
  | "scripting"
9017
9018
  | "search"
9018
9019
  | "sessions"
9019
9020
  | "sidePanel"
9020
- | "signedInDevices"
9021
9021
  | "storage"
9022
9022
  | "system.cpu"
9023
9023
  | "system.display"
@@ -9040,6 +9040,23 @@ declare namespace chrome {
9040
9040
  | "webRequestBlocking"
9041
9041
  | "webRequestAuthProvider";
9042
9042
 
9043
+ /** Source : https://developer.chrome.com/docs/extensions/reference/api/permissions */
9044
+ export type ManifestOptionalPermissions = Exclude<
9045
+ ManifestPermissions,
9046
+ | "debugger"
9047
+ | "declarativeNetRequest"
9048
+ | "devtools"
9049
+ | "experimental"
9050
+ | "fontSettings"
9051
+ | "geolocation"
9052
+ | "proxy"
9053
+ | "tts"
9054
+ | "ttsEngine"
9055
+ | "unlimitedStorage"
9056
+ | "wallpaper"
9057
+ | "webAuthenticationProxy"
9058
+ >;
9059
+
9043
9060
  export interface SearchProvider {
9044
9061
  name?: string | undefined;
9045
9062
  keyword?: string | undefined;
@@ -9259,8 +9276,8 @@ declare namespace chrome {
9259
9276
  }
9260
9277
  | undefined;
9261
9278
  content_security_policy?: string | undefined;
9262
- optional_permissions?: string[] | undefined;
9263
- permissions?: string[] | undefined;
9279
+ optional_permissions?: ManifestOptionalPermissions[] | string[] | undefined;
9280
+ permissions?: ManifestPermissions[] | string[] | undefined;
9264
9281
  web_accessible_resources?: string[] | undefined;
9265
9282
  }
9266
9283
 
@@ -9295,7 +9312,7 @@ declare namespace chrome {
9295
9312
  sandbox?: string;
9296
9313
  };
9297
9314
  host_permissions?: string[] | undefined;
9298
- optional_permissions?: ManifestPermissions[] | undefined;
9315
+ optional_permissions?: ManifestOptionalPermissions[] | undefined;
9299
9316
  optional_host_permissions?: string[] | undefined;
9300
9317
  permissions?: ManifestPermissions[] | undefined;
9301
9318
  web_accessible_resources?: Array<{ resources: string[]; matches: string[] }> | undefined;
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.315",
3
+ "version": "0.0.316",
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": "9f4b744a15db8bae9308e872192548ae54bb89c619a941ef3fc2613f48f2e618",
97
+ "typesPublisherContentHash": "ef2848ec857a2961c7b3f4fac265c8c66f7f87ed4ee074e89fa66558db476a76",
98
98
  "typeScriptVersion": "5.1"
99
99
  }