I want to use `node-fetch` because Node.js annoyingly does not have `fetch`, but TypeScript keeps complaining `fetch` was also declared in lib.dom.d.ts. This is a Node.js-only app, which does not have DOM. How do I fix this other than renaming the import? #nodejs
Answer: in tsconfig.json, add compilerOptions.lib = ["es2018"]
The lack of `"dom"` will remove `window` globals.