Innovenergy_trunk/frontend/node_modules/email-validator/index.d.ts

20 lines
504 B
TypeScript
Raw Normal View History

/**
* Validate an email address.
* @param {string} email - The email address to validate.
* @returns {boolean}
*/
export function validate(email: string): boolean;
/**
* Async email validation.
* @param {string} email - The email address to validate.
* @param {AsyncCallback} callback - The callback to execute.
*/
export function validate_async(email: string, callback: AsyncCallback): void;
export interface AsyncCallback {
(err: any, isValideEmail: boolean): any;
}