From e726cfe56105066ccef5baaa5f09a5ab398ce8ab Mon Sep 17 00:00:00 2001 From: Matei Stroia Date: Thu, 29 Feb 2024 15:42:17 +0200 Subject: [PATCH 1/2] fix spacing argument type --- packages/mui-system/src/createTheme/createSpacing.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mui-system/src/createTheme/createSpacing.ts b/packages/mui-system/src/createTheme/createSpacing.ts index 90387c81ce51a7..992440aab26384 100644 --- a/packages/mui-system/src/createTheme/createSpacing.ts +++ b/packages/mui-system/src/createTheme/createSpacing.ts @@ -13,7 +13,7 @@ export type SpacingArgument = number | string; // We express the difference with variable names. export interface Spacing { (): string; - (value: number): string; + (value: number | string): string; (topBottom: SpacingArgument, rightLeft: SpacingArgument): string; (top: SpacingArgument, rightLeft: SpacingArgument, bottom: SpacingArgument): string; ( From f297dabbeee67c6a56da243d528bb8d17e59f7ba Mon Sep 17 00:00:00 2001 From: Siriwat K Date: Fri, 1 Mar 2024 16:14:05 +0700 Subject: [PATCH 2/2] Update packages/mui-system/src/createTheme/createSpacing.ts Signed-off-by: Siriwat K --- packages/mui-system/src/createTheme/createSpacing.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mui-system/src/createTheme/createSpacing.ts b/packages/mui-system/src/createTheme/createSpacing.ts index 992440aab26384..3e0db4679233ce 100644 --- a/packages/mui-system/src/createTheme/createSpacing.ts +++ b/packages/mui-system/src/createTheme/createSpacing.ts @@ -13,7 +13,7 @@ export type SpacingArgument = number | string; // We express the difference with variable names. export interface Spacing { (): string; - (value: number | string): string; + (value: SpacingArgument): string; (topBottom: SpacingArgument, rightLeft: SpacingArgument): string; (top: SpacingArgument, rightLeft: SpacingArgument, bottom: SpacingArgument): string; (