I have this interface
export type onErrorType = ( name: keyof INewCustomerForm ) => boolean | undefined;
I have another interface IExist