UNPKG

typescript-dotnet-core

Version:

A the core classes and utilities of a JavaScript-Friendly .NET Based TypeScript Library.

23 lines (17 loc) 699 B
/*! * @author electricessence / https://github.com/electricessence/ * Licensing: MIT https://github.com/electricessence/TypeScript.NET-Core/blob/master/LICENSE.md */ import {ActionWithIndex, PredicateWithIndex} from "../../FunctionTypes"; export interface IEnumerateEach<T> { // Note: Enforcing an interface that allows operating on a arrayCopy can prevent changing underlying data while enumerating. /** * If the action returns false, the enumeration will stop. * @param action * @param useCopy */ forEach(action:ActionWithIndex<T>, useCopy?:boolean):number; forEach(action:PredicateWithIndex<T>, useCopy?:boolean):number; } export default IEnumerateEach;