Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose PropType from vue #101

Open
panteparak opened this issue Apr 4, 2022 · 0 comments · May be fixed by #100
Open

Expose PropType from vue #101

panteparak opened this issue Apr 4, 2022 · 0 comments · May be fixed by #100

Comments

@panteparak
Copy link

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 panteparak linked a pull request Apr 4, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant