Skip to content

Commit

Permalink
chore(inexorably): Deprecate.
Browse files Browse the repository at this point in the history
  • Loading branch information
cartant committed Sep 15, 2018
1 parent 799035e commit cfe9edf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/operators/inexorably-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @license Use of this source code is governed by an MIT-style license that
* can be found in the LICENSE file at https://github.com/cartant/rxjs-etc
*/
/*tslint:disable:no-unused-expression*/
/*tslint:disable:deprecation no-unused-expression*/

import { expect } from "chai";
import { interval, Notification, of, timer } from "rxjs";
Expand Down
4 changes: 3 additions & 1 deletion source/operators/inexorably.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @license Use of this source code is governed by an MIT-style license that
* can be found in the LICENSE file at https://github.com/cartant/rxjs-etc
*/
/*tslint:disable:no-use-before-declare*/
/*tslint:disable:deprecation no-use-before-declare*/

import {
MonoTypeOperatorFunction,
Expand All @@ -14,10 +14,12 @@ import {
TeardownLogic
} from "rxjs";

/** @deprecated Use finalizeWithKind */
export function inexorably<T>(callback: (notification: Notification<T> | undefined) => void): MonoTypeOperatorFunction<T> {
return (source: Observable<T>) => source.lift(new InexorablyOperator(callback));
}

/** @deprecated Use finalizeWithKind */
export const finalize = inexorably;

/*tslint:disable-next-line:no-unused-declaration*/
Expand Down

0 comments on commit cfe9edf

Please sign in to comment.