boussole-pluss/frontend/utils/store-accessor.ts

13 lines
305 B
TypeScript
Raw Normal View History

2022-10-07 14:15:53 +00:00
import {Store} from 'vuex'
import {getModule} from 'vuex-module-decorators'
import Quiz from "~/store/quiz";
/* eslint import/no-mutable-exports: 0 */
let quizStore: Quiz;
function initialiseStores(store: Store<any>): void {
quizStore = getModule(Quiz, store);
}
export {initialiseStores, quizStore}