UNPKG

@zubridge/electron

Version:

A streamlined state management library for Electron applications using Zustand.

16 lines (15 loc) 670 B
/** * Constants used for IPC communication between main and renderer processes. * These are internal to the Zubridge electron implementation. */ export var IpcChannel; (function (IpcChannel) { /** Channel for subscribing to state updates */ IpcChannel["SUBSCRIBE"] = "__zubridge_state_update"; /** Channel for getting the current state */ IpcChannel["GET_STATE"] = "__zubridge_get_initial_state"; /** Channel for dispatching actions */ IpcChannel["DISPATCH"] = "__zubridge_dispatch_action"; /** Channel for acknowledging action dispatches */ IpcChannel["DISPATCH_ACK"] = "__zubridge_dispatch_ack"; })(IpcChannel || (IpcChannel = {}));