Add StrictFormProps comment

This commit is contained in:
Luka Zakrajsek
2017-06-26 17:03:40 +02:00
parent c5c27159d3
commit c2cd577e36
+5
View File
@@ -337,6 +337,11 @@ export interface FormComponent<FormData extends DataShape, P, S> extends Compone
wrappedInstance: ReactElement<P & FormProps<FormData, P, S>>
}
/**
* These are the props that will be passed to your form component.
* Your form component's props can extend this interface if you want
* to use strict checks.
*/
export interface StrictFormProps<FormData extends DataShape, P, S> {
/**
* true if any of the fields have been marked as touched, false otherwise.