Add key to react-router-config RouteConfig

Routes can have an optional `key`.

https://www.npmjs.com/package/react-router-config#route-configuration-shape
This commit is contained in:
Joe Lencioni
2019-02-28 16:07:50 -08:00
committed by GitHub
parent 4acadb564b
commit ab818540d0
+1
View File
@@ -15,6 +15,7 @@ export interface RouteConfigComponentProps<Params extends { [K in keyof Params]?
}
export interface RouteConfig {
key?: React.Key;
location?: Location;
component?: React.ComponentType<RouteConfigComponentProps<any>> | React.ComponentType;
path?: string;