diff --git a/index.d.ts b/index.d.ts index 7a4e6ec..b37454b 100644 --- a/index.d.ts +++ b/index.d.ts @@ -4,17 +4,21 @@ declare module "react-css-themr" { type TReactCSSThemrTheme = { [key: string]: string | TReactCSSThemrTheme } + type TMapThemrProps
= (ownProps: P, theme: TReactCSSThemrTheme) => P & { theme: TReactCSSThemrTheme }
export function themeable(...themes: Array (component: (new(props?: P, context?: any) => React.Component ) | React.SFC ) => ThemedComponentClass ;
+ ): (component: (new(props?: P, context?: any) => React.Component ) | React.SFC ) =>
+ ThemedComponentClass }, S>;
}