Type Alias EventSource<Events>

EventSource: Pick<Evented<Events>, "on">

Like Evented, but only specifies the on function. This is useful if clients of a class should not be able to invoke the emit() function themselves.

Type Parameters

  • Events