Add global pinia type declaration for the custom unistorage option. Add typed interfaces for all Pinia stores and enforce type safety on state and actions. Add strict type annotations to all utility classes and helper functions. Fix API response typing in the quick booking list page. Remove unused iconsMap import in RefundPopup component. Update package build scripts and add missing terser dependency. Clean up outdated auto-generated component type definitions.
18 lines
294 B
TypeScript
18 lines
294 B
TypeScript
import { defineStore } from "pinia";
|
|
|
|
export const usePictureStore = defineStore("picture", {
|
|
state() {
|
|
return {
|
|
previewImageData: [] as any[],
|
|
};
|
|
},
|
|
|
|
actions: {
|
|
setPreviewImageData(data: any[]) {
|
|
this.previewImageData = data;
|
|
},
|
|
},
|
|
|
|
unistorage: true,
|
|
});
|