UNPKG

@react-bunker/input-mask

Version:

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

10 lines (9 loc) 276 B
import { RefObject } from 'react'; export type Mask = string | { set: (input: string) => string; clear: (input: string) => string; }; export type HTMLInput = HTMLInputElement & { 'rb-value': string; }; export type Target = RefObject<HTMLInput | null> | undefined;