Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It doesn't support styled components typed with Flow #314

Open
FezVrasta opened this issue Dec 13, 2018 · 1 comment
Open

It doesn't support styled components typed with Flow #314

FezVrasta opened this issue Dec 13, 2018 · 1 comment

Comments

@FezVrasta
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant