When a error in prevalidate occurs it returns a record
Currently is necessary to typecast explicitly
const errors = model.preValidate({
name: '',
email: 'test@example.com',
}) as Partial<Record<keyof TestAttributes, string>>;
Also return undefined instead of empty string when no attribute to validate
When a error in prevalidate occurs it returns a record
Currently is necessary to typecast explicitly
Also return undefined instead of empty string when no attribute to validate