Skip to content

Commit

Permalink
[Box] Fix usage of not supported features in TypeScript 3.5 (#35877)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnajdova committed Jan 20, 2023
1 parent 4aeda27 commit 628b532
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/mui-material/src/Box/Box.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { createBox, BoxTypeMap } from '@mui/system';
import { BoxTypeMap } from '@mui/system';
import { OverridableComponent } from '@mui/types';
import { OverrideProps } from '../OverridableComponent';
import { Theme as MaterialTheme } from '../styles';

Expand All @@ -12,7 +13,7 @@ import { Theme as MaterialTheme } from '../styles';
*
* - [Box API](https://mui.com/material-ui/api/box/)
*/
declare const Box: ReturnType<typeof createBox<MaterialTheme>>;
declare const Box: OverridableComponent<BoxTypeMap<{}, 'div', MaterialTheme>>;

export type BoxProps<
D extends React.ElementType = BoxTypeMap['defaultComponent'],
Expand Down

0 comments on commit 628b532

Please sign in to comment.