| 1 |
|
| 2 | import { Location } from "../../router/history.js";
|
| 3 | import * as React$1 from "react";
|
| 4 |
|
| 5 |
|
| 6 | type RemixErrorBoundaryProps = React$1.PropsWithChildren<{
|
| 7 | location: Location;
|
| 8 | isOutsideRemixApp?: boolean;
|
| 9 | error?: Error;
|
| 10 | }>;
|
| 11 | type RemixErrorBoundaryState = {
|
| 12 | error: null | Error;
|
| 13 | location: Location;
|
| 14 | };
|
| 15 | declare 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 |
|
| 27 | export { RemixErrorBoundary }; |
| \ | No newline at end of file |