feat(zod-openapi): export RouteConfig type (#532)

Fixes #432

* feat(zod-openapi): export RouteConfig type

* add .changeset/itchy-glasses-smell.md
pull/533/head
akineko 2024-05-20 07:11:02 +09:00 committed by GitHub
parent 680176d508
commit eeccd4fc2f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
'@hono/zod-openapi': minor
---
feat(zod-openapi): export RouteConfig type

View File

@ -35,7 +35,7 @@ import { z, ZodType } from 'zod'
type MaybePromise<T> = Promise<T> | T type MaybePromise<T> = Promise<T> | T
type RouteConfig = RouteConfigBase & { export type RouteConfig = RouteConfigBase & {
middleware?: MiddlewareHandler | MiddlewareHandler[] middleware?: MiddlewareHandler | MiddlewareHandler[]
} }