UNPKG

mozambique-utils

Version:

Easy to use parsers and validators for mozambican (🇲🇿) data-type formatted strings.

14 lines (13 loc) • 497 B
import { CountryCodeOption, NetworkOperator } from "./helper/type/types"; interface MobileNumberOptions { allowedOperators?: NetworkOperator[]; countryCode?: CountryCodeOption; } /** * Returns whether the given mozambican mobile number is valid or not. * * @param {string} num the number to check * @returns true if valid, otherwise false. */ declare const isMobileNumberValid: (num: string, options?: MobileNumberOptions) => boolean; export default isMobileNumberValid;