fix(standard-validator): remove dead code (#962)
* fix(standard-validator): remove dead code * chore(standard-validator): changesetpull/963/head
parent
08b7e0d1de
commit
8e5f49394b
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'@hono/standard-validator': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Remove dead code
|
|
@ -21,9 +21,6 @@ type Hook<
|
||||||
c: Context<E, P>
|
c: Context<E, P>
|
||||||
) => TOrPromiseOfT<Response | void | TypedResponse<O>>
|
) => TOrPromiseOfT<Response | void | TypedResponse<O>>
|
||||||
|
|
||||||
const isStandardSchemaValidator = (validator: unknown): validator is StandardSchemaV1 =>
|
|
||||||
!!validator && typeof validator === 'object' && '~standard' in validator
|
|
||||||
|
|
||||||
const sValidator = <
|
const sValidator = <
|
||||||
Schema extends StandardSchemaV1,
|
Schema extends StandardSchemaV1,
|
||||||
Target extends keyof ValidationTargets,
|
Target extends keyof ValidationTargets,
|
||||||
|
|
Loading…
Reference in New Issue