Enable array string type path in route config (#38429)

This commit is contained in:
godsenal 2019-09-24 02:24:32 +09:00 committed by Ben Lichtman
parent 562214ee84
commit dbad61db92

View File

@ -19,7 +19,7 @@ export interface RouteConfig {
key?: React.Key;
location?: Location;
component?: React.ComponentType<RouteConfigComponentProps<any>> | React.ComponentType;
path?: string;
path?: string | string[];
exact?: boolean;
strict?: boolean;
routes?: RouteConfig[];