layershifter / babel-plugin-transform-react-handled-props

Generates handledProps from defaultProps and propTypes during the build :sparkles:
MIT License
19 stars 4 forks source link

What if ' props ' is defined through ' flow '? #29

Closed simonguo closed 5 years ago

simonguo commented 6 years ago

in

type Props = {
  disabled?: boolean
}

class Demo extends React.Component<Props>{
 ...
}

out

Demo.handledProps = [];
simonguo commented 6 years ago

Can you support it through babel-plugin-flow-react-proptypes preprocessing?

layershifter commented 5 years ago

Closing for housekeeping/