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.
8 lines (7 loc) • 411 B
TypeScript
import type { ValidationOptions } from "./validate";
export declare const format: ({ format }: {
format?: string;
}, value: unknown, opts?: ValidationOptions) => import("./validate").ValidationResult;
export declare function registerFormat(format: string, fn: (input: string) => boolean): void;
export declare function unregisterFormat(format: string): void;
export declare function getFormats(): string[];