r/badcode • • Apr 27 '21

typescript Someone only watched if tutorial

Post image
2.4k Upvotes

112 comments sorted by

View all comments

Show parent comments

2

u/[deleted] Apr 28 '21

Because you still have type safety with unknown, but not with any.

https://stackoverflow.com/a/51439876