Branded Literal Types and Exhaustivity Checking Issue in TypeScript
Hey
I'm trying to understand branded literal types and exhausitivity checking. When I define literal type without it being branded, exhaustivity checking works fine:
If I adjust the type to be branded:
I get this error on
If I adjust the type to be branded:
I get this error on
match function: Function lacks ending return statement and return type does not include 'undefined'.. Any ideas how to get branded types to preserve exhaustivity properties of literal types?