Type Alias HttpReqSchemas<TReqJson, TReqFields, TReqParams, TReqSearchParams, TReqHeaders, TReqFiles, TCookieData>

HttpReqSchemas: {
    cookies?: StandardSchemaV1<StringInputs, TCookieData>;
    fields?: StandardSchemaV1<MultiStringInputs, TReqFields>;
    files?: TReqFiles;
    headers?: StandardSchemaV1<StringInputs, TReqHeaders>;
    json?: StandardSchemaV1<TReqJson>;
    params?: StandardSchemaV1<StringInputs, TReqParams>;
    searchParams?: StandardSchemaV1<MultiStringInputs, TReqSearchParams>;
}

Defines optional validation schemas for each source of request data. Each field uses Standard Schema V1 to validate and transform the input.

Cookies are validated via the optional cookies schema, which receives raw cookie strings and should produce a typed record of parsed values.

Each field maps directly to its own type parameter so TypeScript can infer the output type from the schema (e.g. from a Zod schema) without needing to reverse through indexed access types.

Type Parameters

Type declaration