|
|
|
|
|
by lifthrasiir
868 days ago
|
|
In my experience branded types are relatively more fragile than normal types though. IIRC they badly behaved with infer types in particular, and it was quite hard to work around. This solution seems more versatile. (Of course, I want to see a built-in branded type support in TS as well.) |
|
I haven't observed any issues with branded types and infer—is there documentation somewhere about the problem?