simple-inventory-editor/src/store.ts
2025-03-02 14:56:12 -05:00

17 lines
368 B
TypeScript

import { defineStore } from 'pinia'
import { type Inventory } from './types/data'
export const useAppStore = defineStore('appStore', {
state: () => ({
currentInventory: {
filePath: '',
data: null as Inventory | null,
},
}),
})
export type AppStoreDefinition = Omit<
ReturnType<typeof useAppStore>,
keyof ReturnType<typeof defineStore>
>