Skip to content

Commit b7449dc

Browse files
author
Andrey Martianov
committed
add applyRouterMiddleware function declaration
1 parent 617e37e commit b7449dc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

react-router.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,11 @@ declare module ReactRouter {
784784
* Add router object to props of component
785785
*/
786786
export function withRouter<T extends Function>(el: T): T;
787+
788+
/**
789+
* Apply Router middleware (for using in <Router render={applyRouterMiddleware(...)} ... />)
790+
*/
791+
export function applyRouterMiddleware<T extends Function>(middleware: T): <IProps>(props: IProps) => JSX.Element;
787792
}
788793

789794
export = ReactRouter;

0 commit comments

Comments
 (0)