Brand
Brand<
K,T> =T&object
Defined in: Types/Brand.ts:22
Brand<K, T> creates a nominal type by tagging T with a phantom brand K. Prevents accidentally mixing up values that share the same underlying type.
Type Declaration
Section titled “Type Declaration”[_brand]
Section titled “[_brand]”
readonly[_brand]:K
Type Parameters
Section titled “Type Parameters”K extends string
T