@@ -488,7 +488,7 @@ function recursivelyInsertNewFiber(
488488 const viewTransitionState : ViewTransitionState = finishedWork . stateNode ;
489489 // TODO: If this was already cloned by a previous pass we can reuse those clones.
490490 viewTransitionState . clones = null ;
491- let nextPhase ;
491+ let nextPhase : VisitPhase ;
492492 if ( visitPhase === INSERT_EXIT ) {
493493 // This was an Enter of a ViewTransition. We now move onto inserting the inner
494494 // HostComponents and finding inner pairs.
@@ -637,7 +637,7 @@ function recursivelyInsertClonesFromExistingTree(
637637 // So we need it to be cleared before we do that.
638638 // TODO: Use some other temporary state to track this.
639639 child . flags &= ~ Update ;
640- let nextPhase ;
640+ let nextPhase : VisitPhase ;
641641 if ( visitPhase === CLONE_EXIT ) {
642642 // This was an Enter of a ViewTransition. We now move onto unhiding the inner
643643 // HostComponents and finding inner pairs.
@@ -894,7 +894,7 @@ function insertDestinationClonesOfFiber(
894894 // Only insert clones if this tree is going to be visible. No need to
895895 // clone invisible content.
896896 // TODO: If this is visible but detached it should still be cloned.
897- let nextPhase ;
897+ let nextPhase : VisitPhase ;
898898 if ( visitPhase === CLONE_UPDATE && ( flags & Visibility ) !== NoFlags ) {
899899 // This is the root of an appear. We need to trigger Enter transitions.
900900 nextPhase = CLONE_EXIT ;
@@ -922,7 +922,7 @@ function insertDestinationClonesOfFiber(
922922 const viewTransitionState : ViewTransitionState = finishedWork . stateNode ;
923923 // TODO: If this was already cloned by a previous pass we can reuse those clones.
924924 viewTransitionState . clones = null ;
925- let nextPhase ;
925+ let nextPhase : VisitPhase ;
926926 if ( visitPhase === CLONE_EXIT ) {
927927 // This was an Enter of a ViewTransition. We now move onto unhiding the inner
928928 // HostComponents and finding inner pairs.
0 commit comments