ts-type-forge
    Preparing search index...

    Type Alias UnwrapBrandTrueKeys<B>

    UnwrapBrandTrueKeys: ExtractTrueKeys<B>

    Extracts all keys marked as true from a branded type.

    Type Parameters

    • B extends UnknownBrand

      The branded type to extract keys from

    Union of string literal keys that are marked as true

    type NonZeroInt = Brand<number, 'integer', 'zero'>;
    type TrueKeys = UnwrapBrandTrueKeys<NonZeroInt>; // 'integer'