UNPKG

315 BTypeScriptView Raw
1import { IEnumerable } from "./interface/IEnumerable";
2import IEnumerator from "./interface/IEnumerator";
3export declare abstract class Collection<T> implements IEnumerable<T> {
4 getEnumerator(): IEnumerator<T>;
5 toArray(): T[];
6 protected abstract __iterate(fn: (item: T, index: number) => void): void;
7}