Using jsdoc/no-undefined-types
without actually checking if types are undefined.
#793
Labels
jsdoc/no-undefined-types
without actually checking if types are undefined.
#793
Motivation
I would like to use types in jsdoc without having to use
import()
.For instance, instead of doing
I would like to do
However, at the moment this causes an eslint
no-unused-vars
error.Afaik the only way to solve this is by enabling
jsdoc/no-undefined-types
, however, this causes errors when using certain types likeGenerator
orConstructorParameters
. If #99 is added we can import the same files that are used for typescript.But until then the only way to suppress these errors is by providing a list of types in
definedTypes
forjsdoc/no-undefined-types
, which is not ideal.Would there be some sort of way to use
jsdoc/no-undefined-types
for suppressingno-unused-vars
errors only? That is, mark variables as used without actually checking if the used type is a valid type?Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: