From 5c85bf7ab85d19b166f7ed6c5b2b59ead07f9d09 Mon Sep 17 00:00:00 2001 From: Sebastian Sebald Date: Tue, 5 Sep 2017 12:05:01 +0200 Subject: [PATCH] [typings] Fix typings of withTheme (#8052) --- src/styles/withTheme.d.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/styles/withTheme.d.ts b/src/styles/withTheme.d.ts index d14236dc084169..0409ca31dbf0fb 100644 --- a/src/styles/withTheme.d.ts +++ b/src/styles/withTheme.d.ts @@ -1,7 +1,5 @@ import { Theme } from './createMuiTheme'; -interface withTheme

{ - (component: React.ComponentType

): React.ComponentClass

; -} - -export default withTheme; +export default function withTheme

( + component: React.ComponentType

+): React.ComponentClass

;