fix(standard-validator): remove dead code (#962)

* fix(standard-validator): remove dead code

* chore(standard-validator): changeset
pull/963/head
Rokas Muningis 2025-02-07 02:39:07 +02:00 committed by GitHub
parent 08b7e0d1de
commit 8e5f49394b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -0,0 +1,5 @@
---
'@hono/standard-validator': patch
---
Remove dead code

View File

@ -21,9 +21,6 @@ type Hook<
c: Context<E, P>
) => TOrPromiseOfT<Response | void | TypedResponse<O>>
const isStandardSchemaValidator = (validator: unknown): validator is StandardSchemaV1 =>
!!validator && typeof validator === 'object' && '~standard' in validator
const sValidator = <
Schema extends StandardSchemaV1,
Target extends keyof ValidationTargets,