We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a class component like this:
import Person from '@/models/Person'; import { PropType } from 'vue'; import { emits, mixins, Options, props } from 'vue-class-component'; const Props = props({ person: { type: Object as PropType<Person>, required: true } }) const Emits = emits({ input: (value) => typeof value === 'number' }) @Options export default class HelloWorld extends mixins(Props, Emits) { private myData = this.person; mounted() { this.$emit('input', 2); } }
And I receive the following errors:
Here is the repro project which you can run and check this error: class-component-test.zip
I am using:
The text was updated successfully, but these errors were encountered:
Thanks for reporting this. This is caused by the wrong type definition of @Options. Will fix it in the next version.
@Options
Sorry, something went wrong.
fix: make decorator accepts any vue constructor types (fix #457)
c3ccae0
fixed in beta.4
No branches or pull requests
I have a class component like this:
And I receive the following errors:
Here is the repro project which you can run and check this error:
class-component-test.zip
I am using:
The text was updated successfully, but these errors were encountered: