UNPKG

pinia-plugin-store

Version:
19 lines (16 loc) 494 B
import { PiniaPlugin } from 'pinia'; interface StoreOptions { name: string; storage?: Storage; ciphertext?: boolean; } type Stores = Array<StoreOptions | string>; interface PiniaPersistOptions { stores?: Stores; storage?: Storage; encrypt?: (value: string) => string; decrypt?: (value: string) => string; } declare function storePlugin(options?: PiniaPersistOptions): PiniaPlugin; export { storePlugin }; export type { PiniaPersistOptions, StoreOptions, Stores };