I am trying to customize the Material UI types for shadow, but getting the below error when I try to use it in my code.
Tuple type Shadows of length 25 has no element at index 25.
I have tried many solutions but none helped. Below is what I have tried:
I have a index.d.ts file defined at root level and adding the declare module to customize the shadow property of Mui theme.
declare module '@material-ui/core/styles/shadows' {
type Shadows = [
{
a1: string;
a2: string;
a3: string;
}
];
}