Skip to content

Commit b2fe070

Browse files
committed
fix themr typing
1 parent 3c1417c commit b2fe070

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

index.d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,17 @@ declare module "react-css-themr" {
1818
}
1919

2020
export class ThemeProvider extends React.Component<ThemeProviderProps, any> {
21-
2221
}
2322

2423
interface ThemedComponent<P, S> extends React.Component<P, S> {
25-
2624
}
2725

2826
interface ThemedComponentClass<P, S> extends React.ComponentClass<P> {
2927
new(props?: P, context?: any): ThemedComponent<P, S>;
3028
}
3129

3230
export function themr(
33-
identifier: string,
31+
identifier: string | number | symbol,
3432
defaultTheme?: {},
3533
options?: IThemrOptions
3634
): <P, S>(component: new(props?: P, context?: any) => React.Component<P, S>) => ThemedComponentClass<P, S>;

0 commit comments

Comments
 (0)