Skip to content

Conversation

@twiss
Copy link
Member

@twiss twiss commented Nov 7, 2025

When process and finish return undefined for non-stream objects, return an empty Uint8Array instead of undefined, to be consistent with the streaming case where await readToEnd(transform(stream)) returns an empty Uint8Array as well.

Also to simplify the TS types in #68.

… non-streams

When `process` and `finish` return undefined for non-stream objects,
return an empty Uint8Array instead of undefined, to be consistent
with the streaming case where `await readToEnd(transform(stream))`
returns an empty Uint8Array as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants