We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
themr
1 parent ed520a2 commit 4907806Copy full SHA for 4907806
index.d.ts
@@ -1,3 +1,5 @@
1
+import * as React from "react";
2
+
3
declare module "react-css-themr"
4
{
5
export interface IThemrOptions
@@ -18,9 +20,14 @@ declare module "react-css-themr"
18
20
19
21
}
22
23
+ interface ThemedComponent<T> extends React.ComponentClass<T>
24
+ {
25
+ getWrappedInstance(): React.Component<T, void>;
26
+ }
27
28
export function themr(
29
identifier: string,
30
defaultTheme?: {},
31
options?: IThemrOptions
- );
32
+ ): <T extends {}>(component: React.ComponentClass<T>) => ThemedComponent<T>;
33
0 commit comments