If you have ever tried to keep TypeScript
.d.ts files up-to-date you know how much of a headache it is. So much so that I just don’t mess with it.
Well consider the problem solved. Back in June MSFT announced the future of declaration files.
Declaration files (
As an example, getting the declarations for a library like lodash will be just an npm command away:npm install --save @types/lodash
From there you’ll be able to use lodash in your TypeScript code with no fuss. This works for both modules and global code.