2018-03-23 17:16:13 +03:00
|
|
|
import * as styledComponents from 'styled-components';
|
|
|
|
|
2018-11-27 12:18:41 +03:00
|
|
|
// FIXME
|
2018-03-23 17:16:13 +03:00
|
|
|
declare module 'styled-components' {
|
|
|
|
interface ThemedStyledComponentsModule<T> {
|
|
|
|
keyframes(
|
|
|
|
strings: TemplateStringsArray | string[],
|
|
|
|
...interpolations: SimpleInterpolation[]
|
2018-11-27 12:18:41 +03:00
|
|
|
): Keyframes;
|
2018-03-23 17:16:13 +03:00
|
|
|
}
|
2019-03-11 18:08:29 +03:00
|
|
|
|
|
|
|
export interface BaseThemedCssFunction<T extends object> {
|
|
|
|
<P extends object>(
|
|
|
|
first:
|
|
|
|
| TemplateStringsArray
|
|
|
|
| CSSObject
|
|
|
|
| InterpolationFunction<ThemedStyledProps<P, T>>
|
|
|
|
| string[],
|
|
|
|
...interpolations: Array<Interpolation<ThemedStyledProps<P, T>>>
|
|
|
|
): FlattenInterpolation<ThemedStyledProps<P, T>>;
|
|
|
|
}
|
2018-03-23 17:16:13 +03:00
|
|
|
}
|