Libraries v5.0.0
    Preparing search index...

    Type Alias AggregateResult<S, Fallback>

    AggregateResult: S extends OutputSchema<any>
        ? S extends { readonly [K in SchemaTypeBrand]: unknown }
            ? InferType<S>
            : ReturnType<S["parse"]>
        : Fallback

    Schema brands retain nullable/optional output modifiers unlike parse() alone.

    Type Parameters

    • S
    • Fallback