fix(launch-navigator): fix the navigate function wrapper to match latest plugin API

This commit is contained in:
Ibby Hadeed 2016-07-17 04:07:51 -04:00
parent de14b0ea15
commit 6f625f9222

View File

@ -44,6 +44,11 @@ export interface LaunchNavigatorOptions {
*/
navigationMode?: string;
/**
* Start point of the navigation
*/
start?: string|number[];
}
/**
@ -73,18 +78,16 @@ export class LaunchNavigator {
/**
* Launches navigator app
* @param destination Location name or coordinates
* @param start Location name or coordinates
* @param options
* @param destination {string|number[]} Location name or coordinates
* @param options {LaunchNavigatorOptions}
* @returns {Promise<any>}
*/
@Cordova({
successIndex: 2,
errorIndex: 3
successIndex: 1,
errorIndex: 2
})
static navigate(
destination: any,
start: any = null,
destination: string|number[],
options?: LaunchNavigatorOptions
): Promise<any> { return; }