Skip to content

Commit

Permalink
[material-ui][Box] Fix component prop test (#44651)
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoAndai authored Dec 4, 2024
1 parent 617a4e0 commit 9057a52
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/mui-material/src/Box/Box.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,9 @@ function ColorTest() {
/>;
}

expectType<SystemBoxProps['component'], MaterialBoxProps['component']>;
function ComponentTest() {
return <span />;
}

expectType<SystemBoxProps['component'], MaterialBoxProps['component']>('span');
expectType<SystemBoxProps['component'], MaterialBoxProps['component']>(ComponentTest);

0 comments on commit 9057a52

Please sign in to comment.