zustand-persist
Version:
persist and rehydrate redux stores
10 lines (9 loc) • 345 B
TypeScript
export declare type NonFunctionPropertyNames<T> = {
[K in keyof T]: T[K] extends Function ? never : K;
}[keyof T];
interface ReconcileOption<T> {
allowlist?: NonFunctionPropertyNames<T>[];
denylist?: NonFunctionPropertyNames<T>[];
}
export default function reconcile<T>(state: T, option?: ReconcileOption<T>): Partial<T>;
export {};