Skip to content

Commit 0a6f049

Browse files
committed
fix(AnonymousSubject): is now exposed on Rx namespace
fixes #2002
1 parent 1ba0358 commit 0a6f049

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

spec/Subject-spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,10 @@ describe('Subject', () => {
524524
});
525525

526526
describe('AnonymousSubject', () => {
527+
it('should be exposed', () => {
528+
expect(Rx.AnonymousSubject).to.be.a('function');
529+
});
530+
527531
it('should not eager', () => {
528532
let subscribed = false;
529533

src/Rx.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Subject imported before Observable to bypass circular dependency issue since
33
// Subject extends Observable and Observable references Subject in it's
44
// definition
5-
export {Subject} from './Subject';
5+
export {Subject, AnonymousSubject} from './Subject';
66
/* tslint:enable:no-unused-variable */
77
export {Observable} from './Observable';
88

0 commit comments

Comments
 (0)