From 3dc413aba533fcbbc3127800e6938ea9a1ad225a Mon Sep 17 00:00:00 2001 From: Erik Rasmussen Date: Tue, 11 Jun 2019 10:27:02 +0200 Subject: [PATCH] withTypes docs --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index e9378a08..2ff5bc6f 100644 --- a/README.md +++ b/README.md @@ -167,6 +167,7 @@ const MyForm = () => ( - [`useField`](#usefield) - [`useFormState`](#useformstate) - [`version: string`](#version-string) + - [`withTypes: () => { Form, FormSpy }`](#withtypest----formt-formspyt-) - [Types](#types) - [`FieldProps`](#fieldprops) - [`afterSubmit?: () => void`](#aftersubmit---void) @@ -496,6 +497,10 @@ The `useFormState` hook takes one optional parameter, which matches the exact sh The current used version of 🏁 React Final Form. +### `withTypes: () => { Form, FormSpy }` + +Provides versions of `Form` and `FormSpy` that will have strongly typed `values`. + --- ## Types