forked from BoostIO/BoostNote.next-local
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyled-components.d.ts
37 lines (37 loc) · 1.03 KB
/
styled-components.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
declare module 'styled-components' {
export type StyledComponent<T1, T2, T3, T4> = any
export function createGlobalStyle<T>(
strings: TemplateStringsArray,
...keys: Array<
| number
| undefined
| string
| ((props: { theme: T }) => string | number | undefined)
>
): any
export type ThemeKeys<T> = Array<
| number
| undefined
| string
| ((props: {
theme: T
[key: string]: string | number
}) => string | number | undefined)
>
export interface ThemedBaseStyledInterface<T>
extends ThemeBasedStyledComponentWrapper<T> {
[key: string]: <P>(
strings: TemplateStringsArray,
...keys: ThemeKeys<T>
) => any
}
export type ThemeBasedStyledComponentWrapper<T> = {
<P extends { className?: string }>(component: React.ComponentType<P>): (
strings: TemplateStringsArray,
...keys: ThemeKeys<T>
) => React.ReactComponentType<P>
}
export const ThemeProvider: any
export const keyframes = any
export const ServerStyleSheet: any
}