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

Expose PropType from vue #101

Open panteparak opened 2 years ago

panteparak commented 2 years ago

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>})