DefinitelyTyped/types/react-maskedinput/index.d.ts
Ferdy Budhidharma bc0c933415 feat(react-dependents): update to TS 2.8 (part 2 of 2) (#27744)
* feat(react-dependents): update to ts 2.8

* fix version mismatches

* remove package.json

* post merge updates

* add package.json back again
2018-08-06 06:28:42 +01:00

28 lines
861 B
TypeScript

// Type definitions for react-maskedinput 4.0
// Project: https://github.com/insin/react-maskedinput
// Definitions by: Karol Janyst <https://github.com/LKay>
// Adam Lavin <https://github.com/lavoaster>
// Carlos Bonetti <https://github.com/CarlosBonetti>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
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;
placeholderChar?: string;
}
declare class MaskedInput extends React.Component<MaskedInputProps> {}
export default MaskedInput;