-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
UnwrapNestedRefs
won't reflect getter and setter properly
#3797
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
Comments
duplicate of #3478 |
@iheyunfei Maybe not a duplicate? this one is talking about the same property with different types of |
@HcySunYang I think that @yaquawa means Vue3 can use this feature to fix the problem in #3478.
|
@iheyunfei kind of similar issue, but not exactly I think. |
@yaquawa Oh, I get it. #3791 may be helpful and it should work with typescript4.3 well. I'm not sure if it is recommended, but I would suggest only using plain object in The reflection won't be easy or is even impossible. I play around it and find out that typescript doesn't provide a way to get the type of |
Version
3.1.0-beta.3
Reproduction link
https://codesandbox.io/s/modest-banzai-3in42?file=/index.ts
Steps to reproduce
As from TypeScript 4.3, Separate Write Types on Properties is going to be possible.
But the TypeScript support of
UnwrapNestedRefs
won't work for this new feature currently.The text was updated successfully, but these errors were encountered: