Update type definitions for redux-form

Add `onSubmit` signature
Remove reference to `es6-promise`
This commit is contained in:
Daniel Lytkin
2016-02-01 15:05:41 +06:00
parent 6d3c9f422f
commit 3989a3b67f
3 changed files with 4 additions and 3 deletions
@@ -0,0 +1 @@
--target ES6
+2 -3
View File
@@ -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
+1
View File
@@ -0,0 +1 @@
--target ES6