File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/react-router/lib Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import type {
1010 StaticHandlerContext ,
1111 To ,
1212 TrackedPromise ,
13+ LazyRouteFunction ,
1314} from "@remix-run/router" ;
1415import type { Action as NavigationType } from "@remix-run/router" ;
1516
@@ -30,7 +31,7 @@ export interface IndexRouteObject {
3031 errorElement ?: React . ReactNode | null ;
3132 Component ?: React . ComponentType | null ;
3233 ErrorBoundary ?: React . ComponentType | null ;
33- lazy ?: AgnosticIndexRouteObject [ "lazy" ] ;
34+ lazy ?: LazyRouteFunction < RouteObject > ;
3435}
3536
3637export interface NonIndexRouteObject {
@@ -48,7 +49,7 @@ export interface NonIndexRouteObject {
4849 errorElement ?: React . ReactNode | null ;
4950 Component ?: React . ComponentType | null ;
5051 ErrorBoundary ?: React . ComponentType | null ;
51- lazy ?: AgnosticNonIndexRouteObject [ "lazy" ] ;
52+ lazy ?: LazyRouteFunction < RouteObject > ;
5253}
5354
5455export type RouteObject = IndexRouteObject | NonIndexRouteObject ;
You can’t perform that action at this time.
0 commit comments