UNPKG

kobp

Version:
11 lines (10 loc) 275 B
import type { Middleware } from '../context'; interface Parsable<T> { parse(object: any): T; } export declare const withValidation: <T extends { query?: Q; params?: P; body?: B; }, Q = any, P = any, B = any>(schemaSpec: Parsable<T>) => Middleware; export {};