Skip to content

Commit e1d45a9

Browse files
committed
Use generic instead of any
1 parent 53115ae commit e1d45a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/mui-system/src/Grid/createGrid.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ export default function createGrid(
170170
>
171171
{React.Children.map(children, (child) => {
172172
if (
173-
React.isValidElement(child) &&
173+
React.isValidElement<{ container?: unknown }>(child) &&
174174
isMuiElement(child, ['Grid']) &&
175175
container &&
176-
(child.props as any).container
176+
child.props.container
177177
) {
178178
return React.cloneElement(child, {
179179
unstable_level: (child.props as GridProps)?.unstable_level ?? level + 1,

0 commit comments

Comments
 (0)