lis8.0-vue3/src/types/pinia.d.ts

15 lines
347 B
TypeScript
Raw Normal View History

2025-12-10 18:02:35 +08:00
import 'pinia'
declare module 'pinia' {
export interface DefineStoreOptionsBase<S, Store> {
// 允许在定义 store 时使用 persist 属性
persist?: boolean | PersistOptions
}
}
// 定义持久化配置的类型(根据插件实际参数调整)
interface PersistOptions {
paths?: string[]
key?: string
storage?: Storage
}