import { createStore } from 'easy-peasy'; import flashes, { FlashStore } from '@/state/flashes'; import user, { UserStore } from '@/state/user'; import permissions, { GloablPermissionsStore } from '@/state/permissions'; export interface ApplicationStore { permissions: GloablPermissionsStore; flashes: FlashStore; user: UserStore; } const state: ApplicationStore = { permissions, flashes, user, }; export const store = createStore(state);