UNPKG

754 BTypeScriptView Raw
1import { Observable } from '../Observable';
2import { Subscriber } from '../Subscriber';
3/**
4 * A basic scan operation. This is used for `scan` and `reduce`.
5 * @param accumulator The accumulator to use
6 * @param seed The seed value for the state to accumulate
7 * @param hasSeed Whether or not a seed was provided
8 * @param emitOnNext Whether or not to emit the state on next
9 * @param emitBeforeComplete Whether or not to emit the before completion
10 */
11export declare function scanInternals<V, A, S>(accumulator: (acc: V | A | S, value: V, index: number) => A, seed: S, hasSeed: boolean, emitOnNext: boolean, emitBeforeComplete?: undefined | true): (source: Observable<V>, subscriber: Subscriber<any>) => void;
12//# sourceMappingURL=scanInternals.d.ts.map
\No newline at end of file