You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					20 lines
				
				504 B
			
		
		
			
		
	
	
					20 lines
				
				504 B
			| 
								 
											3 years ago
										 
									 | 
							
								/**
							 | 
						||
| 
								 | 
							
								 * 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;
							 | 
						||
| 
								 | 
							
								}
							 |