3 ms·
Did you add the typescript definition file for node and reference it? Download the node.d.ts file from the DefinitelyTyped repo https://github.com/borisyankov/
by stevencl 11y ago
Did you add the typescript definition file for node and reference it?
Download the node.d.ts file from the DefinitelyTyped repo https://github.com/borisyankov/DefinitelyTyped https://github.com/borisyankov/DefinitelyTyped then add that file to the folder containing your node app.
Then in the file you are using the http object reference the .d.ts file by adding the following to the top of the file:
/// <reference path="node.d.ts" />
After that you should get intellisense in the file.