refactor(lib): run prettier

This commit is contained in:
Daniel Sogl
2020-05-16 14:40:49 +02:00
parent f5133c691d
commit 511a02d50b
326 changed files with 3079 additions and 4092 deletions
@@ -2,14 +2,12 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
import { Injectable } from '@angular/core';
export interface BackgroundFetchConfig {
/**
* Set true to cease background-fetch from operating after user "closes" the app. Defaults to true.
*/
stopOnTerminate?: boolean;
}
/**
* @name Background Fetch
* @description
@@ -57,12 +55,10 @@ export interface BackgroundFetchConfig {
plugin: 'cordova-plugin-background-fetch',
pluginRef: 'BackgroundFetch',
repo: 'https://github.com/transistorsoft/cordova-plugin-background-fetch',
platforms: ['iOS']
platforms: ['iOS'],
})
@Injectable()
export class BackgroundFetch extends IonicNativePlugin {
/**
* Configures the plugin's fetch callbackFn
*
@@ -70,7 +66,7 @@ export class BackgroundFetch extends IonicNativePlugin {
* @return {Promise<any>}
*/
@Cordova({
callbackOrder: 'reverse'
callbackOrder: 'reverse',
})
configure(config: BackgroundFetchConfig): Promise<any> {
return;
@@ -99,10 +95,9 @@ export class BackgroundFetch extends IonicNativePlugin {
* You MUST call this method in your fetch callbackFn provided to #configure in order to signal to iOS that your fetch action is complete. iOS provides only 30s of background-time for a fetch-event -- if you exceed this 30s, iOS will kill your app.
*/
@Cordova({
sync: true
sync: true,
})
finish(taskId: string): void {
}
finish(taskId: string): void {}
/**
* Return the status of the background-fetch
@@ -112,5 +107,4 @@ export class BackgroundFetch extends IonicNativePlugin {
status(): Promise<any> {
return;
}
}