deno.com

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