diff --git a/mod.ts b/mod.ts index a5348d2..6b9adcd 100644 --- a/mod.ts +++ b/mod.ts @@ -513,6 +513,11 @@ export { Router, type RouterOptions, } from "./router.ts"; +export type { + InvalidHandler, + SchemaDescriptor, + ValidationOptions, +} from "./schema.ts"; export type { StatusHandler, StatusRange, diff --git a/schema.ts b/schema.ts index afd89c3..06e829c 100644 --- a/schema.ts +++ b/schema.ts @@ -79,7 +79,8 @@ export interface InvalidHandler< ): Promise | Response; } -type ValidationOptions< +/** Validation options which can be applied when validating. */ +export type ValidationOptions< Schema extends BodySchema, > = Omit>, "skipPipe">;