Phantom brand utility. Produces a nominal type T & { [__brand]: B } — the brand tag is erased at runtime so there is zero allocation overhead.
T & { [__brand]: B }
The underlying JavaScript type (string, number, bigint).
string
number
bigint
A unique string literal that identifies the brand.
1.0.0
Phantom brand utility. Produces a nominal type
T & { [__brand]: B }— the brand tag is erased at runtime so there is zero allocation overhead.