We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9688d9f commit 0a10d4cCopy full SHA for 0a10d4c
src/types.ts
@@ -1,7 +1,5 @@
1
import { ComponentType, ErrorInfo, PropsWithChildren, ReactNode } from "react";
2
3
-declare function FallbackRender(props: FallbackProps): ReactNode;
4
-
5
export type FallbackProps = {
6
error: any;
7
resetErrorBoundary: (...args: any[]) => void;
@@ -26,7 +24,7 @@ export type ErrorBoundaryPropsWithComponent = ErrorBoundarySharedProps & {
26
24
export type ErrorBoundaryPropsWithRender = ErrorBoundarySharedProps & {
27
25
fallback?: never;
28
FallbackComponent?: never;
29
- fallbackRender: typeof FallbackRender;
+ fallbackRender: (props: FallbackProps) => ReactNode;
30
};
31
32
export type ErrorBoundaryPropsWithFallback = ErrorBoundarySharedProps & {
0 commit comments