Skip to content

Commit

Permalink
Fix RouteProps type (#8473)
Browse files Browse the repository at this point in the history
Co-authored-by: hanquliu <[email protected]>
  • Loading branch information
liuhanqu and hanquliu authored Dec 13, 2021
1 parent e9bea61 commit ab8118e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/react-router/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,26 +196,26 @@ 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;
}

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;
}

Expand Down

0 comments on commit ab8118e

Please sign in to comment.