@types/chrome 0.1.25 → 0.1.26

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 -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: Mon, 27 Oct 2025 18:40:39 GMT
11
+ * Last updated: Mon, 27 Oct 2025 19:32:06 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
@@ -11869,7 +11869,7 @@ declare namespace chrome {
11869
11869
  * Permissions: "topSites"
11870
11870
  */
11871
11871
  export namespace topSites {
11872
- /** An object encapsulating a most visited URL, such as the URLs on the new tab page. */
11872
+ /** An object encapsulating a most visited URL, such as the default shortcuts on the new tab page. */
11873
11873
  export interface MostVisitedURL {
11874
11874
  /** The most visited URL. */
11875
11875
  url: string;
@@ -11877,14 +11877,13 @@ declare namespace chrome {
11877
11877
  title: string;
11878
11878
  }
11879
11879
 
11880
- /** Gets a list of top sites. */
11881
- export function get(callback: (data: MostVisitedURL[]) => void): void;
11882
-
11883
11880
  /**
11884
11881
  * Gets a list of top sites.
11885
- * @return The `get` method provides its result via callback or returned as a `Promise` (MV3 only).
11882
+ *
11883
+ * Can return its result via Promise in Manifest V3 or later since Chrome 96.
11886
11884
  */
11887
11885
  export function get(): Promise<MostVisitedURL[]>;
11886
+ export function get(callback: (data: MostVisitedURL[]) => void): void;
11888
11887
  }
11889
11888
 
11890
11889
  ////////////////////
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.1.25",
3
+ "version": "0.1.26",
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": "d216a6c8c00a765cff5c13cda2f955a491576cb4cf67da012fc054017600a879",
97
+ "typesPublisherContentHash": "62c398ca66b33ee9108b994a25ed5bb7d36f810adacd5fe8d8e25f464f957f02",
98
98
  "typeScriptVersion": "5.2"
99
99
  }