-
Notifications
You must be signed in to change notification settings - Fork 433
Closed
Description
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:
- vue 3.0.0
- vue-class-component 8.0.0-beta.3