Trying to enhance the Material-UI theme with the Typescript typings of Material-UI-Pickers for the latest versions listed here:
"@material-ui/core": "^3.9.2",
"material-ui-pickers": "^2.2.1",
A note on the bottom of the Material UI picker page mentions that the theme can be expanded using Typescript Theme augmentation.
The recommendation is as follows:
declare module '@material-ui/core/styles/overrides' {
import { MuiPickersOverrides } from 'material-ui-pickers/typings/overrides'
export interface Overrides extends MuiPickersOverrides { }
}
However, in the Material UI override.d.ts
file, Overrides
is not an interface but a type, indicating that it may not be extendable in this manner. This leads to the assumption that the Material-UI typings have undergone significant changes, rendering the Material-UI-Pickers guide and typings outdated.
Seeking guidance on correctly extending the theme typings. Any insights?