You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/tmp/example.js
4:0 warning The type 'ValueType' is undefined jsdoc/no-undefined-types
5:0 warning The type 'ValueType' is undefined jsdoc/no-undefined-types
✖ 2 problems (0 errors, 2 warnings)
Note that if exports.resolve1 = is removed, the warnings do not occur.
/** Gets a Promise resolved with a given value. * * @template ValueType * @param {ValueType} value Value to resolve. * @returns {Promise<ValueType>} Promise resolved with value. */exports.resolve1=functionresolve1(value){returnPromise.resolve(value);};
Environment
Node version: v14.0.0
ESLint version v7.2.0
eslint-plugin-jsdoc version: 27.0.7
Related Issues
The issue may be related to #559, but since it occurs on the function where @template is used rather than inside, I thought it may be a separate issue.
The text was updated successfully, but these errors were encountered:
Expected behavior
The code below would not produce any warnings.
Actual behavior
Note that if
exports.resolve1 =
is removed, the warnings do not occur.ESLint Config
ESLint sample
Environment
eslint-plugin-jsdoc
version: 27.0.7Related Issues
The issue may be related to #559, but since it occurs on the function where
@template
is used rather than inside, I thought it may be a separate issue.The text was updated successfully, but these errors were encountered: