theme: declare default v5 theme

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-01-01 17:54:14 +01:00
committed by Philipp Hugenroth
parent d2a81a24b4
commit ff91bfa993
+5
View File
@@ -14,6 +14,7 @@
* limitations under the License.
*/
import { Theme } from '@mui/material/styles';
import {
BackstagePaletteAdditions,
BackstageThemeAdditions,
@@ -31,6 +32,10 @@ declare module '@mui/material/styles/createTheme' {
interface ThemeOptions extends BackstageThemeAdditions {}
}
declare module '@mui/private-theming/defaultTheme' {
interface DefaultTheme extends Theme {}
}
// This is a workaround for missing methods in React 17 that MUI v5 depends on
// See https://github.com/mui/material-ui/issues/35287
declare global {