Skip to content

Commit

Permalink
New: Move innerRef to the themr component
Browse files Browse the repository at this point in the history
  • Loading branch information
CptLemming authored and markusguenther committed Jan 2, 2020
1 parent 2e10821 commit c611918
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ declare module "@friendsofreactjs/react-css-themr" {
}

export interface ThemeProviderProps {
innerRef?: Function,
theme: TReactCSSThemrTheme
}

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

0 comments on commit c611918

Please sign in to comment.