Replies: 1 comment 3 replies
-
Hey @H7ioo, these types are from I'd highly encourage you to migrate to the new Inquirer package which is written in Typescript and officially supported. See #1214 for the new version notes; or refer to the root README. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to type typesafe prompts? For example:
type of res is
but actually, it's not because I misspelled the name key. Also, if I want to filter the input.
The input is a number but the typescript tells me that it's a string. So is there a way to enforce return type to filter or have typesafe names?
Beta Was this translation helpful? Give feedback.
All reactions