File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1
1
// Disabling `no-explicit-any` for the whole file as `any` has became common requirement.
2
2
/* eslint-disable @typescript-eslint/no-explicit-any */
3
+ import type { ReactElement } from 'react' ;
3
4
4
5
export type Action = 'PUSH' | 'REPLACE' | 'POP' ;
5
6
@@ -67,7 +68,7 @@ export type UseNavigationType = () => Action;
67
68
// react-router > 6.0.0 and >= 6.4.2.
68
69
export type RouteObjectArrayAlias = any ;
69
70
export type RouteMatchAlias = any ;
70
- export type CreateRoutesFromChildren = ( children : JSX . Element [ ] ) => RouteObjectArrayAlias ;
71
+ export type CreateRoutesFromChildren = ( children : ReactElement [ ] ) => RouteObjectArrayAlias ;
71
72
export type MatchRoutes = (
72
73
routes : RouteObjectArrayAlias ,
73
74
location : Location ,
You can’t perform that action at this time.
0 commit comments