Skip to content

Commit 9e04787

Browse files
committed
fix themr typing
1 parent b2fe070 commit 9e04787

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ declare module "react-css-themr" {
2727
new(props?: P, context?: any): ThemedComponent<P, S>;
2828
}
2929

30-
export function themr(
31-
identifier: string | number | symbol,
32-
defaultTheme?: {},
33-
options?: IThemrOptions
34-
): <P, S>(component: new(props?: P, context?: any) => React.Component<P, S>) => ThemedComponentClass<P, S>;
30+
type TThemrDecorator = <P, S>(component: React.ComponentClass<P> | React.SFC<P>) => ThemedComponentClass<P, S>;
31+
32+
export function themr(identifier: string | number | symbol,
33+
defaultTheme?: {},
34+
options?: IThemrOptions): TThemrDecorator;
3535
}

0 commit comments

Comments
 (0)