-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplex.from({writable, readable}) in object mode incompatibility #92
Comments
Workaround: const readable: streams.Duplex = new streams.PassThrough({ objectMode: true, emitClose: true });
const writable: NodeJS.WritableStream = vfs.dest(containerDirectoryPath, _options.destOptions);
Object.defineProperty(writable, 'writableObjectMode', { enumerable: true, configurable: true, value: true });
return streams.Duplex.from({ writable, readable }); |
Whats breaking for you without this? |
I use |
I see. I dont streamx streams are really meant to be turned into node streams, ie node streams have a ton of stuff. Would suggest using https://github.com/mafintosh/stream-composer for making the duplex etc. |
ok, thank You. But can You add typescript types declaration for streamx and stream-composer?. |
I dont write typescript so wouldnt know how to do that. Feel free to send a PR to help. Its pretty stable these days so few things change. |
Please, add properties
readableObjectMode
,writableObjectMode
for compatibility withDuplex.from({writable, readable})
forwritable.objectMode === true
.The text was updated successfully, but these errors were encountered: