8 lines
188 B
TypeScript
8 lines
188 B
TypeScript
|
export function validateEmail(value: string) {
|
||
|
return value.includes('@') || 'Invalid e-mail.';
|
||
|
}
|
||
|
|
||
|
export function validateRequiredField(value: any) {
|
||
|
return !!value || 'Required.';
|
||
|
}
|