UNPKG

@codibre/fluent-iterable

Version:

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

10 lines (9 loc) 464 B
import { FluentAsyncIterable } from './types'; import { AnyIterable } from 'augmentative-iterable'; /** * Tranforms an asynchronous iterable into a [[FluentAsyncIterable]]. * @typeparam T The type of the items in the async iterable. * @param iterable The asynchronous iterable instance. * @returns The [[FluentAsyncIterable]] instance. */ export declare function fluentAsync<T>(iterable: AnyIterable<T> | PromiseLike<AnyIterable<T>>): FluentAsyncIterable<T>;