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.
26 lines (25 loc) • 1.16 kB
TypeScript
import type { AnyObject, EppsStore } from "../types";
import type { EppsStoreOptions, PersistedStoreOptions } from "../types/store";
import { ParentStoreInterface } from "../types/epps";
export interface EppsContructor extends Omit<EppsStoreOptions, 'parentsStores'> {
parentsStores?: ParentStoreInterface[];
propertiesToRename?: Record<string, string>;
}
export declare class Epps {
private _actionsToExtends?;
private _childId?;
private _persist?;
private _parentsStores?;
private _parentsStoresBuilded?;
private _propertiesToRename?;
constructor(options: EppsContructor);
get actionsToExtends(): string[] | undefined;
get childId(): string | undefined;
set childId(value: string | undefined);
get persist(): PersistedStoreOptions | undefined;
get propertiesToRename(): Record<string, string> | undefined;
buildStores(childId?: string): void;
getStore<TStore, TState>(idOrIndex: number | string, childId?: string): EppsStore<TStore, TState> | undefined;
getStores(childId?: string): EppsStore<AnyObject, AnyObject>[];
parentsStores(childId?: string): EppsStore<AnyObject, AnyObject>[];
}