From 35ad7f63875b94b960e6c4f172945860ecc45d17 Mon Sep 17 00:00:00 2001 From: Silviu Bogdan Stroe Date: Fri, 6 Apr 2018 16:11:55 +0300 Subject: [PATCH] style(uptime): remove the unneeded comments perf(uptime): add promise return type --- src/@ionic-native/plugins/uptime/index.ts | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/@ionic-native/plugins/uptime/index.ts b/src/@ionic-native/plugins/uptime/index.ts index 462a725be..651534d17 100644 --- a/src/@ionic-native/plugins/uptime/index.ts +++ b/src/@ionic-native/plugins/uptime/index.ts @@ -23,24 +23,23 @@ import {Plugin, Cordova, IonicNativePlugin} from '@ionic-native/core'; */ @Plugin({ pluginName: 'Uptime', - plugin: 'cordova-plugin-uptime', // npm package name, example: cordova-plugin-camera - pluginRef: 'Uptime', // the variable reference to call the plugin, example: navigator.geolocation - repo: 'https://github.com/s1lviu/cordova-plugin-uptime', // the github repository URL for the plugin - install: '', // OPTIONAL install command, in case the plugin requires variables - installVariables: [], // OPTIONAL the plugin requires variables - platforms: ['Android'] // Array of platforms supported, example: ['Android', 'iOS'] + plugin: 'cordova-plugin-uptime', + pluginRef: 'Uptime', + repo: 'https://github.com/s1lviu/cordova-plugin-uptime', + install: '', + installVariables: [], + platforms: ['Android'] }) @Injectable() export class Uptime extends IonicNativePlugin { /** * This function return system uptime - * @return {Promise} Returns a promise that resolves when something happens + * @return {Promise} Returns a promise that return the uptime in milliseconds */ @Cordova() - getUptime(): Promise { + getUptime(): Promise { return; // We add return; here to avoid any IDE / Compiler errors } } -