Skip to content

Home > intention-kernel > BrandedId

BrandedId type ​

Nominal string used to keep unrelated kernel identifiers distinct at compile time.

Signature:

typescript
export type BrandedId<Name extends string> = string & {
    readonly [brand]: Name;
};