@maskito/core
Version:
The main zero-dependency and framework-agnostic Maskito's package to create an input mask
12 lines (11 loc) • 465 B
TypeScript
import type { ElementState, MaskitoOptions, SelectionRange } from '../../types';
export declare class MaskModel implements ElementState {
private readonly maskOptions;
private readonly unmaskInitialState;
value: string;
selection: SelectionRange;
constructor(initialElementState: ElementState, maskOptions: Required<MaskitoOptions>);
addCharacters(newCharacters: string): void;
deleteCharacters(): void;
private getMaskExpression;
}