mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-29 01:45:49 +08:00
material-ui: Fix error in typescript@next (#17054)
This commit is contained in:
@@ -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}.
|
||||
|
||||
Reference in New Issue
Block a user