We all know that VS Code comes with a great support for TypeScriptm language out-of-the-box. Meaning, if you’re working with
.ts files in VS Code, VS Code will prompt type related errors if there are any.
// @ts-checkcomment to the top of your file.
Once added, it can show type errors like so.