From 6f625f92227512ef30e8f49066b8f376bce4e2a6 Mon Sep 17 00:00:00 2001 From: Ibby Hadeed Date: Sun, 17 Jul 2016 04:07:51 -0400 Subject: [PATCH] fix(launch-navigator): fix the navigate function wrapper to match latest plugin API --- src/plugins/launchnavigator.ts | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/plugins/launchnavigator.ts b/src/plugins/launchnavigator.ts index b28ead09..d1c4a13c 100644 --- a/src/plugins/launchnavigator.ts +++ b/src/plugins/launchnavigator.ts @@ -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} */ @Cordova({ - successIndex: 2, - errorIndex: 3 + successIndex: 1, + errorIndex: 2 }) static navigate( - destination: any, - start: any = null, + destination: string|number[], options?: LaunchNavigatorOptions ): Promise { return; }