UNPKG

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.

10 lines (9 loc) 512 B
import { Store } from "pinia"; import { AnyObject, DefineEppsStore, EppsStore } from "."; import ParentStoreClass from "../plugins/parentStore"; export interface ParentStoreInterface { get id(): string; build: (childId: string) => EppsStore<AnyObject, AnyObject>; } export type ParentStore = (<TStore = AnyObject, TState = AnyObject>(id: string) => (DefineEppsStore<TStore, TState> | Store)); export type ParentStoreConstructor = (() => DefineEppsStore<AnyObject, AnyObject> | Store) | ParentStoreClass;