Skip to content

Quoted property names ignore @lends #840

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy