UNPKG

@reactivex/ix-esnext-esm

Version:

The Interactive Extensions for JavaScript

9 lines (8 loc) 617 B
import { AsyncIterableX } from '../../asynciterable/asynciterablex'; export declare function toMapProto<TSource, TKey>(this: AsyncIterableX<TSource>, keySelector: (item: TSource) => TKey | Promise<TKey>): Promise<Map<TKey, TSource>>; export declare function toMapProto<TSource, TKey, TElement = TSource>(this: AsyncIterableX<TSource>, keySelector: (item: TSource) => TKey | Promise<TKey>, elementSelector?: (item: TSource) => TElement | Promise<TElement>): Promise<Map<TKey, TElement>>; declare module '../../asynciterable/asynciterablex' { interface AsyncIterableX<T> { toMap: typeof toMapProto; } }