Skip to content

Commit 64b0753

Browse files
authored
🤖 Merge PR DefinitelyTyped#73815 [react-reconciler]: update Reconciler.createContainer signature by @aurelien-brabant
1 parent b1262fe commit 64b0753

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

‎types/react-reconciler/index.d.ts‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,6 +926,10 @@ declare namespace ReactReconciler {
926926

927927
type IntersectionObserverOptions = any;
928928

929+
interface BaseErrorInfo {
930+
componentStack?: string;
931+
}
932+
929933
interface Reconciler<Container, Instance, TextInstance, SuspenseInstance, FormInstance, PublicInstance> {
930934
createContainer(
931935
containerInfo: Container,
@@ -934,7 +938,10 @@ declare namespace ReactReconciler {
934938
isStrictMode: boolean,
935939
concurrentUpdatesByDefaultOverride: null | boolean,
936940
identifierPrefix: string,
937-
onRecoverableError: (error: Error) => void,
941+
onUncaughtError: (error: Error, info: BaseErrorInfo & { errorBoundary?: Component }) => void,
942+
onCaughtError: (error: Error, info: BaseErrorInfo) => void,
943+
onRecoverableError: (error: Error, info: BaseErrorInfo) => void,
944+
onDefaultTransitionIndicator: () => void,
938945
transitionCallbacks: null | TransitionTracingCallbacks,
939946
): OpaqueRoot;
940947

0 commit comments

Comments
 (0)