Skip to content

Commit

Permalink
fix(pro): proper callback type and guard for plugin instantiate. #2136
Browse files Browse the repository at this point in the history
  • Loading branch information
mlynch committed Jan 25, 2018
1 parent e4dd8dc commit 61293c3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/@ionic-native/plugins/pro/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ export class ProDeploy {
* Check a channel for an available update
* @return {Promise<string>} Resolves with 'true' or 'false', or rejects with an error.
*/
@CordovaInstance({
observable: true
})
@CordovaInstance()
check(): Promise<string> { return; }

/**
Expand All @@ -67,7 +65,9 @@ export class ProDeploy {
* Unzip the latest downloaded version
* @return {Observable<any>} Updates with percent completion, or errors with a message.
*/
@CordovaInstance()
@CordovaInstance({
observable: true
})
extract(): Observable<any> { return; }

/**
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 61293c3

Please sign in to comment.