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';