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
attempt()
let apiKey: string | undefined = "someString"; apiKey = Joi.attempt(apiKey, Joi.string().optional().label("apiKey"));
TS2322: Type 'unknown' is not assignable to type 'string | undefined'.
No TS errors.
I suspect the changes from #2797 to be the root cause.
The text was updated successfully, but these errors were encountered:
chore(deps): pinning Joi, see hapijs/joi#2857
39543d4
Same issue, upgrading joi version from ^17.6.0 → ^17.6.2 made my project not to compile.
Sorry, something went wrong.
fix: allow all schema types to be defined and inferred
0173fcd
Fixes #2857
Marsup
Successfully merging a pull request may close this issue.
Support plan
Context
What are you trying to achieve or the steps to reproduce?
What was the result you got?
What result did you expect?
No TS errors.
I suspect the changes from #2797 to be the root cause.
The text was updated successfully, but these errors were encountered: