Skip to content

Instantly share code, notes, and snippets.

@smashercosmo
Last active June 1, 2018 13:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smashercosmo/cd9f8d2052601024ebf5499cf7453187 to your computer and use it in GitHub Desktop.
Save smashercosmo/cd9f8d2052601024ebf5499cf7453187 to your computer and use it in GitHub Desktop.
export interface StyledComponent<Props, Theme, IntrinsicProps>
extends
ComponentRef,
ComponentClass<Props & IntrinsicProps>,
StatelessComponent<Props & IntrinsicProps> {
withComponent<Tag extends keyof JSX.IntrinsicElements>(tag: Tag):
StyledComponent<Props, Theme, ElementProps<Tag>>;
withComponent<ComponentProps>(component: Component<Props & ComponentProps>):
StyledComponent<Props & ComponentProps, Theme, {}>;
displayName: string;
__emotion_styles: string[];
__emotion_base: string | Component<Props & IntrinsicProps>;
__emotion_real: ThemedReactEmotionInterface<Theme>;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment