-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
ts: Fix IDL type issues #1726
ts: Fix IDL type issues #1726
Conversation
Add an empty prettier config file to inform editors to use it instead of any user defaults. The empty config causes prettier to use the defaults which are what are already in use.
Hi Anchor team, |
Hey! Also blocked by this. Are there any issues with merging? |
Hey, any update? This PR fixes a serious problem because, right now, all nested structures are generated as |
Any feedback from the anchor team on what is blocking this would be greatly appreciated. Currently I have to rely on using the npm package patch-package to patch the |
Superceded by: #2482 |
Changelog
never
.Buffer
for thebytes
type.Notes
Currently the changes made would result in enum variant names being as described in the IDL, that means that no case conversion would be done, this would be a breaking change. This could be mitigated by either storing the camelcased enum variant names in the IDL, or by doing the camelcase conversion at a type level.
In terms of camelcase at a type level, I have created a demo here: https://github.com/Juici/camelcase-ts.