-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
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
module inheritance #13
Comments
Hmm, I haven't tried it, but I think the following should work (not tested) class BaseModule extends VuexModule {
someHelperFunction(a: number) {
// ...
}
}
@Module
class Module1 extends BaseModule {
// can call this.someHelperFunction
}
@Module
class Module2 extends BaseModule {
// can call this.someHelperFunction
} But I dont think you can use the Is this what you are looking for? Feel free to try it out, and if it doesn't work, let me know. |
Closing for now, feel free to reopen if you find some problems with inheritance. |
@gertqin hi class BaseModule extends VuexModule {
get fullName () {/ ** /}
}
@Module
class ChildModule extends BaseModule {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
is it possible to use inheritance to reuse common logic between modules using this package?
The text was updated successfully, but these errors were encountered: