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

25 lines (22 loc) 1.02 kB
/// <reference path="../../observable.ts" /> module Rx { export interface Observable<T> { /** * Invokes a specified action after the source observable sequence terminates gracefully or exceptionally. * @param {Function} finallyAction Action to invoke after the source observable sequence terminates. * @returns {Observable} Source sequence with the action-invoking termination behavior applied. */ finally(action: () => void): Observable<T>; /** * Invokes a specified action after the source observable sequence terminates gracefully or exceptionally. * @param {Function} finallyAction Action to invoke after the source observable sequence terminates. * @returns {Observable} Source sequence with the action-invoking termination behavior applied. */ ensure(action: () => void): Observable<T>; } } (function () { var o : Rx.Observable<number>; o = o.finally(() => {}); o = o.ensure(() => {}); });