UNPKG

fast-iterable

Version:

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

9 lines (8 loc) 515 B
/// <reference types="node" /> import EventEmitter = require('events'); import { FluentAsyncIterable, FluentEmitOptions, FluentIterable } from './types'; declare function f<T>(iterable: Iterable<T>): FluentIterable<T>; declare function f<T>(iterable: AsyncIterable<T>): FluentAsyncIterable<T>; declare function f<T extends object, K extends keyof T>(iterable: T): FluentAsyncIterable<[K, T[K]]>; declare function f<T = any>(emitter: EventEmitter, options?: FluentEmitOptions): FluentAsyncIterable<T>; export { f };