react-router: a React component supports get{Index,Child}Routes props

This commit is contained in:
Tomas Carnecky
2016-01-19 09:14:18 +01:00
parent 93bae1bb4c
commit bf904b5a58
+2
View File
@@ -132,6 +132,8 @@ declare namespace ReactRouter {
getComponents?: (location: H.Location, cb: (error: any, components?: RouteComponents) => void) => void
onEnter?: EnterHook
onLeave?: LeaveHook
getIndexRoute?: (location: H.Location, cb: (error: any, indexRoute: RouteConfig) => void) => void
getChildRoutes?: (location: H.Location, cb: (error: any, childRoutes: RouteConfig) => void) => void
}
interface Route extends React.ComponentClass<RouteProps> {}
interface RouteElement extends React.ReactElement<RouteProps> {}