Skip to content

Commit

Permalink
StyledComponent infer type from shorthand flow-typed#3766
Browse files Browse the repository at this point in the history
  • Loading branch information
penx committed Mar 6, 2020
1 parent 2a23308 commit 90d016b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,10 @@ declare module 'styled-components' {
|};

declare export type StyledShorthandFactory<V> = {|
[[call]]: <StyleProps, Theme>(
[[call]]: (
string[]
) => StyledComponent<{ ... }, { ... }, V>,
[[call]]: <StyleProps = { ... }, Theme = { ... }>(
string[],
...Interpolation<PropsWithTheme<StyleProps, Theme>>[]
) => StyledComponent<StyleProps, Theme, V>,
Expand Down

0 comments on commit 90d016b

Please sign in to comment.