UNPKG

@energma/input-mask-react

Version:

A React component for input mask with dynamic formatting. No dependencies.

5 lines (4 loc) 376 B
import { Schema } from '../mask-input'; export declare const isValidChar: (currentChar: string, type: Schema["type"]) => boolean; export declare const applyMask: (rawInput: string, mask: string, staticIndexes: number[], symbol: Schema["symbol"]) => string; export declare const getCursorPositionAfterPaste: (rawInput: string, mask: string, staticIndexes: number[]) => number;