Files
zgty-mas-m/node_modules/pinia-plugin-persist-uni/dist/index.d.ts
2025-11-24 10:26:18 +08:00

21 lines
532 B
TypeScript

import { PiniaPluginContext } from 'pinia';
export interface PersistStrategy {
key?: string;
storage?: Storage;
paths?: string[];
}
export interface PersistOptions {
enabled: true;
detached?: true;
enforceCustomStorage?: boolean;
H5Storage?: Storage;
strategies?: PersistStrategy[];
}
declare module 'pinia' {
interface DefineStoreOptionsBase<S, Store> {
persist?: PersistOptions;
}
}
declare const _default: ({ options, store }: PiniaPluginContext) => void;
export default _default;