Matt Pocock βοΈ Modern Frontends (@mattpocockuk) - November 14, 2022 at 8:23 PM
π₯ TypeScript Tip π₯
Using union types can make your types more accurate, but each approach has proβs and conβs.
Here, we compare a normal union, a discriminated union, and a type predicate. Which do you prefer? pic.twitter.com/5GWhRk6TlF