-
Notifications
You must be signed in to change notification settings - Fork 51
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 annotating deprecated fields #39
Comments
samstradling
changed the title
Support for deprecated fields
Support for annotating deprecated fields
Jul 8, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If a field is deprecated in the proto definitions, such as
Would it be possible to add a deprecated annotation to the generated types:
If it did, the typescript compiler picks this up giving a warning:
This is useful when deprecating an old field (and often moving to a new one) in a large codebase as it gives a visual indication where the old one is used.
The text was updated successfully, but these errors were encountered: