Commit Graph

13 Commits

Author SHA1 Message Date
Michael Strobel
3b1ba96df2 [react-router] add RouteComponentProps.staticContext (#16812)
* [react-router] add RouteComponentProps.staticContext

* [react-router] revert RouteConfig test file

* [react-router] Add example for StaticRouter and staticContext
2017-05-31 21:56:38 -07:00
Daniel Rosenwasser
3b8b7625b7 Lints. 2017-05-30 01:17:26 -07:00
Daniel Rosenwasser
4e4890ccc8 Added tests for 'children' set to both elements and functions to elements in 'react-router'. 2017-05-30 00:58:35 -07:00
DaIgeb
fe1b612ef0 Allow component props for withRouter (#16339) 2017-05-05 10:38:55 -07:00
DaIgeb
585178525c Update SwitchProps to support typescript 2.3 (#16340)
SwitchProps.children is too strict for projects using typescript 2.3.
With typescript 2.3 the children could be made mandatory, but this will
break backwards compatibility with any ts 2.2 user
2017-05-05 10:11:16 -07: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
Denis
ddb6d939c3 TS Linting react-router (#16240)
- Using default `dtslint/dt.json` for linting
2017-05-01 13:47:36 -07:00
Jeremy Fauvel
cb42760188 Add missing Redirect props (#16195)
Add an optional extended description…
2017-04-28 10:54:07 -07:00
Nathan Shively-Sanders
f4ce20f619 Merge pull request #15403 from kryops/react-router4
react-router MemoryRouter.initialEntries can be string[]
2017-04-06 09:03:33 -07:00
Andy
68e0aea47a Lint additional react packages (#15527) 2017-03-30 14:25:38 -07:00
Michael Strobel
4a2542e4af react-router MemoryRouter.initialEntries
* Use History.LocationDescriptor[]
* Add example
2017-03-29 08:07:50 +08:00
Huy Nguyen
3e626b8949 Add type of context for react-router & react-router-dom
The `Router` component passes a context object down to children.  This
commit adds the type definition for this context object for children of
`Router` to use.
2017-03-28 13:57:16 -04:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00