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
{{ message }}
Repository navigation
[@types/node] stream.finished method accepts incomplete set of properties to options object #70621
Originally posted by hanseartic July 29, 2024 FinishedOptions accepted by stream.finished(stream, options, callback) are missing properties from documentation.
signal<AbortSignal> allows aborting the wait for the stream finish. The underlying stream will not be aborted if the signal is aborted. The callback will get called with an AbortError. All registered listeners added by this function will also be removed.
cleanup<boolean> remove all registered stream listeners. Default: false.
For reference, cleanup only actually exists on stream.promises.finished() and is currently misdocumented in Node. signal arises from the Abortable interface so should be present here – are you unable to assign it?
Activity
hanseartic commentedon Sep 20, 2024
Checked with latest release of
@types/node. Still missingRenegade334 commentedon Sep 21, 2024
For reference,
cleanuponly actually exists onstream.promises.finished()and is currently misdocumented in Node.signalarises from theAbortableinterface so should be present here – are you unable to assign it?hanseartic commentedon Nov 11, 2024
fixed per #70918