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.
With the current setup, it's possible to put this into
src/server.ts
and it will compile fine:Normal solution is to put
"lib": ["es2015"]
intotsconfig.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.