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 {
10
10
StaticHandlerContext ,
11
11
To ,
12
12
TrackedPromise ,
13
+ LazyRouteFunction ,
13
14
} from "@remix-run/router" ;
14
15
import type { Action as NavigationType } from "@remix-run/router" ;
15
16
@@ -30,7 +31,7 @@ export interface IndexRouteObject {
30
31
errorElement ?: React . ReactNode | null ;
31
32
Component ?: React . ComponentType | null ;
32
33
ErrorBoundary ?: React . ComponentType | null ;
33
- lazy ?: AgnosticIndexRouteObject [ "lazy" ] ;
34
+ lazy ?: LazyRouteFunction < RouteObject > ;
34
35
}
35
36
36
37
export interface NonIndexRouteObject {
@@ -48,7 +49,7 @@ export interface NonIndexRouteObject {
48
49
errorElement ?: React . ReactNode | null ;
49
50
Component ?: React . ComponentType | null ;
50
51
ErrorBoundary ?: React . ComponentType | null ;
51
- lazy ?: AgnosticNonIndexRouteObject [ "lazy" ] ;
52
+ lazy ?: LazyRouteFunction < RouteObject > ;
52
53
}
53
54
54
55
export type RouteObject = IndexRouteObject | NonIndexRouteObject ;
You can’t perform that action at this time.
0 commit comments