DEV Community

Cover image for Type Safety in TypeScript - Unknown vs Any

Type Safety in TypeScript - Unknown vs Any

Sachin Chaurasiya on March 11, 2024

TypeScript is very popular because it adds static typing to JavaScript. This makes the code safer and better quality, which JavaScript developers l...
Collapse
 
martygo profile image
Martins Gouveia

Thanks for sharing this insight. 👌 It’s really helpful.

Collapse
 
sachinchaurasiya profile image
Sachin Chaurasiya

Thanks for reading and glad you find it helpful.

Collapse
 
cheikhnouha profile image
Cheikhnouha

GOOD STOTY

Collapse
 
_ndeyefatoudiop profile image
Ndeye Fatou Diop

Thanks for sharing this. Any is especially bad because if the conditions change, you won’t get any warning

Collapse
 
sachinchaurasiya profile image
Sachin Chaurasiya

Exactly, thanks for reading.

Collapse
 
cheikhnouha profile image
Cheikhnouha

GOOD STOTY

Collapse
 
pratiknashikkar profile image
CodePrati

Really helpful insight. 👍

Collapse
 
sachinchaurasiya profile image
Sachin Chaurasiya

Glad you find it helpful.

Collapse
 
jangelodev profile image
João Angelo

Hi Sachin Chaurasiya,
Your tips are very useful
Thanks for sharing

Collapse
 
sachinchaurasiya profile image
Sachin Chaurasiya

Glad you find it useful.