My typings.json is like this:
{
"globalDependencies": {
"aws-sdk": "registry:dt/aws-sdk#0.0.0+20160606153210"
},
"dependencies": {
"lodash": "registry:npm/lodash#4.0.0+20160416211519"
}
}
Right now when I want to update, I need run all typings install XXX --save
again.
Any other way to update typings.json and typing files?
Is there something like typings update
?
TypeScript 2.x solves the issue. TypeScript 2.x installs typings through npm
, for example:
npm install --save-dev @types/node
So now the typings files are all in package.json with version like below, instead of typings.json.
"@types/node": "4.0.30"
Now you can update your typings like other npm packages.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With