Could you please assist me in resolving this issue:
type IValidator = (value?: string) => string | undefined;
type IComposeValidators = (validators: ((value?: string) => string | undefined)[]) => IValidator;
export const composeValidators: IComposeValidators = (...validators) => (value) => {
return validators.reduce((error, validator) => error || validator(value), undefined); // There seems to be an error with this expression. Type '((value?: string | undefined) => string | undefined)[]' lacks call signatures.(2349)
};