UNPKG

@valkyriestudios/validator

Version:

A lightweight configurable javascript validator

11 lines (10 loc) 426 B
import { type Phone } from '../types'; /** * Validate that a string is a valid phone number (will match phone numbers entered with * delimiters such as spaces, dots, brackets, etc, and supports international phone numbers) * Take Note: Does not check that the phone number is in use * * @param {unknown} val - Value to verify */ declare function vPhone(val: unknown): val is Phone; export { vPhone, vPhone as default };