@alwaysai/cloud-api
Version:
A library for defining the alwaysAI Cloud API
8 lines • 348 B
TypeScript
import * as t from 'io-ts';
import { rpcMethodSpecs } from './rpc-method-specs';
declare type Specs = typeof rpcMethodSpecs;
export declare type RpcApi = {
[methodName in keyof Specs]: (...args: t.TypeOf<Specs[methodName]['argsCodec']>) => Promise<t.TypeOf<Specs[methodName]['resultCodec']>>;
};
export {};
//# sourceMappingURL=rpc-api.d.ts.map