Skip to main content
Module

x/hono/mod.ts>ToSchema

Web Framework built on Web Standards
Extremely Popular
Go to Latest
type alias ToSchema
import { type ToSchema } from "https://deno.land/x/hono@v4.3.2/mod.ts";

Type Parameters

M extends string
P extends string
I extends Input | Input["in"]
RorO
definition: Prettify<[K in P]: [K2 in Min keyof AddDollar<K2>]: Simplify<{ input: AddParam<ExtractInput<I>, P>; } & (IsAny<RorO> extends true ? { output: { }; outputFormat: ResponseFormat; status: StatusCode; } : RorO extends TypedResponse<infer T, infer U, infer F> ? { output: unknown extends T ? { } : T; outputFormat: I extends { outputFormat: string; } ? I["outputFormat"] : F; status: U; } : { output: unknown extends RorO ? { } : RorO; outputFormat: unknown extends RorO ? "json" : I extends { outputFormat: string; } ? I["outputFormat"] : "json"; status: StatusCode; })>>