score:0

Accepted answer
interface Contact {
  email: string;
  password: string;
  // include other required properties
}

type Error = Partial<Contact>;

const ValidateLogin = (contact: Contact) => {
  let errors: Error = {};
  // rest of the code
};

Related Query

More Query from same tag