UNPKG

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.

11 lines (10 loc) 285 B
import type { Schema } from "../schema/schema"; export declare class Resolver { readonly root: Schema; private cache; constructor(root: Schema); hasRef<S extends Schema>(s: S, value: unknown): s is S & { $ref: string; }; resolve(ref: string): Schema; }