@reactivex/ix-esnext-esm
Version:
The Interactive Extensions for JavaScript
11 lines (10 loc) • 764 B
TypeScript
import { AsyncIterableX } from '../asynciterablex';
import { MonoTypeOperatorAsyncFunction } from '../../interfaces';
export declare class DistinctUntilChangedAsyncIterable<TSource, TKey> extends AsyncIterableX<TSource> {
private _source;
private _keySelector;
private _comparer;
constructor(source: AsyncIterable<TSource>, keySelector: (value: TSource) => TKey | Promise<TKey>, comparer: (first: TKey, second: TKey) => boolean | Promise<boolean>);
[Symbol.asyncIterator](): AsyncGenerator<TSource, void, unknown>;
}
export declare function distinctUntilChanged<TSource, TKey>(keySelector?: (value: TSource) => TKey | Promise<TKey>, comparer?: (first: TKey, second: TKey) => boolean | Promise<boolean>): MonoTypeOperatorAsyncFunction<TSource>;