function renderTab(Tab: React.ComponentType<any>): null {
return null;
}
class Foo extends React.Component<Props, State> {
renderTab(Tab: React.ComponentType<any>): null { // 'ComponentType' is not defined. eslint(no-undef)
return null;
}
}
eslint only complains about the use of ComponentType when used as a param type in a method, but functions are fine.
This is using 5.7.2 of eslint-plugin-flowtype.