I want to disable DOM type definitions in a nodejs typescript project. I am using the config file below but I still get the window object type definitions showing up in VSCode. They show up from the lib.dom.d.ts definition file from VSCode extensions folder (not part of node modules of the current project). This has led to run time error in typescript (which is very concerning). Is there a way to skip DOM types from a project?
{
"compilerOptions": {
"lib": ["ES2016"],
"target": "es6",
"module": "commonjs",
"skipLibCheck": true,
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"allowJs": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"inlineSourceMap": true,
"importHelpers": true,
"alwaysStrict": true,
"strict": true,
"outDir": "build",
"forceConsistentCasingInFileNames": true,
"esModuleInterop": true,
"typeRoots": ["./node_modules/@types", "./typings"],
"baseUrl": ".",
"paths": {
"#root/*": ["./*"]
}
},
"include": [
"src/**/*",
"__tests__/**/*",
"config/**/*",
"scripts/bundle-test.ts"
],
"exclude": ["node_modules"]
}