@types/chrome 0.0.200 → 0.0.201
Sign up to get free protection for your applications and to get access to all the features.
- chrome/README.md +1 -1
- chrome/index.d.ts +2 -1
- 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:
|
11
|
+
* Last updated: Tue, 15 Nov 2022 01:32:48 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.
|
chrome/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/chrome",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.201",
|
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": "
|
91
|
+
"typesPublisherContentHash": "1e4ecbccede98da507da64943a7ad79acb14be1670adc35ccf7c4c0952018a6e",
|
92
92
|
"typeScriptVersion": "4.1"
|
93
93
|
}
|