mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add definitions for react-maskedinput * Add tslint.json * Add required compiler option * Add flag to compile against typescript 2.1 * Add semicolon, remove ts 2.1 target
23 lines
617 B
TypeScript
23 lines
617 B
TypeScript
import * as React from "react"
|
|
|
|
import * as MaskedInput from "react-maskedinput"
|
|
|
|
class Test extends React.Component<any, any> {
|
|
|
|
public render () {
|
|
return (
|
|
<MaskedInput mask="111"
|
|
placeholderChar="X"
|
|
formatCharacter={
|
|
{
|
|
"a" : {
|
|
validate: (char: string) => char,
|
|
transform: (char: string) => char
|
|
}
|
|
}
|
|
} />
|
|
)
|
|
}
|
|
|
|
}
|