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
function foo(): number | undefined { // } const value = foo(); expect(value).to.be(123) function bar(): boolean { // } expect(bar()).equals(false)
compilation errors like:
Argument of type '123' is not assignable to parameter of type 'never' Argument of type 'false' is not assignable to parameter of type 'never'
no compile error
The text was updated successfully, but these errors were encountered:
Thanks for the report. This seems to be an issue with the recent #163. I'm looking into a fix.
Sorry, something went wrong.
Don't narrow generic on type specific assertions. Closes hapijs#167
5b1fe63
I made a fix in #168.
Don't narrow generic on type specific assertions (#168)
4d61ad1
* Don't narrow generic on type specific assertions. Closes #167 * Allow specifying custom type using just 1 parameter
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?
compilation errors like:
What result did you expect?
no compile error
The text was updated successfully, but these errors were encountered: