@maskito/phone
Version:
The optional framework-agnostic Maskito's package with phone masks
8 lines (7 loc) • 528 B
TypeScript
import type { MaskitoPreprocessor } from '@maskito/core';
import type { MaskitoPhoneParams } from '../phone-mask';
/**
* This preprocessor works only once at initialization phase (when `new Maskito(...)` is executed).
* This preprocessor helps to avoid conflicts during transition from one mask to another (for the same input).
*/
export declare function cutInitCountryCodePreprocessor({ countryIsoCode, metadata, format, }: Required<Pick<MaskitoPhoneParams, 'countryIsoCode' | 'format' | 'metadata'>>): MaskitoPreprocessor;