Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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 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.



Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: