diff --git a/docs/router/framework/react/api/router/errorComponentComponent.md b/docs/router/framework/react/api/router/errorComponentComponent.md index 04399f124d..d54ac5cd55 100644 --- a/docs/router/framework/react/api/router/errorComponentComponent.md +++ b/docs/router/framework/react/api/router/errorComponentComponent.md @@ -11,7 +11,7 @@ The `ErrorComponent` component accepts the following props: ### `props.error` prop -- Type: `TError` (defaults to `Error`) +- Type: `Error` - The error that was thrown by the component's children ### `props.info` prop diff --git a/packages/router-core/src/route.ts b/packages/router-core/src/route.ts index b89549cdc6..5d01b977f0 100644 --- a/packages/router-core/src/route.ts +++ b/packages/router-core/src/route.ts @@ -1317,8 +1317,8 @@ export type ErrorRouteProps = { reset: () => void } -export type ErrorComponentProps = { - error: TError +export type ErrorComponentProps = { + error: Error info?: { componentStack: string } reset: () => void }