You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
Describe the feature
consola.prompt
acceptsPromptOptions
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 usingPromptOptions
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
The text was updated successfully, but these errors were encountered: