Comment

Comment by Insalgo

> narrowing a type through as is a common and useful operation

We banned all type assertions long time ago, and switched to type guards. I highly recommend this approach.

parent Insalgo 2 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton