FuncType - v0.9.5
    Preparing search index...

    Type Alias Brand<K, T>

    Brand: T & { __brand: K }

    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

    The value to brand

    The value with phantom type brand