@@ -4,7 +4,6 @@ import type {
4
4
Params ,
5
5
RouterState ,
6
6
} from "@remix-run/router" ;
7
- import type { ComponentType } from "react" ;
8
7
9
8
import type { AppLoadContext , AppData } from "./data" ;
10
9
import type { LinkDescriptor } from "./links" ;
@@ -48,23 +47,25 @@ export interface ActionFunction {
48
47
/**
49
48
* A React component that is rendered when the server throws a Response.
50
49
*
51
- * @deprecated Please enable the v2_errorBoundary flag
50
+ * @deprecated Please use `@remix-run/react`'s `CatchBoundaryComponent` type instead
52
51
*/
53
- export type CatchBoundaryComponent = ComponentType ;
52
+ export type CatchBoundaryComponent = any ;
54
53
55
54
/**
56
55
* A React component that is rendered when there is an error on a route.
57
56
*
58
- * @deprecated Please enable the v2_errorBoundary flag
57
+ * @deprecated Please use `@remix-run/react`'s `ErrorBoundaryComponent` type instead
59
58
*/
60
- export type ErrorBoundaryComponent = ComponentType < { error : Error } > ;
59
+ export type ErrorBoundaryComponent = any ;
61
60
62
61
/**
63
62
* V2 version of the ErrorBoundary that eliminates the distinction between
64
63
* Error and Catch Boundaries and behaves like RR 6.4 errorElement and captures
65
64
* errors with useRouteError()
65
+ *
66
+ * @deprecated Please use `@remix-run/react`'s `V2_ErrorBoundaryComponent` type instead
66
67
*/
67
- export type V2_ErrorBoundaryComponent = ComponentType ;
68
+ export type V2_ErrorBoundaryComponent = any ;
68
69
69
70
export type HeadersArgs = {
70
71
loaderHeaders : Headers ;
@@ -262,8 +263,10 @@ type LdJsonValue = LdJsonPrimitive | LdJsonObject | LdJsonArray;
262
263
263
264
/**
264
265
* A React component that is rendered for a route.
266
+ *
267
+ * @deprecated Please use `@remix-run/react`'s `RouteComponent` type instead
265
268
*/
266
- export type RouteComponent = ComponentType < { } > ;
269
+ export type RouteComponent = any ;
267
270
268
271
/**
269
272
* An arbitrary object that is associated with a route.
0 commit comments