PromoCursed/node_modules/fork-ts-checker-webpack-plugin/lib/rpc/RpcMessageChannel.d.ts

11 lines
524 B
TypeScript
Raw Normal View History

2024-08-20 23:25:37 +04:00
import { RpcMessagePort } from './RpcMessagePort';
interface RpcMessageChannel {
readonly servicePort: RpcMessagePort;
readonly clientPort: RpcMessagePort;
readonly isOpen: () => boolean;
readonly open: () => Promise<void>;
readonly close: () => Promise<void>;
}
declare function createRpcMessageChannel(servicePort: RpcMessagePort, clientPort: RpcMessagePort, linkPorts?: () => Promise<void>, unlinkPorts?: () => Promise<void>): RpcMessageChannel;
export { RpcMessageChannel, createRpcMessageChannel };