add null as a possible return vale to matchPath

This commit is contained in:
Philipp Zins
2017-03-23 08:36:05 +01:00
parent a068733246
commit fac784746d
+1 -1
View File
@@ -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>;