Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

EventSlotFunc

EventSlotFunc: (...args: any[]) => void

Type declaration

    • (...args: any[]): void
    • Parameters

      • Rest ...args: any[]

      Returns void

MultiEventSlot

MultiEventSlot<T>: { readonly [ P in keyof T]: IEventSlot<Extract<T[P], EventSlotFunc>> }

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:

type IMyEvents =
{
click: () => void;
change: ( newVal: number) => void;
}

then the MultiEventSlot type will have the following shape:

{
click: IEventSlot<() => void>;
change: IEventSlot(newVal: number) => void>;
}

Type parameters

  • T

MultiEventSlotOwner

MultiEventSlotOwner<T>: { readonly [ P in keyof T]: IEventSlotOwner<Extract<T[P], EventSlotFunc>> }

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 type will have the following shape:

{
click: IEventSlotOwner<() => void>;
change: IEventSlotOwner(newVal: number) => void>;
}

Type parameters

  • T