@maskito/kit
Version:
The optional framework-agnostic Maskito's package with ready-to-use masks
20 lines • 970 B
TypeScript
import type { MaskitoPreprocessor } from '@maskito/core';
/**
* 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({ decimalSeparator, decimalPseudoSeparators, pseudoMinuses, prefix, postfix, minusSign, }: {
decimalSeparator: string;
decimalPseudoSeparators: readonly string[];
pseudoMinuses: readonly string[];
prefix: string;
postfix: string;
minusSign: string;
}): MaskitoPreprocessor;
//# sourceMappingURL=initialization-only-preprocessor.d.ts.map