diff --git a/.changeset/chatty-peaches-draw.md b/.changeset/chatty-peaches-draw.md new file mode 100644 index 00000000..cfcb2549 --- /dev/null +++ b/.changeset/chatty-peaches-draw.md @@ -0,0 +1,5 @@ +--- +'@hono/valibot-validator': patch +--- + +fix a Hook type diff --git a/packages/valibot-validator/src/index.ts b/packages/valibot-validator/src/index.ts index 20434ce7..b8b9afc4 100644 --- a/packages/valibot-validator/src/index.ts +++ b/packages/valibot-validator/src/index.ts @@ -6,7 +6,7 @@ import { safeParse } from 'valibot' type Hook = ( result: { success: true; data: T } | { success: false; error: ValiError }, c: Context -) => Response | Promise | void +) => Response | Promise | void | Promise export const vValidator = < T extends BaseSchema,