-
Notifications
You must be signed in to change notification settings - Fork 8
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
Remove type annotations from JSDoc? #17
Comments
I disagree. Due to maintenance costs, sometimes the type annotation is directly set as "any". In such cases, it is meaningful to have detailed explanations or examples in JSDoc that reflect the types being used. |
Thank you for your advice, but I didn't say to remove all JSDoc comments, but only type annotations (i.e. |
However, due to maintenance costs, if there is a complex mixed object, its type is often directly set as "any". JSDoc |
I hope you don't mind me being too straightforward here, but this is a misuse of If I were a maintainer and saw a It is maintainers' responsibility to type them, not users. |
Well said, then you go ahead and do it. Until the types of all objects and arrays are accurately described, I oppose removing comments prematurely. |
@AnYiEE Could you please give a full list of typings you think inaccurate "due to maintenance costs"? In such case problems can be solved faster, thanks! |
Maybe you can search globally for the keyword |
After #24 I believe it is sufficient to have type annotations removed. |
At the current state, some type annotations have been removed, some have been modified (to be more specific), and others have been left as they are in the original JSdoc. Sometimes there are also multiple conventions used (e.g. JSdoc vs TS syntax of objects). If, for the reason discussed above, some annotations should be kept as is, I suggest either to:
|
Given that JSDoc type annotations are simply ignored in .d.ts files, I believe they are redundant and should be removed.
The text was updated successfully, but these errors were encountered: