Commit Graph

54 Commits

Author SHA1 Message Date
Jake Goulding
c719882355 Add asyncChangeFields to ConfigProps (#21915)
Mirroring change in erikras/redux-form#3531
2018-01-02 22:36:54 -08:00
Anton
e881813b23 [redux-form] - Fix test and linting errors (#20982)
* [redux-form] - Fix linter error for redux-form v7

* replace tsconfig 'include' with 'files' property

* [redux-form] - Fix linter error for redux-form v4 and v6

* [redux-form] - disable tslint rule 'no-redundant-jsdoc' for redux-form v4

* Fix lint failures
2018-01-02 17:33:33 -08:00
Andy
1fd382d8fd redux-form: Fix test (#22136) 2017-12-18 10:13:30 -08:00
Andy
4c7c978694 redux-form: Fix test (#22168) 2017-12-18 10:13:07 -08:00
Mine Starks
656bc36ca4 Merge pull request #21824 from itoasuka/master
[redux-form] Support for TypeScript 2.6 strict function types
2017-12-13 11:18:58 -08:00
Andy Hanson
92b0ece128 Miscellaneous test fixes 2017-12-12 12:21:19 -08:00
Asuka Ito
b2bab1dec0 Support for TypeScript 2.6 strict function types
and remove unnecessary import.
2017-11-29 17:14:42 +09:00
Benjamin Lichtman
90ad13b4a3 Merge pull request #21090 from JozefBiros/redux-form-fix-field-array-props
Actualized FieldArrayProps according to redux-form  v7.1.2
2017-11-21 11:18:42 -08:00
Nathan Shively-Sanders
55b1c9b2c3 Merge pull request #20810 from doomsower/redux-form-custom-fields
[redux-form] Export BaseFieldProps
2017-11-13 16:25:45 -08:00
Daniel Rosenwasser
49a58bb731 Merge pull request #21204 from messutied/patch-1
redux-form: added missing label?: string field
2017-11-09 01:38:32 -08:00
Andy
954ee278de Update TypeScript Versions to be at least as high as dependencies' versions (#21288)
* Update `TypeScript Version`s to be at least as high as dependencies' versions

* Run through again
2017-11-08 09:12:14 -08:00
Eduardo Messuti
06a49e301d redux-form: added missing label?: string field
This field seems to be missing,
according to https://redux-form.com/7.1.2/examples/syncvalidation/ it should be available
2017-11-02 18:10:16 +01:00
Jozef Bíroš
9e0c0e74fb Actualized FieldArrayMetaProps and FieldProps according to flow types from redux-form v7.1.2 2017-10-28 11:38:09 +02:00
Bel
11f8e48772 Add exports to other non default interfaces for Field props (#20964) 2017-10-27 11:13:39 -07:00
Andy
19f89399e4 Ensure every package has a tslint.json (#21009)
* Ensure every package has a tslint.json

* Fixes
2017-10-25 11:13:50 -07:00
doomsower
44f2375b73 Export BaseFieldProps 2017-10-22 11:17:41 +03:00
Mihhail Arhipov
72a17cebba [redux-form] - Added missing error property for FIeldState in v6 (#20522)
* Added missing property for FieldState

* Changed the type from string to any to match v7
2017-10-18 11:34:10 -07:00
John Gozde
bbf3e9cb0b [react]: Remove deprecated+removed APIs (#20409)
* create-react-class: add definitions

* react-dom-factories: add definitions

* create-react-class: add tests, fix errors

* react-dom-factories: add tests, fix lint

* react: remove previously deprecated APIs

* Remove deprecated usages in other definitions

* redux-form: disable strictFunctionTypes

Changes to react typings revealed errors in redux-form that are present
in 'master'. This needs to be handled separately.

* Update create-react-class, react-dom-factories author

* Avoid importing create-react-class where possible

* Move top-level createReactClass tests to create-react-class
2017-10-16 15:22:04 -07:00
Flarna
7671753459 [redux-form] Fix tests by setting strictFunctionTypes to false (#20571) 2017-10-13 13:14:34 -07:00
Andy
947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Bel
dffd06e0ab redux-form: Allow direct importing to reduce bundle size and add some default exports (#20147)
* Add some export defaults to match the library and allow importing directly from lib files

- also updated some of the actions while touching that file

* Fix extra new line in redux form
2017-10-06 11:25:11 -07:00
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