For installing the typescript package, you use npm i @types/{package_name}
. For eg, in lodash's case you could do:
npm i @types/lodash
Hope it helps!!
CodePudding user response:
use this, npm install --save-dev @types/package-name
For installing the typescript package, you use npm i @types/{package_name}
. For eg, in lodash's case you could do:
npm i @types/lodash
Hope it helps!!
CodePudding user response:
use this, npm install --save-dev @types/package-name