@types/chrome 0.0.224 → 0.0.225

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. chrome/README.md +1 -1
  2. chrome/index.d.ts +12 -2
  3. chrome/package.json +3 -3
chrome/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Chrome extension development (http://
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 14 Mar 2023 23:02:40 GMT
11
+ * Last updated: Thu, 23 Mar 2023 22:02:39 GMT
12
12
  * Dependencies: [@types/filesystem](https://npmjs.com/package/@types/filesystem), [@types/har-format](https://npmjs.com/package/@types/har-format)
13
13
  * Global values: `chrome`
14
14
 
chrome/index.d.ts CHANGED
@@ -2642,8 +2642,18 @@ declare namespace chrome.devtools.panels {
2642
2642
  * @param lineNumber Specifies the line number to scroll to when the resource is loaded.
2643
2643
  * @param callback A function that is called when the resource has been successfully loaded.
2644
2644
  */
2645
- export function openResource(url: string, lineNumber: number, callback: () => void): void;
2646
-
2645
+ export function openResource(url: string, lineNumber: number, callback?: () => void): void;
2646
+ /**
2647
+ * Since Chrome 96.
2648
+ * Requests DevTools to open a URL in a Developer Tools panel.
2649
+ * @param url The URL of the resource to open.
2650
+ * @param lineNumber Specifies the line number to scroll to when the resource is loaded.
2651
+ * @param columnNumber Specifies the column number to scroll to when the resource is loaded.
2652
+ * @param callback A function that is called when the resource has been successfully loaded.
2653
+ */
2654
+ export function openResource(
2655
+ url: string, lineNumber: number, columnNumber: number, callback?: (response: unknown) => unknown,
2656
+ ): void;
2647
2657
  /**
2648
2658
  * @since Chrome 59.
2649
2659
  * The name of the color theme set in user's DevTools settings.
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.224",
3
+ "version": "0.0.225",
4
4
  "description": "TypeScript definitions for Chrome extension development",
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": "d0de9f2a97f5d3508fa908fa3fae5d36ad1464019d2b937109f18ccfe8a2be81",
97
- "typeScriptVersion": "4.2"
96
+ "typesPublisherContentHash": "0eb1f0fa6c9b66f12a8825bc9660f97957852f954bc47b83269027074345f634",
97
+ "typeScriptVersion": "4.3"
98
98
  }