@hono/typebox-validator
Advanced tools
| import type { TSchema, Static } from '@sinclair/typebox'; | ||
| import { type ValueError } from '@sinclair/typebox/value'; | ||
| import type { Context, Env, MiddlewareHandler, ValidationTargets } from 'hono'; | ||
| type Hook<T, E extends Env, P extends string> = (result: { | ||
| export type Hook<T, E extends Env, P extends string> = (result: { | ||
| success: true; | ||
@@ -64,2 +64,1 @@ data: T; | ||
| }>(target: Target, schema: T, hook?: Hook<Static<T>, E, P>): MiddlewareHandler<E, P, V>; | ||
| export {}; |
+1
-1
| { | ||
| "name": "@hono/typebox-validator", | ||
| "version": "0.2.5", | ||
| "version": "0.2.6", | ||
| "description": "Validator middleware using TypeBox", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
7948
-0.05%207
-0.48%