Represents the public api of an event.

interface PublicApi<Arg> {
    add(cb: callback<Arg>): unsubscribe;
    remove(cb: callback<Arg>): void;
    (cb: callback<Arg>): unsubscribe;
}

Type Parameters

  • Arg

Methods

Methods

  • Parameters

    Returns void