From 7c74f67ef7a3cf3fd10354b30bd1d448f8fad5f1 Mon Sep 17 00:00:00 2001 From: John Reilly Date: Fri, 27 Jan 2017 17:21:50 +0000 Subject: [PATCH 1/2] added router?: InjectedRouter; to RouteComponentProps see https://github.com/ReactTraining/react-router/blob/master/CHANGES.md#v300-beta1 and https://github.com/ReactTraining/react-router/pull/3729 --- react-router/lib/Router.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/react-router/lib/Router.d.ts b/react-router/lib/Router.d.ts index a7dff58369..ccfc22979a 100644 --- a/react-router/lib/Router.d.ts +++ b/react-router/lib/Router.d.ts @@ -87,6 +87,7 @@ declare namespace Router { params?: P; route?: PlainRoute; routeParams?: R; + router?: InjectedRouter; routes?: PlainRoute[]; children?: React.ReactElement; } From 93b63ea6e9ed80dfc7b84a561bce5b6afdf59e5f Mon Sep 17 00:00:00 2001 From: John Reilly Date: Fri, 27 Jan 2017 17:24:51 +0000 Subject: [PATCH 2/2] Update to react-router 3.0.0 --- react-router/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/react-router/index.d.ts b/react-router/index.d.ts index b1a577c617..4e265ce99f 100644 --- a/react-router/index.d.ts +++ b/react-router/index.d.ts @@ -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 , Yuichi Murata , Václav Ostrožlík , Nathan Brown , Alex Wendland , Kostya Esmukov +// Definitions by: Sergey Buturlakin , Yuichi Murata , Václav Ostrožlík , Nathan Brown , Alex Wendland , Kostya Esmukov , John Reilly // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1