We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
v3.2.3
const res = await consola.prompt('Enter somethings', {type: 'text'})
When executing the above code, if you press ctrl + c to cancel, the value of res is Symbol('clack:cancel')
res
Symbol('clack:cancel')
However, res is annotated as string.
I'm not sure if we should set the return value type to string | symbol or make it output an empty string or undefined.
string | symbol
undefined
Is this an upstream issue (in @clack/core)?
@clack/core
No response
The text was updated successfully, but these errors were encountered:
See #251 (comment)
Sorry, something went wrong.
No branches or pull requests
Environment
v3.2.3
Reproduction
When executing the above code, if you press ctrl + c to cancel, the value of
res
isSymbol('clack:cancel')
Describe the bug
However,
res
is annotated as string.I'm not sure if we should set the return value type to
string | symbol
or make it output an empty string orundefined
.Is this an upstream issue (in
@clack/core
)?Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: