diff --git a/packages/mui-joy/src/styles/styleUtils.ts b/packages/mui-joy/src/styles/styleUtils.ts index 9829c213ee11c3..647b53e1fb6457 100644 --- a/packages/mui-joy/src/styles/styleUtils.ts +++ b/packages/mui-joy/src/styles/styleUtils.ts @@ -1,4 +1,4 @@ -import { Theme, SxProps, CssVarsType } from './types'; +import { Theme, SxProps } from './types'; /** * internal utility @@ -16,10 +16,10 @@ export const resolveSxValue = ( keys: K[], ): Record => { let sxObject: Record = {}; - function resolveSx(sxProp: SxProps & CssVarsType) { + function resolveSx(sxProp: SxProps) { if (typeof sxProp === 'function') { const result = sxProp(theme); - resolveSx(result as SxProps & CssVarsType); + resolveSx(result as SxProps); } else if (Array.isArray(sxProp)) { sxProp.forEach((sxItem) => { if (typeof sxItem !== 'boolean') {