Skip to content

Quoted property names ignore @lends #840

Closed
@webOS101

Description

@webOS101

Given the following code:

/**
 * @class Test
 */
class Test extends React.Component {
	static propTypes = /** @lends Test.prototype */ {
		/**
		 * Docs OK!
		 */
		OK: true,
		/**
		 * Does not doc OK
		 */
		'not-ok': false,
	}
}

OK is correctly a member of Test, however, 'not-ok' is not. Adding an explicit @memberof to the doc block for 'not-ok' will cause it to end up in the right place.

  • What version of documentation.js are you using?: 4.0.0-rc.1
  • How are you running documentation.js (on the CLI, Node.js API, Grunt, other?): CLI (or Node.js API)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions