@types/react-maskedinput
Advanced tools
Comparing version 3.3.3 to 4.0.0
@@ -1,31 +0,26 @@ | ||
// Type definitions for react-maskedinput 3.3 | ||
// Type definitions for react-maskedinput 4.0 | ||
// Project: https://github.com/insin/react-maskedinput | ||
// Definitions by: Karol Janyst <https://github.com/LKay> | ||
// Definitions by: Karol Janyst <https://github.com/LKay>, | ||
// Adam Lavin <https://github.com/lavoaster> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.3 | ||
import { ComponentClass, HTMLAttributes } from "react"; | ||
import * as React from "react"; | ||
export as namespace MaskedInput; | ||
export interface FormatCharacter { | ||
validate(char: string): string; | ||
transform?(char: string): string; | ||
} | ||
export = MaskedInput; | ||
export interface CharsFormatters { | ||
[char: string]: FormatCharacter; | ||
} | ||
declare const MaskedInput: MaskedInput; | ||
type MaskedInput = ComponentClass<MaskedInput.MaskedInputProps>; | ||
export interface MaskedInputProps extends React.HTMLAttributes<any> { | ||
mask: string; | ||
formatCharacter?: CharsFormatters; | ||
placeholderChar?: string; | ||
} | ||
declare namespace MaskedInput { | ||
interface FormatCharacter { | ||
validate(char: string): string; | ||
transform?(char: string): string; | ||
} | ||
interface CharsFormatters { | ||
[char: string]: FormatCharacter; | ||
} | ||
interface MaskedInputProps extends HTMLAttributes<any> { | ||
mask: string; | ||
formatCharacter?: CharsFormatters; | ||
placeholderChar?: string; | ||
} | ||
} | ||
declare class MaskedInput extends React.Component<MaskedInputProps> {} | ||
export default MaskedInput; |
{ | ||
"name": "@types/react-maskedinput", | ||
"version": "3.3.3", | ||
"version": "4.0.0", | ||
"description": "TypeScript definitions for react-maskedinput", | ||
@@ -10,2 +10,6 @@ "license": "MIT", | ||
"url": "https://github.com/LKay" | ||
}, | ||
{ | ||
"name": "Adam Lavin", | ||
"url": "https://github.com/lavoaster" | ||
} | ||
@@ -23,4 +27,4 @@ ], | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "d94a661de880bf174b79c2de21ae7826112de197e454bc70ca5aafaee178042f", | ||
"typesPublisherContentHash": "3e0947b9dd638a5bd12437b8597a17d29b357c3caaed1ae8b814bd750921c2c9", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -11,7 +11,7 @@ # Installation | ||
Additional Details | ||
* Last updated: Fri, 23 Jun 2017 17:36:34 GMT | ||
* Last updated: Mon, 17 Jul 2017 19:27:11 GMT | ||
* Dependencies: react | ||
* Global values: MaskedInput | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Karol Janyst <https://github.com/LKay>. | ||
These definitions were written by Karol Janyst <https://github.com/LKay>, Adam Lavin <https://github.com/lavoaster>. |
3271
21