jsdoc/check-param-names
reports Expected @param names to be "[object Object]"
when using destructured spread arguments
#1225
Labels
Expected behavior
In my TypeScript projects, I occasionally use discriminated unions of tuples to define function parameters. This lets me get autocomplete for arguments based on the value of the first argument, without having to write an overload definition for each option.
If I give the wrong parameter names, I would expect the
jsdoc/check-param-names
to tell me. I would also expect it not to complain if I give the correct parameter names.Actual behavior
Even if I use the correct parameter names, I get an eslint error saying:
ESLint Config
ESLint sample
Environment
eslint-plugin-jsdoc
version: 48.2.3The text was updated successfully, but these errors were encountered: