UNPKG

706 BTypeScriptView Raw
1import { AsyncIterableX } from './asynciterablex';
2export declare class DistinctUntilChangedAsyncIterable<TSource, TKey> extends AsyncIterableX<TSource> {
3 private _source;
4 private _keySelector;
5 private _comparer;
6 constructor(source: AsyncIterable<TSource>, keySelector: (value: TSource) => TKey | Promise<TKey>, comparer: (first: TKey, second: TKey) => boolean | Promise<boolean>);
7 [Symbol.asyncIterator](): AsyncIterableIterator<TSource>;
8}
9export declare function distinctUntilChanged<TSource, TKey>(source: AsyncIterable<TSource>, keySelector?: (value: TSource) => TKey | Promise<TKey>, comparer?: (first: TKey, second: TKey) => boolean | Promise<boolean>): AsyncIterableX<TSource>;