Currently, I am in the process of creating typescript definitions for a JavaScript API that includes a deprecated method. The documentation mentions that the API is solely for compatibility purposes and has no effect:
This API has no effect. It has been maintained for compatibility purpose.
Despite it being deprecated, I still want to include the method in the definitions file for compatibility reasons. However, I also want to indicate that it is no longer recommended for use.
Although my immediate concern is regarding deprecation within a definitions file, I am also interested in utilizing this feature in other areas of my code. Therefore, my primary question is: How can I designate something as deprecated in typescript?