From d374c524e76a84c9a652fc2facfc38567e00b8e7 Mon Sep 17 00:00:00 2001 From: sai6855 <60743144+sai6855@users.noreply.github.com> Date: Fri, 22 Sep 2023 17:26:18 +0530 Subject: [PATCH] simplify type --- packages/mui-joy/src/utils/GenerateCssVarsType.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mui-joy/src/utils/GenerateCssVarsType.ts b/packages/mui-joy/src/utils/GenerateCssVarsType.ts index c069affa1bcb5f..3ee602dd62a125 100644 --- a/packages/mui-joy/src/utils/GenerateCssVarsType.ts +++ b/packages/mui-joy/src/utils/GenerateCssVarsType.ts @@ -7,6 +7,6 @@ * '--Button-size'?: string | number; * } */ -export type GenerateCssVarsType = { - [Key in keyof CssVars as CssVars[Key] extends string ? CssVars[Key] : never]?: string | number; +export type GenerateCssVarsType> = { + [Key in keyof CssVars as CssVars[Key]]?: string | number; };