add missing externs to repo

This commit is contained in:
2024-10-13 17:40:46 -05:00
parent b211bc0c4b
commit 2b6830784c
554 changed files with 13165 additions and 1 deletions

View 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;
};

View File

@@ -0,0 +1,10 @@
package webextension_polyfill.identity;
typedef LaunchWebAuthFlowDetailsType = {
var url : String;
/**
Optional.
**/
@:optional
var interactive : Bool;
};

View 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;
};