Open danielroe opened 2 years ago
What is the purpose of this pull request? (put an "X" next to item)
[ ] Documentation update [x] Bug fix [ ] New feature [ ] Other, please explain:
What changes did you make? (Give an overview)
This simply returns this from destroy() - quite a minor change but which brings the implemenation of Duplex into line with current Node implementation.
this
destroy()
Duplex
Which issue (if any) does this pull request address?
For consistency with Node readable stream implementation, destroy() should return this - https://nodejs.org/api/stream.html#readabledestroyerror
Is there anything you'd like reviewers to focus on?
Context: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/57473
News about this PR?
@feross pls you can review this PR ?
What is the purpose of this pull request? (put an "X" next to item)
[ ] Documentation update [x] Bug fix [ ] New feature [ ] Other, please explain:
What changes did you make? (Give an overview)
This simply returns
this
fromdestroy()
- quite a minor change but which brings the implemenation ofDuplex
into line with current Node implementation.Which issue (if any) does this pull request address?
For consistency with Node readable stream implementation,
destroy()
should returnthis
- https://nodejs.org/api/stream.html#readabledestroyerrorIs there anything you'd like reviewers to focus on?
Context: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/57473