DEV Community

Discussion on: Typescript - why to use "unknown" instead of "any"

Collapse
 
terkwood profile image
Felix Terkhorn

Thanks for the lesson. Your examples made this easy to understand, and I'm now motivated to use unknown the next time I start to reach for any! 🚸

Collapse
 
arikaturika profile image
Arika O

Yes, why not? We indeed need to make some extra checks but since it's safer I believe it's worth it. Thank you for your input!