Parse JSDoc comments on Properties #5313
dudeofawesome
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
I am personally not interested in implementing that, but the metadata provider layer is (and always was) configurable, nothing holds you from creating such metadata provider, and maybe publish it as a 3rd party package. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
When defining an Entity, I often find myself writing JSDoc code comments to provide inline documentation for properties. I usually want those comments to also exist on the database representation of the Entity as well, so I have to copy my comments into the
comment
property of theProperty
decorator.Describe the solution you'd like
It would be nice if we could parse the code comments from the AST just like we parse the property name and type.
Here's an example of TS-Morph providing the JSDoc comment on
bar
into theNode::jsDoc[0].comment
property.Beta Was this translation helpful? Give feedback.
All reactions