Skip to content

Commit b0927d9

Browse files
author
Oden
authored
Use constructor
1 parent ed520a2 commit b0927d9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

index.d.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import * as React from "react";
2+
13
declare module "react-css-themr"
24
{
35
export interface IThemrOptions
@@ -18,9 +20,14 @@ declare module "react-css-themr"
1820

1921
}
2022

23+
interface ThemedComponent<T> extends React.ComponentClass<T>
24+
{
25+
getWrappedInstance(): React.Component<T, void>;
26+
}
27+
2128
export function themr(
2229
identifier: string,
2330
defaultTheme?: {},
2431
options?: IThemrOptions
25-
);
32+
): <T extends {}>(component: React.ComponentClass<T>) => ThemedComponent<T>;
2633
}

0 commit comments

Comments
 (0)