Matching on Branded Types in TypeScript and Adding a Literal for Differentiation
I am curious to know if I can match on branded types?
Lets say I have the following schema:
And from what I understand, the branded type is merely a typescript thing. It does not carry any other kind of value to differentiate the type? i.e.
Am I correct?
If I wanted to match on the user type, I'd need to add in a literal to the
Lets say I have the following schema:
And from what I understand, the branded type is merely a typescript thing. It does not carry any other kind of value to differentiate the type? i.e.
{ _tag: 'normal-user-id', value: '<uuid>' } Am I correct?
If I wanted to match on the user type, I'd need to add in a literal to the
foundUser type, correct? 