From 74c98a883d3580728619653664f52b4fff224f1f Mon Sep 17 00:00:00 2001 From: Brandon Kalinowski Date: Wed, 10 Jul 2019 16:42:49 -0700 Subject: [PATCH] fix: expose private implementation --- src/react/styled.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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