UNPKG

@yhiot/utils

Version:
19 lines (18 loc) 573 B
export function replacer(key: any, value: any): any; export function reviver(key: any, value: any): any; /** * 初始化微服务列表 * @param {json} cfgs {iotdevice: {ops, protocol, port, host}} */ export function init(cfgs: any): {}; export function $rpc(name: any): any; export default class Client { /** * 构造函数 * @param {array} ops 操作列表 * @param {json} cfg 配置{protocol:'tcp/http',host:'localhost',port} protocol默认为tcp,host默认为localhost */ constructor(ops: any, cfg: any); cfg: any; client: any; }