Category: PHP, javascript

A blog on PHP, JavaScript and more Amit Merchant · July 7, 2020 · ⋆ VS Code Meaning, if you’re working with .ts files in VS Code, VS Code will prompt type related errors if there are any. This is fine as long as you’re working with TypeScript file but what if you want to type-check your JavaScript code so that you can spot mistakes you might not have caught otherwise? VS Code has this handy feature where you can run TypeScript type checker on your existing JavaScript code by just adding a // @ts-check comment to the top of your file.

I think it’s really useful at minimizing some nasty JavaScript type errors in early development phase only and the good thing is it comes at no extra cost!
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners