UNPKG

@maskito/kit

Version:

The optional framework-agnostic Maskito's package with ready-to-use masks

14 lines 952 B
import type { MaskitoPreprocessor } from '@maskito/core'; import type { MaskitoNumberParams } from '../number-params'; /** * 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). * For example, the developer changes postfix (or other mask's props) during run-time. * ``` * let maskitoOptions = maskitoNumberOptionsGenerator({postfix: ' year'}); * // [3 seconds later] * maskitoOptions = maskitoNumberOptionsGenerator({postfix: ' years'}); * ``` */ export declare function createInitializationOnlyPreprocessor(params: Pick<Required<MaskitoNumberParams>, 'decimalPseudoSeparators' | 'decimalSeparator' | 'maximumFractionDigits' | 'minusPseudoSigns' | 'minusSign' | 'negativePattern' | 'postfix' | 'prefix'>): MaskitoPreprocessor; //# sourceMappingURL=initialization-only-preprocessor.d.ts.map