7

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?

2 Answers 2

15

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.

Sign up to request clarification or add additional context in comments.

1 Comment

and install with yarn?
0

There is no typings update, but typings install XXX --save should do the job

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.