style(): unify docs and spacing (#1448)

* typo(barcode-scanner): fixe circle lint error

* typo(docs):  Unified the documentations

In some plugins the typescript markup was missing.
I also unified the console.log string from console.log("hello") to console.log('Hello') so any plugin page look the same.
This commit is contained in:
Daniel Sogl
2017-04-30 20:36:22 +02:00
committed by Ibby Hadeed
parent a7c9abc449
commit c6f9fa356f
90 changed files with 497 additions and 506 deletions
@@ -7,7 +7,7 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
* It should be used for applications which keep running for a long time without any user interaction.
*
* @usage
* ```
* ```typescript
* import { PowerManagement } from '@ionic-native/power-management';
*
* constructor(private powerManagement: PowerManagement) { }
@@ -33,21 +33,21 @@ export class PowerManagement extends IonicNativePlugin {
* @returns {Promise<any>}
*/
@Cordova()
acquire(): Promise<any> {return; }
acquire(): Promise<any> { return; }
/**
* This acquires a partial wakelock, allowing the screen to be dimmed.
* @returns {Promise<any>}
*/
@Cordova()
dim(): Promise<any> {return; }
dim(): Promise<any> { return; }
/**
* Release the wakelock. It's important to do this when you're finished with the wakelock, to avoid unnecessary battery drain.
* @returns {Promise<any>}
*/
@Cordova()
release(): Promise<any> {return; }
release(): Promise<any> { return; }
/**
* By default, the plugin will automatically release a wakelock when your app is paused (e.g. when the screen is turned off, or the user switches to another app).
@@ -56,5 +56,5 @@ export class PowerManagement extends IonicNativePlugin {
* @returns {Promise<any>}
*/
@Cordova()
setReleaseOnPause(set: boolean): Promise<any> {return; }
setReleaseOnPause(set: boolean): Promise<any> { return; }
}