microsoft / TypeScript-Node-Starter

A reference example for TypeScript and Node with a detailed README describing how to use the two together.
MIT License
11.31k stars 2.77k forks source link

`tsconfig.json` does not include correct libraries #52

Open borekb opened 6 years ago

borekb commented 6 years ago

With the current setup, it's possible to put this into src/server.ts and it will compile fine:

window.alert('this is not valid in Node');

Normal solution is to put "lib": ["es2015"] into tsconfig.json but this causes many jQuery-related issues in this repo. I only wanted to take a quick look so am not sure about the details but wanted to quickly report this issue with types.