UNPKG

@maskito/phone

Version:

The optional framework-agnostic Maskito's package with phone masks

11 lines (10 loc) 448 B
import { type AsYouType, type CountryCode, type MetadataJson } from 'libphonenumber-js/core'; import type { MaskitoPhoneParams } from '../phone-mask'; export declare function getPhoneTemplate({ formatter, value, separator, countryIsoCode, metadata, format, }: { formatter: AsYouType; value: string; separator: string; countryIsoCode?: CountryCode; metadata?: MetadataJson; format?: MaskitoPhoneParams['format']; }): string;