diff --git a/src/@ionic-native/core/decorators.ts b/src/@ionic-native/core/decorators.ts index 00d665eb3..a9dbab18f 100644 --- a/src/@ionic-native/core/decorators.ts +++ b/src/@ionic-native/core/decorators.ts @@ -127,10 +127,10 @@ export function InstanceCheck(opts: CordovaCheckOptions = {}) { if (opts.sync) { return; } else if (opts.observable) { - return new Observable(() => {}); + return new Observable(() => { }); } - return getPromise(() => {}); + return getPromise(() => { }); } } @@ -290,10 +290,10 @@ export function CordovaProperty(target: any, key: string) { export function InstanceProperty(target: any, key: string) { Object.defineProperty(target, key, { enumerable: true, - get: function(){ + get: function() { return this._objectInstance[key]; }, - set: function(value){ + set: function(value) { this._objectInstance[key] = value; } }); diff --git a/src/@ionic-native/core/ionic-native-plugin.ts b/src/@ionic-native/core/ionic-native-plugin.ts index 2fdedc5a9..dc5c30025 100644 --- a/src/@ionic-native/core/ionic-native-plugin.ts +++ b/src/@ionic-native/core/ionic-native-plugin.ts @@ -21,7 +21,7 @@ export class IonicNativePlugin { /** * Returns the original plugin object */ - static getPlugin(): any {} + static getPlugin(): any { } /** * Returns the plugin's name diff --git a/src/@ionic-native/core/plugin.ts b/src/@ionic-native/core/plugin.ts index f92f55141..aaaeae298 100644 --- a/src/@ionic-native/core/plugin.ts +++ b/src/@ionic-native/core/plugin.ts @@ -150,7 +150,7 @@ function wrapPromise(pluginObj: any, methodName: string, args: any[], opts: any return p; } -function wrapOtherPromise(pluginObj: any, methodName: string, args: any[], opts: any= {}) { +function wrapOtherPromise(pluginObj: any, methodName: string, args: any[], opts: any = {}) { return getPromise((resolve, reject) => { const pluginResult = callCordovaPlugin(pluginObj, methodName, args, opts); if (pluginResult) { @@ -225,7 +225,7 @@ export function overrideFunction(pluginObj: any, methodName: string, args: any[] if (availabilityCheck === true) { const pluginInstance = getPlugin(pluginObj.constructor.getPluginRef()); pluginInstance[methodName] = observer.next.bind(observer); - return () => pluginInstance[methodName] = () => {}; + return () => pluginInstance[methodName] = () => { }; } else { observer.error(availabilityCheck); observer.complete(); diff --git a/src/@ionic-native/plugins/admob-free/index.ts b/src/@ionic-native/plugins/admob-free/index.ts index f70dc65f1..a83166473 100644 --- a/src/@ionic-native/plugins/admob-free/index.ts +++ b/src/@ionic-native/plugins/admob-free/index.ts @@ -69,7 +69,7 @@ export interface AdMobFreeRewardVideoConfig { * @description * * @usage - * ``` + * ```typescript * import { AdMobFree, AdMobFreeBannerConfig } from '@ionic-native/admob-free'; * * diff --git a/src/@ionic-native/plugins/alipay/index.ts b/src/@ionic-native/plugins/alipay/index.ts index f2eb5ffe4..1e9e24a58 100644 --- a/src/@ionic-native/plugins/alipay/index.ts +++ b/src/@ionic-native/plugins/alipay/index.ts @@ -67,7 +67,7 @@ export interface AlipayOrder { * Requires Cordova plugin: `cordova-alipay-base`. For more info, please see the [Alipay plugin docs](https://github.com/xueron/cordova-alipay-base). * * @usage - * ``` + * ```typescript * import { Alipay, AlipayOrder } from '@ionic-native/alipay'; * * constructor(private alipay: Alipay) { @@ -112,4 +112,3 @@ export class Alipay extends IonicNativePlugin { @Cordova() pay(order: AlipayOrder): Promise { return; } } - diff --git a/src/@ionic-native/plugins/android-fingerprint-auth/index.ts b/src/@ionic-native/plugins/android-fingerprint-auth/index.ts index b48b19ae0..ff1133e88 100644 --- a/src/@ionic-native/plugins/android-fingerprint-auth/index.ts +++ b/src/@ionic-native/plugins/android-fingerprint-auth/index.ts @@ -114,18 +114,18 @@ export interface AFAEncryptResponse { * if(result.isAvailable){ * // it is available * - * this.androidFingerprintAuth.encrypt({ clientId: "myAppName", username: "myUsername", password: "myPassword" }) + * this.androidFingerprintAuth.encrypt({ clientId: 'myAppName', username: 'myUsername', password: 'myPassword' }) * .then(result => { * if (result.withFingerprint) { - * console.log("Successfully encrypted credentials."); - * console.log("Encrypted credentials: " + result.token); + * console.log('Successfully encrypted credentials.'); + * console.log('Encrypted credentials: ' + result.token); * } else if (result.withBackup) { * console.log('Successfully authenticated with backup password!'); * } else console.log('Didn\'t authenticate!'); * }) * .catch(error => { - * if (error === "Cancelled") { - * console.log("Fingerprint authentication cancelled"); + * if (error === 'Cancelled') { + * console.log('Fingerprint authentication cancelled'); * } else console.error(error) * }); * @@ -156,7 +156,7 @@ export class AndroidFingerprintAuth extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - encrypt(options: AFAAuthOptions): Promise {return; } + encrypt(options: AFAAuthOptions): Promise { return; } /** * Opens a native dialog fragment to use the device hardware fingerprint scanner to authenticate against fingerprints registered for the device. @@ -164,19 +164,19 @@ export class AndroidFingerprintAuth extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - decrypt(options: AFAAuthOptions): Promise {return; } + decrypt(options: AFAAuthOptions): Promise { return; } /** * Check if service is available * @returns {Promise} Returns a Promise that resolves if fingerprint auth is available on the device */ @Cordova() - isAvailable(): Promise<{isAvailable: boolean}> { return; } + isAvailable(): Promise<{ isAvailable: boolean }> { return; } /** * Delete the cipher used for encryption and decryption by username * @returns {Promise} Returns a Promise that resolves if the cipher was successfully deleted */ @Cordova() - delete(options: {clientId: string; username: string; }): Promise<{deleted: boolean}> { return; } + delete(options: { clientId: string; username: string; }): Promise<{ deleted: boolean }> { return; } } diff --git a/src/@ionic-native/plugins/app-update/index.ts b/src/@ionic-native/plugins/app-update/index.ts index 4ef0c92fa..3b2158ac6 100644 --- a/src/@ionic-native/plugins/app-update/index.ts +++ b/src/@ionic-native/plugins/app-update/index.ts @@ -19,7 +19,7 @@ import { Injectable } from '@angular/core'; * * Then use the following code: * - * ``` + * ```typescript * import { AppUpdate } from '@ionic-native/app-update'; * * constructor(private appUpdate: AppUpdate) { @@ -28,8 +28,6 @@ import { Injectable } from '@angular/core'; * this.appUpdate.checkAppUpdate(updateUrl); * * } - * - * * ``` * * The plugin will compare the app version and update it automatically if the API has a newer version to install. @@ -53,4 +51,3 @@ export class AppUpdate extends IonicNativePlugin { }) checkAppUpdate(updateUrl: string): Promise { return; } } - diff --git a/src/@ionic-native/plugins/appodeal/index.ts b/src/@ionic-native/plugins/appodeal/index.ts index f6ac8046b..5821ce7ce 100644 --- a/src/@ionic-native/plugins/appodeal/index.ts +++ b/src/@ionic-native/plugins/appodeal/index.ts @@ -8,7 +8,7 @@ import { Injectable } from '@angular/core'; * Plugin to serve ads through native Appodeal SDKs * * @usage - * ``` + * ```typescript * import { Appodeal } from '@ionic-native/appodeal'; * * constructor(private appodeal: Appodeal) { @@ -18,9 +18,6 @@ import { Injectable } from '@angular/core'; * appodeal.show(appodeal.AD_TYPES.REWARDED_VIDEO); * * } - * - * - * * ``` */ @Plugin({ @@ -28,7 +25,7 @@ import { Injectable } from '@angular/core'; plugin: 'https://github.com/appodeal/appodeal-cordova-plugin', pluginRef: 'Appodeal', repo: 'https://github.com/appodeal/appodeal-cordova-plugin.git', - platforms: [ 'iOS', 'Android' ] + platforms: ['iOS', 'Android'] }) @Injectable() export class Appodeal extends IonicNativePlugin { @@ -49,7 +46,7 @@ export class Appodeal extends IonicNativePlugin { * @param {number} adType */ @Cordova() - initialize(appKey: string, adType: number): void {}; + initialize(appKey: string, adType: number): void { }; /** * check if SDK has been initialized @@ -76,21 +73,21 @@ export class Appodeal extends IonicNativePlugin { showWithPlacement( adType: number, placement: any - ): Promise { return; }; + ): Promise { return; }; /** * hide ad of specified type * @param {number} adType */ @Cordova() - hide(adType: number): void {}; + hide(adType: number): void { }; /** * confirm use of ads of specified type * @param {number} adType */ @Cordova() - confirm(adType: number): void {}; + confirm(adType: number): void { }; /** * check if ad of specified type has been loaded @@ -114,69 +111,69 @@ export class Appodeal extends IonicNativePlugin { * @param autoCache */ @Cordova() - setAutoCache(adType: number, autoCache: any): void {}; + setAutoCache(adType: number, autoCache: any): void { }; /** * forcefully cache an ad by type * @param {number} adType */ @Cordova() - cache(adType: number): void {}; + cache(adType: number): void { }; /** * * @param {boolean} set */ @Cordova() - setOnLoadedTriggerBoth(set: boolean): void {}; + setOnLoadedTriggerBoth(set: boolean): void { }; /** * enable or disable Smart Banners * @param {boolean} enabled */ @Cordova() - setSmartBanners(enabled: boolean): void {}; + setSmartBanners(enabled: boolean): void { }; /** * enable or disable banner backgrounds * @param {boolean} enabled */ @Cordova() - setBannerBackground(enabled: boolean): void {}; + setBannerBackground(enabled: boolean): void { }; /** * enable or disable banner animations * @param {boolean} enabled */ @Cordova() - setBannerAnimation(enabled: boolean): void {}; + setBannerAnimation(enabled: boolean): void { }; /** * * @param value */ @Cordova() - set728x90Banners(value: any): void {}; + set728x90Banners(value: any): void { }; /** * enable or disable logging * @param {boolean} logging */ @Cordova() - setLogging(logging: boolean): void {}; + setLogging(logging: boolean): void { }; /** * enable or disable testing mode * @param {boolean} testing */ @Cordova() - setTesting(testing: boolean): void {}; + setTesting(testing: boolean): void { }; /** * reset device ID */ @Cordova() - resetUUID(): void {}; + resetUUID(): void { }; /** * get version of Appdeal SDK @@ -190,7 +187,7 @@ export class Appodeal extends IonicNativePlugin { * @param {number} adType */ @Cordova() - disableNetwork(network?: string, adType?: number): void {}; + disableNetwork(network?: string, adType?: number): void { }; /** * @@ -198,54 +195,54 @@ export class Appodeal extends IonicNativePlugin { * @param {number} adType */ @Cordova() - disableNetworkType(network?: string, adType?: number): void {}; + disableNetworkType(network?: string, adType?: number): void { }; /** * disable Location permissions for Appodeal SDK */ @Cordova() - disableLocationPermissionCheck(): void {}; + disableLocationPermissionCheck(): void { }; /** * disable Storage permissions for Appodeal SDK */ @Cordova() - disableWriteExternalStoragePermissionCheck(): void {}; + disableWriteExternalStoragePermissionCheck(): void { }; /** * enable event listeners * @param {boolean} enabled */ @Cordova() - enableInterstitialCallbacks(enabled: boolean): void {}; + enableInterstitialCallbacks(enabled: boolean): void { }; /** * enable event listeners * @param {boolean} enabled */ @Cordova() - enableSkippableVideoCallbacks(enabled: boolean): void {}; + enableSkippableVideoCallbacks(enabled: boolean): void { }; /** * enable event listeners * @param {boolean} enabled */ @Cordova() - enableNonSkippableVideoCallbacks(enabled: boolean): void {}; + enableNonSkippableVideoCallbacks(enabled: boolean): void { }; /** * enable event listeners * @param {boolean} enabled */ @Cordova() - enableBannerCallbacks(enabled: boolean): void {}; + enableBannerCallbacks(enabled: boolean): void { }; /** * enable event listeners * @param {boolean} enabled */ @Cordova() - enableRewardedVideoCallbacks(enabled: boolean): void {}; + enableRewardedVideoCallbacks(enabled: boolean): void { }; /** * @@ -253,7 +250,7 @@ export class Appodeal extends IonicNativePlugin { * @param {boolean} value */ @Cordova() - setCustomBooleanRule(name: string, value: boolean): void {}; + setCustomBooleanRule(name: string, value: boolean): void { }; /** * @@ -261,7 +258,7 @@ export class Appodeal extends IonicNativePlugin { * @param {number} value */ @Cordova() - setCustomIntegerRule(name: string, value: number): void {}; + setCustomIntegerRule(name: string, value: number): void { }; /** * set rule with float value @@ -269,7 +266,7 @@ export class Appodeal extends IonicNativePlugin { * @param {number} value */ @Cordova() - setCustomDoubleRule(name: string, value: number): void {}; + setCustomDoubleRule(name: string, value: number): void { }; /** * set rule with string value @@ -277,77 +274,77 @@ export class Appodeal extends IonicNativePlugin { * @param {string} value */ @Cordova() - setCustomStringRule(name: string, value: string): void {}; + setCustomStringRule(name: string, value: string): void { }; /** * set ID preference in Appodeal for current user * @param id */ @Cordova() - setUserId(id: any): void {}; + setUserId(id: any): void { }; /** * set Email preference in Appodeal for current user * @param email */ @Cordova() - setEmail(email: any): void {}; + setEmail(email: any): void { }; /** * set Birthday preference in Appodeal for current user * @param birthday */ @Cordova() - setBirthday(birthday: any): void {}; + setBirthday(birthday: any): void { }; /** * et Age preference in Appodeal for current user * @param age */ @Cordova() - setAge(age: any): void {}; + setAge(age: any): void { }; /** * set Gender preference in Appodeal for current user * @param gender */ @Cordova() - setGender(gender: any): void {}; + setGender(gender: any): void { }; /** * set Occupation preference in Appodeal for current user * @param occupation */ @Cordova() - setOccupation(occupation: any): void {}; + setOccupation(occupation: any): void { }; /** * set Relation preference in Appodeal for current user * @param relation */ @Cordova() - setRelation(relation: any): void {}; + setRelation(relation: any): void { }; /** * set Smoking preference in Appodeal for current user * @param smoking */ @Cordova() - setSmoking(smoking: any): void {}; + setSmoking(smoking: any): void { }; /** * set Alcohol preference in Appodeal for current user * @param alcohol */ @Cordova() - setAlcohol(alcohol: any): void {}; + setAlcohol(alcohol: any): void { }; /** * set Interests preference in Appodeal for current user * @param interests */ @Cordova() - setInterests(interests: any): void {}; + setInterests(interests: any): void { }; @Cordova({ eventObservable: true, diff --git a/src/@ionic-native/plugins/background-geolocation/index.ts b/src/@ionic-native/plugins/background-geolocation/index.ts index b48b9c806..aba02ed21 100644 --- a/src/@ionic-native/plugins/background-geolocation/index.ts +++ b/src/@ionic-native/plugins/background-geolocation/index.ts @@ -448,13 +448,13 @@ export class BackgroundGeolocation extends IonicNativePlugin { /** * Display app settings to change permissions */ - @Cordova({sync: true}) + @Cordova({ sync: true }) showAppSettings(): void { } /** * Display device location settings */ - @Cordova({sync: true}) + @Cordova({ sync: true }) showLocationSettings(): void { } /** diff --git a/src/@ionic-native/plugins/background-mode/index.ts b/src/@ionic-native/plugins/background-mode/index.ts index 37c90164b..a3bcda477 100644 --- a/src/@ionic-native/plugins/background-mode/index.ts +++ b/src/@ionic-native/plugins/background-mode/index.ts @@ -148,7 +148,7 @@ export class BackgroundMode extends IonicNativePlugin { platforms: ['Android'], sync: true }) - moveToBackground(): void {} + moveToBackground(): void { } /** * Android allows to programmatically move from background to foreground. @@ -157,7 +157,7 @@ export class BackgroundMode extends IonicNativePlugin { platforms: ['Android'], sync: true }) - moveToForeground(): void {} + moveToForeground(): void { } /** * Override the back button on Android to go to background instead of closing the app. @@ -166,7 +166,7 @@ export class BackgroundMode extends IonicNativePlugin { platforms: ['Android'], sync: true }) - overrideBackButton(): void {} + overrideBackButton(): void { } /** * Exclude the app from the recent task list works on Android 5.0+. @@ -175,7 +175,7 @@ export class BackgroundMode extends IonicNativePlugin { platforms: ['Android'], sync: true }) - excludeFromTaskList(): void {} + excludeFromTaskList(): void { } /** * The method works async instead of isActive() or isEnabled(). @@ -192,7 +192,7 @@ export class BackgroundMode extends IonicNativePlugin { platforms: ['Android'], sync: true }) - wakeUp(): void {} + wakeUp(): void { } /** * Turn screen on and show app even locked @@ -201,6 +201,6 @@ export class BackgroundMode extends IonicNativePlugin { platforms: ['Android'], sync: true }) - unlock(): void {} + unlock(): void { } } diff --git a/src/@ionic-native/plugins/backlight/index.ts b/src/@ionic-native/plugins/backlight/index.ts index a9dd268fc..ab9c638da 100644 --- a/src/@ionic-native/plugins/backlight/index.ts +++ b/src/@ionic-native/plugins/backlight/index.ts @@ -9,7 +9,7 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; * This plugin adds turning on/off the device backlight. * * @usage - * ``` + * ```typescript * import { Backlight } from '@ionic-native/backlight'; * * constructor(private backlight: Backlight) { } diff --git a/src/@ionic-native/plugins/base64-to-gallery/index.ts b/src/@ionic-native/plugins/base64-to-gallery/index.ts index 7c0b51fa1..0acc4da06 100644 --- a/src/@ionic-native/plugins/base64-to-gallery/index.ts +++ b/src/@ionic-native/plugins/base64-to-gallery/index.ts @@ -40,7 +40,7 @@ export class Base64ToGallery extends IonicNativePlugin { successIndex: 2, errorIndex: 3 }) - base64ToGallery(data: string, options?: {prefix?: string; mediaScanner?: boolean}): Promise { + base64ToGallery(data: string, options?: { prefix?: string; mediaScanner?: boolean }): Promise { return; } diff --git a/src/@ionic-native/plugins/ble/index.ts b/src/@ionic-native/plugins/ble/index.ts index 409947c5e..eb35c4789 100644 --- a/src/@ionic-native/plugins/ble/index.ts +++ b/src/@ionic-native/plugins/ble/index.ts @@ -35,59 +35,59 @@ import { Observable } from 'rxjs/Observable'; * * ```typescript * { - * "name": "Battery Demo", - * "id": "20:FF:D0:FF:D1:C0", - * "advertising": [2,1,6,3,3,15,24,8,9,66,97,116,116,101,114,121], - * "rssi": -55 + * 'name': 'Battery Demo', + * 'id': '20:FF:D0:FF:D1:C0', + * 'advertising': [2,1,6,3,3,15,24,8,9,66,97,116,116,101,114,121], + * 'rssi': -55 * } * ``` * After connecting, the peripheral object also includes service, characteristic and descriptor information. * * ```typescript * { - * "name": "Battery Demo", - * "id": "20:FF:D0:FF:D1:C0", - * "advertising": [2,1,6,3,3,15,24,8,9,66,97,116,116,101,114,121], - * "rssi": -55, - * "services": [ - * "1800", - * "1801", - * "180f" + * 'name': 'Battery Demo', + * 'id': '20:FF:D0:FF:D1:C0', + * 'advertising': [2,1,6,3,3,15,24,8,9,66,97,116,116,101,114,121], + * 'rssi': -55, + * 'services': [ + * '1800', + * '1801', + * '180f' * ], - * "characteristics": [ + * 'characteristics': [ * { - * "service": "1800", - * "characteristic": "2a00", - * "properties": [ - * "Read" + * 'service': '1800', + * 'characteristic': '2a00', + * 'properties': [ + * 'Read' * ] * }, * { - * "service": "1800", - * "characteristic": "2a01", - * "properties": [ - * "Read" + * 'service': '1800', + * 'characteristic': '2a01', + * 'properties': [ + * 'Read' * ] * }, * { - * "service": "1801", - * "characteristic": "2a05", - * "properties": [ - * "Read" + * 'service': '1801', + * 'characteristic': '2a05', + * 'properties': [ + * 'Read' * ] * }, * { - * "service": "180f", - * "characteristic": "2a19", - * "properties": [ - * "Read" + * 'service': '180f', + * 'characteristic': '2a19', + * 'properties': [ + * 'Read' * ], - * "descriptors": [ + * 'descriptors': [ * { - * "uuid": "2901" + * 'uuid': '2901' * }, * { - * "uuid": "2904" + * 'uuid': '2904' * } * ] * } @@ -104,10 +104,10 @@ import { Observable } from 'rxjs/Observable'; * * ```typescript * { - * "name": "demo", - * "id": "00:1A:7D:DA:71:13", - * "advertising": ArrayBuffer, - * "rssi": -37 + * 'name': 'demo', + * 'id': '00:1A:7D:DA:71:13', + * 'advertising': ArrayBuffer, + * 'rssi': -37 * } * ``` * @@ -119,24 +119,24 @@ import { Observable } from 'rxjs/Observable'; * * ```typescript * { - * "name": "demo", - * "id": "D8479A4F-7517-BCD3-91B5-3302B2F81802", - * "advertising": { - * "kCBAdvDataChannel": 37, - * "kCBAdvDataServiceData": { - * "FED8": { - * "byteLength": 7 // data not shown + * 'name': 'demo', + * 'id': 'D8479A4F-7517-BCD3-91B5-3302B2F81802', + * 'advertising': { + * 'kCBAdvDataChannel': 37, + * 'kCBAdvDataServiceData': { + * 'FED8': { + * 'byteLength': 7 // data not shown * } * }, - * "kCBAdvDataLocalName": "demo", - * "kCBAdvDataServiceUUIDs": ["FED8"], - * "kCBAdvDataManufacturerData": { - * "byteLength": 7 // data not shown + * 'kCBAdvDataLocalName': 'demo', + * 'kCBAdvDataServiceUUIDs': ['FED8'], + * 'kCBAdvDataManufacturerData': { + * 'byteLength': 7 // data not shown * }, - * "kCBAdvDataTxPowerLevel": 32, - * "kCBAdvDataIsConnectable": true + * 'kCBAdvDataTxPowerLevel': 32, + * 'kCBAdvDataIsConnectable': true * }, - * "rssi": -53 + * 'rssi': -53 * } * ``` * @@ -230,7 +230,7 @@ export class BLE extends IonicNativePlugin { clearFunction: 'stopScan', clearWithArgs: false }) - startScanWithOptions(services: string[], options: {reportDuplicates?: boolean} | any): Observable { return; } + startScanWithOptions(services: string[], options: { reportDuplicates?: boolean } | any): Observable { return; } /** * Stop a scan started by `startScan`. @@ -306,14 +306,14 @@ export class BLE extends IonicNativePlugin { * // send 1 byte to switch a light on * var data = new Uint8Array(1); * data[0] = 1; - * BLE.write(device_id, "FF10", "FF11", data.buffer); + * BLE.write(device_id, 'FF10', 'FF11', data.buffer); * * // send a 3 byte value with RGB color * var data = new Uint8Array(3); * data[0] = 0xFF; // red * data[0] = 0x00; // green * data[0] = 0xFF; // blue - * BLE.write(device_id, "ccc0", "ccc1", data.buffer); + * BLE.write(device_id, 'ccc0', 'ccc1', data.buffer); * * // send a 32 bit integer * var data = new Uint32Array(1); @@ -357,7 +357,7 @@ export class BLE extends IonicNativePlugin { * * @usage * ``` - * BLE.startNotification(device_id, "FF10", "FF11").subscribe(buffer => { + * BLE.startNotification(device_id, 'FF10', 'FF11').subscribe(buffer => { * console.log(String.fromCharCode.apply(null, new Uint8Array(buffer)); * }); * ``` diff --git a/src/@ionic-native/plugins/bluetooth-serial/index.ts b/src/@ionic-native/plugins/bluetooth-serial/index.ts index 2ecc59983..ec5e3f336 100644 --- a/src/@ionic-native/plugins/bluetooth-serial/index.ts +++ b/src/@ionic-native/plugins/bluetooth-serial/index.ts @@ -13,7 +13,7 @@ import { Observable } from 'rxjs/Observable'; * * * // Write a string - * this.bluetoothSerial.write("hello world").then(success, failure); + * this.bluetoothSerial.write('hello world').then(success, failure); * * // Array of int or bytes * this.bluetoothSerial.write([186, 220, 222]).then(success, failure); diff --git a/src/@ionic-native/plugins/broadcaster/index.ts b/src/@ionic-native/plugins/broadcaster/index.ts index b7fe65520..e34561833 100644 --- a/src/@ionic-native/plugins/broadcaster/index.ts +++ b/src/@ionic-native/plugins/broadcaster/index.ts @@ -8,7 +8,7 @@ import { Observable } from 'rxjs/Observable'; * This plugin adds exchanging events between native code and your app. * * @usage - * ``` + * ```typescript * import { Broadcaster } from '@ionic-native/broadcaster'; * * constructor(private broadcaster: Broadcaster) { } diff --git a/src/@ionic-native/plugins/browser-tab/index.ts b/src/@ionic-native/plugins/browser-tab/index.ts index 03e8dd763..d41848c07 100644 --- a/src/@ionic-native/plugins/browser-tab/index.ts +++ b/src/@ionic-native/plugins/browser-tab/index.ts @@ -7,7 +7,7 @@ import { Injectable } from '@angular/core'; * This plugin provides an interface to in-app browser tabs that exist on some mobile platforms, specifically [Custom Tabs](http://developer.android.com/tools/support-library/features.html#custom-tabs) on Android (including the [Chrome Custom Tabs](https://developer.chrome.com/multidevice/android/customtabs) implementation), and [SFSafariViewController](https://developer.apple.com/library/ios/documentation/SafariServices/Reference/SFSafariViewController_Ref/) on iOS. * * @usage - * ``` + * ```typescript * import { BrowserTab } from '@ionic-native/browser-tab'; * * constructor(private browserTab: BrowserTab) { diff --git a/src/@ionic-native/plugins/calendar/index.ts b/src/@ionic-native/plugins/calendar/index.ts index 8094b267f..329df3666 100644 --- a/src/@ionic-native/plugins/calendar/index.ts +++ b/src/@ionic-native/plugins/calendar/index.ts @@ -59,7 +59,7 @@ export interface CalendarOptions { * * * @usage - * ``` + * ```typescript * import { Calendar } from '@ionic-native/calendar'; * * constructor(private calendar: Calendar) { } diff --git a/src/@ionic-native/plugins/call-number/index.ts b/src/@ionic-native/plugins/call-number/index.ts index 4d4d06e29..b7be20acf 100644 --- a/src/@ionic-native/plugins/call-number/index.ts +++ b/src/@ionic-native/plugins/call-number/index.ts @@ -6,7 +6,7 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; * Call a number directly from your Cordova/Ionic application. * * @usage - * ``` + * ```typescript * import { CallNumber } from '@ionic-native/call-number'; * * constructor(private callNumber: CallNumber) { } diff --git a/src/@ionic-native/plugins/camera-preview/index.ts b/src/@ionic-native/plugins/camera-preview/index.ts index e3804c2e7..bf7af50ae 100644 --- a/src/@ionic-native/plugins/camera-preview/index.ts +++ b/src/@ionic-native/plugins/camera-preview/index.ts @@ -39,12 +39,12 @@ export interface CameraPreviewOptions { } export interface CameraPreviewPictureOptions { - /** The width in pixels, default 0 */ - width?: number; - /** The height in pixels, default 0 */ - height?: number; - /** The picture quality, 0 - 100, default 85 */ - quality?: number; + /** The width in pixels, default 0 */ + width?: number; + /** The height in pixels, default 0 */ + height?: number; + /** The picture quality, 0 - 100, default 85 */ + quality?: number; } /** @@ -251,10 +251,10 @@ export class CameraPreview extends IonicNativePlugin { }) setZoom(zoom?: number): Promise { return; } -/** - * Get the maximum zoom (Android) - * @return {Promise} - */ + /** + * Get the maximum zoom (Android) + * @return {Promise} + */ @Cordova() getMaxZoom(): Promise { return; } diff --git a/src/@ionic-native/plugins/card-io/index.ts b/src/@ionic-native/plugins/card-io/index.ts index ab54349ec..8163be018 100644 --- a/src/@ionic-native/plugins/card-io/index.ts +++ b/src/@ionic-native/plugins/card-io/index.ts @@ -133,7 +133,7 @@ export interface CardIOResponse { * @name Card IO * @description * @usage - * ``` + * ```typescript * import { CardIO } from '@ionic-native/card-io'; * * constructor(private cardIO: CardIO) { } diff --git a/src/@ionic-native/plugins/contacts/index.ts b/src/@ionic-native/plugins/contacts/index.ts index 586c98f7e..a6e9d9816 100644 --- a/src/@ionic-native/plugins/contacts/index.ts +++ b/src/@ionic-native/plugins/contacts/index.ts @@ -145,16 +145,16 @@ export interface IContactName { */ export class ContactName implements IContactName { constructor(public formatted?: string, - public familyName?: string, - public givenName?: string, - public middleName?: string, - public honorificPrefix?: string, - public honorificSuffix?: string) {} + public familyName?: string, + public givenName?: string, + public middleName?: string, + public honorificPrefix?: string, + public honorificSuffix?: string) { } } export interface IContactField { /** A string that indicates what type of field this is, home for example. */ - type?: string; + type?: string; /** The value of the field, such as a phone number or email address. */ value?: string; /** Set to true if this ContactField contains the user's preferred value. */ @@ -166,15 +166,15 @@ export interface IContactField { */ export class ContactField implements IContactField { constructor(public type?: string, - public value?: string, - public pref?: boolean) {} + public value?: string, + public pref?: boolean) { } } export interface IContactAddress { /** Set to true if this ContactAddress contains the user's preferred value. */ pref?: boolean; /** A string indicating what type of field this is, home for example. */ - type?: string; + type?: string; /** The full address formatted for display. */ formatted?: string; /** The full street address. */ @@ -194,20 +194,20 @@ export interface IContactAddress { */ export class ContactAddress implements IContactAddress { constructor(public pref?: boolean, - public type?: string, - public formatted?: string, - public streetAddress?: string, - public locality?: string, - public region?: string, - public postalCode?: string, - public country?: string) {} + public type?: string, + public formatted?: string, + public streetAddress?: string, + public locality?: string, + public region?: string, + public postalCode?: string, + public country?: string) { } } export interface IContactOrganization { /** Set to true if this ContactOrganization contains the user's preferred value. */ pref?: boolean; /** A string that indicates what type of field this is, home for example. */ - type?: string; + type?: string; /** The name of the organization. */ name?: string; /** The department the contract works for. */ @@ -226,7 +226,7 @@ export class ContactOrganization implements IContactOrganization { public department?: string, public title?: string, public pref?: boolean - ) {} + ) { } } /** Search options to filter navigator.contacts. */ @@ -248,9 +248,9 @@ export interface IContactFindOptions { */ export class ContactFindOptions implements IContactFindOptions { constructor(public filter?: string, - public multiple?: boolean, - public desiredFields?: string[], - public hasPhoneNumber?: boolean) {} + public multiple?: boolean, + public desiredFields?: string[], + public hasPhoneNumber?: boolean) { } } /** diff --git a/src/@ionic-native/plugins/couchbase-lite/index.ts b/src/@ionic-native/plugins/couchbase-lite/index.ts index cd48254a6..8d843e208 100644 --- a/src/@ionic-native/plugins/couchbase-lite/index.ts +++ b/src/@ionic-native/plugins/couchbase-lite/index.ts @@ -8,7 +8,7 @@ import { Injectable } from '@angular/core'; * Plugin to install Couchbase Lite in your PhoneGap app on iOS or Android * * @usage - * ``` + * ```typescript * import { CouchbaseLite } from '@ionic-native/couchbase-lite'; * * constructor(private couchbase: CouchbaseLite) { @@ -38,6 +38,6 @@ export class CouchbaseLite extends IonicNativePlugin { @Cordova({ callbackStyle: 'node' }) - getURL(): Promise { return; } + getURL(): Promise { return; } } diff --git a/src/@ionic-native/plugins/crop/index.ts b/src/@ionic-native/plugins/crop/index.ts index f411de3fc..52c5c041e 100644 --- a/src/@ionic-native/plugins/crop/index.ts +++ b/src/@ionic-native/plugins/crop/index.ts @@ -5,7 +5,7 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; * @name Crop * @description Crops images * @usage - * ``` + * ```typescript * import { Crop } from '@ionic-native/crop'; * * constructor(private crop: Crop) { } @@ -14,8 +14,8 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; * * this.crop.crop('path/to/image.jpg', {quality: 75}) * .then( - * newImage => console.log("new image path is: " + newImage), - * error => console.error("Error cropping image", error) + * newImage => console.log('new image path is: ' + newImage), + * error => console.error('Error cropping image', error) * ); * ``` */ @@ -38,6 +38,6 @@ export class Crop extends IonicNativePlugin { @Cordova({ callbackOrder: 'reverse' }) - crop(pathToImage: string, options?: {quality: number}): Promise { return; } + crop(pathToImage: string, options?: { quality: number }): Promise { return; } } diff --git a/src/@ionic-native/plugins/device-feedback/index.ts b/src/@ionic-native/plugins/device-feedback/index.ts index 066d18ab1..5246e4e6d 100644 --- a/src/@ionic-native/plugins/device-feedback/index.ts +++ b/src/@ionic-native/plugins/device-feedback/index.ts @@ -7,7 +7,7 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; * Plugin that lets you provide haptic or acoustic feedback on Android devices. * * @usage - * ``` + * ```typescript * import { DeviceFeedback } from '@ionic-native/device-feedback'; * * constructor(private deviceFeedback: DeviceFeedback) { } diff --git a/src/@ionic-native/plugins/file-chooser/index.ts b/src/@ionic-native/plugins/file-chooser/index.ts index ae35b0197..670496db4 100644 --- a/src/@ionic-native/plugins/file-chooser/index.ts +++ b/src/@ionic-native/plugins/file-chooser/index.ts @@ -8,7 +8,7 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; * Opens the file picker on Android for the user to select a file, returns a file URI. * * @usage - * ``` + * ```typescript * import { FileChooser } from '@ionic-native/file-chooser'; * * constructor(private fileChooser: FileChooser) { } diff --git a/src/@ionic-native/plugins/file-opener/index.ts b/src/@ionic-native/plugins/file-opener/index.ts index d1f5917dc..1250e1c7d 100644 --- a/src/@ionic-native/plugins/file-opener/index.ts +++ b/src/@ionic-native/plugins/file-opener/index.ts @@ -7,7 +7,7 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; * This plugin will open a file on your device file system with its default application. * * @usage - * ``` + * ```typescript * import { FileOpener } from '@ionic-native/file-opener'; * * constructor(private fileOpener: FileOpener) { } @@ -41,7 +41,7 @@ export class FileOpener extends IonicNativePlugin { successName: 'success', errorName: 'error' }) - open(filePath: string, fileMIMEType: string): Promise {return; } + open(filePath: string, fileMIMEType: string): Promise { return; } /** * Uninstalls a package @@ -53,7 +53,7 @@ export class FileOpener extends IonicNativePlugin { successName: 'success', errorName: 'error' }) - uninstall(packageId: string): Promise {return; } + uninstall(packageId: string): Promise { return; } /** * Check if an app is already installed @@ -65,6 +65,6 @@ export class FileOpener extends IonicNativePlugin { successName: 'success', errorName: 'error' }) - appIsInstalled(packageId: string): Promise {return; } + appIsInstalled(packageId: string): Promise { return; } } diff --git a/src/@ionic-native/plugins/file-path/index.ts b/src/@ionic-native/plugins/file-path/index.ts index 2154eaa83..476db1c5d 100644 --- a/src/@ionic-native/plugins/file-path/index.ts +++ b/src/@ionic-native/plugins/file-path/index.ts @@ -10,7 +10,7 @@ declare var window: any; * This plugin allows you to resolve the native filesystem path for Android content URIs and is based on code in the aFileChooser library. * * @usage - * ``` + * ```typescript * import { FilePath } from '@ionic-native/file-path'; * * constructor(private filePath: FilePath) { } @@ -39,6 +39,6 @@ export class FilePath extends IonicNativePlugin { * @returns {Promise} */ @Cordova() - resolveNativePath(path: string): Promise {return; } + resolveNativePath(path: string): Promise { return; } } diff --git a/src/@ionic-native/plugins/file/index.ts b/src/@ionic-native/plugins/file/index.ts index ef18ab0c7..a0971ed1a 100644 --- a/src/@ionic-native/plugins/file/index.ts +++ b/src/@ionic-native/plugins/file/index.ts @@ -34,7 +34,7 @@ export interface Entry { * @param errorCallback A callback that is called when errors happen. */ getMetadata(successCallback: (metadata: Metadata) => void, - errorCallback?: (error: FileError) => void): void; + errorCallback?: (error: FileError) => void): void; /** * Move an entry to a different location on the file system. It is an error to try to: * move a directory inside itself or to any child at any depth;move an entry into its parent if a name different from its current one isn't provided; @@ -49,9 +49,9 @@ export interface Entry { * @param errorCallback A callback that is called when errors happen. */ moveTo(parent: DirectoryEntry, - newName?: string, - successCallback?: (entry: Entry) => void, - errorCallback?: (error: FileError) => void): void; + newName?: string, + successCallback?: (entry: Entry) => void, + errorCallback?: (error: FileError) => void): void; /** * Copy an entry to a different location on the file system. It is an error to try to: * copy a directory inside itself or to any child at any depth; @@ -68,9 +68,9 @@ export interface Entry { * @param errorCallback A callback that is called when errors happen. */ copyTo(parent: DirectoryEntry, - newName?: string, - successCallback?: (entry: Entry) => void, - errorCallback?: (error: FileError) => void): void; + newName?: string, + successCallback?: (entry: Entry) => void, + errorCallback?: (error: FileError) => void): void; /** * Returns a URL that can be used as the src attribute of a