Skip to content

Instantly share code, notes, and snippets.

View TrayHard's full-sized avatar
🏠
Working from home

Poliakov Ilia TrayHard

🏠
Working from home
View GitHub Profile
import { createStore } from 'vuex';
// The modules to import
import auth, { Store as AuthStore, State as AuthState } from './auth';
import counter, { Store as CounterStore, State as CounterState } from './counter';
// A State type with all the submodules
type State = {
auth: AuthState;
counter: CounterState;