DEV Community

Discussion on: Do you prefer TypeScript over vanilla JS?

Collapse
 
twigman08 profile image
Chad Smith

After doing a few different projects in both TypeScript and JavaScript, I am pretty much TypeScript everything.

Not only do I feel comfortable about knowing basic typos will be found, I find it just so much easier to fully navigate a new project.

The only time it becomes a little annoying is if I know I have to use some small library that doesn’t have any types made out yet. So then I do have to make the choice am I going to go through the library and figure out how everything is done and make some types myself, or just do the last resort and just declare a type module that is type of any. But I usual try to avoid those libraries, or I just create basic types as I see I will need them for the library.