UNPKG

@rxx/worker

Version:

React MVI micro framework.

12 lines (11 loc) 573 B
import { Observable, OperatorFunction } from 'rxjs'; interface FlatScanAggregateReturnType { aggregate: true; payload: any; } export declare type FlatScanReturnType<T> = T | Promise<T> | Observable<T> | FlatScanAggregateReturnType | null | undefined; export interface FlatScanOptions<T> { bufferingConfig?(value: T): number; } export declare function flatScan<T, U>(handler: (acc: T, value: U) => FlatScanReturnType<T> | Promise<FlatScanReturnType<T>>, initial?: T | Observable<T> | Promise<T>, options?: FlatScanOptions<U>): OperatorFunction<U, T>; export {};