rsuite
Version:
A suite of react components
11 lines (10 loc) • 350 B
TypeScript
export interface ConfigType {
guide?: boolean;
previousConformedValue?: string;
placeholderChar?: string;
placeholder?: string;
currentCaretPosition?: number;
keepCharPositions?: boolean;
}
export type MaskType = string | (string | RegExp)[];
export type MaskFunctionType = (rawValue: string, config: ConfigType) => MaskType;