Skip to content

Instantly share code, notes, and snippets.

@RinatMullayanov
Last active August 29, 2015 14:20
Show Gist options
  • Save RinatMullayanov/15582601888ab480e03d to your computer and use it in GitHub Desktop.
Save RinatMullayanov/15582601888ab480e03d to your computer and use it in GitHub Desktop.
Using Node.js with TypeScript
1. Install TypeScript Definition manager for DefinitelyTyped https://github.com/DefinitelyTyped/tsd
2. Install required packages:
tsd install node --save
3. Add in top your .ts file /// <reference path="../../typings/node/node.d.ts" />
or all definition typed /// <reference path="../../typings/tsd.d.ts" />
4. Add flags in tsc
--module commonjs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment