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.

14 lines (13 loc) 465 B
import type { Tool } from "../tool"; export type MaybePromise<T> = T | Promise<T>; export type ResourceCompletionResult = { values: string[]; total: number; hasMore: boolean; }; export type ResourceCompletionResultLike = string[] | ResourceCompletionResult; export declare function isPlainObject(value: any): value is object; export declare function callTool(tool: Tool, params: any, opts?: { context?: any; request?: Request; }): Promise<any>;