Fix incorrect TypeScript typings (#515)
* fix #514 * Update based on conversation in #514 * Fixed whitespace
This commit is contained in:
parent
11ba4c4e7e
commit
c01f037c8a
9
types/index.d.ts
vendored
9
types/index.d.ts
vendored
@ -6,7 +6,7 @@
|
|||||||
// Copyright (c) Microsoft Open Technologies Inc
|
// Copyright (c) Microsoft Open Technologies Inc
|
||||||
// Licensed under the MIT license.
|
// Licensed under the MIT license.
|
||||||
// TypeScript Version: 2.3
|
// TypeScript Version: 2.3
|
||||||
type channel = "loadstart" | "loadstop" | "loaderror" | "exit" | "message";
|
type channel = "loadstart" | "loadstop" | "loaderror" | "exit" | "message" | "customscheme";
|
||||||
|
|
||||||
interface Window {
|
interface Window {
|
||||||
/**
|
/**
|
||||||
@ -40,6 +40,13 @@ interface InAppBrowser extends Window {
|
|||||||
* passed an InAppBrowserEvent object as a parameter.
|
* passed an InAppBrowserEvent object as a parameter.
|
||||||
*/
|
*/
|
||||||
addEventListener(type: channel, callback: InAppBrowserEventListenerOrEventListenerObject): void;
|
addEventListener(type: channel, callback: InAppBrowserEventListenerOrEventListenerObject): void;
|
||||||
|
/**
|
||||||
|
* Adds a listener for an event from the InAppBrowser.
|
||||||
|
* @param type any custom event that might occur.
|
||||||
|
* @param callback the function that executes when the event fires. The function is
|
||||||
|
* passed an InAppBrowserEvent object as a parameter.
|
||||||
|
*/
|
||||||
|
addEventListener(type: string, callback: InAppBrowserEventListenerOrEventListenerObject): void;
|
||||||
// removeEventListener overloads
|
// removeEventListener overloads
|
||||||
/**
|
/**
|
||||||
* Removes a listener for an event from the InAppBrowser.
|
* Removes a listener for an event from the InAppBrowser.
|
||||||
|
Loading…
Reference in New Issue
Block a user