flaschengeist-frontend/src/store/index.ts

23 lines
597 B
TypeScript
Raw Normal View History

2020-10-02 07:13:14 +00:00
import { store } from 'quasar/wrappers';
import { createStore } from 'vuex';
import { UserStateInterface } from 'src/plugins/user/store/user';
import { SessionStateInterface } from 'src/plugins/user/store/session';
export interface StateInterface {
users: UserStateInterface;
sessions: SessionStateInterface;
[key: string]: unknown;
}
2020-10-02 07:13:14 +00:00
export default store(function (/* { ssrContext } */) {
const Store = createStore({
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 and --debug builds only
strict: !!process.env.DEBUGGING,
2020-10-02 07:13:14 +00:00
});
return Store;
});