Install release accurate @types/package for your dependencies.
npm i -g exact-types
Exact-types comes in handy when migrating legacy javascript code to typescript. To install types for dependencies, run npx exact-types
in directory containing package.json.
Choose your preferred package manager, or use the default (npm) by running npx exact-types -y
Exact-types works for 'npm', 'yarn', 'pnpm' and 'bower' on macOS, Windows, and Linux.
If you have questions, concerns, bug reports, etc, please file an issue.