user104317 user104317 - 1 year ago 162
Javascript Question

How do I use typescript with a jQuery/lodash/react/angular/any other library?

I am using typescript and would like to use a library with it. How can I use a library with typescript?

Answer Source

Use typings. It lets you download typescript definition files of common javascript libraries. You to install NodeJS first.

npm install -g typings
cd project
typings search (library)
typings install (library)