mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
Merge pull request #9530 from rogierschouten/react-router-getcomponents
getComponent/getComponents now takes state parameter instead of location
This commit is contained in:
Vendored
+2
-2
@@ -144,8 +144,8 @@ declare namespace ReactRouter {
|
||||
path?: RoutePattern
|
||||
component?: RouteComponent
|
||||
components?: RouteComponents
|
||||
getComponent?: (location: H.Location, cb: (error: any, component?: RouteComponent) => void) => void
|
||||
getComponents?: (location: H.Location, cb: (error: any, components?: RouteComponents) => void) => void
|
||||
getComponent?: (nextState: RouterState, cb: (error: any, component?: RouteComponent) => void) => void
|
||||
getComponents?: (nextState: RouterState, cb: (error: any, components?: RouteComponents) => void) => void
|
||||
onEnter?: EnterHook
|
||||
onLeave?: LeaveHook
|
||||
onChange?: ChangeHook
|
||||
|
||||
Reference in New Issue
Block a user