Skip to content

Branded

Branded<TBrand> = string & object

Defined in: src/types/brands.ts:24

Internal helper: a phantom-typed string distinguishable by its brand tag.

Consumers should reference the exported branded types directly (HexKey, ActorId, …), not this generic.

readonly [___brand]: TBrand

Phantom marker that gives this string nominal identity at the type level.

TBrand extends string