chore(package): bump dependencies and lint rules

This commit is contained in:
Daniel
2018-03-16 22:04:01 +01:00
parent 7547a94c80
commit 21ad4734fa
178 changed files with 10565 additions and 4194 deletions
@@ -1,8 +1,7 @@
import { Injectable } from '@angular/core';
import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
export interface PromptsOptions {
/**
* a function to pass the user's decision whether to remember their choice of app.
* This will be passed a single boolean value indicating the user's decision.
@@ -22,7 +21,6 @@ export interface PromptsOptions {
*/
bodyText?: string;
/**
* text to display for the Yes button.
* Defaults to "Yes" if not specified.
@@ -37,7 +35,6 @@ export interface PromptsOptions {
}
export interface RememberChoiceOptions {
/**
* whether to remember user choice of app for next time, instead of asking again for user choice.
* `"prompt"` - Prompt user to decide whether to remember choice.
@@ -49,7 +46,6 @@ export interface RememberChoiceOptions {
*/
enabled?: boolean | string;
/**
* a function which asks the user whether to remember their choice of app.
* If this is defined, then the default dialog prompt will not be shown, allowing for a custom UI for asking the user.
@@ -103,7 +99,6 @@ export interface AppSelectionOptions {
}
export interface LaunchNavigatorOptions {
/**
* A callback to invoke when the navigation app is successfully launched.
*/
@@ -172,7 +167,6 @@ export interface LaunchNavigatorOptions {
*/
launchModeAppleMaps?: string;
/**
* If true, and input location type(s) doesn't match those required by the app, use geocoding to obtain the address/coords as required. Defaults to true.
*/
@@ -185,7 +179,6 @@ export interface LaunchNavigatorOptions {
}
export interface UserChoice {
/**
* Indicates whether a user choice exists for a preferred navigator app.
* @param callback - function to pass result to: will receive a boolean argument.
@@ -223,13 +216,13 @@ export interface UserPrompted {
* Sets flag indicating user has already been prompted whether to remember their choice a preferred navigator app.
* @param callback - function to call once operation is complete.
*/
set: ( callback: () => void) => void;
set: (callback: () => void) => void;
/**
* Clears flag which indicates if user has already been prompted whether to remember their choice a preferred navigator app.
* @param callback - function to call once operation is complete.
*/
clear: ( callback: () => void) => void;
clear: (callback: () => void) => void;
}
export interface AppSelection {
@@ -281,7 +274,6 @@ export interface AppSelection {
})
@Injectable()
export class LaunchNavigator extends IonicNativePlugin {
APP: any = {
USER_SELECT: 'user_select',
APPLE_MAPS: 'apple_maps',
@@ -316,7 +308,12 @@ export class LaunchNavigator extends IonicNativePlugin {
successIndex: 2,
errorIndex: 3
})
navigate(destination: string | number[], options?: LaunchNavigatorOptions): Promise<any> { return; }
navigate(
destination: string | number[],
options?: LaunchNavigatorOptions
): Promise<any> {
return;
}
/**
* Determines if the given app is installed and available on the current device.
@@ -324,14 +321,18 @@ export class LaunchNavigator extends IonicNativePlugin {
* @returns {Promise<any>}
*/
@Cordova()
isAppAvailable(app: string): Promise<any> { return; }
isAppAvailable(app: string): Promise<any> {
return;
}
/**
* Returns a list indicating which apps are installed and available on the current device.
* @returns {Promise<string[]>}
*/
@Cordova()
availableApps(): Promise<string[]> { return; }
availableApps(): Promise<string[]> {
return;
}
/**
* Returns the display name of the specified app.
@@ -339,7 +340,9 @@ export class LaunchNavigator extends IonicNativePlugin {
* @returns {string}
*/
@Cordova({ sync: true })
getAppDisplayName(app: string): string { return; }
getAppDisplayName(app: string): string {
return;
}
/**
* Returns list of supported apps on a given platform.
@@ -347,7 +350,9 @@ export class LaunchNavigator extends IonicNativePlugin {
* @returns {string[]}
*/
@Cordova({ sync: true })
getAppsForPlatform(platform: string): string[] { return; }
getAppsForPlatform(platform: string): string[] {
return;
}
/**
* Indicates if an app on a given platform supports specification of transport mode.
@@ -356,7 +361,9 @@ export class LaunchNavigator extends IonicNativePlugin {
* @returns {boolean}
*/
@Cordova({ sync: true })
supportsTransportMode(app: string, platform: string): boolean { return; }
supportsTransportMode(app: string, platform: string): boolean {
return;
}
/**
* Returns the list of transport modes supported by an app on a given platform.
@@ -365,7 +372,9 @@ export class LaunchNavigator extends IonicNativePlugin {
* @returns {string[]}
*/
@Cordova({ sync: true })
getTransportModes(app: string, platform: string): string[] { return; }
getTransportModes(app: string, platform: string): string[] {
return;
}
/**
* @param app {string}
@@ -373,7 +382,9 @@ export class LaunchNavigator extends IonicNativePlugin {
* @returns {boolean}
*/
@Cordova({ sync: true })
supportsDestName(app: string, platform: string): boolean { return; }
supportsDestName(app: string, platform: string): boolean {
return;
}
/**
* Indicates if an app on a given platform supports specification of start location.
@@ -382,7 +393,9 @@ export class LaunchNavigator extends IonicNativePlugin {
* @returns {boolean}
*/
@Cordova({ sync: true })
supportsStart(app: string, platform: string): boolean { return; }
supportsStart(app: string, platform: string): boolean {
return;
}
/**
* @param app {string}
@@ -390,7 +403,9 @@ export class LaunchNavigator extends IonicNativePlugin {
* @returns {boolean}
*/
@Cordova({ sync: true })
supportsStartName(app: string, platform: string): boolean { return; }
supportsStartName(app: string, platform: string): boolean {
return;
}
/**
* Indicates if an app on a given platform supports specification of launch mode.
@@ -400,14 +415,19 @@ export class LaunchNavigator extends IonicNativePlugin {
* @returns {boolean}
*/
@Cordova({ sync: true })
supportsLaunchMode(app: string, platform: string): boolean { return; }
supportsLaunchMode(app: string, platform: string): boolean {
return;
}
/**
* @param destination {string | number[]}
* @param options {LaunchNavigatorOptions}
*/
@Cordova({ sync: true })
userSelect(destination: string | number[], options: LaunchNavigatorOptions): void {}
userSelect(
destination: string | number[],
options: LaunchNavigatorOptions
): void {}
appSelection: AppSelection;
}