JSDoc supports use of the @generator and @yields tags to support documentation for generators. The @generator tag is already (sort-of) understood by docdash, but the @yields tag is not.
In order to properly support documenting generators, support for the @yields tag should be added.
I suggest treating it very similarly to a @returns tag; the above example would say, for example, (async, generator) getFollowing() → {string}, and below the method description, there would be a "Returns: Type - String" section.
JSDoc supports use of the
@generator
and@yields
tags to support documentation for generators. The@generator
tag is already (sort-of) understood by docdash, but the@yields
tag is not.In order to properly support documenting generators, support for the
@yields
tag should be added.I suggest treating it very similarly to a
@returns
tag; the above example would say, for example,(async, generator) getFollowing() → {string}
, and below the method description, there would be a "Returns: Type - String" section.