UNPKG

718 BTypeScriptView Raw
1// Definitions by: Junyoung Clare Jang <https://github.com/Ailrun>
2// TypeScript Version: 3.2
3
4import { Theme } from '@emotion/react'
5import { CreateStyled as BaseCreateStyled, CreateStyledComponent } from './base'
6
7export {
8 ArrayInterpolation,
9 ComponentSelector,
10 CSSObject,
11 FunctionInterpolation,
12 Interpolation,
13 StyledComponent,
14 StyledOptions,
15 CreateStyledComponent
16} from './base'
17
18export type StyledTags = {
19 [Tag in keyof JSX.IntrinsicElements]: CreateStyledComponent<
20 {
21 theme?: Theme
22 as?: React.ElementType
23 },
24 JSX.IntrinsicElements[Tag]
25 >
26}
27
28export interface CreateStyled extends BaseCreateStyled, StyledTags {}
29
30declare const styled: CreateStyled
31export default styled