UNPKG

econ

Version:
13 lines (12 loc) 921 B
import * as std from "tstl"; export declare class CollectionEvent<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 Iterable<T> { readonly type: string; readonly first: IteratorT; readonly last: IteratorT; constructor(type: string, first: IteratorT, last: IteratorT); [Symbol.iterator](): IterableIterator<T>; } export declare namespace CollectionEvent { type Type = "insert" | "erase" | "refresh"; type Listener<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>> = (event: CollectionEvent<T, SourceT, IteratorT, ReverseT>) => void; }