From 251126176db80073e38a88d779d7dec0a678b3ab Mon Sep 17 00:00:00 2001 From: Matei Stroia Date: Fri, 1 Mar 2024 11:28:22 +0200 Subject: [PATCH] [system] Fix createSpacing return type (#41318) --- 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..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; + (value: SpacingArgument): string; (topBottom: SpacingArgument, rightLeft: SpacingArgument): string; (top: SpacingArgument, rightLeft: SpacingArgument, bottom: SpacingArgument): string; (