UNPKG

1.09 kBTypeScriptView Raw
1
2import { Location } from "../../router/history.js";
3import * as React$1 from "react";
4
5//#region lib/dom/ssr/errorBoundaries.d.ts
6type RemixErrorBoundaryProps = React$1.PropsWithChildren<{
7 location: Location;
8 isOutsideRemixApp?: boolean;
9 error?: Error;
10}>;
11type RemixErrorBoundaryState = {
12 error: null | Error;
13 location: Location;
14};
15declare class RemixErrorBoundary extends React$1.Component<RemixErrorBoundaryProps, RemixErrorBoundaryState> {
16 constructor(props: RemixErrorBoundaryProps);
17 static getDerivedStateFromError(error: Error): {
18 error: Error;
19 };
20 static getDerivedStateFromProps(props: RemixErrorBoundaryProps, state: RemixErrorBoundaryState): {
21 error: Error | null;
22 location: Location<any>;
23 };
24 render(): string | number | bigint | boolean | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined> | React$1.JSX.Element | null | undefined;
25}
26//#endregion
27export { RemixErrorBoundary };
\No newline at end of file