vue-types
vue-types copied to clipboard
isRequired has unexpected behaviour with func
Using vue-types 4.1.1 with Volar extension v. 0.28.9. Somehow a function prop defined with VueTypes.prop.isRequired is still seen as ((...args: any[]) => any) | undefined. Screenshot below:

Hmm, I cannot find where this issue comes from. It seems to be only related to the VueTypes.func validator 🤔.
As a quick fix, I suggest you use the individual validator which should not have this issue:
import { func } from 'VueTypes';
// ...
props: {
toggleCollapsed: func().isRequired
}
Yup, that's what I've done for now, thanks 👍