mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Add StrictFormProps comment
This commit is contained in:
Vendored
+5
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user