@maskito/kit
Version:
The optional framework-agnostic Maskito's package with ready-to-use masks
11 lines (10 loc) • 459 B
TypeScript
import type { MaskitoPostprocessor } from '@maskito/core';
export declare function createDateSegmentsZeroPaddingPostprocessor({ dateModeTemplate, dateSegmentSeparator, splitFn, uniteFn, }: {
dateModeTemplate: string;
dateSegmentSeparator: string;
splitFn: (value: string) => {
dateStrings: string[];
restPart?: string;
};
uniteFn: (validatedDateStrings: string[], initialValue: string) => string;
}): MaskitoPostprocessor;