@types/chrome 0.0.200 → 0.0.202

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 -1
  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: Wed, 26 Oct 2022 20:32:58 GMT
11
+ * Last updated: Tue, 15 Nov 2022 08:02:56 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
@@ -4797,11 +4797,12 @@ declare namespace chrome.identity {
4797
4797
  * This method enables auth flows with non-Google identity providers by launching a web view and navigating it to the first URL in the provider's auth flow. When the provider redirects to a URL matching the pattern https://<app-id>.chromiumapp.org/*, the window will close, and the final redirect URL will be passed to the callback function.
4798
4798
  * For a good user experience it is important interactive auth flows are initiated by UI in your app explaining what the authorization is for. Failing to do this will cause your users to get authorization requests with no context. In particular, do not launch an interactive auth flow when your app is first launched.
4799
4799
  * @param details WebAuth flow options.
4800
- * @param callback Called with the URL redirected back to your application.
4800
+ * @param callback Optional. Called with the URL redirected back to your application.
4801
4801
  * The callback parameter should be a function that looks like this:
4802
4802
  * function(string responseUrl) {...};
4803
4803
  */
4804
4804
  export function launchWebAuthFlow(details: WebAuthFlowOptions, callback: (responseUrl?: string) => void): void;
4805
+ export function launchWebAuthFlow(details: WebAuthFlowOptions): Promise<string | undefined>;
4805
4806
 
4806
4807
  /**
4807
4808
  * Generates a redirect URL to be used in launchWebAuthFlow.
@@ -10935,6 +10936,18 @@ declare namespace chrome.webRequest {
10935
10936
  export interface WebRequestHeadersDetails extends WebRequestDetails {
10936
10937
  /** Optional. The HTTP request headers that are going to be sent out with this request. */
10937
10938
  requestHeaders?: HttpHeader[] | undefined;
10939
+ documentId: string;
10940
+ documentLifecycle: "prerender" | "active" | "cached" | "pending_deletion";
10941
+ frameType: "outermost_frame" | "fenced_frame" | "sub_frame";
10942
+ frameId: number;
10943
+ initiator?: string | undefined;
10944
+ parentDocumentId?: string | undefined;
10945
+ parentFrameId: number;
10946
+ requestId: string;
10947
+ tabId: number;
10948
+ timeStamp: number;
10949
+ type: ResourceType;
10950
+ url: string;
10938
10951
  }
10939
10952
 
10940
10953
  export interface WebRequestBodyDetails extends WebRequestDetails {
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.200",
3
+ "version": "0.0.202",
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",
@@ -88,6 +88,6 @@
88
88
  "@types/filesystem": "*",
89
89
  "@types/har-format": "*"
90
90
  },
91
- "typesPublisherContentHash": "92b46a975b500d4ae1612850f79c8701c15bf3c75bbfdfbb4cfaa28dacdd4da7",
91
+ "typesPublisherContentHash": "e403997e87224dfa64bcccd56cf255ff2b75fba52d3ebc1be1bf1e0c16889b8c",
92
92
  "typeScriptVersion": "4.1"
93
93
  }