flaschengeist-frontend/src/store/index.ts

26 lines
450 B
TypeScript
Raw Normal View History

2020-10-02 07:13:14 +00:00
import { store } from 'quasar/wrappers';
import Vuex from 'vuex';
/*
* If not building with SSR mode, you can
* directly export the Store instantiation
*/
export interface StateInterface {
2020-10-02 07:13:14 +00:00
}
export default store(function ({ Vue }) {
2020-10-02 07:13:14 +00:00
Vue.use(Vuex);
const Store = new Vuex.Store<StateInterface>({
2020-10-16 07:38:14 +00:00
modules: {},
2020-10-02 07:13:14 +00:00
// enable strict mode (adds overhead!)
// for dev mode only
strict: !!process.env.DEV
});
return Store;
});