@lidhium/cli
Version:
micro-frontend cli packed with webpack
19 lines (15 loc) • 323 B
text/typescript
import { createStore } from "vuex";
export interface MyStoreState {
sharedData: string;
}
const store = createStore<MyStoreState>({
state: {
sharedData: "This is shared data",
},
mutations: {
setSharedData(state, payload: string) {
state.sharedData = payload;
},
},
});
export default store;