Skip to main content
The Deno 2 Release Candidate is here
Learn more
class AsYouType
import { AsYouType } from "https://deno.land/x/deno_libphonenumber@v1.9.20/index.d.ts";

Constructors

new
AsYouType(defaultCountryCode?: CountryCode | { defaultCountry?: CountryCode; defaultCallingCode?: string; })

Properties

country: CountryCode | undefined

Methods

getCallingCode(): string | undefined
getChars(): string
getCountry(): CountryCode | undefined
getNumber(): PhoneNumber | undefined
getTemplate(): string
input(text: string): string
isInternational(): boolean
isPossible(): boolean
isValid(): boolean
reset(): void