Skip to content
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

Invalid types for result.stdout|stderr|all #673

Closed
ehmicky opened this issue Jan 11, 2024 · 1 comment · Fixed by #681
Closed

Invalid types for result.stdout|stderr|all #673

ehmicky opened this issue Jan 11, 2024 · 1 comment · Fixed by #681

Comments

@ehmicky
Copy link
Collaborator

ehmicky commented Jan 11, 2024

result.stdout is undefined when either:

  • the buffer option is false
  • the stdout option is inherit, ipc, ignore, a Node.js stream or an integer. Or an array with a single item with one of those values.

At the moment, result.stdout is always typed as either string or Uint8Array instead.

This problem applies also to result.stderr and result.all.

@ehmicky
Copy link
Collaborator Author

ehmicky commented Jan 12, 2024

Done in #681.

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 a pull request may close this issue.

1 participant