Type Alias: GanttEventHandler<K>
GanttEventHandler<
K> = (payload) =>void|false|KextendsAsyncCancelableEvent?Promise<void|false> :never
Defined in: view/event-bus.ts:244
The one handler shape Gantt.on/Gantt.off and GanttShell.on/GanttShell.off all share
— declared once here rather than repeating the same conditional at each of those four
call sites. K extends AsyncCancelableEvent is the only two names a handler may resolve async.
Type Parameters
K
K extends keyof GanttEventMap
Parameters
payload
Returns
void | false | K extends AsyncCancelableEvent ? Promise<void | false> : never