How should I use @types with TypeScript 2

It’s very simple. Just install the definitions that you need via npm. For example if you need lodash you can do: npm install –save @types/lodash Once it’s installed you can use it right away in your project. Typescript will resolve the typings for the installed @types package from the node_modules/@types folder by default. There’s no … Read more