Commit Graph

31 Commits

Author SHA1 Message Date
Andy
7e14f27122 react-redux: Does not use react-router, so remove it from tests (#14090) 2017-01-18 10:07:09 -08:00
Nathan Shively-Sanders
5e221bedd9 Revert "More accurate hinted and inferred types for react-redux connect()"
This reverts commit 27b98d0580.
2016-11-24 07:56:58 -08:00
Kyle Herock
27b98d0580 More accurate hinted and inferred types for react-redux connect()
- Cleaned up and made the typings and tests consistent stylewise
- Support typings for the mergeProps parameter
- Allow mapStateToProps and mapDispatchToProps to be optional when type parameters are provided
- Make static members accessible on the wrapped component
- Use stricter typings in the quick start counter tests
- Added a single type variable form for connect to specify TOwnProps
2016-11-14 17:30:45 -05:00
zhengbli
c2a54db3e9 Merge branch 'master' into types-2.0
# Conflicts:
#	amcharts/AmCharts.d.ts
#	angular-gettext/angular-gettext.d.ts
#	angular-jwt/angular-jwt.d.ts
#	angular-material/angular-material.d.ts
#	angularjs/angular.d.ts
#	auth0-js/auth0-js.d.ts
#	aws-lambda/aws-lambda.d.ts
#	aws-sdk/aws-sdk.d.ts
#	azure-mobile-apps/azure-mobile-apps.d.ts
#	azure-mobile-services-client/AzureMobileServicesClient.d.ts
#	blessed/blessed-tests.ts
#	blessed/blessed.d.ts
#	bootbox/bootbox.d.ts
#	bowser/bowser.d.ts
#	cache-manager/cache-manager.d.ts
#	chai-things/chai-things.d.ts
#	colors/colors.d.ts
#	cordova/cordova-tests.ts
#	cordova/plugins/Contacts.d.ts
#	cordova/plugins/FileSystem.d.ts
#	couchbase/couchbase.d.ts
#	cucumber/cucumber-tests.ts
#	cucumber/cucumber.d.ts
#	d3/d3.d.ts
#	dojo/dojo.d.ts
#	dustjs-linkedin/dustjs-linkedin.d.ts
#	esprima/esprima.d.ts
#	express-serve-static-core/express-serve-static-core.d.ts
#	express-session/express-session.d.ts
#	fetch-mock/fetch-mock.d.ts
#	fs-extra/fs-extra.d.ts
#	fullCalendar/fullCalendar.d.ts
#	github-electron/github-electron.d.ts
#	gulp-uglify/gulp-uglify.d.ts
#	gulp/gulp.d.ts
#	highcharts/highcharts.d.ts
#	imap/imap.d.ts
#	incremental-dom/incremental-dom.d.ts
#	inversify/inversify.d.ts
#	ionic/ionic.d.ts
#	ioredis/ioredis.d.ts
#	isomorphic-fetch/isomorphic-fetch-tests.ts
#	jake/jake.d.ts
#	joi/joi.d.ts
#	jquery-mockjax/jquery-mockjax.d.ts
#	jquery/jquery.d.ts
#	js-data-http/js-data-http-tests.ts
#	js-data-http/js-data-http.d.ts
#	js-data/js-data.d.ts
#	jsdom/jsdom.d.ts
#	jsts/jsts-tests.ts
#	knex/knex.d.ts
#	koa-favicon/koa-favicon.d.ts
#	koa-router/koa-router-tests.ts
#	koa-router/koa-router.d.ts
#	lodash/lodash.d.ts
#	mailparser/mailparser.d.ts
#	maquette/maquette.d.ts
#	material-ui/material-ui.d.ts
#	matter-js/matter-js.d.ts
#	moment/moment.d.ts
#	mongoose-promise/mongoose-promise-tests.ts
#	mongoose/mongoose-tests.ts
#	mongoose/mongoose.d.ts
#	multer/multer.d.ts
#	ncp/ncp.d.ts
#	nock/nock.d.ts
#	node/node-tests.ts
#	node/node.d.ts
#	nvd3/nvd3.d.ts
#	object-assign/object-assign.d.ts
#	openlayers/openlayers.d.ts
#	parse/parse.d.ts
#	pdf/pdf.d.ts
#	pdfkit/pdfkit.d.ts
#	pg/pg.d.ts
#	pixi.js/pixi.js.d.ts
#	progress/progress.d.ts
#	pusher-js/pusher-js.d.ts
#	quill/quill-tests.ts
#	quill/quill.d.ts
#	radium/radium.d.ts
#	ravenjs/ravenjs-tests.ts
#	react-dropzone/react-dropzone.d.ts
#	react-mdl/react-mdl.d.ts
#	react-native/react-native.d.ts
#	react-notification-system/react-notification-system.d.ts
#	react-router/history-tests.ts
#	react-router/react-router-tests.tsx
#	react-router/react-router.d.ts
#	react-select/react-select-tests.tsx
#	react-select/react-select.d.ts
#	react/react.d.ts
#	redux-form/redux-form.d.ts
#	request-promise/request-promise.d.ts
#	resolve-from/resolve-from.d.ts
#	riot-api-nodejs/riot-api-nodejs.d.ts
#	sanitize-html/sanitize-html.d.ts
#	segment-analytics/segment-analytics.d.ts
#	simple-assign/simple-assign-tests.ts
#	simple-assign/simple-assign.d.ts
#	slate-irc/slate-irc.d.ts
#	soap/soap.d.ts
#	socket.io/socket.io.d.ts
#	sql.js/sql.js-tests.ts
#	sql.js/sql.js.d.ts
#	steam/steam.d.ts
#	stylus/stylus.d.ts
#	swiper/swiper.d.ts
#	tedious/tedious.d.ts
#	threejs/three.d.ts
#	twilio/twilio.d.ts
#	underscore/underscore.d.ts
#	ws/ws.d.ts
#	yeoman-generator/yeoman-generator.d.ts
2016-09-14 18:44:24 -07:00
Sheetal Nandi
42ce1506a3 Revert "Strictly typed component decorator support" 2016-09-08 11:33:46 -07:00
Cameron Crothers
be69085172 Strictly typed component decorator support 2016-09-08 10:37:40 +10:00
Ivo Stratev
f340b21d40 Fixing broken test due to object-assign type definition change
Not familiar with redux but merging and `dispatchProps` in `mergeProps` seems valid since `action` is required property of `DispatchProps`  and  should come from somewhere.
2016-08-19 23:19:38 +03:00
Ryan Cavanaugh
b488f3cb5f Merge remote-tracking branch 'upstream/master' into merge_7_25 2016-07-27 10:57:46 -07:00
Ryan Cavanaugh
e223030331 Fix 2.0 branch to passing again 2016-07-21 10:07:13 -07:00
Jussi Kosunen
7d13cf113d react-redux: Allow wrapper function for connect arguments (#10136)
* Allow wrapper function for connect arguments

* added tests for connect wrapper functions
2016-07-19 17:32:45 -07:00
Kaur Kuut
d417f687ab Fixed redux dependent definitions. 2016-07-03 15:09:21 +03:00
Ryan Cavanaugh
2847235610 More fixes around __React 2016-05-12 17:07:04 -07:00
Ryan Cavanaugh
50387d4046 Change relative reference paths to types references. Errors incoming... 2016-05-09 18:06:27 -07:00
Ryan Cavanaugh
81862d240d More fixes 2016-05-04 22:50:05 -07:00
Ryan Cavanaugh
fa204a87d1 Remove obsolesced reference comments 2016-04-27 21:53:46 -07:00
Larry Myers
3faa118b04 Add StatelessComponent<TOriginalProps> as a union type for ComponentDecorator. It allows StatelessComponents to work with the connect method signature that takes mapStateToProps and mapDispatchToProps functions. 2016-04-06 20:56:00 +09:00
Sean Kelley
8a7d208e0d react-redux: Fix compilation error for dumb reason. 2016-03-31 11:06:38 -07:00
Sean Kelley
da656da263 Add a test for the issue discussed in #8787. 2016-03-31 10:59:47 -07:00
Ciuca, Alexandru
46c75c80b5 Merge branch 'master' into react-redux-connect
Conflicts:
	react-redux/react-redux-tests.tsx
	react-redux/react-redux.d.ts
2016-03-04 16:52:44 +02:00
Ciuca, Alexandru
206c964ed1 react-redux: stricter typing of connect 2016-03-02 19:58:14 +02:00
tkqubo
4169370da2 feat: add react-redux 4.4.0 2016-02-26 14:37:34 +09:00
tkqubo
28f7cc66d4 rename file names to fix the version 2016-02-26 14:37:34 +09:00
Sergey Buturlakin
3aa3970f22 Merge remote-tracking branch 'remotes/upstream/master'
Conflicts:
	react-router/react-router-tests.ts
2015-11-19 19:44:12 +02:00
James Brantly
99443d33d5 Update tests for dependencies of React to work with v0.14 2015-11-11 09:47:20 -05:00
tkqubo
a513c4df6e make connect stricter 2015-10-20 21:19:56 +09:00
tkqubo
ddbcdd0d55 Make connect return correct type 2015-10-19 23:19:04 +09:00
Sergey Buturlakin
4a33c914d1 Add tests
Restore old definitions as react-router-0.13.3.d.ts
Update react-redux to use old definitions
2015-09-30 19:27:10 +03:00
tkqubo
387387b143 Add more detailed typings about connect arguments 2015-09-24 00:47:16 +09:00
tkqubo
c5240e2aef Remove lines that are not compilable with current version of react-router (?) 2015-09-24 00:27:47 +09:00
tkqubo
b83c3b8895 Add react-redux 2015-09-24 00:11:48 +09:00
tkqubo
33dbe07ff5 Adding react-redux 2015-09-23 23:15:26 +09:00