@emotion/styled
Version:
styled API for emotion
34 lines (27 loc) • 807 B
TypeScript
// Definitions by: Junyoung Clare Jang <https://github.com/Ailrun>
// TypeScript Version: 3.2
import { CreateStyled as BaseCreateStyled, CreateStyledComponent } from './base'
export {
ArrayInterpolation,
ComponentSelector,
CSSObject,
FunctionInterpolation,
Interpolation,
ObjectInterpolation,
StyledComponent,
StyledOptions,
CreateStyledComponent
} from './base'
export { PropsOf, DistributiveOmit } from './helper'
export type StyledTags<Theme extends {} = any> = {
[Tag in keyof JSX.IntrinsicElements]: CreateStyledComponent<
{ theme?: Theme },
JSX.IntrinsicElements[Tag],
{ theme: Theme }
>
}
export interface CreateStyled<Theme extends {} = any>
extends BaseCreateStyled<Theme>,
StyledTags<Theme> {}
declare const styled: CreateStyled
export default styled