@@ -11,6 +11,8 @@ import type {AnyNativeEvent} from '../PluginModuleType';
1111import type { DOMEventName } from '../DOMEventNames' ;
1212import type { DispatchQueue } from '../DOMPluginEventSystem' ;
1313import type { EventSystemFlags } from '../EventSystemFlags' ;
14+ import type { Fiber } from 'react-reconciler/src/ReactInternalTypes' ;
15+ import type { KnownReactSyntheticEvent } from '../ReactSyntheticEventType' ;
1416
1517import { registerDirectEvent } from '../EventRegistry' ;
1618import { isReplayingEvent } from '../CurrentReplayingEvent' ;
@@ -21,7 +23,6 @@ import {
2123 isContainerMarkedAsRoot ,
2224} from '../../client/ReactDOMComponentTree' ;
2325import { accumulateEnterLeaveTwoPhaseListeners } from '../DOMPluginEventSystem' ;
24- import type { KnownReactSyntheticEvent } from '../ReactSyntheticEventType' ;
2526
2627import { HostComponent , HostText } from 'react-reconciler/src/ReactWorkTags' ;
2728import { getNearestMountedFiber } from 'react-reconciler/src/ReactFiberTreeReflection' ;
@@ -133,7 +134,8 @@ function extractEvents(
133134 const fromNode = from == null ? win : getNodeFromInstance ( from ) ;
134135 const toNode = to == null ? win : getNodeFromInstance ( to ) ;
135136
136- const leave = new SyntheticEventCtor (
137+ // $FlowFixMe[prop-missing]
138+ const leave : KnownReactSyntheticEvent = new SyntheticEventCtor (
137139 leaveEventType ,
138140 eventTypePrefix + 'leave' ,
139141 from ,
@@ -149,6 +151,7 @@ function extractEvents(
149151 // the first ancestor. Next time, we will ignore the event.
150152 const nativeTargetInst = getClosestInstanceFromNode ( ( nativeEventTarget : any ) ) ;
151153 if ( nativeTargetInst === targetInst ) {
154+ // $FlowFixMe[prop-missing]
152155 const enterEvent : KnownReactSyntheticEvent = new SyntheticEventCtor (
153156 enterEventType ,
154157 eventTypePrefix + 'enter' ,
0 commit comments