Re:TypeScript: Branded Types
by gmdrd on Friday April 26, 2024 @07:33AM
(#40168087)
Is there something wrong with creating opaque types using this method?
This way, we don't need to use `never`, but we still prevent the creation of a structurally equivalent type by mistake.
[ Parent
| on HN ]
There are no comments on this comment yet.