Skip to content

Commit 2e6d637

Browse files
wrightsonmtimbru31spx-mw
authored
Updated typings (apache#817)
Co-authored-by: Tim Brust <[email protected]> Co-authored-by: Mark <[email protected]>
1 parent 1020b8f commit 2e6d637

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

types/index.d.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88
// TypeScript Version: 2.3
99
type channel = "loadstart" | "loadstop" | "loaderror" | "exit" | "message" | "customscheme";
1010

11-
interface Window {
11+
/**
12+
* The object returned from a call to cordova.InAppBrowser.open.
13+
* NOTE: The InAppBrowser window behaves like a standard web browser, and can't access Cordova APIs.
14+
*/
15+
interface InAppBrowser {
16+
1217
/**
1318
* Opens a URL in a new InAppBrowser instance, the current browser instance, or the system browser.
1419
* @param url The URL to load.
@@ -18,13 +23,7 @@ interface Window {
1823
* name/value pairs must be separated by a comma. Feature names are case insensitive.
1924
*/
2025
open(url: string, target?: string, options?: string): InAppBrowser;
21-
}
2226

23-
/**
24-
* The object returned from a call to window.open.
25-
* NOTE: The InAppBrowser window behaves like a standard web browser, and can't access Cordova APIs.
26-
*/
27-
interface InAppBrowser extends Window {
2827
onloadstart(type: Event): void;
2928
onloadstop(type: InAppBrowserEvent): void;
3029
onloaderror(type: InAppBrowserEvent): void;

0 commit comments

Comments
 (0)