nuxt-property-decorator
nuxt-property-decorator copied to clipboard
Expose PropType from vue
PropType are used as a way to indicate that a Prop needs an object. Currently, it has to be imported from Vue. I would like nuxt-property-decorator to expose PropType to minimize and tidy up import statements.
For more details see here
Such as
import { PropType } from 'vue'
import { Prop } from 'nuxt-property-decorator'
@Prop({ default: () => [], type: Array as PropType<SomeInterface>})
Resulting Outcomes
import { Prop, PropType } from 'nuxt-property-decorator'
@Prop({ default: () => [], type: Array as PropType<SomeInterface>})