react-docgen icon indicating copy to clipboard operation
react-docgen copied to clipboard

It doesn't support styled components typed with Flow

Open FezVrasta opened this issue 6 years ago • 1 comments

Take this simple styled component:

type Props = {
  color: string,
};

const Foo: StatelessFunctionalComponent<Props> = styled.div`
  color: ${props => props.color};
`;

// @component
export default Foo;

react-dogen doesn't detect its property types

FezVrasta avatar Dec 13 '18 14:12 FezVrasta

To me it would be enough even to simply support something like // @component<Props> or similar anyway.

FezVrasta avatar Jan 16 '19 16:01 FezVrasta