@types/chrome 0.0.223 → 0.0.224

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 +19 -19
  3. chrome/package.json +2 -2
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: Tue, 14 Mar 2023 23:02:40 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
  }
@@ -3205,7 +3205,7 @@ declare namespace chrome.enterprise.deviceAttributes {
3205
3205
  * @since Chrome 82.
3206
3206
  * @description
3207
3207
  * 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.
3208
+ * If the current user is not affiliated or no hostname has been set by the enterprise policy, returns an empty string.
3209
3209
  * @param callback Called with the hostname of the device.
3210
3210
  */
3211
3211
  export function getDeviceHostname(callback: (hostname: string) => void): void;
@@ -3655,7 +3655,7 @@ declare namespace chrome.fileSystemProvider {
3655
3655
  }
3656
3656
 
3657
3657
  export interface MountOptions {
3658
- /** The string indentifier of the file system. Must be unique per each extension. */
3658
+ /** The string identifier of the file system. Must be unique per each extension. */
3659
3659
  fileSystemId: string;
3660
3660
  /** A human-readable name for the file system. */
3661
3661
  displayName: string;
@@ -5176,7 +5176,7 @@ declare namespace chrome.input.ime {
5176
5176
  export var onKeyEvent: KeyEventEvent;
5177
5177
  /** This event is sent when an IME is deactivated. It signals that the IME will no longer be receiving onKeyPress events. */
5178
5178
  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. */
5179
+ /** 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
5180
  export var onInputContextUpdate: InputContextUpdateEvent;
5181
5181
  /** This event is sent when an IME is activated. It signals that the IME will be receiving onKeyPress events. */
5182
5182
  export var onActivate: ActivateEvent;
@@ -6396,7 +6396,7 @@ declare namespace chrome.proxy {
6396
6396
  proxyForFtp?: ProxyServer | undefined;
6397
6397
  /** Optional. The proxy server to be used for HTTP requests. */
6398
6398
  proxyForHttp?: ProxyServer | undefined;
6399
- /** Optional. The proxy server to be used for everthing else or if any of the specific proxyFor... is not specified. */
6399
+ /** Optional. The proxy server to be used for everything else or if any of the specific proxyFor... is not specified. */
6400
6400
  fallbackProxy?: ProxyServer | undefined;
6401
6401
  /** Optional. The proxy server to be used for all per-URL requests (that is http, https, and ftp). */
6402
6402
  singleProxy?: ProxyServer | undefined;
@@ -6576,7 +6576,7 @@ declare namespace chrome.serial {
6576
6576
  * @description Update the option settings on an open serial port connection.
6577
6577
  * @param connectionId The id of the opened connection.
6578
6578
  * @param options Port configuration options.
6579
- * @param callback Called when the configuation has completed.
6579
+ * @param callback Called when the configuration has completed.
6580
6580
  */
6581
6581
  export function update(connectionId: number, options: ConnectionOptions, callback: (result: boolean) => void): void;
6582
6582
 
@@ -7215,7 +7215,7 @@ declare namespace chrome.runtime {
7215
7215
  export function getBackgroundPage(callback: (backgroundPage?: Window) => void): void;
7216
7216
  /**
7217
7217
  * 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.
7218
+ * @return The manifest details.
7219
7219
  */
7220
7220
  export function getManifest(): Manifest;
7221
7221
  /**
@@ -8287,7 +8287,7 @@ declare namespace chrome.system.display {
8287
8287
  * This is has no effect if not provided.
8288
8288
  * @see(See `enableUnifiedDesktop` for details).
8289
8289
  * @since Chrome 59
8290
- * */
8290
+ */
8291
8291
  isUnified?: boolean | undefined;
8292
8292
 
8293
8293
  /**
@@ -8444,7 +8444,7 @@ declare namespace chrome.system.display {
8444
8444
  /**
8445
8445
  * The ratio between the display's current and default zoom.
8446
8446
  * For example, value 1 is equivalent to 100% zoom, and value 1.5 is equivalent to 150% zoom.
8447
- * */
8447
+ */
8448
8448
  displayZoomFactor: number;
8449
8449
  }
8450
8450
 
@@ -9763,7 +9763,7 @@ declare namespace chrome.tabs {
9763
9763
  * Gets the current zoom settings of a specified tab.
9764
9764
  * @since Chrome 42.
9765
9765
  * @param callback Called with the tab's current zoom settings.
9766
- * Paramater zoomSettings: The tab's current zoom settings.
9766
+ * Parameter zoomSettings: The tab's current zoom settings.
9767
9767
  */
9768
9768
  export function getZoomSettings(callback: (zoomSettings: ZoomSettings) => void): void;
9769
9769
  /**
@@ -9777,7 +9777,7 @@ declare namespace chrome.tabs {
9777
9777
  * @since Chrome 42.
9778
9778
  * @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
9779
  * @param callback Called with the tab's current zoom settings.
9780
- * Paramater zoomSettings: The tab's current zoom settings.
9780
+ * Parameter zoomSettings: The tab's current zoom settings.
9781
9781
  */
9782
9782
  export function getZoomSettings(tabId: number, callback: (zoomSettings: ZoomSettings) => void): void;
9783
9783
  /**
@@ -9803,26 +9803,26 @@ declare namespace chrome.tabs {
9803
9803
  export function discard(callback: (tab: Tab) => void): void;
9804
9804
  export function discard(tabId: number, callback: (tab: Tab) => void): void;
9805
9805
  /**
9806
- * Go foward to the next page, if one is available.
9806
+ * Go forward to the next page, if one is available.
9807
9807
  * @since Chrome 72.
9808
9808
  * @return The `goForward` method provides its result via callback or returned as a `Promise` (MV3 only). It has no parameters.
9809
9809
  */
9810
9810
  export function goForward(): Promise<void>;
9811
9811
  /**
9812
- * Go foward to the next page, if one is available.
9812
+ * Go forward to the next page, if one is available.
9813
9813
  * @since Chrome 72.
9814
9814
  * @param callback Optional. Called after the operation is completed.
9815
9815
  */
9816
9816
  export function goForward(callback: () => void): void;
9817
9817
  /**
9818
- * Go foward to the next page, if one is available.
9818
+ * Go forward to the next page, if one is available.
9819
9819
  * @since Chrome 72.
9820
9820
  * @param tabId Optional. The ID of the tab to navigate forward; defaults to the selected tab of the current window.
9821
9821
  * @return The `goForward` method provides its result via callback or returned as a `Promise` (MV3 only). It has no parameters.
9822
9822
  */
9823
9823
  export function goForward(tabId: number): Promise<void>;
9824
9824
  /**
9825
- * Go foward to the next page, if one is available.
9825
+ * Go forward to the next page, if one is available.
9826
9826
  * @since Chrome 72.
9827
9827
  * @param tabId Optional. The ID of the tab to navigate forward; defaults to the selected tab of the current window.
9828
9828
  * @param callback Optional. Called after the operation is completed.
@@ -11870,11 +11870,11 @@ declare namespace chrome.declarativeNetRequest {
11870
11870
  */
11871
11871
  isCaseSensitive?: boolean | undefined;
11872
11872
 
11873
- /** The regular expresson to check. */
11873
+ /** The regular expression to check. */
11874
11874
  regex: string;
11875
11875
 
11876
11876
  /** Whether the regex specified requires capturing.
11877
- * Capturing is only required for redirect rules which specify a regexSubstition action.
11877
+ * Capturing is only required for redirect rules which specify a regexSubstitution action.
11878
11878
  * The default is false.
11879
11879
  */
11880
11880
  requireCapturing?: boolean | undefined;
@@ -11981,7 +11981,7 @@ declare namespace chrome.declarativeNetRequest {
11981
11981
  /**
11982
11982
  * Returns the number of static rules an extension can enable before the global static rule limit is reached.
11983
11983
  * @return The `getAvailableStaticRuleCount` method provides its result via callback or returned as a `Promise` (MV3 only).
11984
- * */
11984
+ */
11985
11985
  export function getAvailableStaticRuleCount(): Promise<number>;
11986
11986
 
11987
11987
  /** 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.224",
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",
96
+ "typesPublisherContentHash": "d0de9f2a97f5d3508fa908fa3fae5d36ad1464019d2b937109f18ccfe8a2be81",
97
97
  "typeScriptVersion": "4.2"
98
98
  }