mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
node: stream.finished: err is optional
This commit is contained in:
@@ -1124,10 +1124,10 @@ function simplified_stream_ctor_test() {
|
||||
}
|
||||
|
||||
function streamPipelineFinished() {
|
||||
const cancel = stream.finished(process.stdin, (err: Error) => {});
|
||||
const cancel = stream.finished(process.stdin, (err?: Error) => {});
|
||||
cancel();
|
||||
|
||||
stream.pipeline(process.stdin, process.stdout, (err: Error) => {});
|
||||
stream.pipeline(process.stdin, process.stdout, (err?: Error) => {});
|
||||
}
|
||||
|
||||
async function asyncStreamPipelineFinished() {
|
||||
|
||||
Reference in New Issue
Block a user