Closed reaink closed 3 years ago
Type '({ string }: { string: any; }) => { email: any; }' has no properties in common with type 'ArgsValidationConfig<{ data: { name?: string; password?: string; }; }>'.ts(2559)
in code
args: { email: stringArg(), }, validate: ({ string }) => ({ email: string().email(), }),
my ts version 4.4.3 nexus-validate 1.1.0
Found the problem, must return a type
in code
my ts version 4.4.3 nexus-validate 1.1.0