UNPKG

@emotion/styled

Version:

styled API for emotion

32 lines (26 loc) 718 B
// Definitions by: Junyoung Clare Jang <https://github.com/Ailrun> // TypeScript Version: 3.2 import { Theme } from '@emotion/react' import { CreateStyled as BaseCreateStyled, CreateStyledComponent } from './base' export { ArrayInterpolation, ComponentSelector, CSSObject, FunctionInterpolation, Interpolation, StyledComponent, StyledOptions, CreateStyledComponent } from './base' export type StyledTags = { [Tag in keyof JSX.IntrinsicElements]: CreateStyledComponent< { theme?: Theme as?: React.ElementType }, JSX.IntrinsicElements[Tag] > } export interface CreateStyled extends BaseCreateStyled, StyledTags {} declare const styled: CreateStyled export default styled