From 0a6f0495f415e80310545f1b15cca306f24dcc39 Mon Sep 17 00:00:00 2001 From: Ben Lesh Date: Tue, 4 Oct 2016 12:53:39 -0700 Subject: [PATCH] fix(AnonymousSubject): is now exposed on Rx namespace fixes #2002 --- spec/Subject-spec.ts | 4 ++++ src/Rx.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/spec/Subject-spec.ts b/spec/Subject-spec.ts index 0f11f03be2..74ec21fb63 100644 --- a/spec/Subject-spec.ts +++ b/spec/Subject-spec.ts @@ -524,6 +524,10 @@ describe('Subject', () => { }); describe('AnonymousSubject', () => { + it('should be exposed', () => { + expect(Rx.AnonymousSubject).to.be.a('function'); + }); + it('should not eager', () => { let subscribed = false; diff --git a/src/Rx.ts b/src/Rx.ts index cc6322359f..2f4ca8f8bd 100644 --- a/src/Rx.ts +++ b/src/Rx.ts @@ -2,7 +2,7 @@ // Subject imported before Observable to bypass circular dependency issue since // Subject extends Observable and Observable references Subject in it's // definition -export {Subject} from './Subject'; +export {Subject, AnonymousSubject} from './Subject'; /* tslint:enable:no-unused-variable */ export {Observable} from './Observable';