import { defineStore } from "pinia"
export interface MainStore {
isOverlayShow: boolean
isBurgerOpen: boolean
}
export const useMainStore = defineStore({
id: "main",
state: (): MainStore => ({
isOverlayShow: false,
isBurgerOpen: false,
}),
actions: {
// setOverlayShow(bool: boolean): void {
// this.isOverlayShow = bool
// },
setOverlayShow(bool: boolean): void {
this.isOverlayShow = 'bool' // <- no ERROR
},
setBurgerOpen(bool: boolean): void {
this.isBurgerOpen = bool
}
},
getters: {
}
})
Как затипизировать это место?