eslint/doctrine

Allow omission of type in returns tag

tmcw opened this issue · 2 comments

tmcw commented

Currently doctrine permits syntax like

/**
 * @param foo - this is a param
 */

But not the same for return values

/**
 * @returns foo - this is a return value
 */

Having both tags with optional type annotations would be great since the type annotations can often inferred by Flow/TS.

Does JSDoc support typeless returns currently?

tmcw commented

Yep, I can confirm that JSDoc supports typeless returns

2015-11-07 at 12 21 pm