@univerjs/rpc v0.2.11 • Docs
Function: toModule()
function toModule<T>(channel): T
Wrap a channel into a service or a controller so it could be invoked by the upper layer modules. When the service or controller is called, it would request the remote server by calling the channel.
Type Parameters
Type Parameter |
---|
T extends object |
Parameters
Parameter | Type |
---|---|
channel | IChannel |
Returns
T
Defined in
packages/rpc/src/services/rpc/rpc.service.ts:88 (opens in a new tab)