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

Fix types of execaSync() #939

Merged
merged 1 commit into from Mar 30, 2024
Merged

Fix types of execaSync() #939

merged 1 commit into from Mar 30, 2024

Conversation

ehmicky
Copy link
Collaborator

@ehmicky ehmicky commented Mar 29, 2024

This PR improves the types of execaSync(), making it clearer that some features are not available with synchronous methods.

index.d.ts Outdated
| 'ignore'
| 'inherit';
| 'inherit'
| IfAsync<IsSync, 'overlapped'>;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: overlapped currently crashes the process with spawnSync(), instead of just throwing an error, or just behaving like pipe.

I opened a bug in nodejs/node#52265

@ehmicky ehmicky force-pushed the sync-types branch 5 times, most recently from 42bf3cd to dab6913 Compare March 30, 2024 02:10
@ehmicky
Copy link
Collaborator Author

ehmicky commented Mar 30, 2024

Fixed merge conflict.

@ehmicky ehmicky force-pushed the sync-types branch 5 times, most recently from b05007b to d8c1134 Compare March 30, 2024 02:36
@sindresorhus sindresorhus merged commit 8f97132 into main Mar 30, 2024
14 checks passed
@sindresorhus sindresorhus deleted the sync-types branch March 30, 2024 03:23
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.

None yet

2 participants