import { IterableX } from '../../iterable/iterablex' ; import { toMap , ToMapOptions } from '../../iterable/tomap' ; export function toMapProto < TSource , TKey , TElement = TSource > ( this , options ) { return toMap ( this , options ) ; } IterableX . prototype . toMap = toMapProto ; declare module '../../iterable/iterablex' { interface IterableX < T > { toMap : typeof toMapProto ; } }