import { Event } from "./Event" ; import { Toolkit } from "@projectstorm/react-core" ; export abstract class Action < T extends Event = Event > { targetEvent : string ; id : string ; constructor ( targetEvent ) { this . targetEvent = targetEvent ; this . id = Toolkit . UID ( ) ; } abstract doAction ( event ) ; }