Checks that all three assertions pass.
const userEmail = and(string, minLength(5), email);userEmail(1); // Error: typeuserEmail("a"); // Error: minLengthuserEmail("Hello world"); // Error: emailuserEmail("yamiteru@icloud.com"); // passes Copy
const userEmail = and(string, minLength(5), email);userEmail(1); // Error: typeuserEmail("a"); // Error: minLengthuserEmail("Hello world"); // Error: emailuserEmail("yamiteru@icloud.com"); // passes
Checks that all three assertions pass.
Example