Skip to content

Commit

Permalink
remove type
Browse files Browse the repository at this point in the history
  • Loading branch information
sai6855 committed Sep 22, 2023
1 parent d374c52 commit 481469e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/mui-joy/src/styles/styleUtils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Theme, SxProps, CssVarsType } from './types';
import { Theme, SxProps } from './types';

/**
* internal utility
Expand All @@ -16,10 +16,10 @@ export const resolveSxValue = <K extends string>(
keys: K[],
): Record<K, undefined | number | string> => {
let sxObject: Record<string, any> = {};
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') {
Expand Down

0 comments on commit 481469e

Please sign in to comment.