Change staticContext to optional prop, instead of possibly undefined (but required) (#26645)

This commit is contained in:
Patrick Pan
2018-07-02 10:19:11 -07:00
committed by Mohamed Hegazy
parent a4d91b3b8f
commit b64fefa8ed
+1 -1
View File
@@ -68,7 +68,7 @@ export interface RouteComponentProps<P, C extends StaticContext = StaticContext>
history: H.History;
location: H.Location;
match: match<P>;
staticContext: C | undefined;
staticContext?: C;
}
export interface RouteProps {