News for hackers. Stuff that matters.
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.

There are no comments on this comment yet.