Skip to content

Commit c611918

Browse files
CptLemmingmarkusguenther
authored andcommitted
New: Move innerRef to the themr component
1 parent 2e10821 commit c611918

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

index.d.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ declare module "@friendsofreactjs/react-css-themr" {
1717
}
1818

1919
export interface ThemeProviderProps {
20-
innerRef?: Function,
2120
theme: TReactCSSThemrTheme
2221
}
2322

@@ -35,6 +34,6 @@ declare module "@friendsofreactjs/react-css-themr" {
3534
identifier: string | number | symbol,
3635
defaultTheme?: {},
3736
options?: IThemrOptions
38-
): <P, S>(component: (new(props: P, context?: any) => React.Component<P, S>) | React.SFC<P>) =>
39-
ThemedComponentClass<P & { mapThemrProps?: TMapThemrProps<P> }, S>;
37+
): <P, S, R>(component: (new(props: P, context?: any) => React.Component<P, S>) | React.SFC<P>) =>
38+
ThemedComponentClass<P & { mapThemrProps?: TMapThemrProps<P>, innerRef?: React.Ref<R> }, S>;
4039
}

0 commit comments

Comments
 (0)