The TypeScript Definition Manager.
Quick Start
npm install typings --global
typings search tape
typings search --name react
typings install debug --save
typings install dt~mocha --global --save
typings install d3=github:DefinitelyTyped/DefinitelyTyped/d3/d3.d.ts
typings info env~node --versions
typings install env~node@0.10 --global --save
typings install env~atom --global --save
typings install bluebird --source npm --save
cat typings/index.d.ts
Usage
Typings is the simple way to manage and install TypeScript definitions. It uses typings.json
, which can resolve to the Typings Registry, GitHub, NPM, Bower, HTTP and local files. Packages can use type definitions from various sources and different versions, knowing they will never conflict for users.
typings install debug --save
The public registry is maintained by the community, and is used to resolve official type definitions for JavaScript packages.
Read More
Sources
npm
- dependencies from NPMgithub
- dependencies directly from GitHub (E.g. Duo, JSPM)bitbucket
- dependencies directly from Bitbucketbower
- dependencies from Bowercommon
- "standard" libraries without a known "source"shared
- shared library functionalitylib
- shared environment functionality (mirror of shared
) (--global
)env
- environments (E.g. atom
, electron
) (--global
)global
- global (window.<var>
) libraries (--global
)dt
- typings from DefinitelyTyped (usually --global
)
Contributing
cd typings
npm install
npm run build
npm run test
License
MIT