epps
Version:
Enhances Pinia stores with advanced features such as persistence, encryption, and store extension. Simplifies state management and ensures data security for Vue.js and Nuxt applications.
31 lines (30 loc) • 1.28 kB
TypeScript
import type { ActionFlows, ParentStoreInterface } from "../types/epps";
import type { AnyObject, EppsStore } from "../types";
import type { EppsStoreOptions, PersistedStoreOptions } from "../types/store";
export interface EppsContructor extends Omit<EppsStoreOptions, 'parentsStores'> {
parentsStores?: ParentStoreInterface[];
propertiesToRename?: Record<string, string>;
}
export declare class Epps {
private _actionFlows?;
private _actionsToExtends?;
private _actionsToRename?;
private _childId?;
private _mutationCallback?;
private _persist?;
private _parentsStores?;
private _parentsStoresBuilded?;
private _propertiesToRename?;
constructor(options: EppsContructor);
get actionFlows(): ActionFlows | undefined;
get actionsToExtends(): string[] | undefined;
get actionsToRename(): Record<string, string> | undefined;
get childId(): string | undefined;
set actionFlows(actionFlows: ActionFlows);
set childId(value: string | undefined);
get persist(): PersistedStoreOptions | boolean | undefined;
get propertiesToRename(): Record<string, string> | undefined;
buildStores(childId?: string): void;
hasCustomDb(): boolean;
parentsStores(childId?: string): EppsStore<AnyObject, AnyObject>[];
}