UNPKG

@codibre/fluent-iterable

Version:

Provides LINQ-like fluent api operations for iterables and async iterables (ES2018+).

9 lines (8 loc) 423 B
import { FluentAsyncIterable } from '.'; /** * Generates a FluentIterable that yields a for-like increment * @param start The starting number * @param condition The keep going condition * @param increment The increment. Default 1 */ export declare function fluentForAsync<T>(start: T | Promise<T>, condition: (value: T) => boolean | Promise<boolean>, increment?: (value: T) => T | Promise<T>): FluentAsyncIterable<T>;