doc
This commit is contained in:
+6
-1
@@ -4,7 +4,12 @@ import * as T from "./Types";
|
||||
import * as I from "./Interfaces";
|
||||
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
|
||||
*/
|
||||
export const rpcToRpcinfo = <SubResT = {}>(rpc : T.RPC<SubResT>, owner: T.Owner):T.RpcInfo => {
|
||||
switch (typeof rpc){
|
||||
case "object":
|
||||
|
||||
Reference in New Issue
Block a user