UNPKG

@ui-tars/electron-ipc

Version:

Type-safe Electron inter-process communication for UI-TARS

17 lines (16 loc) 279 B
// src/renderer/createClient.ts var createClient = ({ ipcInvoke }) => { return new Proxy({}, { get: (_, prop) => { const invoke = (input) => { return ipcInvoke(prop.toString(), input); }; return invoke; } }); }; export { createClient };