I am trying to get my first TypeScript and DefinitelyTyped Node.js application up and running, and running into some errors.
I am getting the error \"TS2304: Cannot
As approved answer didn't mention possibility to actually create your own typings file, and import it there, let me add it below.
Assuming you use npm as your package manager, you can:
npm i @types/node --save-dev
Then in your tsconfig file:
"include": ["typings.d.ts"],
Then create your typings file:
import 'node/globals'
Done, errors are gone, enjoy TypeScript :)