Brand is a utility for creating nominal typing in TypeScript. It creates phantom types that exist only at compile time. At runtime, the branded value IS the primitive value.
The value to brand
The value with phantom type brand
Brand is a utility for creating nominal typing in TypeScript. It creates phantom types that exist only at compile time. At runtime, the branded value IS the primitive value.