I used to work with tsd
for managing my type definitions, but as it's deprecated, I'm trying to migrate to typings
which is my opinion more complicated, but should be the way to go, I guess.
I want to install a type definition and for that I use the --ambient
flag.
In Visual Studio I have the typings.json
file which looks like that:
{
"name": "Test",
"version": false,
"ambientDependencies": {
"angular": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular.d.ts#ca92a5b250433c38230b5f4138b36453862342bf",
"jquery": "github:DefinitelyTyped/DefinitelyTyped/jquery/jquery.d.ts#ca92a5b250433c38230b5f4138b36453862342bf"
}
}
This was automatically created when migrating from tsd
to typings
but now once I need a new type definition, for instance angular-route
I use the following command:
typings install angular-route --ambient
This works fine, but the typings.json
does not get updated.
What is the point and why am I missing? Why were angular
and jquery
both migrated to typings.json
and when installing angular-route
the file does not get refreshed?