Commit Graph

33 Commits

Author SHA1 Message Date
Nathan Shively-Sanders
a8a2ce2d4e Merge pull request #19259 from JozefBiros/redux-from-submission-error-fix
Added SubmissionError into export for immutabable
2017-09-06 09:21:30 -07:00
Andy
dc44f3ed72 Remove unexpected compiler options (#19589) 2017-09-06 07:46:17 -07:00
Andy
0537c1fb27 Add "private": true to every package.json (#19483) 2017-08-31 08:02:56 -07:00
Alex Young
d0eec2cba3 Add to contributors 2017-08-23 17:06:49 +01:00
Alex Young
1a85faf9f2 Modify injected Field input prop change function arguments
Add tests for input prop
2017-08-23 17:05:36 +01:00
Jozef Bíroš
16caa8fc42 Added SubmissionError into export for immutabable
Added SubmissionError into export in redux-from/immutable/index.d.ts
in order to be able to use SubmissionError with immutable store state.

In redux-form/lib/SubmissionError.d.ts changed default generic from void
to any, in order to be able to use it as is state redux-form docs.

http://redux-form.com/7.0.3/examples/submitValidation/

Because there is no way to pass anoter type into generic constructor
from real project.
2017-08-23 07:55:33 +02:00
Luke Venn
cd8057fe93 Added a more specific MetaSelector and FormMeta types to stronger type the object returned from the getFormMeta selector 2017-08-07 12:57:58 +01:00
LyraelRayne
7996db4cd9 [redux-form] added additional tests to test and demonstrate type infe… (#18502)
* [redux-form] added additional tests to test and demonstrate type inference when both initialValues and validate are present

* Added registeredFields property to InjectedFormProps

Done by request of @LKay to avoid unnecessary small pull requests
2017-08-01 14:52:44 -07:00
Andy
af8b0d1294 FIx new lint errors (#18382) 2017-07-25 10:34:23 -07:00
Karol Janyst
ff94dce8df Fix problem with generic form inputs props on Field in redux-form (#18276)
* Refactor some of the definitions for v7

* Add definitions for formValues decorator

* Refactor definitions for Field, Fields, FieldArray, add tests

* Add files to tsconfig

* Fix immutable version of exports

* Clean up the code, change some types

* Add improvement to generic components

* Remove accidentally added files

* Remove conflicting tests file
2017-07-21 10:05:25 -07:00
Karol Janyst
ac247f70e2 Update redux-form to version 7 (#18168)
* Refactor some of the definitions for v7

* Add definitions for formValues decorator

* Refactor definitions for Field, Fields, FieldArray, add tests

* Add files to tsconfig

* Fix immutable version of exports

* Clean up the code, change some types
2017-07-19 21:01:43 -07:00
Eduard de Araújo Alves
717ecbb895 Add types for 'redux-form/immutable' sub-module. (#17457)
* Add types for 'redux-form/immutable' sub-module.

* Add immutable typing file to tsconfig.json
Add an author

* Add tests for 'redux-form/immutable'
2017-07-17 09:48:08 -07:00
Ryan Cavanaugh
cd0902318d Merge pull request #17650 from husainshabbir/redux-form-update
[redux-form] Fixed definitions to handle FieldArray errors.
2017-07-10 13:35:00 -07:00
Gavin Sitthiampornphan
d5aba66148 Types for error and warning should not be a string
From the [doc](http://redux-form.com/6.8.0/docs/api/Field.md/), error and warning are 
> usually, but not necessarily, a String
2017-07-03 10:51:09 +07:00
Hussein Shabbir
94cf810b99 Fixed definitions to handle FieldArray errors. 2017-06-30 14:32:30 +04:00
Luka Zakrajsek
bf57cf89e2 Update definitions by 2017-06-27 14:43:22 +02:00
Luka Zakrajsek
c2cd577e36 Add StrictFormProps comment 2017-06-26 17:03:40 +02:00
Luka Zakrajsek
c5c27159d3 Add tests for reducer plugin and action types 2017-06-26 17:03:11 +02:00
Luka Zakrajsek
561e997813 Add StrictFormProps 2017-06-26 17:02:36 +02:00
Luka Zakrajsek
beaa0068a7 Add FormAction 2017-06-26 17:01:24 +02:00
Luka Zakrajsek
0cdf591f07 Fix reducer plugin 2017-06-26 17:01:08 +02:00
Luka Zakrajsek
8000e19efa Add actionTypes 2017-06-26 17:00:23 +02:00
Tanguy Krotoff
573083a518 Replace React.Component<(any|void|\{\}|null)> by React.Component
+ many manual adjustments
2017-06-21 09:48:37 +02:00
Tanguy Krotoff
ea9de8a518 Replace React.Component<(.*), (any|void|\{\}|null)> by React.Component<$1>
+ many manual adjustments
2017-06-19 13:35:50 +02:00
Tanguy Krotoff
eeb262e1d8 Update react to TypeScript 2.3 2017-06-19 13:34:54 +02:00
shuntksh
a33db7e97c Add missing selector to redux-form 2017-06-13 20:36:39 -07:00
Blake Embrey
f527af6ed3 Annotate react-redux more explicitly 2017-06-05 16:09:30 -04:00
Alexander James Phillips
8e9543bf94 Update redux-form-tests.tsx
Improve test examples use of state
2017-05-25 02:56:44 +01:00
Alexander James Phillips
bc6bf3c316 Add example of using initialValues 2017-05-25 01:49:23 +01:00
Dan Corder
d2f5ddec1e Add missing props parameter to onSubmitFail and onSubmitSuccess in redux-form (#16108)
* Add missing props parameter to onSubmitFail and onSubmitSuccess

* Update comments
2017-04-25 15:50:17 -07:00
Karol Janyst
c5c2e50f78 Add quick redx-form fixes 2017-04-10 10:21:22 +09:00
Karol Janyst
2b391022e4 Add missing types and interfaces, improve definitions to match 6.6 api… (#15136)
* Add missing types and interfaces, iprove definitions to match 6.5 api, remove unused definitions

* Imporove types, add missing config options and actions

* Change type for validate and warn

* Add missing selectors, restore unnecessarily deleted actions

* Add things that were added in 6.6.0
2017-04-04 07:51:20 -07:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00