UNPKG

@zubridge/electron

Version:

A streamlined state management library for Electron applications using Zustand.

17 lines (16 loc) 577 B
import type { Store } from 'redux'; import type { AnyState, Handler, StateManager } from '@zubridge/types'; /** * Options for the Redux adapter */ export interface ReduxOptions<S extends AnyState> { exposeState?: boolean; handlers?: Record<string, Handler>; } /** * Creates a state manager adapter for Redux stores * * This adapter connects a Redux store to the Zubridge bridge, * allowing it to be used with the Electron IPC system. */ export declare function createReduxAdapter<S extends AnyState>(store: Store<S>, options?: ReduxOptions<S>): StateManager<S>;