From 785646800b3a1656328ed4e069d2355bb2cf45b3 Mon Sep 17 00:00:00 2001 From: Ibby Hadeed Date: Tue, 29 Nov 2016 13:13:35 -0500 Subject: [PATCH] refractor(backgroundmode): fix return types --- src/plugins/backgroundmode.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/backgroundmode.ts b/src/plugins/backgroundmode.ts index 3896602d9..ae697c257 100644 --- a/src/plugins/backgroundmode.ts +++ b/src/plugins/backgroundmode.ts @@ -49,7 +49,7 @@ export class BackgroundMode { * Once the background mode has been disabled, the app will be paused when in background. */ @Cordova() - static disable(): void { } + static disable(): Promise { return; } /** * Checks if background mode is enabled or not. @@ -73,7 +73,7 @@ export class BackgroundMode { @Cordova({ platforms: ['Android'] }) - static setDefaults(options?: Configure): void { } + static setDefaults(options?: Configure): Promise { return; } /** * Modify the displayed information. @@ -83,7 +83,7 @@ export class BackgroundMode { @Cordova({ platforms: ['Android'] }) - static configure(options?: Configure): void { } + static configure(options?: Configure): Promise { return; } /** * Called when background mode is activated.