save 1 lines of import on Zod-validator (#87)
* save 1 lines of import Just moving ZodSchema and ZodError to the import of z * add changesetpull/88/head
parent
e0db0f704b
commit
b7fe359dbc
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@hono/zod-validator': patch
|
||||
---
|
||||
|
||||
merge zod import into 1 line
|
|
@ -1,7 +1,6 @@
|
|||
import type { Context, MiddlewareHandler, Env, ValidationTargets } from 'hono'
|
||||
import { validator } from 'hono/validator'
|
||||
import type { z } from 'zod'
|
||||
import type { ZodSchema, ZodError } from 'zod'
|
||||
import type { z, ZodSchema, ZodError } from 'zod'
|
||||
|
||||
type Hook<T, E extends Env, P extends string> = (
|
||||
result: { success: true; data: T } | { success: false; error: ZodError },
|
||||
|
|
Loading…
Reference in New Issue