@tax1driver/ts-tpay
    Preparing search index...

    Type Alias Branded<T, Brand>

    Branded: T & { __brand: Brand }

    Branded type helper to create nominal types

    Type Parameters

    • T
    • Brand extends string
    type UserId = Branded<string, 'UserId'>;
    const userId: UserId = 'user123' as UserId;