Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
class AsYouType
import { AsYouType } from "https://deno.land/x/deno_libphonenumber@v1.9.20/mod.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