Skip to content

Commit c01f037

Browse files
authored
Fix incorrect TypeScript typings (apache#515)
* fix apache#514 * Update based on conversation in apache#514 * Fixed whitespace
1 parent 11ba4c4 commit c01f037

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

types/index.d.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright (c) Microsoft Open Technologies Inc
77
// Licensed under the MIT license.
88
// TypeScript Version: 2.3
9-
type channel = "loadstart" | "loadstop" | "loaderror" | "exit" | "message";
9+
type channel = "loadstart" | "loadstop" | "loaderror" | "exit" | "message" | "customscheme";
1010

1111
interface Window {
1212
/**
@@ -40,6 +40,13 @@ interface InAppBrowser extends Window {
4040
* passed an InAppBrowserEvent object as a parameter.
4141
*/
4242
addEventListener(type: channel, callback: InAppBrowserEventListenerOrEventListenerObject): void;
43+
/**
44+
* Adds a listener for an event from the InAppBrowser.
45+
* @param type any custom event that might occur.
46+
* @param callback the function that executes when the event fires. The function is
47+
* passed an InAppBrowserEvent object as a parameter.
48+
*/
49+
addEventListener(type: string, callback: InAppBrowserEventListenerOrEventListenerObject): void;
4350
// removeEventListener overloads
4451
/**
4552
* Removes a listener for an event from the InAppBrowser.

0 commit comments

Comments
 (0)