Skip to content

Instantly share code, notes, and snippets.

@mspoulsen
Created November 28, 2019 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mspoulsen/f3a67e22a76ba124e606a0beae597974 to your computer and use it in GitHub Desktop.
Save mspoulsen/f3a67e22a76ba124e606a0beae597974 to your computer and use it in GitHub Desktop.
const rootState: RootState = {
}
const storeConfig: StoreOptions<RootState> = {
modules: {
foo
},
state: rootState
}
const store: Store<RootState> = new Vuex.Store(storeConfig)
// how can I access store.state.foo without adding foo to RootState ???
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment