From dba4a0f69f771621ac0349bb37765b7b91c63003 Mon Sep 17 00:00:00 2001 From: Andy Date: Thu, 8 Jun 2017 09:10:20 -0700 Subject: [PATCH] material-ui: Fix error in typescript@next (#17054) --- types/material-ui/material-ui-tests.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/material-ui/material-ui-tests.tsx b/types/material-ui/material-ui-tests.tsx index 77a0445fb2..9a0eddd0b9 100644 --- a/types/material-ui/material-ui-tests.tsx +++ b/types/material-ui/material-ui-tests.tsx @@ -319,8 +319,8 @@ class DeepDownTheTree extends React.Component<{} & {muiTheme: MuiTheme}, {}> { } } - -const MuiThemeableFunction = muiThemeable()((props: {label: string, muiTheme?: MuiTheme}) => { +type Props = { label: string, muiTheme?: MuiTheme }; +const MuiThemeableFunction = muiThemeable(), Props>(props => { return ( Applied the Theme to functional component: {props.label}.