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.
Hi there! I'm Amit. I write articles about all things web development. If you like what I write and want me to continue doing the same, I would like you buy me some coffees. I'd highly appreciate that. Cheers!