Skip to content

Commit 1e20574

Browse files
Fix: Resolve typings for themr decorator
re #74
1 parent 4dbc02c commit 1e20574

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

types/components/themr.d.ts

+1-9
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@
55
* @returns {TReactCSSThemrTheme} - Resulting theme
66
*/
77
export function themeable(...themes: TReactCSSThemrTheme[]): any;
8-
export default themr;
98
export type TReactCSSThemrTheme = any;
109
export type TReactCSSThemrOptions = {};
11-
/**
12-
* Themr decorator
13-
* @param {String|Number|Symbol} componentName - Component name
14-
* @param {TReactCSSThemrTheme} [localTheme] - Base theme
15-
* @param {{}} [options] - Themr options
16-
* @returns {function(ThemedComponent:Function):Function} - ThemedComponent
17-
*/
18-
declare function themr(componentName: string | number | Symbol, localTheme?: any, options?: {}): (arg0: any, arg1: Function) => Function;
10+
export default function themr(componentName: string | number | Symbol, localTheme?: any, options?: {}): (arg0: any, arg1: Function) => Function;

types/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export { default as ThemeProvider } from "./components/ThemeProvider";
2-
export { default as themr, themeable } from "./components/themr";
2+
export { themr, themeable } from "./components/themr";

0 commit comments

Comments
 (0)