UNPKG

@chris.troutner/ipfs-message-port-client

Version:
21 lines 872 B
export = Client; declare class Client<T> { /** * @param {string} namespace * @param {ProcedureNames<T>} methods * @param {MessageTransport} transport */ constructor(namespace: string, methods: ProcedureNames<T>, transport: MessageTransport); /** @type {RemoteService<T>} */ remote: RemoteService<T>; } declare namespace Client { export { Remote, ProcedureNames, Keys, RemoteService, MessageTransport }; } type RemoteService<T_1> = Remote<T_1> & Service<T_1>; type ProcedureNames<T_1> = import('@chris.troutner/ipfs-message-port-protocol/src/rpc').ProcedureNames<T_1>; type MessageTransport = import('./client/transport'); type Remote<T_1> = import('@chris.troutner/ipfs-message-port-protocol/src/rpc').Remote<T_1>; type Keys<T_1> = Array<keyof T_1>; import Service = require("./client/service"); //# sourceMappingURL=client.d.ts.map