TypeStat
TypeStat copied to clipboard
Allow preferences for using React.FC or props interfaces
Given this React component:
const MyComponent = ({ greeting, name }) =>
return `${greeting}, ${name}!`;
Should the MyComponentProps be added as...
{ greeting, name }: My ComponentPropsMyComponent: React.FC<MyComponentProps>
Following #170, there should be a configuration within incompleteTypes to allow one or the other. This will necessitate making the fixes.incompleteTypes allow a complex object in addition to a boolean.