Skip to content

Commit

Permalink
fix: expose private implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkal committed Jul 10, 2019
1 parent 5d1b879 commit 74c98a8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/react/styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<any> | string;
};
};

export type StyledComponent<Tag, ExtraProps> = React.FunctionComponent<
GetProps<Tag> & AsProp & ExtraProps
Expand Down

0 comments on commit 74c98a8

Please sign in to comment.