UNPKG

charlike

Version:

Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options

17 lines (15 loc) 600 B
/// <reference path="../../observable.ts" /> module Rx { export interface Observable<T> { /** * Returns the last element of an observable sequence that satisfies the condition in the predicate if specified, else the last element. * @returns {Observable} Sequence containing the last element in the observable sequence that satisfies the condition in the predicate. */ last(predicate?: _Predicate<T>, thisArg?: any): Observable<T>; } } (function () { var o : Rx.Observable<number>; o = o.last((x) => true); o = o.last((x) => true, {}); });