mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-11 03:16:48 +03:00
33 lines
960 B
TypeScript
33 lines
960 B
TypeScript
import * as styledComponents from 'styled-components';
|
|
|
|
// FIXME
|
|
declare module 'styled-components' {
|
|
export interface ThemedStyledFunction<
|
|
C extends keyof JSX.IntrinsicElements | React.ComponentType<any>,
|
|
T extends object,
|
|
O extends object = {},
|
|
A extends keyof any = never
|
|
> extends ThemedStyledFunctionBase<C, T, O, A> {
|
|
withConfig(config: any): any;
|
|
// tslint:enable:unified-signatures
|
|
}
|
|
|
|
interface ThemedStyledComponentsModule<T> {
|
|
keyframes(
|
|
strings: TemplateStringsArray | string[],
|
|
...interpolations: SimpleInterpolation[]
|
|
): Keyframes;
|
|
}
|
|
|
|
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>>;
|
|
}
|
|
}
|