mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 21:10:23 +00:00
[react-router-config] - add support for optional extraProps argument to renderRoutes introduced in react-router 4.2.0 (#19994)
This commit is contained in:
committed by
Mohamed Hegazy
parent
087179958b
commit
b2e786aee1
Vendored
+1
-1
@@ -28,4 +28,4 @@ export interface MatchedRoute<T> {
|
||||
|
||||
export function matchRoutes<T>(routes: RouteConfig[], pathname: string): Array<MatchedRoute<T>>;
|
||||
|
||||
export function renderRoutes(routes: RouteConfig[] | undefined): JSX.Element;
|
||||
export function renderRoutes(routes: RouteConfig[] | undefined, extraProps?: any): JSX.Element;
|
||||
|
||||
Reference in New Issue
Block a user