13 lines
601 B
TypeScript
13 lines
601 B
TypeScript
import { Observable } from '../Observable';
|
|
/**
|
|
* The Max operator operates on an Observable that emits numbers (or items that can be evaluated as numbers),
|
|
* and when source Observable completes it emits a single item: the item with the largest number.
|
|
*
|
|
* <img src="./img/max.png" width="100%">
|
|
*
|
|
* @param {Function} optional comparer function that it will use instead of its default to compare the value of two
|
|
* items.
|
|
* @returns {Observable} an Observable that emits item with the largest number.
|
|
*/
|
|
export declare function max<T>(comparer?: (value1: T, value2: T) => T): Observable<T>;
|