UNPKG

@actyx/sdk

Version:
9 lines (8 loc) 556 B
import { Observable, OperatorFunction } from '../../node_modules/rxjs'; import { CancelSubscription } from '../types'; /** * Just like takeWhile but will also emit the element on which the predicate has fired * @param predicate the predicate for this operator */ export declare const takeWhileInclusive: <T>(predicate: (value: T, index: number) => boolean) => OperatorFunction<T, T>; export declare const omitObservable: <T>(stoppedByError: ((err: unknown) => void) | undefined, callback: (newVal: T) => void, obs: Observable<T>) => CancelSubscription;