(self: PromisableMethods<Left>)
| 92 | } |
| 93 | |
| 94 | async function leftClient(self: PromisableMethods<Left>): Promise<RPCMethods<Right>> { |
| 95 | left.resolve(bindAllFunctions(self)); |
| 96 | return objectMap(await right, (key, fn) => [key, mapRpcFunction(fn)]) as RPCMethods<Right>; |
| 97 | } |
| 98 | |
| 99 | async function rightClient(self: PromisableMethods<Right>): Promise<RPCMethods<Left>> { |
| 100 | right.resolve(bindAllFunctions(self)); |
nothing calls this directly
no test coverage detected