Skip to content

Commit 09f46da

Browse files
committed
Move form file to typescript
1 parent 88ee167 commit 09f46da

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/components/Form.js renamed to src/components/Form.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ import {
1818
} from "../utils";
1919
import validateFormData, { toErrorList } from "../validate";
2020

21-
export default class Form extends Component {
21+
interface IFormProps {
22+
[x: string]: any,
23+
formElement: any
24+
}
25+
26+
export default class Form extends Component<IFormProps, any> {
2227
static defaultProps = {
2328
uiSchema: {},
2429
noValidate: false,

0 commit comments

Comments
 (0)