vojtechhabarta / typescript-generator

Generates TypeScript from Java - JSON declarations, REST service client
MIT License
1.14k stars 237 forks source link

do not use @deprecated tag if enum item is deprecated #1052

Open panchenko opened 7 months ago

panchenko commented 7 months ago

Currently if some enum item a deprecated, then tsdoc is generated mentioning each item, and the deprecated ones are marked with @deprecated.

Values:
- `First`
- `Second` - @deprecated
- `Third`

And then Intellij IDEA treats the whole enum as deprecated. I suggest omitting @ from the generated comment:

Values:
- `First`
- `Second` - deprecated
- `Third`