Commit Graph
61 Commits
Author SHA1 Message Date
Alex Wendland be9ecbf1d9 Add withRouter to react-router 2016-08-13 16:30:16 -07:00
Mohamed HegazyandGitHub d5282ee8f1 Merge pull request #9530 from rogierschouten/react-router-getcomponents
getComponent/getComponents now takes state parameter instead of location
2016-06-21 14:53:00 -07:00
ephoton 93c443f2c1 Export type RouteProps 2016-06-21 00:46:37 +08:00
Artur EshenbrenerandMasahiro Wakame f20a05ba43 react-router: History.Location missed prop "hash" (#9567) 2016-06-08 19:27:30 +09:00
Artur EshenbrenerandMasahiro Wakame df9065dc6e react-router: export routerShape and historyShape (#9551)
https://github.com/reactjs/react-router/blob/0616f6e14337f68d3ce9f758aa73f83a255d6db3/modules/PropTypes.js#L9
https://github.com/reactjs/react-router/blob/0616f6e14337f68d3ce9f758aa73f83a255d6db3/modules/PropTypes.js#L19
2016-06-08 19:17:47 +09:00
François GuillotandMasahiro Wakame 1737fbff88 Typing Location.Query to K,V dictionary (#9524)
* Typing Location.Query to K,V dictionary

Location.Query is actually typed as 'Object', which forces to cast it to 'any' anytime you need to access one of your own query string parameter.

    const clientId = (this.props.location.query as any).clientId;

It should be typed as '{ [key: string]: string; }' since it's a dictionary where you can get your arbitrary named query string parameters.

* Fixing travis build
2016-06-03 00:49:05 +09:00
Rogier Schouten fceb0e37c0 getComponent/getComponents now takes state parameter instead of location
see
https://github.com/reactjs/react-router/commit/0cdee03a54aeb79f7c7e35628e3ba58bde54e2bd
2016-06-02 12:00:24 +02:00
ascodersandMasahiro Wakame 152fb904df update react-router.d.ts (#9066)
add basename to MatchArgs
2016-05-02 00:55:36 +09:00
Prasanna V. LoganatharandMasahiro Wakame b56b92096d MatchArgs can also take a string (#8221)
MatchArgs `location` is either a HistoryModule.Location, or a url string, which is converted to location automatically.
2016-04-23 15:21:33 +09:00
Thomas HourlierandMasahiro Wakame fa4c230580 Add createMemoryHistory to react-router. (#8728)
Since the version 2.0.0, react-router exports createMemoryHistory.
2016-04-23 15:19:41 +09:00
Giedrius Grabauskas e42fc3e471 Updated react-router 2.0
Added onchange hook.
Updated all hooks.
Params changed from object to dictionary.
Changed to use location descriptor.
2016-03-30 15:46:59 +03:00
vvakame 7de6c3dd94 Merge branch 'master' into rename-repo-url 2016-03-17 21:06:54 +09:00
vvakame 14fe4313f4 replace internal module to namespace 2016-03-17 02:18:10 +09:00
vvakame 56295f5058 replace https://github.com/borisyankov/DefinitelyTyped to https://github.com/DefinitelyTyped/DefinitelyTyped 2016-03-17 00:55:26 +09:00
Tom Shen 735772cee9 Add useRouterHistory to react-router type definitions 2016-03-08 14:19:25 -05:00
Masahiro Wakame 94949214ef Merge pull request #8256 from ngbrown/react-router-v2
Updates for react-router v2.0.0
2016-03-04 22:14:24 +09:00
Giedrius Grabauskas 4bf9e262ab Removed module name 2016-03-02 17:39:58 +02:00
Giedrius Grabauskas c7b3b3c193 Added setRouteLeaveHook 2016-03-02 17:29:56 +02:00
Nathan Brown b3a2b98134 Export RouterOnContext from "react-router" module. 2016-02-28 12:24:19 -07:00
Nathan Brown 647734d252 Undo changes to react.d.ts. Update test to use static contextTypes and retype context. 2016-02-26 12:00:59 -07:00
Nathan Brown 156aee9c2e react-router has a new context type in v2.0.0, so added that. Updated tests. 2016-02-25 16:27:41 -07:00
Nathan Brown d89fabadf4 Update history to v2.0.0 and add tests. 2016-02-25 16:14:09 -07:00
Isman Usoh 07feae1178 Update react-router.d.ts 2016-01-30 17:29:23 +07:00
Isman Usoh 306df6f069 Rename RoutingContext -> RouterContext
https://github.com/rackt/react-router/commit/c0363abbe4f98c4534d226a0acebce88be4a41b5
2016-01-30 17:04:47 +07:00
Masahiro Wakame 62eff42bd8 Merge pull request #7688 from wereHamster/react-router-RouteProps
react-router: a React component supports get{Index,Child}Routes props
2016-01-24 00:29:44 +09:00
Tomas Carnecky bf904b5a58 react-router: a React component supports get{Index,Child}Routes props 2016-01-19 09:14:18 +01:00
Jason 3c1f12954a react-router.d.ts: add RouteComponentProps.children 2016-01-15 09:56:32 -08:00
Roger ChenandRoger Chen d9978a3c3c Update react-router typings for 2.0.0 2016-01-05 15:44:59 -08:00
vvakame 781e468d4b remove unused .tscparams 2015-12-23 18:23:35 +09:00
Michael Tiller 814e5ba4b1 Exposing additional types and interfaces 2015-11-27 12:06:21 -05:00
Sergey Buturlakin 99f6493ffb add push and replace methods 2015-11-20 11:31:28 +02:00
Sergey Buturlakin 51cd044cad update useRoutes history enhancer result interface 2015-11-20 11:20:02 +02:00
Sergey Buturlakin d0e0aacb36 add deprecated but supported methods 2015-11-20 11:18:51 +02:00
Sergey Buturlakin 8dedcf938a update tests 2015-11-19 19:45:21 +02: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
Sergey Buturlakin 9962a6144e add IndexLink to the default export 2015-11-19 19:13:28 +02:00
Sergey Buturlakin 91e9c035e1 update to React Router v1.0.0 2015-11-19 14:15:44 +02:00
Sergey Buturlakin c5179cd689 update definitions to history v1.13.1 2015-11-16 19:02:38 +02:00
James Brantly 99443d33d5 Update tests for dependencies of React to work with v0.14 2015-11-11 09:47:20 -05:00
Tanguy Krotoff d8373f0a6f Rename from *-test.ts to *-tests.ts 2015-10-23 20:52:47 +02:00
Sergey Buturlakin 0d64ea1b82 History enhancers definitions improved using union types 2015-10-01 12:31:03 +03:00
Sergey Buturlakin f0d5440f90 Micro update of createRoutes export 2015-10-01 11:03:39 +03: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
Sergey Buturlakin ef5f585334 Complete react-router v1.0.0-rc1 definitions 2015-09-30 17:52:15 +03:00
Sergey Buturlakin fb14688db7 Update History for use as global and minor fixes 2015-09-30 17:51:09 +03:00
Sergey Buturlakin 86bbeb0727 Update react-router 0.13.3 -> 1.0.0-rc1 2015-09-29 20:54:55 +03:00
Masahiro Wakame b159ddb3f6 Merge pull request #5621 from benishouga/react-router-link
react-router: Link inherit HtmlAttribute for use with className and style
2015-09-08 23:33:03 +09:00
benishouga dab752b34f Link inherit HtmlAttribute for use with className and style 2015-09-01 02:16:04 +09:00
James Brantly 6102332bf0 Update react-router to work with react reorganization 2015-08-27 22:18:59 -04:00
vvakame ce9ebf7993 refactor run method, use union types 2015-08-21 21:08:03 +09:00