Hacker News new | ask | show | jobs
by phasevar 4738 days ago
Has anyone used TypeScript in conjunction with Node.js? I love developing in the Node ecosystem, but the lack of type checking is irritating.
2 comments

I haven't worked with Node myself, but you can find a definition file here: https://github.com/borisyankov/DefinitelyTyped/tree/master/n...

Fly at it, I say.

Yes. Microsoft offers a Node.js v0.8.8 definition file in their examples. There are some others floating on Github for other versions.

I use WebStorm to give me autocomplete for the version of Node I am running. The defs are there just to make the compiler shut up.