-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
feat: allow as
expressions for bindable props
#2372
feat: allow as
expressions for bindable props
#2372
Conversation
@dummdidumm can i ask you where i should put the test here? P.s. if you can give a general rule of thumb on how to determine where to put them it would be great for the next times too 😄 |
Personally unsure about this because the type assert looks redundant. The behaviour also slightly deviates from a ts file where the |
Is not something I would personally do but it was pointed out and I think is worth have a safeguard against those who does it. |
While I agree with @jasonlyu123 that it's weird to do that, it's still valid TS syntax and we should support it so this property is properly marked as bindable. As for the test: I propose to enhance the |
Added the test...for the future how can i pick between |
@dummdidumm the test failing is unrelated to this change...should i update that here? |
Yeah you can update it here. |
Oh got it! Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
@dummdidumm Can we get a new release with this in it? I appreciate the work you guys put into this! |
As per discussion on discord this change allow for declaring the type of a bindable prop using the
as type
expressioneg.
i would just need a bit of guidance to determine where to write the test.