mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* feat(react-dependents): update to ts 2.8 * fix version mismatches * remove package.json * post merge updates * add package.json back again
28 lines
861 B
TypeScript
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;
|