fix(streams): tighten stream typings and guard optional runtime paths for duplex and wrapper utilities
This commit is contained in:
@@ -112,7 +112,10 @@ export class WebDuplexStream<TInput = any, TOutput = any> extends TransformStrea
|
||||
};
|
||||
|
||||
try {
|
||||
await this.options.readFunction(tools);
|
||||
const readFunction = this.options.readFunction;
|
||||
if (readFunction) {
|
||||
await readFunction(tools);
|
||||
}
|
||||
if (doneSignaled) {
|
||||
await writer.close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user