nuxt-property-decorator icon indicating copy to clipboard operation
nuxt-property-decorator copied to clipboard

Expose PropType from vue

Open panteparak opened this issue 2 years ago • 0 comments

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

panteparak avatar Apr 04 '22 11:04 panteparak