@react-bunker/input-mask
Version:
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
12 lines (11 loc) • 419 B
TypeScript
import { masks } from '../helpers/pre-assembled-masks';
import { Mask } from '../types';
export declare class MaskService {
private readonly maskConfig;
set(masks: string, input: string): string;
clear(masks: string, input: string): string;
get(mask?: Mask | ((mask: typeof masks) => Mask)): Mask;
private findSuitableMask;
private findMajority;
}
export declare const maskService: MaskService;