Type alias Brand<K, T>

Brand<K, T>: K & {
    __brand: T;
}

A utility type for branding primitives to ensure type safety with unique identifiers.

Type Parameters

  • K
  • T

Type declaration

  • __brand: T

Generated using TypeDoc