@types/chrome 0.0.223 → 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 +31 -21
  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: Mon, 13 Mar 2023 22:32:43 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
@@ -1720,7 +1720,7 @@ declare namespace chrome.contextMenus {
1720
1720
  /**
1721
1721
  * Creates a new context menu item. Note that if an error occurs during creation, you may not find out until the creation callback fires (the details will be in chrome.runtime.lastError).
1722
1722
  * @param callback Called when the item has been created in the browser. If there were any problems creating the item, details will be available in chrome.runtime.lastError.
1723
- * @returns The ID of the newly created item.
1723
+ * @return The ID of the newly created item.
1724
1724
  */
1725
1725
  export function create(createProperties: CreateProperties, callback?: () => void): number | string;
1726
1726
  /**
@@ -2117,7 +2117,7 @@ declare namespace chrome.declarativeContent {
2117
2117
  /**
2118
2118
  * Optional.
2119
2119
  * Since Chrome 45. Warning: this is the current Beta channel. More information available on the API documentation pages.
2120
- * Matches if the bookmarked state of the page is equal to the specified value. Requres the bookmarks permission.
2120
+ * Matches if the bookmarked state of the page is equal to the specified value. Requires the bookmarks permission.
2121
2121
  */
2122
2122
  isBookmarked?: boolean | undefined;
2123
2123
  }
@@ -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.
@@ -3205,7 +3215,7 @@ declare namespace chrome.enterprise.deviceAttributes {
3205
3215
  * @since Chrome 82.
3206
3216
  * @description
3207
3217
  * Fetches the device's hostname as set by DeviceHostnameTemplate policy.
3208
- * If the current user is not affiliated or no hostname has been set by the the enterprise policy, returns an empty string.
3218
+ * If the current user is not affiliated or no hostname has been set by the enterprise policy, returns an empty string.
3209
3219
  * @param callback Called with the hostname of the device.
3210
3220
  */
3211
3221
  export function getDeviceHostname(callback: (hostname: string) => void): void;
@@ -3655,7 +3665,7 @@ declare namespace chrome.fileSystemProvider {
3655
3665
  }
3656
3666
 
3657
3667
  export interface MountOptions {
3658
- /** The string indentifier of the file system. Must be unique per each extension. */
3668
+ /** The string identifier of the file system. Must be unique per each extension. */
3659
3669
  fileSystemId: string;
3660
3670
  /** A human-readable name for the file system. */
3661
3671
  displayName: string;
@@ -5176,7 +5186,7 @@ declare namespace chrome.input.ime {
5176
5186
  export var onKeyEvent: KeyEventEvent;
5177
5187
  /** This event is sent when an IME is deactivated. It signals that the IME will no longer be receiving onKeyPress events. */
5178
5188
  export var onDeactivated: DeactivatedEvent;
5179
- /** This event is sent when the properties of the current InputContext change, such as the the type. It is sent to all extensions that are listening to this event, and enabled by the user. */
5189
+ /** This event is sent when the properties of the current InputContext change, such as the type. It is sent to all extensions that are listening to this event, and enabled by the user. */
5180
5190
  export var onInputContextUpdate: InputContextUpdateEvent;
5181
5191
  /** This event is sent when an IME is activated. It signals that the IME will be receiving onKeyPress events. */
5182
5192
  export var onActivate: ActivateEvent;
@@ -6396,7 +6406,7 @@ declare namespace chrome.proxy {
6396
6406
  proxyForFtp?: ProxyServer | undefined;
6397
6407
  /** Optional. The proxy server to be used for HTTP requests. */
6398
6408
  proxyForHttp?: ProxyServer | undefined;
6399
- /** Optional. The proxy server to be used for everthing else or if any of the specific proxyFor... is not specified. */
6409
+ /** Optional. The proxy server to be used for everything else or if any of the specific proxyFor... is not specified. */
6400
6410
  fallbackProxy?: ProxyServer | undefined;
6401
6411
  /** Optional. The proxy server to be used for all per-URL requests (that is http, https, and ftp). */
6402
6412
  singleProxy?: ProxyServer | undefined;
@@ -6576,7 +6586,7 @@ declare namespace chrome.serial {
6576
6586
  * @description Update the option settings on an open serial port connection.
6577
6587
  * @param connectionId The id of the opened connection.
6578
6588
  * @param options Port configuration options.
6579
- * @param callback Called when the configuation has completed.
6589
+ * @param callback Called when the configuration has completed.
6580
6590
  */
6581
6591
  export function update(connectionId: number, options: ConnectionOptions, callback: (result: boolean) => void): void;
6582
6592
 
@@ -7215,7 +7225,7 @@ declare namespace chrome.runtime {
7215
7225
  export function getBackgroundPage(callback: (backgroundPage?: Window) => void): void;
7216
7226
  /**
7217
7227
  * Returns details about the app or extension from the manifest. The object returned is a serialization of the full manifest file.
7218
- * @returns The manifest details.
7228
+ * @return The manifest details.
7219
7229
  */
7220
7230
  export function getManifest(): Manifest;
7221
7231
  /**
@@ -8287,7 +8297,7 @@ declare namespace chrome.system.display {
8287
8297
  * This is has no effect if not provided.
8288
8298
  * @see(See `enableUnifiedDesktop` for details).
8289
8299
  * @since Chrome 59
8290
- * */
8300
+ */
8291
8301
  isUnified?: boolean | undefined;
8292
8302
 
8293
8303
  /**
@@ -8444,7 +8454,7 @@ declare namespace chrome.system.display {
8444
8454
  /**
8445
8455
  * The ratio between the display's current and default zoom.
8446
8456
  * For example, value 1 is equivalent to 100% zoom, and value 1.5 is equivalent to 150% zoom.
8447
- * */
8457
+ */
8448
8458
  displayZoomFactor: number;
8449
8459
  }
8450
8460
 
@@ -9763,7 +9773,7 @@ declare namespace chrome.tabs {
9763
9773
  * Gets the current zoom settings of a specified tab.
9764
9774
  * @since Chrome 42.
9765
9775
  * @param callback Called with the tab's current zoom settings.
9766
- * Paramater zoomSettings: The tab's current zoom settings.
9776
+ * Parameter zoomSettings: The tab's current zoom settings.
9767
9777
  */
9768
9778
  export function getZoomSettings(callback: (zoomSettings: ZoomSettings) => void): void;
9769
9779
  /**
@@ -9777,7 +9787,7 @@ declare namespace chrome.tabs {
9777
9787
  * @since Chrome 42.
9778
9788
  * @param tabId Optional. The ID of the tab to get the current zoom settings from; defaults to the active tab of the current window.
9779
9789
  * @param callback Called with the tab's current zoom settings.
9780
- * Paramater zoomSettings: The tab's current zoom settings.
9790
+ * Parameter zoomSettings: The tab's current zoom settings.
9781
9791
  */
9782
9792
  export function getZoomSettings(tabId: number, callback: (zoomSettings: ZoomSettings) => void): void;
9783
9793
  /**
@@ -9803,26 +9813,26 @@ declare namespace chrome.tabs {
9803
9813
  export function discard(callback: (tab: Tab) => void): void;
9804
9814
  export function discard(tabId: number, callback: (tab: Tab) => void): void;
9805
9815
  /**
9806
- * Go foward to the next page, if one is available.
9816
+ * Go forward to the next page, if one is available.
9807
9817
  * @since Chrome 72.
9808
9818
  * @return The `goForward` method provides its result via callback or returned as a `Promise` (MV3 only). It has no parameters.
9809
9819
  */
9810
9820
  export function goForward(): Promise<void>;
9811
9821
  /**
9812
- * Go foward to the next page, if one is available.
9822
+ * Go forward to the next page, if one is available.
9813
9823
  * @since Chrome 72.
9814
9824
  * @param callback Optional. Called after the operation is completed.
9815
9825
  */
9816
9826
  export function goForward(callback: () => void): void;
9817
9827
  /**
9818
- * Go foward to the next page, if one is available.
9828
+ * Go forward to the next page, if one is available.
9819
9829
  * @since Chrome 72.
9820
9830
  * @param tabId Optional. The ID of the tab to navigate forward; defaults to the selected tab of the current window.
9821
9831
  * @return The `goForward` method provides its result via callback or returned as a `Promise` (MV3 only). It has no parameters.
9822
9832
  */
9823
9833
  export function goForward(tabId: number): Promise<void>;
9824
9834
  /**
9825
- * Go foward to the next page, if one is available.
9835
+ * Go forward to the next page, if one is available.
9826
9836
  * @since Chrome 72.
9827
9837
  * @param tabId Optional. The ID of the tab to navigate forward; defaults to the selected tab of the current window.
9828
9838
  * @param callback Optional. Called after the operation is completed.
@@ -11870,11 +11880,11 @@ declare namespace chrome.declarativeNetRequest {
11870
11880
  */
11871
11881
  isCaseSensitive?: boolean | undefined;
11872
11882
 
11873
- /** The regular expresson to check. */
11883
+ /** The regular expression to check. */
11874
11884
  regex: string;
11875
11885
 
11876
11886
  /** Whether the regex specified requires capturing.
11877
- * Capturing is only required for redirect rules which specify a regexSubstition action.
11887
+ * Capturing is only required for redirect rules which specify a regexSubstitution action.
11878
11888
  * The default is false.
11879
11889
  */
11880
11890
  requireCapturing?: boolean | undefined;
@@ -11981,7 +11991,7 @@ declare namespace chrome.declarativeNetRequest {
11981
11991
  /**
11982
11992
  * Returns the number of static rules an extension can enable before the global static rule limit is reached.
11983
11993
  * @return The `getAvailableStaticRuleCount` method provides its result via callback or returned as a `Promise` (MV3 only).
11984
- * */
11994
+ */
11985
11995
  export function getAvailableStaticRuleCount(): Promise<number>;
11986
11996
 
11987
11997
  /** Returns the current set of dynamic rules for the extension.
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.223",
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": "abd12ccb585769aee0f8fd7ce505ed4416f28b9d2f6e7f57fad983136be04177",
97
- "typeScriptVersion": "4.2"
96
+ "typesPublisherContentHash": "0eb1f0fa6c9b66f12a8825bc9660f97957852f954bc47b83269027074345f634",
97
+ "typeScriptVersion": "4.3"
98
98
  }