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
@@ -25,7 +25,7 @@ export interface MusicControlsOptions {
* Handle also headset event (plug, unplug, headset button).
*
* @usage
* ```
* ```typescript
* import { MusicControls } from '@ionic-native/music-controls';
*
* constructor(private musicControls: MusicControls) { }
@@ -115,14 +115,14 @@ export class MusicControls extends IonicNativePlugin {
* @returns {Promise<any>}
*/
@Cordova()
create(options: MusicControlsOptions): Promise<any> {return; }
create(options: MusicControlsOptions): Promise<any> { return; }
/**
* Destroy the media controller
* @returns {Promise<any>}
*/
@Cordova()
destroy(): Promise<any> {return; }
destroy(): Promise<any> { return; }
/**
* Subscribe to the events of the media controller
@@ -131,25 +131,25 @@ export class MusicControls extends IonicNativePlugin {
@Cordova({
observable: true
})
subscribe(): Observable<any> {return; }
subscribe(): Observable<any> { return; }
/**
* Start listening for events, this enables the Observable from the subscribe method
*/
@Cordova({sync: true})
listen(): void {}
@Cordova({ sync: true })
listen(): void { }
/**
* Toggle play/pause:
* @param isPlaying {boolean}
*/
@Cordova()
updateIsPlaying(isPlaying: boolean): void {}
updateIsPlaying(isPlaying: boolean): void { }
/**
* Toggle dismissable:
* @param dismissable {boolean}
*/
@Cordova()
updateDismissable(dismissable: boolean): void {}
updateDismissable(dismissable: boolean): void { }
}