Skip to content

Commit cd51a81

Browse files
committed
fix: 🐛 fix <Route> and <Match> data type
1 parent 489c5b7 commit cd51a81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/route/Match.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export interface IRouteData {
99
fullRoute: string;
1010
route: string;
1111
parent: IRouteData;
12-
match: TRouteMatchResult;
12+
matches: TRouteMatchResult;
1313
}
1414

1515
export interface IMatchProps extends IUniversalInterfaceProps<IRouteData> {
@@ -36,7 +36,7 @@ const Match: React.SFC<IMatchProps> = (props) => {
3636
const {fullRoute, route, parent} = context;
3737
const matches = createMatcher(match, exact)(route);
3838

39-
const data = {
39+
const data: IRouteData = {
4040
fullRoute,
4141
route,
4242
parent,

0 commit comments

Comments
 (0)