type alias CustomEvents
string & {} allows to allow any kind of strings for the event but still allows to have auto completion for the normal events.
Definition #
[Key in string & { } | symbol]: (...args: any[]) => void
string & {} allows to allow any kind of strings for the event but still allows to have auto completion for the normal events.
[Key in string & { } | symbol]: (...args: any[]) => void