Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: deprecate error ctors #6277

Merged
merged 3 commits into from Apr 28, 2021

Conversation

cartant
Copy link
Collaborator

@cartant cartant commented Apr 28, 2021

Description:

This PR adds @deprecated tags to the error constructors so that devs attempting to create instances of this package's errors will be told they're being naughty. We can't tag them as @internal because TypeScript gets too upset about it - see linked issue and PR.

This PR also adds some dtslint tests to make sure the deprecations work properly and don't interfere with instanceof usage.

Related issue (if exists): #6269 and #6275

@cartant cartant requested a review from benlesh April 28, 2021 07:20
@benlesh benlesh merged commit e572d2e into ReactiveX:master Apr 28, 2021
@cartant cartant deleted the cartant/deprecate-error-ctors branch May 2, 2021 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants