-
Notifications
You must be signed in to change notification settings - Fork 2
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
proposal: generalize toReadable #199
Comments
That looks quite useful. Overall, a big 👍 Two questions and two nits
|
Ah, and one more thing. Would this still need two versions for |
Renaming to Objects are parsed fine, and the readable stream is created in object mode. If I'm not wrong, the stream is in object mode also when using string arguments (this is also explicitly stated in the documentation). Apparently it is working fine as a single function for both objects and strings (I tried to make separate functions but I got error when setting I can make a PR with the suggested changes so we can add some unit tests to ensure the behavior is correct. |
the base package has
toReadable
operations (although they are not listed inmanifest.ttl
).I propose a new implementation, simpler and more general:
with manifest entry:
The proposed implementation is not limited to a single value:
The same implementation works also with objects (even though I see less use cases):
The text was updated successfully, but these errors were encountered: