Narrows keyof Events to string keys only
keyof Events
Used throughout the API as EventName<Events> to represent the valid event names for a particular Events type.
EventName<Events>
Events
Narrows
keyof Eventsto string keys onlyUsed throughout the API as
EventName<Events>to represent the valid event names for a particularEventstype.