UNPKG

econ

Version:
15 lines (14 loc) 942 B
import * as std from "tstl"; import { IEventDispatcher } from "./IEventDispatcher"; import { CollectionEvent } from "./CollectionEvent"; export declare class EventDispatcher<T, SourceT extends std.base.Container<T, SourceT, IteratorT, ReverseT>, IteratorT extends std.base.Iterator<T, SourceT, IteratorT, ReverseT>, ReverseT extends std.base.ReverseIterator<T, SourceT, IteratorT, ReverseT>> implements IEventDispatcher<T, SourceT, IteratorT, ReverseT> { /** * @hidden */ private listeners_; constructor(); dispatchEvent(event: CollectionEvent<T, SourceT, IteratorT, ReverseT>): boolean; hasEventListener(type: CollectionEvent.Type): boolean; addEventListener(type: CollectionEvent.Type, listener: CollectionEvent.Listener<T, SourceT, IteratorT, ReverseT>): void; removeEventListener(type: CollectionEvent.Type, listener: CollectionEvent.Listener<T, SourceT, IteratorT, ReverseT>): void; }