Skip to content
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

React.PropTypes.shape({ ... }) missing description and required #21

Closed
marcello3d opened this issue Aug 31, 2015 · 3 comments
Closed

React.PropTypes.shape({ ... }) missing description and required #21

marcello3d opened this issue Aug 31, 2015 · 3 comments

Comments

@marcello3d
Copy link

If I have the following:

propTypes: {
  /**
   * a shapely shape
   */
  shape: React.PropTypes.shape({
    /**
     * a shapely property
     */
    subprop: React.PropTypes.number
  })
}

I get description and required fields on the shape property, but not on subprop.

@fkling
Copy link
Member

fkling commented Sep 1, 2015

Supported as of v2.1.0.

@theogravity
Copy link

Thanks!

@fkling
Copy link
Member

fkling commented Sep 1, 2015

Actually, I missed the "required" part. Will take care of this soon.

@fkling fkling reopened this Sep 1, 2015
@fkling fkling closed this as completed in 54ba9f6 Sep 28, 2015
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants