import { PhoneNumber } from "https://deno.land/x/deno_class_validator@v1.0.0/src/deps.ts";
Constructors
new
PhoneNumber(countryCallingCodeOrCountry: CountryCallingCode | CountryCode,
nationalNumber: NationalNumber,
metadata: MetadataJson,
Properties
optional
carrierCode: CarrierCodeoptional
country: CountryCodecountryCallingCode: CountryCallingCode
optional
ext: ExtensionnationalNumber: NationalNumber
number: E164Number
Methods
format(format: NumberFormat, options?: FormatNumberOptions): string
formatInternational(options?: FormatNumberOptionsWithoutIDD): string
formatNational(options?: FormatNumberOptionsWithoutIDD): string
getURI(options?: FormatNumberOptionsWithoutIDD): string
isEqual(phoneNumber: PhoneNumber): boolean
isNonGeographic(): boolean
isPossible(): boolean
isValid(): boolean