Closed Jamiewarb closed 4 years ago
@Jamiewarb I double checked the latest d.ts file and it has all the exports.
export declare function NextTick(method: string): MethodDecorator; import { Module, getModule, VuexModule, Mutation as VuexMutation, MutationAction, Action as VuexAction } from "vuex-module-decorators"; import { State, Getter, Action, Mutation, namespace } from "vuex-class"; export { Vue, Component, Emit, Inject, InjectReactive, Model, Prop, PropSync, Provide, ProvideReactive, Ref, Watch, mixins, State, Getter, Action, Mutation, namespace, Module, getModule, VuexModule, VuexMutation, MutationAction, VuexAction, };
It seems that nuxt-property-decorator is not exporting some types from vuex-module-decorators, despite the README saying it does.
nuxt-property-decorator/lib/nuxt-property-decorator.d.ts
There seems to be no mention of
Module
orVuexModule
, among others, despite the README stating these are exported fromvuex-module-decorators
.Hopefully I'm not just being dim and wasting your time, but wanted to know if this is a legitimate mistake or if I've missed something?
As an example, this import is complaining that Module and VuexModule are not exported members.
import { Module, VuexModule } from 'nuxt-property-decorator';