This commit is contained in:
2019-09-22 10:31:24 +02:00
parent 887e51392d
commit ab6121c8c8
+1 -1
View File
@@ -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){