material-ui: Fix error in typescript@next (#17054)

This commit is contained in:
Andy
2017-06-08 09:10:20 -07:00
committed by GitHub
parent ffc8f365ea
commit dba4a0f69f

View File

@@ -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()<React.StatelessComponent<Props>, Props>(props => {
return (
<span style={{color: props.muiTheme.palette.textColor}}>
Applied the Theme to functional component: {props.label}.