import { Fiber } from '../../react-reconciler/ReactInternalTypes' ; export const createSyntheticEvent = ( ) => { class SyntheticBaseEvent { _reactName : string | null = null ; _targetInst : Fiber ; type : string ; nativeEvent : { [ key ] : unknown ; } ; target : null | EventTarget ; constructor ( reactName , reactEventType , targetInst , nativeEvent , nativeEventTarget ) { this . _reactName = reactName ; this . _targetInst = targetInst ; this . type = reactEventType ; this . nativeEvent = nativeEvent ; this . target = nativeEventTarget ; } } return SyntheticBaseEvent ; } ; export const SyntheticEvent = createSyntheticEvent ( ) ; export const SyntheticMouseEvent = createSyntheticEvent ( ) ; export const SyntheticKeyboardEvent = createSyntheticEvent ( ) ;