nuxt-community / nuxt-property-decorator

Property decorators for Nuxt (base on vue-property-decorator)
https://github.com/kaorun343/vue-property-decorator
MIT License
399 stars 34 forks source link

Module and VuexModule from vuex-module-decorators are not exported by nuxt-property-decorator #69

Closed Jamiewarb closed 4 years ago

Jamiewarb commented 4 years ago

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 or VuexModule, among others, despite the README stating these are exported from vuex-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';

husayt commented 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, };