Bones/node_modules/rxjs/operator/min.d.ts
SOUTHERNCO\x2mjbyrn 7efe7605b8 Template Upload
2017-05-17 13:45:25 -04:00

12 lines
603 B
TypeScript

import { Observable } from '../Observable';
/**
* The Min 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 smallest number.
*
* <img src="./img/min.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<R>} an Observable that emits item with the smallest number.
*/
export declare function min<T>(comparer?: (value1: T, value2: T) => T): Observable<T>;