Introduction React-Select is a flexible and appealing Select Input control for ReactJS. When utilizing this module, it's vital to check the data in order to avoid user abuse of the input fields. Yes, and this is where the React-Form-hook with Yup com...

Markdown supported · ⌘↵ to post
Benoit GRASSET
I have the following error by using your code on my project:
Type 'Resolver<{ gender: { value: string; }; hobbies: any[]; }>' is not assignable to type 'Resolver<SelectField, any>'. Types of parameters 'options' and 'options' are incompatible. Type 'ResolverOptions<SelectField>' is not assignable to type 'ResolverOptions<{ gender: { value: string; }; hobbies: any[]; }>'. Type '{ gender: { value: string; }; hobbies: any[]; }' is not assignable to type 'SelectField'.ts(2322)
It seems that your resolver is not strongly typed enough