diff --git a/src/@ionic-native/plugins/pro/index.ts b/src/@ionic-native/plugins/pro/index.ts index 1475c86b6..bbdb6258e 100644 --- a/src/@ionic-native/plugins/pro/index.ts +++ b/src/@ionic-native/plugins/pro/index.ts @@ -49,9 +49,7 @@ export class ProDeploy { * Check a channel for an available update * @return {Promise} Resolves with 'true' or 'false', or rejects with an error. */ - @CordovaInstance({ - observable: true - }) + @CordovaInstance() check(): Promise { return; } /** @@ -67,7 +65,9 @@ export class ProDeploy { * Unzip the latest downloaded version * @return {Observable} Updates with percent completion, or errors with a message. */ - @CordovaInstance() + @CordovaInstance({ + observable: true + }) extract(): Observable { return; } /** @@ -133,7 +133,7 @@ export class Pro extends IonicNativePlugin { /** * Ionic Pro Deploy .js API. */ - deploy: ProDeploy = new ProDeploy(Pro.getPlugin().deploy); + deploy: ProDeploy = new ProDeploy((Pro.getPlugin() || {}).deploy); /** * Not yet implemented