79420570

Date: 2025-02-07 10:46:01
Score: 1.5
Natty:
Report link

Found that it works perfectly declaring a module:

declare module '@mui/material/styles' {
  interface TypeText {
    light?: string;
  }
   interface Palette {
     text: TypeText;
   }
   interface PaletteOptions {
     text?: Partial<TypeText>;
   }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: adhinna