How to extend Material-UI Theme with Typescript?
问题 Typescript is always complaining about certain properties missing in the palette. My app works just fine if I add //@ts-ignore , but I obviously want to avoid that. I'm new to Typescript and here is what I've tried. import createMuiTheme, { ThemeOptions, Theme } from '@material-ui/core/styles/createMuiTheme'; import { PaletteOptions } from '@material-ui/core/styles/createPalette'; interface IPaletteOptions extends PaletteOptions { chip: { color: string, expandIcon: { background: string, color