-
Notifications
You must be signed in to change notification settings - Fork 351
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
Support for generating TSDoc content from the message and field level comments in the Protobuf definition #23
Comments
@dteirney sure, that makes a lot of sense. The ts-poet code generator library that ts-proto uses supports outputting comments, I just hadn't bothered hooking that up yet. If you'd like to take a crack at it, that'd be great. Most of the ts-poet (Somewhat of a small disclaimer, the latest ts-poet release, v3, doesn't use this same builder api anymore, so if you dig too much into ts-poet, just note that ts-proto is still on the v2 ts-poet api.) I can probably sneak this in to at some point too. |
This is merged to master and will go out in the next release, which will be next-day-ish or so. Going to go ahead and close. Thanks @n3rdyme ! That was actually more involved than I thought it was going to be, with the index-based/etc. encoding of the comments in the protobuf file. |
@n3rdyme thanks! Will test once the next release goes out. |
@dteirney version 1.11.0 is out with this change. :-) |
Hello,
Has there been any thought around using the comments for the protobuf message and field definitions to generate TSDoc comments for the generated typescript?
We'd love to be able to have the field comments from the proto files available for devs within VS Code and other editors. Many IDEs and documentation generators support comments using the TSDoc format.
Many of our proto definitions follow both comment guidelines for Uber prototool and Google Documentation AIP. It would be awesome for those comments to come along for the ride with the TS that's generated, similar to the comments that are generated with the Google GAPIC typescript generator.
Thanks!
David
The text was updated successfully, but these errors were encountered: