Server: Phase 2 (REVIEW not respected yet)

This commit is contained in:
Thomas Karner committed 2026-09-21 11:24:43 +02:00
1 parent 5d16ded553
commit 142b47674d
4271 files changed
+1203269

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
import { ErrorRouteComponent } from './route.js';
import { ErrorInfo } from 'react';
import * as React from 'react';
export declare class CatchBoundary extends React.Component<{
getResetKey: () => unknown;
children: React.ReactNode;
errorComponent?: ErrorRouteComponent;
onCatch?: (error: unknown, errorInfo: ErrorInfo) => void;
}> {
state: {
error: [unknown] | 0;
resetKey?: unknown;
};
static getDerivedStateFromProps(props: {
getResetKey: () => unknown;
}, state: {
resetKey?: unknown;
error: [unknown] | 0;
}): {
resetKey: unknown;
error: number;
} | {
resetKey: unknown;
error?: undefined;
};
static getDerivedStateFromError(error: unknown): {
error: unknown[];
};
reset: () => void;
componentDidCatch(error: unknown, errorInfo: ErrorInfo): void;
render(): string | number | bigint | boolean | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.FunctionComponentElement<import('@tanstack/router-core').ErrorComponentProps> | null | undefined;
}
export declare function ErrorComponent({ error }: {
error: unknown;
}): import("react/jsx-runtime").JSX.Element;