Skip to content

Commit 12f9b62

Browse files
Merge pull request DefinitelyTyped#8355 from jicongw/master
Cordova Type Update - InAppBrowser.d.ts - Correct non-specialized overload for TypeScript 2.0
2 parents 945ebfe + 20762bf commit 12f9b62

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cordova/plugins/InAppBrowser.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ interface InAppBrowser extends Window {
107107
* loaderror: event fires when the InAppBrowser encounters an error when loading a URL.
108108
* exit: event fires when the InAppBrowser window is closed.
109109
* @param callback the function that executes when the event fires. The function is
110-
* passed an InAppBrowserEvent object as a parameter.
110+
* passed an Event object as a parameter.
111111
*/
112-
addEventListener(type: string, callback: (event: InAppBrowserEvent) => void): void;
112+
addEventListener(type: string, callback: (event: Event) => void): void;
113113
// removeEventListener overloads
114114
/**
115115
* Removes a listener for an event from the InAppBrowser.
@@ -163,9 +163,9 @@ interface InAppBrowser extends Window {
163163
* loaderror: event fires when the InAppBrowser encounters an error when loading a URL.
164164
* exit: event fires when the InAppBrowser window is closed.
165165
* @param callback the function that executes when the event fires. The function is
166-
* passed an InAppBrowserEvent object as a parameter.
166+
* passed an Event object as a parameter.
167167
*/
168-
removeEventListener(type: string, callback: (event: InAppBrowserEvent) => void): void;
168+
removeEventListener(type: string, callback: (event: Event) => void): void;
169169
/** Closes the InAppBrowser window. */
170170
close(): void;
171171
/**

0 commit comments

Comments
 (0)