diff --git a/packages/react-router/index.tsx b/packages/react-router/index.tsx index f90915aad4..a7c025b4df 100644 --- a/packages/react-router/index.tsx +++ b/packages/react-router/index.tsx @@ -196,7 +196,7 @@ export function Outlet(props: OutletProps): React.ReactElement | null { export interface RouteProps { caseSensitive?: boolean; children?: React.ReactNode; - element?: React.ReactElement | null; + element?: React.ReactNode | null; index?: boolean; path?: string; } @@ -204,18 +204,18 @@ export interface RouteProps { export interface PathRouteProps { caseSensitive?: boolean; children?: React.ReactNode; - element?: React.ReactElement | null; + element?: React.ReactNode | null; index?: false; path: string; } export interface LayoutRouteProps { children?: React.ReactNode; - element?: React.ReactElement | null; + element?: React.ReactNode | null; } export interface IndexRouteProps { - element?: React.ReactElement | null; + element?: React.ReactNode | null; index: true; }