UNPKG

pinia-plugin-state-persistence

Version:

Pinia plugin for universal state persistence across synchronous and asynchronous storage systems, supporting advanced features like path inclusion/exclusion and custom serialization.

14 lines (13 loc) 855 B
export declare function createLogger(debug?: boolean): { info: (message: string, ...args: any[]) => void; warn: (message: string, ...args: any[]) => void; error: (message: string, ...args: any[]) => void; }; export declare const getNestedValue: (obj: any, path: string) => any; export declare function setNestedValue(obj: any, path: string, value: any): void; export declare function applyStateFilter(state: Record<string, any>, include: string | string[] | null, exclude: string | string[] | null): Record<string, any>; export declare function queueTask(queues: Record<string, Promise<any>>, key: string, task: () => Promise<any>): Promise<any>; export declare function getObjectDiff(object1: Record<string, any>, object2: Record<string, any>): { [k: string]: any; }; export declare function isPromise(value: any): value is Promise<any>;