Commit Graph

15 Commits

Author SHA1 Message Date
Andy
ba8e532a9c react-router/v3: Fix test (#19277) 2017-08-28 11:48:01 -07:00
Andy
516ed213ca Fix all lint errors (#19253) 2017-08-22 14:27:36 -07:00
Bowden Kelly
6ed0a5a845 Merge pull request #18616 from ssorallen/v3-react-router-with-router
Type and export props from react-router's `withRouter`
2017-08-22 13:18:48 -07:00
Andy
5d6c651a1a Apply stricter lint rules (#19063) 2017-08-17 14:53:41 -07:00
Ross Allen
9a1aa8923c Move author attribution to v3 version, not v4 2017-08-04 17:44:56 -07:00
Ross Allen
6d09e851c9 Add detailed react-router withRouter example 2017-08-03 17:52:18 -07:00
Ross Allen
4023dce879 Type and export props from withRouter
In react-router v3.0.5, [`withRouter`][0] passes 4 props to the wrapped
component: `location`, `params`, `router`, and `routes`. These props are
different than those passed to `Route` components; these all come
directly from the Router either via `this.props` or `this.context`.

The component passed to `withRouter` are passed these props, but the
component returned from `withRouter` require only the component's own
props.

[0]: https://github.com/ReactTraining/react-router/blob/v3.0.5/modules/withRouter.js#L40
2017-08-03 16:49:26 -07: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
Mohamed Hegazy
e564537f7f Fix lint failures (#16329)
* fix lint failures

* Fix more lint failures

* Fix some more lint errors
2017-05-04 15:31:42 -07:00
Andy
5bf5228d71 Fix additional lint errors from the new dtslint (#15865) 2017-04-14 09:15:37 -07:00
Andy
bbc61fbf93 Extend "dtslint/dt.json" directly instead of "../tslint.json". (#15822)
* Extend "dtslint/dt.json" directly instead of "../tslint.json".

* Convert more "../tslint.json" to "dtslint/dt.json"

* no-redundant-modifiers -> strict-export-declare-modifiers
2017-04-14 08:04:05 -07:00
Andy
68e0aea47a Lint additional react packages (#15527) 2017-03-30 14:25:38 -07:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00