Skip to content

@lelantos-org/sdk / primitives / Brand

Type Alias: Brand<T, Tag> ​

ts
type Brand<T, Tag> = T & object;

Defined in: @lelantos-org/sdk/dist/core/brand.d.ts:6

Nominal wrapper: structurally T, but assignable only from a value carrying the same tag.

Type Declaration ​

[BRAND] ​

ts
readonly [BRAND]: Tag;

Type Parameters ​

Type Parameter
T
Tag extends string