-
Notifications
You must be signed in to change notification settings - Fork 455
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
@as support for @obj makes inconsistent conversion #6440
Comments
I think it was always an unsafe conversion. So, the conversion right now looks correct to me. |
I'd even vote for deprecating |
Oh, I meant not unsafe, but inconsistent. |
How about seperated it to two cased whether the return type field has |
zth/rescript-relay#467 (comment), also it won't work with opaque types |
I think this is an issue to resolve in rescript-relay, not compiler. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Thanks to the PR #6412, we can rename the returned js object key name. But I found little inconsistent with the exisiting
@as
usage on record.generated to
IMO,
@as("b")
would make rename the argument tob
, but not affecting the returned value that needs to be kepta
by@as("a")
What do you think? @DZakh
The text was updated successfully, but these errors were encountered: