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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Narrow
{}
declare const foo: <T>(value: Narrow<T>) => void foo<1 & {}>(2 as 2 & {}) //no error
error, because 2 & {} is not assignable to 1 & {}
2 & {}
1 & {}
The text was updated successfully, but these errors were encountered:
& {}
exactly
this is fixed in typescript 4.8 beta. so i'll close this assuming it was a typescript issue
Sorry, something went wrong.
No branches or pull requests
馃悶 Bug Report
Describe the bug
Reproduce the bug
Expected behavior
error, because
2 & {}
is not assignable to1 & {}
Possible Solution
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: