mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Apply some changes that had been applied to react-router.d.ts instead of index
(This is everything from https://github.com/DefinitelyTyped/DefinitelyTyped/commits/types-2.0/react-router/react-router.d.ts that came after index's creation on May 9)
This commit is contained in:
3
react-router/index.d.ts
vendored
3
react-router/index.d.ts
vendored
@@ -1,6 +1,6 @@
|
||||
// Type definitions for react-router v2.0.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>
|
||||
// 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>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export as namespace ReactRouter;
|
||||
@@ -55,6 +55,7 @@ export type InjectedRouter = Router.InjectedRouter;
|
||||
|
||||
export type HistoryBase = History.HistoryBase;
|
||||
export type RouterOnContext = Router.RouterOnContext;
|
||||
export type RouteProps = Route.RouteProps;
|
||||
export type LinkProps = Link.LinkProps;
|
||||
|
||||
export {
|
||||
|
||||
4
react-router/lib/Route.d.ts
vendored
4
react-router/lib/Route.d.ts
vendored
@@ -12,8 +12,8 @@ declare namespace self {
|
||||
path?: Router.RoutePattern;
|
||||
component?: Router.RouteComponent;
|
||||
components?: Router.RouteComponents;
|
||||
getComponent?: (location: Location, cb: (error: any, component?: Router.RouteComponent) => void) => void;
|
||||
getComponents?: (location: Location, cb: (error: any, components?: Router.RouteComponents) => void) => void;
|
||||
getComponent?: (nextState: Router.RouterState, cb: (error: any, component?: Router.RouteComponent) => void) => void
|
||||
getComponents?: (nextState: Router.RouterState, cb: (error: any, components?: Router.RouteComponents) => void) => void
|
||||
onEnter?: Router.EnterHook;
|
||||
onLeave?: Router.LeaveHook;
|
||||
onChange?: Router.ChangeHook;
|
||||
|
||||
Reference in New Issue
Block a user