diff --git a/src/react/styled.ts b/src/react/styled.ts index 9dbb74beb..8753a2381 100644 --- a/src/react/styled.ts +++ b/src/react/styled.ts @@ -146,7 +146,12 @@ type AsProp = { as?: React.ElementType }; * ``const Dialog = styled.div` ${Button} { color: red; } `` * Without the _isStyled type, Button's properties could appear on Dialog which would be incorrect. */ -type _isStyled = { __linaria: true }; +type _isStyled = { + __linaria: { + className: string; + extends: React.ComponentType | string; + }; +}; export type StyledComponent = React.FunctionComponent< GetProps & AsProp & ExtraProps