@types/chrome 0.0.157 → 0.0.161

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 +29 -11
  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, 06 Sep 2021 23:01:21 GMT
11
+ * Last updated: Sun, 24 Oct 2021 15:01:19 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
@@ -6195,7 +6195,7 @@ declare namespace chrome.serial {
6195
6195
  /** Flag indicating whether the connection is blocked from firing onReceive events. */
6196
6196
  paused: boolean;
6197
6197
  /** See ConnectionOptions.persistent */
6198
- peristent: boolean;
6198
+ persistent: boolean;
6199
6199
  /** See ConnectionOptions.name */
6200
6200
  name: string;
6201
6201
  /** See ConnectionOptions.bufferSize */
@@ -6220,7 +6220,7 @@ declare namespace chrome.serial {
6220
6220
  export interface ConnectionOptions {
6221
6221
  /** Optional. Flag indicating whether or not the connection should be left open when the application is suspended (see Manage App Lifecycle: https://developer.chrome.com/apps/app_lifecycle).
6222
6222
  * The default value is "false." When the application is loaded, any serial connections previously opened with persistent=true can be fetched with getConnections. */
6223
- peristent?: boolean | undefined;
6223
+ persistent?: boolean | undefined;
6224
6224
  /** Optional. An application-defined string to associate with the connection. */
6225
6225
  name?: string | undefined;
6226
6226
  /** Optional. The size of the buffer used to receive data. The default value is 4096. */
@@ -6456,6 +6456,13 @@ declare namespace chrome.runtime {
6456
6456
  /** The ID of the extension/app. */
6457
6457
  export var id: string;
6458
6458
 
6459
+ /** https://developer.chrome.com/docs/extensions/reference/runtime/#type-PlatformOs */
6460
+ export type PlatformOs = 'mac' | 'win' | 'android' | 'cros' | 'linux' | 'openbsd';
6461
+ /** https://developer.chrome.com/docs/extensions/reference/runtime/#type-PlatformArch */
6462
+ export type PlatformArch = 'arm' | 'arm64' | 'x86-32' | 'x86-64' | 'mips' | 'mips64';
6463
+ /** https://developer.chrome.com/docs/extensions/reference/runtime/#type-PlatformNaclArch */
6464
+ export type PlatformNaclArch = 'arm' | 'x86-32' | 'x86-64' | 'mips' | 'mips64';
6465
+
6459
6466
  export interface LastError {
6460
6467
  /** Optional. Details about the error which occurred. */
6461
6468
  message?: string | undefined;
@@ -6532,19 +6539,16 @@ declare namespace chrome.runtime {
6532
6539
  export interface PlatformInfo {
6533
6540
  /**
6534
6541
  * The operating system chrome is running on.
6535
- * One of: "mac", "win", "android", "cros", "linux", or "openbsd"
6536
6542
  */
6537
- os: string;
6543
+ os: PlatformOs;
6538
6544
  /**
6539
6545
  * The machine's processor architecture.
6540
- * One of: "arm", "x86-32", or "x86-64"
6541
6546
  */
6542
- arch: string;
6547
+ arch: PlatformArch;
6543
6548
  /**
6544
6549
  * The native client architecture. This may be different from arch on some platforms.
6545
- * One of: "arm", "x86-32", or "x86-64"
6546
6550
  */
6547
- nacl_arch: string;
6551
+ nacl_arch: PlatformNaclArch;
6548
6552
  }
6549
6553
 
6550
6554
  /**
@@ -10122,6 +10126,13 @@ declare namespace chrome.webNavigation {
10122
10126
  * Optional parameter details: Information about the requested frame, null if the specified frame ID and/or tab ID are invalid.
10123
10127
  */
10124
10128
  export function getFrame(details: GetFrameDetails, callback: (details: GetFrameResultDetails | null) => void): void;
10129
+ /**
10130
+ * Retrieves information about the given frame. A frame refers to an <iframe> or a <frame> of a web page and is identified by a tab ID and a frame ID.
10131
+ * @param details Information about the frame to retrieve information about.
10132
+ * @return The getFrame method provides its result via callback or returned as a Promise (MV3 only).
10133
+ */
10134
+ export function getFrame(details: GetFrameDetails): Promise<GetFrameResultDetails | null>;
10135
+
10125
10136
  /**
10126
10137
  * Retrieves information about all frames of a given tab.
10127
10138
  * @param details Information about the tab to retrieve all frames from.
@@ -10132,7 +10143,14 @@ declare namespace chrome.webNavigation {
10132
10143
  details: GetAllFrameDetails,
10133
10144
  callback: (details: GetAllFrameResultDetails[] | null) => void,
10134
10145
  ): void;
10135
-
10146
+ /**
10147
+ * Retrieves information about all frames of a given tab.
10148
+ * @param details Information about the tab to retrieve all frames from.
10149
+ * @return The getAllFrames method provides its result via callback or returned as a Promise (MV3 only).
10150
+ */
10151
+ export function getAllFrames(
10152
+ details: GetAllFrameDetails,
10153
+ ): Promise<GetAllFrameResultDetails[] | null>;
10136
10154
  /** Fired when the reference fragment of a frame was updated. All future events for that frame will use the updated URL. */
10137
10155
  export var onReferenceFragmentUpdated: WebNavigationTransitionalEvent;
10138
10156
  /** Fired when a document, including the resources it refers to, is completely loaded and initialized. */
@@ -10915,11 +10933,11 @@ declare namespace chrome.declarativeNetRequest {
10915
10933
  IMAGE = "image",
10916
10934
  FONT = "font",
10917
10935
  OBJECT = "object",
10918
- XML_HTTP_REQUEST = "xmlhttprequest",
10936
+ XMLHTTPREQUEST = "xmlhttprequest",
10919
10937
  PING = "ping",
10920
10938
  CSP_REPORT = "csp_report",
10921
10939
  MEDIA = "media",
10922
- WEB_SOCKET = "websocket",
10940
+ WEBSOCKET = "websocket",
10923
10941
  OTHER = "other"
10924
10942
  }
10925
10943
 
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.157",
3
+ "version": "0.0.161",
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",
@@ -98,6 +98,6 @@
98
98
  "@types/filesystem": "*",
99
99
  "@types/har-format": "*"
100
100
  },
101
- "typesPublisherContentHash": "61a1100c98b1f0a009471a97b4d7f987a997448ec7081619f4233d263af5ee83",
101
+ "typesPublisherContentHash": "5ce2fb452d2616bc8e715eab0fc861776fd281c290d911bb05426afd8c56fe21",
102
102
  "typeScriptVersion": "3.7"
103
103
  }