Implementing an Opaque Type in TypeScript

Say, you’re in a situation where you have a user type, that looks a bit as
follows: Read more

Similar