You need to install that libraries typings
definitions in previous versions, if you want to use an JS
library in TypeScript
.
In newer version of TypeScript
uses @types
system. So now you don't need to install typings manually, you can just write this. For first install
1 2 |
npm install -g typescript@next |
And then
1 2 |
npm install --save underscore npm install --save @types/underscore |