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: update typings to accept zero arguments #151

Closed

Conversation

AgentEnder
Copy link

The default export for cliui is a function that takes 1 or 0 arguments, as indicated in the examples in the readme. This updates the typescript typings so that passing zero arguments is valid

The default export for cliui is a function that takes 1 or 0 arguments, as indicated in the examples in the readme. This updates the typescript typings so that passing zero arguments is valid
@shadowspawn
Copy link
Member

See #145 for open PR which fixes this, and another optional argument as well.

@AgentEnder
Copy link
Author

Ah, thanks I missed that.

@AgentEnder AgentEnder closed this Sep 28, 2023
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