Type assertions are not a substitute for non-null assertions Posted by alexharri on Saturday November 16, 2024 @05:37AM from the alexharri.com dept. https://alexharri.com/blog/type-and-non-null-assertions ( 1 comment | on HN )
We banned all type assertions long time ago, and switched to type guards. I highly recommend this approach.