Skip to content

Commit fd8287f

Browse files
committed
Strict types
1 parent 3e77914 commit fd8287f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3401,7 +3401,7 @@ export function suspendResource(
34013401
}
34023402
}
34033403

3404-
export function waitForCommitToBeReady(): null | ((() => any) => Function) {
3404+
export function waitForCommitToBeReady(): null | ((() => void) => () => void) {
34053405
if (suspendedState === null) {
34063406
throw new Error(
34073407
'Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.',

packages/react-reconciler/src/ReactFiberWorkLoop.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3089,8 +3089,6 @@ function commitRoot(
30893089
ReactSharedInternals.T = prevTransition;
30903090
setCurrentUpdatePriority(previousUpdateLanePriority);
30913091
}
3092-
3093-
return null;
30943092
}
30953093

30963094
function commitRootImpl(

0 commit comments

Comments
 (0)