import { Action } from "./Action" ; import { Event } from "./Event" ; export class InlineAction < T extends Event > extends Action < T > { cb : ( event : T ) => any ; constructor ( name , callback ) { super ( name ) ; this . cb = callback ; } doAction ( event ) { return this . cb ( event ) ; } }