UNPKG

yao-node-client

Version:

A node client for yao application development

16 lines (15 loc) 552 B
/** * 动态的调用本地文件的方法,被调用的方法需要使用export * @param fpath js文件路径 * @param name 方法名 * @param params 参数 * @returns 方法返回值 */ export declare function CallLocalProcess(fpath: string, name: string, ...params: any[]): any; export declare function GetMethodName(name: string): string; /** * 根据方法名判断是否存在脚本文件 * @param name 调用的方法名 * @returns undefind 或是文件名 */ export declare function GetFileName(name: string): string;