It has only one required parameter - country.
It is an enum that library imports.
Right now, next list of countries are available for the validator:
It can be imported in next way: import {{'{'}}IMPhoneNumberValidator{{'}'}} from 'im-angular-validators'; To pass country parameter, you have to import enum from library: import {{'{'}}IMCountryEnum{{'}'}} from 'im-angular-validators'; Also, error interface that validator returns can be imported as well: import {{'{'}}IMPhoneNumberErrorInterface{{'}'}} from 'im-angular-validators';
Please, take a look at the validator APIs for more detailed information.