You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit updates IncomingMessage#destroy() to return `this`
for consistency with other readable streams.
PR-URL: #32789Fixes: #32772
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit updates IncomingMessage#destroy() to return `this`
for consistency with other readable streams.
PR-URL: #32789Fixes: #32772
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit updates IncomingMessage#destroy() to return `this`
for consistency with other readable streams.
PR-URL: #32789Fixes: #32772
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Is your feature request related to a problem? Please describe.
DefinitelyTyped/DefinitelyTyped#43782
node doc said stream.destroy should return
this
, but in old node.d.ts, it was wrongly writtenvoid
.when I want to fix this, I found I can't pass the test, because IncommingMessage extends stream, and its destroy method return void.
when I check soure code for node, I found in fact IncommingMessage.prototype.destroy return
void
, here it's not wrong.but they are conflict, and I can't fix them togethor only in node.d.ts.
Describe the solution you'd like
make
IncommingMessage.prototype.destroy
returnthis
Describe alternatives you've considered
make
Readable.prototype.destroy
andWritable.prototype.destroy
return voidI'm not sure which will make a bigger break change, I think we must discuss carefully
The text was updated successfully, but these errors were encountered: