@types/chrome 0.0.240 → 0.0.241

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 +10 -7
  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: Thu, 06 Jul 2023 22:02:43 GMT
11
+ * Last updated: Wed, 12 Jul 2023 07:32:45 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
@@ -6813,6 +6813,9 @@ declare namespace chrome.serial.onReceiveError {
6813
6813
  export function addListener(callback: (info: OnReceiveErrorInfo) => void): void;
6814
6814
  }
6815
6815
 
6816
+ type DocumentLifecycle = 'prerender' | 'active' | 'cached' | 'pending_deletion';
6817
+ type FrameType = 'outermost_frame' | 'fenced_frame' | 'sub_frame';
6818
+
6816
6819
  ////////////////////
6817
6820
  // Runtime
6818
6821
  ////////////////////
@@ -6910,7 +6913,7 @@ declare namespace chrome.runtime {
6910
6913
  * The lifecycle the document that opened the connection is in at the time the port was created. Note that the lifecycle state of the document may have changed since port creation.
6911
6914
  * @since Chrome 106.
6912
6915
  */
6913
- documentLifecycle?: string | undefined;
6916
+ documentLifecycle?: DocumentLifecycle | undefined;
6914
6917
  /**
6915
6918
  * A UUID of the document that opened the connection.
6916
6919
  * @since Chrome 106.
@@ -10693,11 +10696,11 @@ declare namespace chrome.webNavigation {
10693
10696
  /** A UUID of the document loaded. */
10694
10697
  documentId: string;
10695
10698
  /** The lifecycle the document is in. */
10696
- documentLifecycle: "prerender" | "active" | "cached" | "pending_deletion";
10699
+ documentLifecycle: DocumentLifecycle;
10697
10700
  /** True if the last navigation in this frame was interrupted by an error, i.e. the onErrorOccurred event fired. */
10698
10701
  errorOccurred: boolean;
10699
10702
  /** The type of frame the navigation occurred in. */
10700
- frameType: "outermost_frame" | "fenced_frame" | "sub_frame";
10703
+ frameType: FrameType;
10701
10704
  /** A UUID of the parent document owning this frame. This is not set if there is no parent. */
10702
10705
  parentDocumentId?: string | undefined;
10703
10706
  /** ID of frame that wraps the frame. Set to -1 of no parent frame exists. */
@@ -10736,11 +10739,11 @@ declare namespace chrome.webNavigation {
10736
10739
  /** 0 indicates the navigation happens in the tab content window; a positive value indicates navigation in a subframe. Frame IDs are unique for a given tab and process. */
10737
10740
  frameId: number;
10738
10741
  /** The type of frame the navigation occurred in. */
10739
- frameType: "outermost_frame" | "fenced_frame" | "sub_frame";
10742
+ frameType: FrameType;
10740
10743
  /** A UUID of the document loaded. (This is not set for onBeforeNavigate callbacks.) */
10741
10744
  documentId?: string | undefined;
10742
10745
  /** The lifecycle the document is in. */
10743
- documentLifecycle: "prerender" | "active" | "cached" | "pending_deletion";
10746
+ documentLifecycle: DocumentLifecycle;
10744
10747
  /** A UUID of the parent document owning this frame. This is not set if there is no parent. */
10745
10748
  parentDocumentId?: string | undefined;
10746
10749
  /**
@@ -11008,8 +11011,8 @@ declare namespace chrome.webRequest {
11008
11011
  /** Optional. The HTTP request headers that are going to be sent out with this request. */
11009
11012
  requestHeaders?: HttpHeader[] | undefined;
11010
11013
  documentId: string;
11011
- documentLifecycle: "prerender" | "active" | "cached" | "pending_deletion";
11012
- frameType: "outermost_frame" | "fenced_frame" | "sub_frame";
11014
+ documentLifecycle: DocumentLifecycle;
11015
+ frameType: FrameType;
11013
11016
  frameId: number;
11014
11017
  initiator?: string | undefined;
11015
11018
  parentDocumentId?: string | undefined;
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.240",
3
+ "version": "0.0.241",
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": "25f4c5f64b3a77d8ad23243a6f514fe501302c9894d2b07645c054d8ee5f8ac0",
96
+ "typesPublisherContentHash": "e03140d2bd377fedd113d628d9b020580ec8a9930b14eef67d9a7c45e6d4ff96",
97
97
  "typeScriptVersion": "4.3"
98
98
  }