DefinitelyTyped/react-maskedinput/react-maskedinput-tests.tsx
Karol Janyst 43751cf91f Add definitions for react-maskedinput (#13430)
* 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
2016-12-28 11:09:04 -05:00

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
}
}
} />
)
}
}