/** * Handles named events. * * @template N */ export class Observable { /** * Some desc. * @type {Map} */ _observers: Map; /** * @param {N} name * @param {function} f */ on(name: N, f: Function): void; /** * @param {N} name * @param {function} f */ once(name: N, f: Function): void; /** * @param {N} name * @param {function} f */ off(name: N, f: Function): void; /** * Emit a named event. All registered event listeners that listen to the * specified name will receive the event. * * @todo This should catch exceptions * * @param {N} name The event name. * @param {Array} args The arguments that are applied to the event listener. */ emit(name: N, args: Array): void; destroy(): void; } //# sourceMappingURL=observable.d.ts.map