Skip to content

Commit

Permalink
docs: export schema types to allow docgen
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed Aug 1, 2024
1 parent 2678270 commit 5b295bc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,11 @@ export {
Router,
type RouterOptions,
} from "./router.ts";
export type {
InvalidHandler,
SchemaDescriptor,
ValidationOptions,
} from "./schema.ts";
export type {
StatusHandler,
StatusRange,
Expand Down
3 changes: 2 additions & 1 deletion schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ export interface InvalidHandler<
): Promise<Response> | Response;
}

type ValidationOptions<
/** Validation options which can be applied when validating. */
export type ValidationOptions<
Schema extends BodySchema,
> = Omit<Config<InferIssue<Schema>>, "skipPipe">;

Expand Down

0 comments on commit 5b295bc

Please sign in to comment.