Type alias Brand<K, T>

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

Used to create branded types

Example

type Currency = Brand<string, "Currency">

Type Parameters

  • K

  • T

Generated using TypeDoc