Commit Graph

43 Commits

Author SHA1 Message Date
Mohamed Hegazy
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 Eshenbrener
df9065dc6e react-router: export routerShape and historyShape (#9551)
0616f6e143/modules/PropTypes.js (L9)
0616f6e143/modules/PropTypes.js (L19)
2016-06-08 19:17:47 +09:00
Rogier Schouten
fceb0e37c0 getComponent/getComponents now takes state parameter instead of location
see
0cdee03a54
2016-06-02 12:00:24 +02:00
ascoders
152fb904df update react-router.d.ts (#9066)
add basename to MatchArgs
2016-05-02 00:55:36 +09:00
Prasanna V. Loganathar
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 Hourlier
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
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
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
Isman Usoh
07feae1178 Update react-router.d.ts 2016-01-30 17:29:23 +07:00
Isman Usoh
306df6f069 Rename RoutingContext -> RouterContext
c0363abbe4
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 Chen
d9978a3c3c Update react-router typings for 2.0.0 2016-01-05 15:44:59 -08:00
Michael Tiller
814e5ba4b1 Exposing additional types and interfaces 2015-11-27 12:06:21 -05:00
Sergey Buturlakin
51cd044cad update useRoutes history enhancer result interface 2015-11-20 11:20:02 +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
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
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
benishouga
ad3abeb456 Support the string for the second argument of Router.run. 2015-08-18 01:09:15 +09:00
vvakame
ace0ad087d fix react-router/react-router.d.ts 2015-07-19 17:30:33 +09:00
Yuichi Murata
896b1b56d2 Fix issues of react-router occurring on tsc 1.4.1 2015-07-12 22:41:49 +09:00
Yuichi Murata
c09238ca08 Change an indent width of react-router/react-router.d.ts to 4 spaces that is general style in TypeScript 2015-07-12 21:36:30 +09:00
Yuichi Murata
4ca5b84c23 Fix some issues of #4410/issuecomment-110341203 2015-07-12 21:27:57 +09:00
Václav Ostrožlík
403894c473 React-router 0.13 support 2015-05-20 23:19:58 +02:00
Yuichi Murata
ebfa2af6d9 Fix Router#run() to be enabled to call with ReactElement created by React.createFactory()
ref. #4267
2015-05-10 19:19:38 +09:00
Phips Peter
57340eca1e Moving React 0.13 to be the default
React 0.13 is now released so it should be the default type definition.
http://facebook.github.io/react/blog/2015/03/10/react-v0.13.html
2015-03-10 19:03:37 -07:00
Yuichi Murata
d1f8f27eea Added react-router/react-router.d.ts(0.12.0). 2015-02-15 17:33:41 +09:00