Narrowing Unions Without a Single Type Assertion
Discriminants, type guards, and the satisfies operator doing the work for you.
13 posts — Frontend engineer working across React and TypeScript. June writes the posts she wishes she had found while debugging.
Showing 13 posts
Discriminants, type guards, and the satisfies operator doing the work for you.
A recording of the main thread before and after the move.
Screens from the token pages that keep six product teams consistent.
Validate untrusted input once at the boundary and let inference handle the rest.
Watch a page render in chunks and see where Suspense boundaries fall.
Thinking in synchronisation instead of mount and unmount removes a whole class of bugs.
Cold starts, plugin gaps, and the numbers behind the decision.
Measure what it costs to send data to a worker and how to make it nearly free.
A short screencast building a typed fetch helper one generic at a time.
Screenshots of the waterfall that led us to a 40 percent smaller bundle.