UNPKG

@zubridge/electron

Version:

A streamlined state management library for Electron applications using Zustand.

10 lines (9 loc) 408 B
import type { AnyState } from '@zubridge/types'; /** * Removes functions and non-serializable objects from a state object * to prevent IPC serialization errors when sending between processes * * @param state The state object to sanitize * @returns A new state object with functions and non-serializable parts removed */ export declare const sanitizeState: (state: AnyState) => Record<string, unknown>;