提交 1f60b4b5 编写于 作者: J Joao Moreno

fix ipc spread operators

上级 c5e7bf85
......@@ -164,7 +164,7 @@ export class Client implements IClient {
}
getChannel<T extends IChannel>(channelName: string): T {
const call = (command, args) => this.request(channelName, command, ...args);
const call = (command, ...args) => this.request(channelName, command, ...args);
return { call } as T;
}
......@@ -277,7 +277,7 @@ export class Client implements IClient {
}
export function getDelayedChannel<T extends IChannel>(promise: TPromise<IChannel>): T {
const call = (command, args) => promise.then(c => c.call(command, ...args));
const call = (command, ...args) => promise.then(c => c.call(command, ...args));
return { call } as T;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册