bigopon bigopon - 1 month ago 25
TypeScript Question

How to enable strict null check for vscode

As Typescript introduces strict null check for dynamic runtime errors, it would be great if enabled. I couldn't find any docs or guidelines on how to enable it.

How do I enable strict null check inside VSCode ?

Answer

couldn't find any docs or guidelines on how to enable it.

Just use tsconfig.json's compilerOptions. E.g.

{
  "compilerOptions": {"strictNullChecks":true}
}
Comments