message: use default export
diff: type Handler<T> = (data: T) => void
  -export const TinyEmitter = <T>(S = new Set<Handler<T>>()) => ({
  +export default function EE <T>() {
  + let S = new Set<Handler<T>>()
  +
  + return {
  listen: (fn: Handler<T>) => {
  S.add(fn)
  },
  @@ -10,4 +13,5 @@ export const TinyEmitter = <T>(S = new Set<Handler<T>>()) => ({
  emit: (data: T) => {
  for (let h of S) h(data)
  },
  -})
  + }
  +}
  