Add support for some JSDocs declarations such as @throws and @deprecated #2118
amoreaulemay
started this conversation in
Ideas
Replies: 2 comments
-
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.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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