Skip to content

Commit

Permalink
fix: ErrorBoundarySharedProps's info type (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
manudeli authored Jul 25, 2023
1 parent ad3d723 commit 196537e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
Component,
ComponentType,
ErrorInfo,
FunctionComponent,
PropsWithChildren,
ReactElement,
Expand All @@ -15,7 +16,7 @@ export type FallbackProps = {
};

type ErrorBoundarySharedProps = PropsWithChildren<{
onError?: (error: Error, info: { componentStack: string }) => void;
onError?: (error: Error, info: ErrorInfo) => void;
onReset?: (
details:
| { reason: "imperative-api"; args: any[] }
Expand Down

0 comments on commit 196537e

Please sign in to comment.