mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
getComponent/getComponents now takes state parameter instead of location
see
0cdee03a54
This commit is contained in:
4
react-router/react-router.d.ts
vendored
4
react-router/react-router.d.ts
vendored
@@ -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