Re:A 'CSS reset' for TypeScript, improving types for common ...
by phpnode on Friday March 03, 2023 @08:27AM
(#35009273)
`any` is infectious, a blackhole for type safety. You can accidentally pass values with `any` all over the place and TS won't complain, but it also won't catch any mistakes you make. `unknown` is much more restrictive and you can't accidentally pass those values around without refining the type, it's much safer.
[ Parent
| on HN ]
There are no comments on this comment yet.