@cervello/react
Version:
🤯 Simple, reactive, tiny and performant state-management library
8 lines (7 loc) • 396 B
TypeScript
import type { StoreChange } from '../../types/shared';
import type { CacheableSubject } from '../utils/subject';
export declare function proxifyStore<T extends Record<string | symbol, any>>(store$$: CacheableSubject<StoreChange<T>>, objectToProxify: T, opts?: {
nestedFieldPath?: string;
parentObjectToProxify?: any;
afterChange?: (storeChange: Array<StoreChange<T>>) => void;
}): T;