the-forest/client/node_modules/fork-ts-checker-webpack-plugin/lib/rpc/RpcHost.d.ts
2024-09-17 20:35:18 -04:00

7 lines
212 B
TypeScript

declare type RpcDispatcher = <TMessage>(message: TMessage) => Promise<void>;
interface RpcHost {
dispatch: RpcDispatcher;
register: (dispatch: RpcDispatcher) => void;
}
export { RpcHost, RpcDispatcher };