-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Proxy property in setter has never type #47295
Comments
Yes. See #30769. In most of your setups, the type of |
|
Thank you for explaining me all these, @fatcerberus. There are two more doubts I didn't call out:
|
This issue has been marked 'Working as Intended' and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
Bug Report
🔎 Search Terms
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
With TypeScript 4.5.4 (current latest) and currently Nightly version, this code is throwing error
Type 'any' is not assignable to type 'never'.(2322)
for the version 1,2,3,4 yet for version 5 and 6 no error is reported. If we remove one of thenum
prop orstr
, all the errors are gone.Is there an explanation for this design?
Also asked on stack overflow
🙂 Expected behavior
We can use all of version 1,2,3,4 without having this TS2322 error.
The text was updated successfully, but these errors were encountered: