react-docgen-external-proptypes-handler icon indicating copy to clipboard operation
react-docgen-external-proptypes-handler copied to clipboard

Destructured prop types

Open reintroducing opened this issue 6 years ago • 2 comments

Hey, thanks for this! Works great in this situation:

static propTypes = TextInputPropTypes;

When the propTypes are set to the external file, fantastic. However, if you destructure the props like so, it doesnt work:

static propTypes = {
    ...TextInputPropTypes,
    ...more props here specific to this component
};

Is there a way to make it work for these situations as well?

reintroducing avatar Jun 27 '18 19:06 reintroducing

@reintroducing Stay tune for next version, will add support for Destructured syntax.

pasupuletics avatar Jul 13 '18 11:07 pasupuletics

Any update on this?

mhelvens avatar Nov 12 '18 22:11 mhelvens