@types/chrome 0.0.224 → 0.0.226

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 +14 -4
  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: Mon, 27 Mar 2023 18:33:36 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.
@@ -4773,7 +4783,7 @@ declare namespace chrome.input.ime {
4773
4783
  altgrKey?: boolean | undefined;
4774
4784
  /**
4775
4785
  * Optional.
4776
- * The ID of the request.
4786
+ * The ID of the request. Use the requestId param from the onKeyEvent event instead.
4777
4787
  * @deprecated since Chrome 79.
4778
4788
  */
4779
4789
  requestId?: string | undefined;
@@ -5050,7 +5060,7 @@ declare namespace chrome.input.ime {
5050
5060
  export interface CandidateClickedEvent
5051
5061
  extends chrome.events.Event<(engineID: string, candidateID: number, button: string) => void> { }
5052
5062
 
5053
- export interface KeyEventEvent extends chrome.events.Event<(engineID: string, keyData: KeyboardEvent) => void> { }
5063
+ export interface KeyEventEvent extends chrome.events.Event<(engineID: string, keyData: KeyboardEvent, requestId: string) => void> { }
5054
5064
 
5055
5065
  export interface DeactivatedEvent extends chrome.events.Event<(engineID: string) => void> { }
5056
5066
 
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.224",
3
+ "version": "0.0.226",
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": "825d1000446be1d307ae6a47fe87623be4e50315fb1f4b2848fced52f27cd50c",
97
+ "typeScriptVersion": "4.3"
98
98
  }