UNPKG

ngx-phone-validators

Version:

An implementation of angular validators for Angular 2 and higher

13 lines (12 loc) 440 B
import { AbstractControl, ValidatorFn } from "@angular/forms"; export declare const regionsCode: { [key: string]: string; }; export declare class PhoneValidators { static checkRegionCode(local: string): boolean; static isValidRegionCode(control: AbstractControl): { [key: string]: boolean; }; static isPhoneNumber(local: string): ValidatorFn; static isPossibleNumberWithReason(local: string): ValidatorFn; }