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

Expose PromptOptions as a public API #301

Closed
1 task done
vorant94 opened this issue Jun 8, 2024 · 1 comment
Closed
1 task done

Expose PromptOptions as a public API #301

vorant94 opened this issue Jun 8, 2024 · 1 comment

Comments

@vorant94
Copy link

vorant94 commented Jun 8, 2024

Describe the feature

consola.prompt accepts PromptOptions as a second argument. In my case i'd like to define options separately from prompt request to reuse them multiple times. Is there any reason why these interfaces aren't exported despite being a part of public facing API (prompt function signature)?

As a temporary workaround I use satisfies Parameters<typeof consola.prompt>[1], but it is inconvenient comparing with just using PromptOptions and all this type union members right away...

If these types can be exported, I'll be happy to make PR for it

Additional information

  • Would you be willing to help implement this feature?
@pi0 pi0 closed this as completed in 4a2ccbc Jun 8, 2024
@pi0
Copy link
Member

pi0 commented Jun 8, 2024

Will be exported in next release.

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

No branches or pull requests

2 participants