Skip to content

Commit

Permalink
fix(rxjs): once again exports custom error types (#3371)
Browse files Browse the repository at this point in the history
  • Loading branch information
benlesh authored Mar 3, 2018
1 parent 1ac0b75 commit 4465a9f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/index-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ describe('index', () => {
expect(index.identity).to.exist;
});

it('should export error types', () => {
expect(index.ArgumentOutOfRangeError).to.exist;
expect(index.EmptyError).to.exist;
expect(index.ObjectUnsubscribedError).to.exist;
expect(index.UnsubscriptionError).to.exist;
});

it('should export constants', () => {
expect(index.EMPTY).to.exist;
});
Expand Down
6 changes: 6 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ export { pipe } from './internal/util/pipe';
export { noop } from './internal/util/noop';
export { identity } from './internal/util/identity';

/* Error types */
export { ArgumentOutOfRangeError } from './internal/util/ArgumentOutOfRangeError';
export { EmptyError } from './internal/util/EmptyError';
export { ObjectUnsubscribedError } from './internal/util/ObjectUnsubscribedError';
export { UnsubscriptionError } from './internal/util/UnsubscriptionError';

/* Static observable creation exports */
export { bindCallback } from './internal/observable/bindCallback';
export { bindNodeCallback } from './internal/observable/bindNodeCallback';
Expand Down

0 comments on commit 4465a9f

Please sign in to comment.