Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 751 Bytes

flow-support.md

File metadata and controls

27 lines (19 loc) · 751 Bytes

Flow Support

To use flowtype with the public api of styled-components we recommend that you use the library definition in flow-typed.

To install it you can use the flow-typed cli or download it manually from the git repository and storing it in a flow-typed folder in the same folder as your flowconfig.

Installing the libdef with flow-typed

npm i -g flow-typed # if you do not already have flow-typed
flow-typed install styled-components@<version>

Ignore styled-components sources from flow

You should add this to your flowconfig if you run into flow errors from the styled-components package in node_modules.

[ignore]
.*/node_modules/styled-components/.*