Are there any other possibilities to get TypeScript type definitions then copy from the useful DefinitelyTyped Repo or using NuGet? Maybe bower or something like that?
The best option is to use tsd
. It is like npm
or bower
, but for typescript definitions
npm install tsd@next -g
cd path/to/your/project
tsd init
Then
tsd install jQuery --save
That's it.
EDIT
There is a new TypeScript definition manager, typings, with the goal of non-ambient type definitions used by external modules.
EDIT
With the future TypeScript 2, you will be able to install type definitions with npm install @types/jQuery
It is possible with bower.
First install bower by using npm:
npm install -g bower
Then install DefinitelyTyped by using bower:
bower install DefinitelyTyped
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