Get the Events type associated with a type that extends DeclareEvents<Events>.
Events
DeclareEvents
<Events>
A type that doesn't extend DeclareEvents resolves to an object which will accept all string keys.
Get the
Eventstype associated with a type that extendsDeclareEvents<Events>.A type that doesn't extend DeclareEvents resolves to an object which will accept all string keys.