@types/chrome 0.1.2 → 0.1.3

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 +4 -7
  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, 08 Aug 2025 15:37:56 GMT
11
+ * Last updated: Fri, 08 Aug 2025 16:02:23 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
@@ -2863,7 +2863,7 @@ declare namespace chrome {
2863
2863
 
2864
2864
  export interface PanelSearchEvent extends chrome.events.Event<(action: string, queryString?: string) => void> {}
2865
2865
 
2866
- /** Represents a panel created by extension. */
2866
+ /** Represents a panel created by an extension. */
2867
2867
  export interface ExtensionPanel {
2868
2868
  /**
2869
2869
  * Appends a button to the status bar of the panel.
@@ -8280,10 +8280,7 @@ declare namespace chrome {
8280
8280
  */
8281
8281
  relatedWebsiteSetsEnabled: chrome.types.ChromeSetting<boolean>;
8282
8282
 
8283
- /**
8284
- * If disabled, Chrome blocks third-party sites from setting cookies.
8285
- * The value of this preference is of type boolean, and the default value is `true`.
8286
- */
8283
+ /** If disabled, Chrome blocks third-party sites from setting cookies. The value of this preference is of type boolean, and the default value is `true`. Extensions may not enable this API in Incognito mode, where third-party cookies are blocked and can only be allowed at the site level. If you try setting this API to true in Incognito, it will throw an error. */
8287
8284
  thirdPartyCookiesAllowed: chrome.types.ChromeSetting<boolean>;
8288
8285
 
8289
8286
  /**
@@ -9852,14 +9849,14 @@ declare namespace chrome {
9852
9849
  */
9853
9850
  get<T = { [key: string]: any }>(callback: (items: T) => void): void;
9854
9851
  /**
9855
- * Sets the desired access level for the storage area. The default will be only trusted contexts.
9852
+ * Sets the desired access level for the storage area. By default, session storage is restricted to trusted contexts (extension pages and service workers), while managed, local, and sync storage allow access from both trusted and untrusted contexts.
9856
9853
  * @param accessOptions An object containing an accessLevel key which contains the access level of the storage area.
9857
9854
  * @return A void Promise.
9858
9855
  * @since Chrome 102
9859
9856
  */
9860
9857
  setAccessLevel(accessOptions: { accessLevel: AccessLevel }): Promise<void>;
9861
9858
  /**
9862
- * Sets the desired access level for the storage area. The default will be only trusted contexts.
9859
+ * Sets the desired access level for the storage area. By default, session storage is restricted to trusted contexts (extension pages and service workers), while managed, local, and sync storage allow access from both trusted and untrusted contexts.
9863
9860
  * @param accessOptions An object containing an accessLevel key which contains the access level of the storage area.
9864
9861
  * @param callback Optional.
9865
9862
  * @since Chrome 102
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
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": "c8c961b7bcd05535fa54883ad1f2343b3a64565402676ca65423e02ce6537d13",
97
+ "typesPublisherContentHash": "076782c72553668c0fd190651d3de0085465e5085354e58f14803262e1f5a2a0",
98
98
  "typeScriptVersion": "5.2"
99
99
  }