Skip to content

Commit

Permalink
Updated typings (#817)
Browse files Browse the repository at this point in the history
Co-authored-by: Tim Brust <[email protected]>
Co-authored-by: Mark <[email protected]>
  • Loading branch information
3 people authored Nov 17, 2020
1 parent 1020b8f commit 2e6d637
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
// TypeScript Version: 2.3
type channel = "loadstart" | "loadstop" | "loaderror" | "exit" | "message" | "customscheme";

interface Window {
/**
* The object returned from a call to cordova.InAppBrowser.open.
* NOTE: The InAppBrowser window behaves like a standard web browser, and can't access Cordova APIs.
*/
interface InAppBrowser {

/**
* Opens a URL in a new InAppBrowser instance, the current browser instance, or the system browser.
* @param url The URL to load.
Expand All @@ -18,13 +23,7 @@ interface Window {
* name/value pairs must be separated by a comma. Feature names are case insensitive.
*/
open(url: string, target?: string, options?: string): InAppBrowser;
}

/**
* The object returned from a call to window.open.
* NOTE: The InAppBrowser window behaves like a standard web browser, and can't access Cordova APIs.
*/
interface InAppBrowser extends Window {
onloadstart(type: Event): void;
onloadstop(type: InAppBrowserEvent): void;
onloaderror(type: InAppBrowserEvent): void;
Expand Down

0 comments on commit 2e6d637

Please sign in to comment.