type DelegatedEvent
A generic type definition for an event that has been propagated by a delegate object.
type DelegatedEvent<TDelegate extends ManagedObject, TSource extends ManagedObject = ManagedObject, TData extends Record<string, unknown> | undefined = Record<string, unknown> | undefined, TName extends string = string> = ManagedEvent<TSource, TData, TName> & { readonly delegate: TDelegate; }
Notes
- The
source
property refers to the object that originally emitted (or intercepted) the event; however, thedelegate
property can be used to find the object that delegated the event, e.g. UIForm or UIListView.ItemControllerView.