From 34c39dddf3301dd578fc8e64bf408c068f6428b3 Mon Sep 17 00:00:00 2001 From: Rob Wormald Date: Thu, 8 Sep 2016 10:54:30 -0700 Subject: [PATCH] fix(operators): export reserved name operators on prototype closes #1924 --- src/add/operator/catch.ts | 2 ++ src/add/operator/do.ts | 2 ++ src/add/operator/finally.ts | 2 ++ src/add/operator/switch.ts | 2 ++ 4 files changed, 8 insertions(+) diff --git a/src/add/operator/catch.ts b/src/add/operator/catch.ts index 2451d40dbf..52bdea2f07 100644 --- a/src/add/operator/catch.ts +++ b/src/add/operator/catch.ts @@ -3,9 +3,11 @@ import { Observable } from '../../Observable'; import { _catch, CatchSignature } from '../../operator/catch'; Observable.prototype.catch = _catch; +Observable.prototype._catch = _catch; declare module '../../Observable' { interface Observable { catch: CatchSignature; + _catch: CatchSignature; } } \ No newline at end of file diff --git a/src/add/operator/do.ts b/src/add/operator/do.ts index 53f0d8598b..6fe67140c0 100644 --- a/src/add/operator/do.ts +++ b/src/add/operator/do.ts @@ -3,9 +3,11 @@ import { Observable } from '../../Observable'; import { _do, DoSignature } from '../../operator/do'; Observable.prototype.do = _do; +Observable.prototype._do = _do; declare module '../../Observable' { interface Observable { do: DoSignature; + _do: DoSignature; } } \ No newline at end of file diff --git a/src/add/operator/finally.ts b/src/add/operator/finally.ts index 33b6fe410d..471a255557 100644 --- a/src/add/operator/finally.ts +++ b/src/add/operator/finally.ts @@ -3,9 +3,11 @@ import { Observable } from '../../Observable'; import { _finally, FinallySignature } from '../../operator/finally'; Observable.prototype.finally = _finally; +Observable.prototype._finally = _finally; declare module '../../Observable' { interface Observable { finally: FinallySignature; + _finally: FinallySignature; } } \ No newline at end of file diff --git a/src/add/operator/switch.ts b/src/add/operator/switch.ts index 311cc049f9..af6a8fb813 100644 --- a/src/add/operator/switch.ts +++ b/src/add/operator/switch.ts @@ -3,9 +3,11 @@ import { Observable } from '../../Observable'; import { _switch, SwitchSignature } from '../../operator/switch'; Observable.prototype.switch = _switch; +Observable.prototype._switch = _switch; declare module '../../Observable' { interface Observable { switch: SwitchSignature; + _switch: SwitchSignature; } } \ No newline at end of file