jsonv-ts
Version:
JSON Schema builder and validator for TypeScript with static type inference, Hono middleware for OpenAPI generation and validation, and MCP server/client implementation. Lightweight, dependency-free, and built on Web Standards.
9 lines (8 loc) • 461 B
TypeScript
import type { Env, Hono } from "hono";
import type { MiddlewareHandler } from "hono/types";
import { $symbol, type RouteHandler } from "../shared";
import * as t from "./types";
export declare const openAPISpecs: <E extends Env>(hono: Hono<E>, specs?: Partial<t.Document>) => (c: any) => Promise<any>;
export declare const describeRoute: <E extends Env, P extends string>(specs?: t.DescribeRouteOptions) => MiddlewareHandler & {
[$symbol]: RouteHandler;
};