UNPKG

812 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'
6import { ReactJSXIntrinsicElements } from './jsx-namespace'
7
8export {
9 ArrayInterpolation,
10 ComponentSelector,
11 CSSObject,
12 FunctionInterpolation,
13 Interpolation,
14 StyledComponent,
15 StyledOptions,
16 FilteringStyledOptions,
17 CreateStyledComponent
18} from './base'
19
20export type StyledTags = {
21 [Tag in keyof ReactJSXIntrinsicElements]: CreateStyledComponent<
22 {
23 theme?: Theme
24 as?: React.ElementType
25 },
26 ReactJSXIntrinsicElements[Tag]
27 >
28}
29
30export interface CreateStyled extends BaseCreateStyled, StyledTags {}
31
32declare const styled: CreateStyled
33export default styled