in src/rule-generated-flow-types.js [672:682]
ClassDeclaration(node) {
const componentName = node.id.name;
componentMap[componentName] = {
Component: node.id
};
// new style React.Component accepts 'props' as the first parameter
if (node.superTypeParameters && node.superTypeParameters.params[0]) {
componentMap[componentName].propType =
node.superTypeParameters.params[0];
}
},