Skip to content
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

Use forked tsify branch to copy rustdoc comments over to web TS types #1761

Merged
merged 1 commit into from
Aug 18, 2023

Conversation

sisou
Copy link
Member

@sisou sisou commented Aug 11, 2023

When generating the web-client Typescript type definitions, we use both wasm-bindgen and tsify for generating types. wasm-bindgen-annotated structs correctly carry their rustdoc comments over, but tsify-tagged ones were not.

I added this functionality to tsify in my fork, which the web-client switches to in this PR.

Having the comments in the generated type definitions benefits developers who can see the comments when hovering over the types in their TS projects in IDEs.

@sisou sisou self-assigned this Aug 11, 2023
@sisou sisou added the WASM label Aug 11, 2023
@sisou sisou force-pushed the sisou/web-client-tsify-comments branch from 4b7db0b to fde524c Compare August 14, 2023 12:03
@jsdanielh jsdanielh added this to the Nimiq PoS Mainnet milestone Aug 17, 2023
@jsdanielh
Copy link
Member

Rebasing to get it merged

@jsdanielh jsdanielh force-pushed the sisou/web-client-tsify-comments branch from fde524c to 6feaae9 Compare August 18, 2023 19:25
@jsdanielh jsdanielh merged commit 6feaae9 into albatross Aug 18, 2023
@jsdanielh jsdanielh deleted the sisou/web-client-tsify-comments branch August 18, 2023 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants