diff --git a/typings/styled-patch.d.ts b/typings/styled-patch.d.ts new file mode 100644 index 00000000..a8a67aab --- /dev/null +++ b/typings/styled-patch.d.ts @@ -0,0 +1,32 @@ +import * as styledComponents from 'styled-components'; + +// FIXME +declare module 'styled-components' { + export interface ThemedStyledFunction< + C extends keyof JSX.IntrinsicElements | React.ComponentType, + T extends object, + O extends object = {}, + A extends keyof any = never + > extends ThemedStyledFunctionBase { + withConfig(config: any): any; + // tslint:enable:unified-signatures + } + + interface ThemedStyledComponentsModule { + keyframes( + strings: TemplateStringsArray | string[], + ...interpolations: SimpleInterpolation[] + ): Keyframes; + } + + export interface BaseThemedCssFunction { +

( + first: + | TemplateStringsArray + | CSSObject + | InterpolationFunction> + | string[], + ...interpolations: Array>> + ): FlattenInterpolation>; + } +}