UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

17 lines (16 loc) 561 B
import { Observable } from '../Observable'; /** * Returns a new observable that triggers on the second and following inputs. * An input that triggers an event will return an pair of [(N - 1)th, Nth]. * The (N-1)th is stored in the internal state until Nth input occurs. * * <img src="./img/pairwise.png" width="100%"> * * @return {Observable<R>} an observable of pairs of values. * @method pairwise * @owner Observable */ export declare function pairwise<T>(): Observable<[T, T]>; export interface PairwiseSignature<T> { (): Observable<[T, T]>; }