Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit d5758f4

Browse files
authored
Merge pull request #1136 from elijah-schow/master
Fix #1135
2 parents b342c48 + 78e7109 commit d5758f4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

react-redux-form.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,20 @@ interface BaseFormProps {
409409
* Indicates whether native HTML5 constraint validation error messages should be shown. This does not preclude the form from failing to submit if native validation fails.
410410
*/
411411
hideNativeErrors?: boolean;
412+
/**
413+
* Specify an encoding method for the body of the form's POST request.
414+
*
415+
* The possible values are:
416+
* * application/x-www-form-urlencoded (Default): all characters are encoded
417+
* before being sent. Spaces are converted to "+" and symbols are
418+
* converted to ASCII HEX values.
419+
* * multipart/form-data: No characters are encoded. This option is required
420+
* for forms with file inputs.
421+
* * text/plain: Spaces are converted to "+", but symbols are not encoded.
422+
* Its behavior is unpredictable, so avoid this option unless you
423+
* know what you're doing.
424+
*/
425+
encType?: 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain';
412426
}
413427
export interface FormProps extends BaseFormProps {
414428
/**

0 commit comments

Comments
 (0)