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