Skip to content

Commit db350f2

Browse files
committed
chore: ts error
1 parent 4c46bc0 commit db350f2

File tree

1 file changed

+8
-8
lines changed
  • packages/flow/src/components/ErrorBoundary

1 file changed

+8
-8
lines changed

packages/flow/src/components/ErrorBoundary/index.tsx

+8-8
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export const UNKNOWN_COMPONENT = 'unknown';
1515

1616
export type FallbackRender = (errorData: {
1717
error: Error;
18-
componentStack: string | null;
19-
eventId: string | null;
18+
componentStack: string | null | undefined;
19+
eventId: string | null | undefined;
2020
resetError(): void;
2121
}) => React.ReactElement;
2222

@@ -37,27 +37,27 @@ export type ErrorBoundaryProps = {
3737
/** Called if resetError() is called from the fallback render props function */
3838
onReset?(
3939
error: Error | null,
40-
componentStack: string | null,
41-
eventId: string | null,
40+
componentStack: string | null | undefined,
41+
eventId: string | null | undefined,
4242
): void;
4343
/** Called on componentWillUnmount() */
4444
onUnmount?(
4545
error: Error | null,
46-
componentStack: string | null,
47-
eventId: string | null,
46+
componentStack: string | null | undefined,
47+
eventId: string | null | undefined,
4848
): void;
4949
/** Called before the error is captured by Sentry, allows for you to add tags or context using the scope */
5050
beforeCapture?(
5151
scope: any,
5252
error: Error | null,
53-
componentStack: string | null,
53+
componentStack: string | null | undefined,
5454
): void;
5555
};
5656

5757
type ErrorBoundaryState = {
5858
componentStack: React.ErrorInfo['componentStack'] | null;
5959
error: Error | null;
60-
eventId: string | null;
60+
eventId: string | null | undefined;
6161
};
6262

6363
const INITIAL_STATE = {

0 commit comments

Comments
 (0)