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.
13 lines (12 loc) • 676 B
TypeScript
import { RpcMessage, type TRpcRequest } from "../rpc";
export declare class LoggingMessage extends RpcMessage {
method: string;
params: import("jsonv-ts").ObjectSchema<{
readonly level: import("jsonv-ts").StringSchema<{
readonly enum: ("info" | "error" | "debug" | "emergency" | "alert" | "critical" | "warning" | "notice")[];
}> & {
readonly enum: ("info" | "error" | "debug" | "emergency" | "alert" | "critical" | "warning" | "notice")[];
};
}, import("jsonv-ts").IObjectOptions> & import("jsonv-ts").IObjectOptions;
respond(message: TRpcRequest<typeof this.params>): Promise<import("..").TRpcResponse<{}>>;
}