mozambique-utils
Version:
Easy to use parsers and validators for mozambican (🇲🇿) data-type formatted strings.
14 lines (13 loc) • 487 B
TypeScript
import { CountryCodeOption, Region } from "./helper/type/types";
interface LandlineNumberOptions {
allowedRegions?: Region[];
countryCode?: CountryCodeOption;
}
/**
* Returns whether the given mozambican landline number is valid or not.
*
* @param {string} num the number to check
* @returns true if valid, otherwise false.
*/
declare const isLandlineNumberValid: (num: string, options?: LandlineNumberOptions) => boolean;
export default isLandlineNumberValid;