Type assertions are not a substitute for non-null assertions (alexharri.com) 1 points by alexharri 1y ago ↗ HN
[–] Insalgo 1y ago ↗ > narrowing a type through as is a common and useful operationWe banned all type assertions long time ago, and switched to type guards. I highly recommend this approach.
1 comment
[ 3.0 ms ] story [ 14.5 ms ] threadWe banned all type assertions long time ago, and switched to type guards. I highly recommend this approach.