Setu-TS
    Preparing search index...

    Type Alias ValidatedOutput<S>

    ValidatedOutput: S extends { _output: infer O } ? O : unknown

    The parsed output of a Zod-compatible schema, including defaults and coercions. Schemas without an output type resolve to unknown.

    Type Parameters

    • S

      The schema whose parsed output is inferred

    const body = validateBody(Schema);
    const handler = (ctx: IRequestContext): void => {
    const value: ValidatedOutput<typeof Schema> = body.value(ctx);
    ctx.response.json(value);
    };

    0.10.0