Add support for some JSDocs declarations such as @throws and @deprecated #2118
Replies: 5 comments 8 replies
-
I think both would be useful to have, but I'm not sure we currently have the infrastructure to do something like this. I think once we start implementing type inference, we may have the ability to store such annotations as well. Maybe @Conaclos has some insight here :) |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I would love to see the warning if using a method or function decelerated with |
Beta Was this translation helpful? Give feedback.
-
+1 Would love to see this, especially for deprecated code |
Beta Was this translation helpful? Give feedback.
-
Same here! Current only solution is to fall back to eslint :/ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I think it could be useful to add support for some JSDocs rules that don't have a direct TypeScript equivalent, such as
@throws
and@deprecated
.@throws
This could be two folds:
@throws
when there's an explicitthrow
and/or it rethrows an error.Example
@deprecated
Self explanory but consumers of functions with a JSDoc
@deprecated
declaration should trigger a biome warning/error.Example
Beta Was this translation helpful? Give feedback.
All reactions