https://basarat.gitbook.io/typescript/main-1/nominaltyping https://codemix.com/opaque-types-in-javascript/
https://twitter.com/mattpocockuk/status/1625173884885401600
Let's talk about branded types.
If I were building an app where security was critical, I'd use the crap out of them.
A Brand type lets you use a bit of 'nominal' typing inside TypeScript.
By declaring a unique symbol, 'brand', we can use this Brand type helper to create types with 'names'.