Skip to main content

ModelEventCallbackPayload

ModelEventCallbackPayload<T, E> = object

Callback payload for a model event.

Type Parameters

T

T = any

Maps the type of object the event pertains to - a Node, Group, Edge or Port.

E

E extends Event = Event

Maps the event class you expect as a return value. Providing this helps you to type things more strictly.