I'm not suggesting TypeScript will fix your bugs. But that it reveals your bugs.

Most people opt for escape hatches like any, unknown or type assertions(as) when they find it difficult to type a scenario better. Using these will silence TypeScript from revealing a potential bug. Knowing any language in-depth always help us to write quality code. The purpose of static code analysis is to expose the bugs that could happen at runtime before and, Typescript is doing a good job at it.

--

--

--

Fullstack developer at Unite

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Aishwaryalakshmi Panneerselvam

Aishwaryalakshmi Panneerselvam

Fullstack developer at Unite

More from Medium

WinRAR Uninstall using SCCM or silent command line

Dead By Daylight Removed From PSN In Saudi Arabia (UPDATED)

CS373 Spring 2022: Mara Manskie

Adene Project Weekly Updates #2 (21st -27th February)