Skip to content

Commit

Permalink
Fix: Resolve typings for themr decorator
Browse files Browse the repository at this point in the history
re #74
  • Loading branch information
markusguenther committed Jul 22, 2020
1 parent 4dbc02c commit 1e20574
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 1 addition & 9 deletions types/components/themr.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@
* @returns {TReactCSSThemrTheme} - Resulting theme
*/
export function themeable(...themes: TReactCSSThemrTheme[]): any;
export default themr;
export type TReactCSSThemrTheme = any;
export type TReactCSSThemrOptions = {};
/**
* Themr decorator
* @param {String|Number|Symbol} componentName - Component name
* @param {TReactCSSThemrTheme} [localTheme] - Base theme
* @param {{}} [options] - Themr options
* @returns {function(ThemedComponent:Function):Function} - ThemedComponent
*/
declare function themr(componentName: string | number | Symbol, localTheme?: any, options?: {}): (arg0: any, arg1: Function) => Function;
export default function themr(componentName: string | number | Symbol, localTheme?: any, options?: {}): (arg0: any, arg1: Function) => Function;
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { default as ThemeProvider } from "./components/ThemeProvider";
export { default as themr, themeable } from "./components/themr";
export { themr, themeable } from "./components/themr";

0 comments on commit 1e20574

Please sign in to comment.