News for hackers. Stuff that matters.
Re:A 'CSS reset' for TypeScript, improving types for common ... by haburka on Friday March 03, 2023 @04:48AM (#35007642)
You can use ‘as’ to cast unknown to any type. This is extra typing but it does signify to other developers that you’re calling a function on an unverified object, which I believe makes the code more maintainable in the long run.

There are no comments on this comment yet.