Re:TypeScript: Branded Types
by herpdyderp on Wednesday April 24, 2024 @06:45PM
(#40150786)
The implementation for `RemoveBrand` is incorrect: it currently grabs all property types of `T`, it's not removing the property `[brand]` from `T`. It should be `Omit<T, typeof brand>`
[ Parent
| on HN ]
There are no comments on this comment yet.