News for hackers. Stuff that matters.
Re:Branded Types for TypeScript by comagoosie on Wednesday May 15, 2024 @09:27AM (#40366653)
Isn't there a risk with this approach that you may receive input with a repeated prefix when there's a variable of type `string` and the prefix is prepended to satisfy the type checker without checking if the prefix already exists?

There are no comments on this comment yet.