Installation
npm install --save @types/react-maskedinput
Summary
This package contains type definitions for react-maskedinput (https://github.com/insin/react-maskedinput).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-maskedinput.
import * as React from "react";
export interface FormatCharacter {
validate(char: string): string;
transform?(char: string): string;
}
export interface CharsFormatters {
[char: string]: FormatCharacter;
}
export interface MaskedInputProps extends React.InputHTMLAttributes<any> {
mask: string;
formatCharacters?: CharsFormatters | undefined;
placeholderChar?: string | undefined;
}
declare class MaskedInput extends React.Component<MaskedInputProps> {}
export default MaskedInput;
Additional Details
- Last updated: Thu, 23 Dec 2021 23:35:37 GMT
- Dependencies: @types/react
- Global values: none
Credits
These definitions were written by Karol Janyst, and Carlos Bonetti.