extract-react-types
extract-react-types copied to clipboard
Cannot parse anonymous classes
Currently
export default class extends React.PureComponent<Props> {}
fails with a cryptic 'no converter for: null' error. We implicitly expect all classes (and maybe functions) passed to us to be named.
To resolve this we need to either:
a) Make this an explicit rule and add useful error messaging
or
b) Support unnamed classes (and maybe functions)
I am leaning towards b)