extract-react-types icon indicating copy to clipboard operation
extract-react-types copied to clipboard

Cannot parse anonymous classes

Open Noviny opened this issue 6 years ago • 0 comments

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)

Noviny avatar Apr 12 '19 04:04 Noviny