7 lines
212 B
TypeScript
7 lines
212 B
TypeScript
declare type RpcDispatcher = <TMessage>(message: TMessage) => Promise<void>;
|
|
interface RpcHost {
|
|
dispatch: RpcDispatcher;
|
|
register: (dispatch: RpcDispatcher) => void;
|
|
}
|
|
export { RpcHost, RpcDispatcher };
|