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.

15 lines (14 loc) 449 B
import { AllowedKeyPath, ClientStorage, StorageItem } from '../types/storage'; export type DbOptions = { keyPath?: AllowedKeyPath; name: string; }; export default class Persister { private _db; private _db_options; constructor(dbOptions: DbOptions); defineDb(): ClientStorage; getItem(itemKey: string): Promise<StorageItem | undefined>; removeItem(itemKey: string): void; setItem(key: string, item: any): void; }