///
module Rx {
export interface Observable {
/**
* 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;
/**
* 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;
}
}
(function () {
var o : Rx.Observable;
o = o.finally(() => {});
o = o.ensure(() => {});
});