Skip to content

Separate @typedef declarations from the rest #33

Closed

Description

@RunDevelopment

I like to move more complex types into a @typedef tag but this plugin merges those tags with the rest of the comment. Is this intended behaviour?

IMO, @typedefs should be at the end of a comment and they should have an empty line above them to clearly separate them from the rest.

Example

Before:

	/**
	 * Parses the test case from the given test case file
	 *
	 * @private
	 * @param {string} filePath
	 * @returns {ParsedTestCase}
	 *
	 * @typedef ParsedTestCase
	 * @property {string} code
	 * @property {string} expectedJson
	 * @property {number} expectedLineOffset
	 * @property {Array | null} expectedTokenStream
	 * @property {string} comment
	 */

After:

	/**
	 * Parses the test case from the given test case file
	 *
	 * @private
	 * @typedef ParsedTestCase
	 * @property {string} code
	 * @property {string} expectedJson
	 * @property {number} expectedLineOffset
	 * @property {Array | null} expectedTokenStream
	 * @property {string} comment
	 * @param {string} filePath
	 * @returns {ParsedTestCase}
	 */

Activity

  1. added
    bug
    enhancement
    on Jan 31, 2021
  2. changed the title [-]Separate `@typedef` declarations for the rest[/-] [+]Separate `@typedef` declarations from the rest[/+] on Feb 1, 2021
  3. fardad-dev commented on Feb 3, 2021

    @fardad-dev
    Owner

    Fixed dfc78b4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions