PromoCursed/node_modules/fork-ts-checker-webpack-plugin/lib/rpc/RpcHost.d.ts
2024-08-20 23:25:37 +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 };