mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-17 09:01:07 +08:00
refactor(uptime): beautify
This commit is contained in:
parent
35ad7f6387
commit
bc7bdc60b7
@ -1,6 +1,5 @@
|
|||||||
import {Injectable} from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import {Plugin, Cordova, IonicNativePlugin} from '@ionic-native/core';
|
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name Uptime
|
* @name Uptime
|
||||||
@ -32,14 +31,12 @@ import {Plugin, Cordova, IonicNativePlugin} from '@ionic-native/core';
|
|||||||
})
|
})
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class Uptime extends IonicNativePlugin {
|
export class Uptime extends IonicNativePlugin {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function return system uptime
|
* This function return system uptime
|
||||||
* @return {Promise<string>} Returns a promise that return the uptime in milliseconds
|
* @return {Promise<string>} Returns a promise that return the uptime in milliseconds
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
getUptime(): Promise<string> {
|
getUptime(): Promise<string> {
|
||||||
return; // We add return; here to avoid any IDE / Compiler errors
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user