Handling Discriminated Unions for Type Narrowing in Typescript

Hey! How does everyone handle discriminated unions when it comes to type narrowing? Is there a cleaner/simpler way than this

https://effect.website/play/#b7a63546df9e
Was this page helpful?