Skip to content

Commit

Permalink
Address code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mnajdova committed Aug 23, 2022
1 parent c5761e0 commit 97b0ed9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/mui-material/src/OverridableComponentAugmentation.ts
Expand Up @@ -30,7 +30,7 @@ declare module '@mui/material/OverridableComponent' {
> = (
& BaseProps<M>
& DistributiveOmit<React.ComponentPropsWithoutRef<C>, keyof BaseProps<M>>
& { ref?: React.Ref<any> }
& { ref?: React.Ref<Element> }
);

/**
Expand All @@ -40,5 +40,5 @@ declare module '@mui/material/OverridableComponent' {
type DefaultComponentPropsVer2<M extends OverridableTypeMap> =
& BaseProps<M>
& DistributiveOmit<React.ComponentPropsWithoutRef<M['defaultComponent']>, keyof BaseProps<M>>
& { ref?: React.Ref<any> };
& { ref?: React.Ref<Element> };
}
4 changes: 2 additions & 2 deletions packages/mui-types/OverridableComponentAugmentation.ts
Expand Up @@ -30,7 +30,7 @@ declare module '@mui/types' {
> = (
& BaseProps<M>
& DistributiveOmit<React.ComponentPropsWithoutRef<C>, keyof BaseProps<M>>
& { ref?: React.Ref<any> }
& { ref?: React.Ref<Element> }
);

/**
Expand All @@ -40,5 +40,5 @@ declare module '@mui/types' {
type DefaultComponentPropsVer2<M extends OverridableTypeMap> =
& BaseProps<M>
& DistributiveOmit<React.ComponentPropsWithoutRef<M['defaultComponent']>, keyof BaseProps<M>>
& { ref?: React.Ref<any> };
& { ref?: React.Ref<Element> };
}
3 changes: 2 additions & 1 deletion packages/mui-types/package.json
Expand Up @@ -6,7 +6,8 @@
"description": "Utility types for MUI.",
"types": "./index.d.ts",
"files": [
"index.d.ts"
"index.d.ts",
"OverridableComponentAugmentation.ts"
],
"keywords": [
"react",
Expand Down

0 comments on commit 97b0ed9

Please sign in to comment.