UNPKG

sdg

Version:

pomelo ts

17 lines (16 loc) 566 B
import { IRpcClientOpts, RpcClient } from 'sdg-rpc'; import Application from '../application'; import { IHandlerMsg } from './IConnector'; export interface IProxyComponentOptions extends IRpcClientOpts { rpcClient?: { create: (opts: IRpcClientOpts) => RpcClient; }; bufferMsg?: boolean; cacheMsg?: boolean; interval?: number; enableRpcLog?: boolean; } export declare type IRouteFunction = (routeFrom: any, msg: IHandlerMsg, app: Application) => Promise<string>; export declare type RouteMaps = { [key: string]: IRouteFunction; };