

type EventCallBack<T extends any = any> = (e: T) => any

export type EventsMap = {
  onClick?: EventCallBack<FYGE.MouseEvent>
  onClickCapture?: EventCallBack<FYGE.MouseEvent>
  onEnterFrame?: EventCallBack<FYGE.Event>

  onAddedToStage?: EventCallBack<FYGE.Event>,

  onRemoveFromStage?: EventCallBack<FYGE.Event>
}