Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno_class_validator/src/deps.ts>AsYouType

Decorator-based property validation for classes.
Latest
class AsYouType
import { AsYouType } from "https://deno.land/x/deno_class_validator@v1.0.0/src/deps.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