From 514de609421e3578c5702d4efc4d0f06c48612cd Mon Sep 17 00:00:00 2001 From: adel-ak Date: Fri, 22 Sep 2023 00:07:37 +0300 Subject: [PATCH 1/2] [@mantine/core] Fix broken other theme override type --- src/mantine-core/src/core/MantineProvider/theme.types.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mantine-core/src/core/MantineProvider/theme.types.ts b/src/mantine-core/src/core/MantineProvider/theme.types.ts index a68d55d7294..564f74b67a7 100644 --- a/src/mantine-core/src/core/MantineProvider/theme.types.ts +++ b/src/mantine-core/src/core/MantineProvider/theme.types.ts @@ -155,7 +155,9 @@ export type MantineSpacing = keyof MantineSpacingValues | (string & {}) | number export type MantineShadow = keyof MantineShadowsValues | (string & {}); export type MantineLineHeight = keyof MantineLineHeightValues; -export type MantineThemeOther = Record; +export interface MantineThemeOther { + [key: string]: any +} export interface MantineGradient { from: string; From 938819d22d01416b2e1beb93d7bdc744e102e54b Mon Sep 17 00:00:00 2001 From: adel-ak Date: Fri, 22 Sep 2023 00:26:25 +0300 Subject: [PATCH 2/2] ran prettier --- src/mantine-core/src/core/MantineProvider/theme.types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mantine-core/src/core/MantineProvider/theme.types.ts b/src/mantine-core/src/core/MantineProvider/theme.types.ts index 564f74b67a7..d3725108f2b 100644 --- a/src/mantine-core/src/core/MantineProvider/theme.types.ts +++ b/src/mantine-core/src/core/MantineProvider/theme.types.ts @@ -156,7 +156,7 @@ export type MantineShadow = keyof MantineShadowsValues | (string & {}); export type MantineLineHeight = keyof MantineLineHeightValues; export interface MantineThemeOther { - [key: string]: any + [key: string]: any; } export interface MantineGradient {