14 lines
230 B
TypeScript
14 lines
230 B
TypeScript
import { defineStore } from "pinia";
|
|
|
|
export interface autoSavePayload {
|
|
draftId?: number;
|
|
}
|
|
|
|
export const useAutoSaveStore = defineStore("autosave", {
|
|
state() {
|
|
return {
|
|
draftId: undefined,
|
|
} as autoSavePayload;
|
|
},
|
|
});
|