Merge pull request #14301 from johnnyreilly/master

react-router v3 - add router to RouteComponentProps
This commit is contained in:
John Reilly
2017-01-27 21:59:25 +00:00
committed by GitHub
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
// Type definitions for react-router 2.0
// Type definitions for react-router 3.0
// Project: https://github.com/rackt/react-router
// Definitions by: Sergey Buturlakin <https://github.com/sergey-buturlakin>, Yuichi Murata <https://github.com/mrk21>, Václav Ostrožlík <https://github.com/vasek17>, Nathan Brown <https://github.com/ngbrown>, Alex Wendland <https://github.com/awendland>, Kostya Esmukov <https://github.com/KostyaEsmukov>
// Definitions by: Sergey Buturlakin <https://github.com/sergey-buturlakin>, Yuichi Murata <https://github.com/mrk21>, Václav Ostrožlík <https://github.com/vasek17>, Nathan Brown <https://github.com/ngbrown>, Alex Wendland <https://github.com/awendland>, Kostya Esmukov <https://github.com/KostyaEsmukov>, John Reilly <https://github.com/johnnyreilly>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
+1
View File
@@ -87,6 +87,7 @@ declare namespace Router {
params?: P;
route?: PlainRoute;
routeParams?: R;
router?: InjectedRouter;
routes?: PlainRoute[];
children?: React.ReactElement<any>;
}