@hono/zod-validator
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -12,6 +12,3 @@ import type { Context, MiddlewareHandler, Env } from 'hono'; | ||
}, c: Context) => Response | Promise<Response> | void; | ||
export declare const zValidator: <T extends z.ZodType<any, z.ZodTypeDef, any>, Type extends ValidationTypes, E extends Env, P extends string>(type: Type, schema: T, hook?: Hook<z.TypeOf<T>> | undefined) => MiddlewareHandler<E, P, { | ||
type: Type; | ||
data: z.TypeOf<T>; | ||
}>; | ||
export declare const zValidator: <T extends z.ZodType<any, z.ZodTypeDef, any>, Type extends ValidationTypes, E extends Env, P extends string>(type: Type, schema: T, hook?: Hook<z.TypeOf<T>> | undefined) => MiddlewareHandler<E, P, { [K in Type]: z.TypeOf<T>; }>; | ||
export {}; |
{ | ||
"name": "@hono/zod-validator", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Validator middleware using Zod", | ||
@@ -31,12 +31,9 @@ "main": "dist/cjs/index.js", | ||
"peerDependencies": { | ||
"hono": "^3.0.0-rc.3", | ||
"hono": "^3.0.0-rc.9", | ||
"zod": "^3.19.1" | ||
}, | ||
"devDependencies": { | ||
"hono": "3.0.0-rc.3", | ||
"hono": "3.0.0-rc.9", | ||
"zod": "3.19.1" | ||
}, | ||
"dependencies": { | ||
"hono": "3.0.0-rc.7" | ||
} | ||
} |
2
3280
47
+ Addedhono@3.12.12(transitive)
- Removedhono@3.0.0-rc.7
- Removedhono@3.0.0-rc.7(transitive)