Last active
August 29, 2015 14:20
-
-
Save RinatMullayanov/15582601888ab480e03d to your computer and use it in GitHub Desktop.
Using Node.js with TypeScript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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