We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is my module, I'm using dynamic modules:
import { Module, VuexModule, getModule } from 'vuex-module-decorators' import { store } from '@/store' import { UserSettings } from '@/models/user-settings' @Module({ dynamic: true, namespaced: true, name: 'user-settings', store, }) class UserSettingsStore extends VuexModule { model = new UserSettings() get layers() : Layer[] { return this.model.layers } } export const userSettingsStore = getModule(UserSettingsStore)
This is the component where I'm trying to access getter property
import { Component, Vue } from 'vue-property-decorator' import { userSettingsStore } from '../../store/modules/user-settings.store' @Component export default class EditLayerMenu extends Vue { get isEditMode(){ return userSettingsStore.layers.find(x => x.editMode === true) } }
I don't get any autocomplete for property "layers" and it's recognized as any[] instead of Layer[]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is my module, I'm using dynamic modules:
This is the component where I'm trying to access getter property
I don't get any autocomplete for property "layers" and it's recognized as any[] instead of Layer[]
The text was updated successfully, but these errors were encountered: