mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
add null as a possible return vale to matchPath
This commit is contained in:
Vendored
+1
-1
@@ -90,7 +90,7 @@ declare module 'react-router' {
|
||||
}
|
||||
|
||||
|
||||
function matchPath<P>(pathname: string, props: RouteProps): match<P>;
|
||||
function matchPath<P>(pathname: string, props: RouteProps): match<P> | null;
|
||||
|
||||
|
||||
function withRouter(component: React.SFC<RouteComponentProps<any>> | React.ComponentClass<RouteComponentProps<any>>): React.ComponentClass<any>;
|
||||
|
||||
Reference in New Issue
Block a user