add missing externs to repo
This commit is contained in:
11
externs/webextension_polyfill/identity/AccountInfo.hx
Normal file
11
externs/webextension_polyfill/identity/AccountInfo.hx
Normal file
@@ -0,0 +1,11 @@
|
||||
package webextension_polyfill.identity;
|
||||
|
||||
/**
|
||||
An object encapsulating an OAuth account id.
|
||||
**/
|
||||
typedef AccountInfo = {
|
||||
/**
|
||||
A unique identifier for the account. This ID will not change for the lifetime of the account.
|
||||
**/
|
||||
var id : String;
|
||||
};
|
@@ -0,0 +1,10 @@
|
||||
package webextension_polyfill.identity;
|
||||
|
||||
typedef LaunchWebAuthFlowDetailsType = {
|
||||
var url : String;
|
||||
/**
|
||||
Optional.
|
||||
**/
|
||||
@:optional
|
||||
var interactive : Bool;
|
||||
};
|
12
externs/webextension_polyfill/identity/Static.hx
Normal file
12
externs/webextension_polyfill/identity/Static.hx
Normal file
@@ -0,0 +1,12 @@
|
||||
package webextension_polyfill.identity;
|
||||
|
||||
typedef Static = {
|
||||
/**
|
||||
Starts an auth flow at the specified URL.
|
||||
**/
|
||||
function launchWebAuthFlow(details:LaunchWebAuthFlowDetailsType):js.lib.Promise<String>;
|
||||
/**
|
||||
Generates a redirect URL to be used in |launchWebAuthFlow|.
|
||||
**/
|
||||
function getRedirectURL(?path:String):String;
|
||||
};
|
Reference in New Issue
Block a user