type-plus
    Preparing search index...

    Type Alias Brand<B, T>

    Brand: [T] extends [null] | [undefined] | [symbol] | [void]
        ? Branded<B, T>
        : Branded<B, T> & T

    Create a "branded" version of a type. TypeScript won't allow implicit conversion to this type

    Type Parameters

    • B extends string
    • T = never