@ssts/email
Version:
Validate an email => true | false.
22 lines (20 loc) • 488 B
text/typescript
/**
* Validate an email => true | false.
* @param {string} email - required
* @returns {boolean} true | false
* @throws TypeError if the email is not a string
*
* @example
* import seniorEMAIL from "@ssts/email";
* const isEmail: boolean = seniorEMAIL("example@gmail.com");
*
* console.log(isEmail);
* // Log: true
*/
declare const seniorEMAIL: (email: string) => boolean;
declare global {
interface Window {
ssts: any;
}
}
export { seniorEMAIL as default };