Skip to content

Quoted property names ignore @lends #840

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
webOS101 opened this issue Jul 12, 2017 · 0 comments · Fixed by #1035
Closed

Quoted property names ignore @lends #840

webOS101 opened this issue Jul 12, 2017 · 0 comments · Fixed by #1035
Labels

Comments

@webOS101
Copy link

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants