TypeScript 2.0 comes with a new way of fetching type declarations using npm packages under the @types scope.
npm i --save-dev @types/lodash
If you are using the new
@Types definitions, you can simply add the
typeRoots option and specify the folder. i.e.
"typeRoots": [ "node_modules/@types" ]. It will parse through that folder and pick up all the types you have installed, and you don't have to add the