Sign up (with export icon)

GetNameOrEventInfo

Api-typedef icontypedef

Utility type that gets the EventInfo subclass or event name type for the given event.

Type parameters

Value

TEvent extends object ? TEvent[ 'eventInfo' ] : TEvent[ 'name' ] | EventInfo<TEvent[ 'name' ], TEvent extends object ? TReturn : unknown>