Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/hono/validator/schema.ts>SchemaToProp

Ultrafast web framework for Cloudflare Workers, Deno, and Bun. Fast, but not only fast.
Extremely Popular
Go to Latest
type alias SchemaToProp
import { type SchemaToProp } from "https://deno.land/x/hono@v2.5.5/validator/schema.ts";
definition: [K in keyof T]: T[K] extends VNumberArray ? number[] : T[K] extends VBooleanArray ? boolean[] : T[K] extends VStringArray ? string[] : T[K] extends VNumber ? number : T[K] extends VBoolean ? boolean : T[K] extends VString ? string : T[K] extends VObjectBase<Schema> ? T[K]["container"] extends VNumber ? number : T[K]["container"] extends VString ? string : T[K]["container"] extends VBoolean ? boolean : T[K] extends VArray<Schema> ? SchemaToProp<ReadonlyArray<T[K]["container"]>> : T[K] extends VObject<Schema> ? SchemaToProp<T[K]["container"]> : T[K] extends Schema ? SchemaToProp<T[K]> : never : SchemaToProp<T[K]>