Add @deprecated decorator #642
madcampos
started this conversation in
@env-spec RFCs
Replies: 2 comments 1 reply
-
|
Makes sense to me! |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@madcampos are you thinking type only message or would you expect a warning in the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Motivation
When changes happen in a project, we may want to mark it as deprecated to alert other developers to avoid using something, and optionally point them to use something else instead.
Proposal
Add a new
@deprecateddecorator.The
valuefor this decorator is the message to display about this variable.E.g.:
That in turn would add the
@deprecatedJSDoc annotation to generated types, like so:Beta Was this translation helpful? Give feedback.
All reactions