libmodulor
Version:
A TypeScript library to create platform-agnostic applications
8 lines (7 loc) • 449 B
TypeScript
import type { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
import { type DataType } from '../../dt/index.js';
import { type UCInputFieldDef } from '../../uc/index.js';
import type { PropertyType } from './types.js';
export declare function propertyType<T extends DataType>(def: UCInputFieldDef<T>): PropertyType;
export declare function resError(err: Error): CallToolResult;
export declare function resObj<T>(obj: T): CallToolResult;