WA-232 Fix final-form types

This commit is contained in:
apanizo 2018-06-26 13:00:31 +02:00
parent b2a20f2147
commit f0cde75151

View File

@ -1,10 +1,14 @@
// @flow
import * as React from 'react'
import { type FormApi } from 'final-form'
import { Form } from 'react-final-form'
import type { FormApi } from 'react-final-form'
type Props = {
onSubmit: (values: Object, form: FormApi, callback: ?(errors: ?Object) => void) => ?Object | Promise<?Object> | void,
onSubmit: (
values: Object,
form: FormApi,
callback: ?(errors: ?Object) => ?Object
) => ?Object | Promise<?Object> | void,
children: Function,
padding: number,
validation?: (values: Object) => Object | Promise<Object>,