Skip to content

Commit

Permalink
chore: re-add mui.d.ts
Browse files Browse the repository at this point in the history
Otherwise,  error TS2339: Property 'border' does not exist on type 'Palette' is shown
  • Loading branch information
timurbazhirov committed Nov 25, 2023
1 parent 599f302 commit 23d1c77
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/theme/mui.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { Palette, PaletteColor, Theme } from "@mui/material/styles";

declare module "@mui/material/styles" {
interface Theme {
iconDefaultFontSize: number;
}

interface Palette {
border: PaletteColor;
neutral: PaletteColor;
}
}

declare module "@mui/material/Button" {
interface ButtonPropsColorOverrides {
neutral: true;
}
}

declare module "@mui/material/IconButton" {
interface IconButtonPropsColorOverrides {
neutral: true;
}
}

0 comments on commit 23d1c77

Please sign in to comment.