Skip to content

Commit ec00206

Browse files
authored
remove private namespace JSX
1 parent c7b8503 commit ec00206

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react/src/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Disabling `no-explicit-any` for the whole file as `any` has became common requirement.
22
/* eslint-disable @typescript-eslint/no-explicit-any */
3+
import type { ReactElement } from 'react';
34

45
export type Action = 'PUSH' | 'REPLACE' | 'POP';
56

@@ -67,7 +68,7 @@ export type UseNavigationType = () => Action;
6768
// react-router > 6.0.0 and >= 6.4.2.
6869
export type RouteObjectArrayAlias = any;
6970
export type RouteMatchAlias = any;
70-
export type CreateRoutesFromChildren = (children: JSX.Element[]) => RouteObjectArrayAlias;
71+
export type CreateRoutesFromChildren = (children: ReactElement[]) => RouteObjectArrayAlias;
7172
export type MatchRoutes = (
7273
routes: RouteObjectArrayAlias,
7374
location: Location,

0 commit comments

Comments
 (0)