Skip to content

Commit bbeeb9a

Browse files
authored
Merge pull request #134 from /issues/133
Fix broken TypeScript def file (#133)
2 parents cbbf3b0 + 63339c3 commit bbeeb9a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ErrorBoundary.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
isValidElement,
66
PropsWithChildren,
77
PropsWithRef,
8+
ReactElement,
89
} from "react";
910
import { ErrorBoundaryContext } from "./ErrorBoundaryContext";
1011
import { ErrorBoundaryProps, FallbackProps } from "./types";
@@ -106,7 +107,7 @@ export class ErrorBoundary extends Component<
106107
},
107108
},
108109
childToRender
109-
);
110+
) as ReactElement;
110111
}
111112
}
112113

0 commit comments

Comments
 (0)