Sign in
Log inSign up
Macaulay Uzu

6.9K reads

1 comment

Benoit GRASSET
Benoit GRASSET
Jul 25, 2023

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

·