code for article pfeilbr/typings-playground
learn and experiment with TypeScript typings
# install typescript
$ npm install typescript --global
# install typings
$ npm install typings --global
# install node typings
$ typings install node --ambient --save
# compile index.ts to index.js
$ tsc
# run
$ node index.js
see contents of tsconfig.json
, which tells tsc
how to compile
Resources
- How to add type definitions to a TypeScript project
- typings
- DefinitelyTyped/DefinitelyTyped
- http://definitelytyped.org/
Twitter • Reddit