UNPKG

ts-ds-tool

Version:

Data structure and algorithm of TypeScript

8 lines (7 loc) 315 B
import { IEnumerable } from "./interface/IEnumerable"; import IEnumerator from "./interface/IEnumerator"; export declare abstract class Collection<T> implements IEnumerable<T> { getEnumerator(): IEnumerator<T>; toArray(): T[]; protected abstract __iterate(fn: (item: T, index: number) => void): void; }