diff --git a/src/email.js b/src/email.ts similarity index 92% rename from src/email.js rename to src/email.ts index 6e2ed69bb7..6642a51541 100644 --- a/src/email.js +++ b/src/email.ts @@ -16,6 +16,6 @@ limitations under the License. const EMAIL_ADDRESS_REGEX = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i; -export function looksValid(email) { +export function looksValid(email: string): boolean { return EMAIL_ADDRESS_REGEX.test(email); }