piernik
piernik

Reputation: 3657

Promise in typescript - es6-promise type not available

I want to use new Promise() in my typescript. Promise is not known form TS so I'm trying to install it npm install @type/es6-promise --save-dev but it says Not found : @type/es6-promise. How come? https://www.npmjs.com/package/@types/es6-promise

Upvotes: 0

Views: 148

Answers (1)

Suraj Rao
Suraj Rao

Reputation: 29635

The command is

npm install @types/es6-promise --save-dev

You have a typo in your command.

Upvotes: 2

Related Questions