@reactivex/ix-es5-esm
Version:
The Interactive Extensions for JavaScript
18 lines (14 loc) • 431 B
text/typescript
import { AsyncIterableX } from '../../asynciterable/asynciterablex.js';
import { toSet } from '../../asynciterable/toset.js';
/**
* @ignore
*/
export function toSetProto<TSource>(this: AsyncIterableX<TSource>): Promise<Set<TSource>> {
return toSet(this);
}
AsyncIterableX.prototype.toSet = toSetProto;
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
toSet: typeof toSetProto;
}
}