ts-type-forge
    Preparing search index...

    Type Alias UnwrapBrandKeys<B>

    UnwrapBrandKeys:
        | UnwrapBrandBooleanKeys<B>
        | UnwrapBrandFalseKeys<B>
        | UnwrapBrandTrueKeys<B>

    Extracts all brand keys (true, false, and boolean) from a branded type.

    Type Parameters

    • B extends UnknownBrand

      The branded type to extract keys from

    Union of all string literal keys in the brand

    type MyBrand = Brand<string, 'validated' | 'normalized', 'empty'>;
    type AllKeys = UnwrapBrandKeys<MyBrand>; // 'validated' | 'normalized' | 'empty'