From 59a382d6dfbb53fa352b7d0c8d8e64817a9f3fed Mon Sep 17 00:00:00 2001 From: Ibby Date: Tue, 6 Dec 2016 08:44:42 -0500 Subject: [PATCH] refractor(background-geolocation): refractor interfaces names to avoid duplicates --- src/plugins/background-geolocation.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/plugins/background-geolocation.ts b/src/plugins/background-geolocation.ts index b90898a9..7cf66ee0 100644 --- a/src/plugins/background-geolocation.ts +++ b/src/plugins/background-geolocation.ts @@ -2,7 +2,7 @@ import {Cordova, Plugin} from './plugin'; declare var window; -export interface Location { +export interface BackgroundGeolocationResponse { /** * ID of location as stored in DB (or null) @@ -65,7 +65,7 @@ export interface Location { timestamp: number; } -export interface Config { +export interface BackgroundGeolocationConfig { /** * Desired accuracy in meters. Possible values [0, 10, 100, 1000]. The lower @@ -268,8 +268,8 @@ export interface Config { * * ``` * @interfaces - * Location - * Config + * BackgroundGeolocationResponse + * BackgroundGeolocationConfig */ @Plugin({ pluginName: 'BackgroundGeolocation', @@ -341,7 +341,7 @@ export class BackgroundGeolocation { @Cordova({ sync: true }) - static configure(callback: Function, errorCallback: Function, options: Config): any { return; } + static configure(callback: Function, errorCallback: Function, options: BackgroundGeolocationConfig): any { return; } /** * Turn ON the background-geolocation system. @@ -379,7 +379,7 @@ export class BackgroundGeolocation { @Cordova({ callbackOrder: 'reverse' }) - static setConfig(options: Config): Promise { return; } + static setConfig(options: BackgroundGeolocationConfig): Promise { return; } /** * Returns current stationaryLocation if available. null if not @@ -387,7 +387,7 @@ export class BackgroundGeolocation { * @returns {Promise} */ @Cordova() - static getStationaryLocation(): Promise { return; } + static getStationaryLocation(): Promise { return; } /** * Add a stationary-region listener. Whenever the devices enters "stationary-mode",