doc
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ import { SubscriptionResponse } from "./Types";
|
||||
* Translate an RPC to RPCInfo for serialization.
|
||||
* @param rpc The RPC to transform
|
||||
* @param owner The owning RPC group's name
|
||||
* @throws Error on RPC without name property
|
||||
* @throws {Errror} Error on RPC without name property
|
||||
*/
|
||||
export const rpcToRpcinfo = <SubResT = {}>(rpc : T.RPC<SubResT>, owner: T.Owner):T.RpcInfo => {
|
||||
switch (typeof rpc){
|
||||
|
||||
Reference in New Issue
Block a user