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.

32 lines (31 loc) • 1.37 kB
import type { Store } from "pinia"; import type { AnyObject, EppsStore } from "../types"; /** * Provides the parent store by its id or index * @param {string | number} parentStoreIdOrIndex - The id or index of the parent store * @param {Store[]} parentsStores * @returns Store | undefined */ export declare function getParentStore(parentStoreIdOrIndex: string | number, parentsStores: Array<Store | EppsStore<AnyObject, AnyObject>>): Store | undefined; /** * Provides the parent store by its id * @param {string} parentStoreId * @param {Store[]} parentsStores * @returns Store | undefined */ export declare function getParentStoreById(parentStoreId: string, parentsStores: Store[]): Store | undefined; /** * Provides the parent store by its index * @param {number} parentStoreIndex * @param {Store[]} parentsStores * @returns Store | undefined */ export declare function getParentStoreByIndex(parentStoreIndex: number, parentsStores: Store[]): Store | undefined; /** * Provides the parent store property value * @param {string} propertyName * @param {AnyObject | string | number | undefined} parentStore * @param {Store[]} parentsStores * @returns any */ export declare function getParentStorePropertyValue(propertyName: string, parentStore: AnyObject | string | number | undefined, parentsStores?: Store[] | EppsStore<AnyObject, AnyObject>[]): any;