UNPKG

744 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 FilteringStyledOptions,
16 CreateStyledComponent
17} from './base'
18
19export type StyledTags = {
20 [Tag in keyof JSX.IntrinsicElements]: CreateStyledComponent<
21 {
22 theme?: Theme
23 as?: React.ElementType
24 },
25 JSX.IntrinsicElements[Tag]
26 >
27}
28
29export interface CreateStyled extends BaseCreateStyled, StyledTags {}
30
31declare const styled: CreateStyled
32export default styled