title: Type 'boolean' is not assignable to type 'Promise<boolean>'
body: <p>I'm using inApp purchase and I want to change the UI to 'unavailable' if for some reason I'm unable to retrieve the product information from Google or iOS app store.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>  ionViewDidEnter() {
      this.platform.ready().then(async () =&gt; {
        firebase.auth().onAuthStateChanged(async user =&gt; {
          this.currentUser = user;
        });
        this.unavailable = await this.setupProducts();
        console.log('available', this.unavailable);
      });
    }</code></pre>
  </div>
  </div>
  </p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>  setupProducts(): Promise&lt;boolean&gt; {
      let productWWHS: string;
      let productISA: string;
  
      if (this.platform.is('ios')) {
        productWWHS = 'prodID';
        productISA = 'prodID';
  
      } else if (this.platform.is('android')) {
        productWWHS = 'prodID';
        productISA = 'prodID';
      }
  
      this.inAppPurchase.ready(() =&gt; {
        this.products.push(this.inAppPurchase.get(productWWHS));
        this.products.push(this.inAppPurchase.get(productISA));
        if (!this.products[0]) {
          return true;
        }
      });
      return false;
    }</code></pre>
  </div>
  </div>
  </p>
  <p>I'm doing something wrong in this method, it has the error
  Type 'boolean' is not assignable to type 'Promise'</p>
  <p>I'd like to somehow assert that inAppPurchase.get() has returned something but it doesn't return a promise.</p>
  <p>Is there a better way to do this?</p>
  <p>Any help would be appreciated.</p>