Skip to content

Commit

Permalink
[typings] Fix typings of withTheme (mui#8052)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebald authored and oliviertassinari committed Sep 5, 2017
1 parent da00364 commit 5c85bf7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/styles/withTheme.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { Theme } from './createMuiTheme';

interface withTheme<P = {}, T extends Theme = Theme> {
(component: React.ComponentType<P & { theme: T }>): React.ComponentClass<P>;
}

export default withTheme;
export default function withTheme<P = {}, T extends Theme = Theme>(
component: React.ComponentType<P & { theme: T }>
): React.ComponentClass<P>;

0 comments on commit 5c85bf7

Please sign in to comment.