the-forest/client/node_modules/fork-ts-checker-webpack-plugin/lib/rpc/RpcHost.d.ts

7 lines
212 B
TypeScript
Raw Normal View History

2024-09-17 20:35:18 -04:00
declare type RpcDispatcher = <TMessage>(message: TMessage) => Promise<void>;
interface RpcHost {
dispatch: RpcDispatcher;
register: (dispatch: RpcDispatcher) => void;
}
export { RpcHost, RpcDispatcher };