Typescript Error: Cannot find name 'Promise'
<p>My project is currently on Ionic2 Beta 11 with Angular RC4. The problem is that that I need to chain as follow (the Plugin I use is returning a promise):</p>

<pre><code>    this.dataService.loginWithFacebookNative()
    .then(
        result =&gt; {
            console.log(result)
            return result;
        },
        error =&gt; {
            console.log(error);
            if (error == 'cordova_not_available') return this.dataService.loginWithFacebook();

            return Promise.reject(error.message || error); // Here is the ts error
        })
    .then(value =&gt; {
        console.log(value);
        // Logic if login was a success
    })
    .catch(error =&gt; {
        console.log(error);
        if (error) {
            this.error = error;
        }
    })
</code></pre>

<p>Though the App itself is working as intended, Typescript is returning an error saying that</p>

<p><code>[ts] Cannot find name 'Promise'</code></p>

<p>I am not sure where to get Promise from.</p>