My project uses package like @types/express
and @types/body-parser
. Recently these .d.ts
files were updated to use generic defaults, but that means these declaration files now require TypeScript 2.3 or above.
However, my project still uses an older version of TypeScript - TypeScript 2.2. How do I use npm to make sure my project can still understand these definition files without upgrading?