1

I am writing a script to be only run in a node.js (server) environment and not in the browser. What I have noticed is that the typescript compiler auto completes the window and document object as if they would be available. Is there a way to configure the tsconfig.json file to only target servers. I tried moduleResolution: node and few others but could not get it to work.

I tried changing the tsconfig.json attributes but could not get it to work.

0 Answers0