From 616a9c3c36ad740d30c660dd8560a8789baac967 Mon Sep 17 00:00:00 2001 From: Arian Rahimi Date: Mon, 10 Feb 2020 13:07:35 +0330 Subject: [PATCH] fix: add styled-patch.d --- typings/styled-patch.d.ts | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 typings/styled-patch.d.ts 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>; + } +}