How wildcard '*' events work
mainMitt supports a wildcard '*' event type that allows you to listen to every event fired by the emitter.
When a handler is registered with '*', it is invoked with two arguments: the type of the event and the evt payload. During an .emit(type, evt) call, the '*' handlers are invoked after the handlers specifically matched to the type.
Note: You cannot manually fire '*' handlers; they are only triggered as a side effect of emitting other event types.
emitter.on('*', (type, e) => console.log(type, e))
emitter.emit('foo', { data: 123 })
// Logs: 'foo', { data: 123 }