UNPKG

@httpc/kit

Version:

httpc toolbox for building function-based API with minimal code and end-to-end type safety

7 lines (6 loc) 281 B
import { BadRequestError, HttpCServerMiddleware } from "@httpc/server"; export declare class ValidationError extends BadRequestError { readonly errors: object; constructor(errors: object); } export declare function Validate(...schemas: any[]): HttpCServerMiddleware;