DEV Community

Discussion on: A Basic TypeScript Insight for JavaScript Devs

Collapse
 
karfau profile image
Christian Bewernitz

Thx for sharing, there is one thing that caught my attention:

[...] I was used to the fact that the type was either unknown and I had to check it (the any case) or know what was going on [...]

I wonder: Are you aware of the unknown type? It basically forces you to check and therefor is a good alternative to any (in some cases).

Collapse
 
kayis profile image
K

Yes, I use it in places where I'm too dumb to type correctly, haha.