refractor(backgroundmode): fix return types

This commit is contained in:
Ibby Hadeed 2016-11-29 13:13:35 -05:00
parent 8d6c2dfb9a
commit 785646800b

View File

@ -49,7 +49,7 @@ export class BackgroundMode {
* Once the background mode has been disabled, the app will be paused when in background. * Once the background mode has been disabled, the app will be paused when in background.
*/ */
@Cordova() @Cordova()
static disable(): void { } static disable(): Promise<any> { return; }
/** /**
* Checks if background mode is enabled or not. * Checks if background mode is enabled or not.
@ -73,7 +73,7 @@ export class BackgroundMode {
@Cordova({ @Cordova({
platforms: ['Android'] platforms: ['Android']
}) })
static setDefaults(options?: Configure): void { } static setDefaults(options?: Configure): Promise<any> { return; }
/** /**
* Modify the displayed information. * Modify the displayed information.
@ -83,7 +83,7 @@ export class BackgroundMode {
@Cordova({ @Cordova({
platforms: ['Android'] platforms: ['Android']
}) })
static configure(options?: Configure): void { } static configure(options?: Configure): Promise<any> { return; }
/** /**
* Called when background mode is activated. * Called when background mode is activated.