wxt-zustand
Version:
High-performance Zustand state management for WXT web extensions with seamless cross-tab synchronization and sub-10ms React re-renders
13 lines • 577 B
TypeScript
/**
* Returns a shallow copy of the given state with any function-valued
* properties removed. This ensures we only send serializable data across
* messaging/storage layers.
*/
export declare function stripFunctionProps<S>(state: S): S;
/**
* Merge next state into a new object while preserving any function-valued
* properties from the current state. Non-function keys are replaced exactly
* by `next` to keep replace semantics for data.
*/
export declare function mergeStatePreservingFunctions<S>(current: S, next: S): S;
//# sourceMappingURL=stateTransforms.d.ts.map