@rx-angular/cdk
Version:
@rx-angular/cdk is a Component Development Kit for ergonomic and highly performant angular applications. It helps to to build Large scale applications, UI libs, state management, rendering systems and much more. Furthermore the unique way of mixing reacti
13 lines (12 loc) • 850 B
TypeScript
import { Observable, OperatorFunction } from 'rxjs';
/**
* This Observable factory creates an Observable out of a static value or an Observable.
* It forwards only distinct values from distinct incoming Observables or values.
* This comes in handy in any environment where you handle processing of incoming dynamic values and their state.
*
* Optionally you can pass a flatten strategy to get find grained control of the flattening process. E.g. mergeAll, switchAll
*
* @param o$ - The Observable to coerce and map to a Observable with distinct values
* @param flattenOperator - determines the flattening strategy e.g. mergeAll, concatAll, exhaust, switchAll. default is switchAll
*/
export declare function coerceDistinctObservable<T>(o$: Observable<Observable<T> | T>, flattenOperator?: OperatorFunction<Observable<T>, T>): Observable<T>;