I am using vue class style component as following.
@Component()
export default class Transfer extends Vue {
@Prop({ default: [] })
buttonTexts!: [];
get hasButtonTexts() {
return this.buttonTexts.length === 2; // Here it gives error.
}
}
and it shows error as below:
"This condition will always return 'false' since the types '0' and '2' have no overlap"
Is this a bug or I am doing something wrong here?