The MultiEventSlotOwner type represents an object that for each property from the template type T has corresponding property, which is an event slot for a function, whose signature is the same as of the original property. For example, if we have the following type:
type IMyEvents =
{
click: () => void;
change: ( newVal: number) => void;
}
then the MultiEventSlotOwner
{
click: IEventSlotOwner<() => void>;
change: IEventSlotOwner(newVal: number) => void>;
}
The MultiEventSlot type represents an object that for each property from the template type T has corresponding property, which is an event slot for a function, whose signature is the same as of the original property. For example, if we have the following type:
then the MultiEventSlot type will have the following shape: