mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
Update type definitions for redux-form
Add `onSubmit` signature Remove reference to `es6-promise`
This commit is contained in:
@@ -0,0 +1 @@
|
||||
--target ES6
|
||||
Vendored
+2
-3
@@ -4,7 +4,6 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
|
||||
/// <reference path="../es6-promise/es6-promise.d.ts"/>
|
||||
/// <reference path="../react/react.d.ts" />
|
||||
/// <reference path="../redux/redux.d.ts" />
|
||||
|
||||
@@ -326,7 +325,7 @@ declare module 'redux-form' {
|
||||
*
|
||||
* See Asynchronous Blur Validation Example for more details.
|
||||
*/
|
||||
asyncValidate?(values:Object, dispatch:Dispatch, props:Object):
|
||||
asyncValidate?(values:FormData, dispatch:Dispatch, props:Object):
|
||||
Promise<any>;
|
||||
|
||||
/**
|
||||
@@ -366,7 +365,7 @@ declare module 'redux-form' {
|
||||
* you must pass it as a parameter to handleSubmit() inside your form
|
||||
* component.
|
||||
*/
|
||||
onSubmit?: Function;
|
||||
onSubmit?(values:FormData, dispatch?:Dispatch):any;
|
||||
|
||||
/**
|
||||
* If specified, all the props normally passed into your decorated
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
--target ES6
|
||||
Reference in New Issue
Block a user