-
-
Notifications
You must be signed in to change notification settings - Fork 302
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
prompt()
questions input type is incompatible with @yeoman/adapter
#1575
Comments
I believe I've found the source of this issue. The Lines 9 to 10 in 34781f7
This means that the Yeoman adapter and Yeoman types are treating Possibly a modification could be made to export type PromptQuestion<A extends PromptAnswers = PromptAnswers> = DistinctQuestion<A> & { name: string }; |
I've created a PR for |
Generator's types should be used instead. Maybe it’s not exported yet. |
@mshima Yes, |
Please go ahead |
Calling
Generator.prompt()
with an array of questions of typePromptQuestions
throws a type error.Directly passing an array of questions into
prompt()
is valid:But storing them in a variable is not:
Am I doing something wrong storing these prompt questions into an attribute? I'd like to store them this way so i can do more with them than just prompt interactive questions (such as create CLI arguments).
The text was updated successfully, but these errors were encountered: