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

correctly type return/resolved values instead of any #409

Open
kilianc opened this issue Dec 8, 2023 · 0 comments
Open

correctly type return/resolved values instead of any #409

kilianc opened this issue Dec 8, 2023 · 0 comments

Comments

@kilianc
Copy link

kilianc commented Dec 8, 2023

Is your feature request related to a problem?

const { question } = await prompts({
  type: 'text',
  name: 'question',
  message: 'what do you want to ask?'
})

question is incorrectly typed as any instead of string

Describe the solution you'd like

Better return types

Describe alternatives you've considered

const { question }: { question: string}  = await prompts({
  type: 'text',
  name: 'question',
  message: 'what do you want to ask?'
})

Additional context

image
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

1 participant