Skip to content

Commit 23d1c77

Browse files
committed
chore: re-add mui.d.ts
Otherwise, error TS2339: Property 'border' does not exist on type 'Palette' is shown
1 parent 599f302 commit 23d1c77

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

src/theme/mui.d.ts

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
2+
import { Palette, PaletteColor, Theme } from "@mui/material/styles";
3+
4+
declare module "@mui/material/styles" {
5+
interface Theme {
6+
iconDefaultFontSize: number;
7+
}
8+
9+
interface Palette {
10+
border: PaletteColor;
11+
neutral: PaletteColor;
12+
}
13+
}
14+
15+
declare module "@mui/material/Button" {
16+
interface ButtonPropsColorOverrides {
17+
neutral: true;
18+
}
19+
}
20+
21+
declare module "@mui/material/IconButton" {
22+
interface IconButtonPropsColorOverrides {
23+
neutral: true;
24+
}
25+
}

0 commit comments

Comments
 (0)