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) 997 B
import { DefineStoreOptions, StateTree, StoreDefinition } from "pinia"; import type { Item } from "../models/item"; import type { AnyObject } from "../types"; import type { DefineEppsStore, PersistedState } from "../types/store"; export declare const itemState: Item; export declare const persistedState: (persist?: boolean, persistedPropertiesToEncrypt?: string[], excludedKeys?: string[], isEncrypted?: boolean) => PersistedState; export declare function defineEppsStore<Sto, Sta>(id: string, storeDefinition: Omit<DefineStoreOptions<string, StateTree & Sta, AnyObject, Sto>, 'id'> | (() => AnyObject)): DefineEppsStore<Sto, Sta>; export declare function defineEppsStoreSetup<Sto, Sta>(id: string, storeDefinition: () => AnyObject): DefineEppsStore<Sto, Sta>; export declare function defineEppsStoreOptionApi<Sto, Sta>(id: string, storeDefinition: Omit<DefineStoreOptions<string, StateTree & Sta, AnyObject, Partial<Sto>>, 'id'>): StoreDefinition<string, Partial<Sta>, AnyObject, Partial<Sto>>;