FuncType - v0.9.5
    Preparing search index...

    Function Brand

    • Brand is a utility for creating nominal typing in TypeScript. It creates phantom types that exist only at compile time. At runtime, the branded value IS the primitive value.

      Type Parameters

      • K extends string
      • T

      Parameters

      • _brand: K
      • value: T

        The value to brand

      Returns Brand<K, T>

      The value with phantom type brand