Skip to content

Commit

Permalink
Bring back GridProps and GridTypeMap
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoAndai committed Sep 11, 2024
1 parent 418c2f2 commit a140ce9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/mui-material/src/Grid/Grid.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ export interface GridOwnProps extends SystemProps<Theme>, Breakpoints {
zeroMinWidth?: boolean;
}

/**
* @deprecated Use the [`Grid2`](https://mui.com/material-ui/react-grid2/) component instead.
*/
export interface GridTypeMap<
AdditionalProps = {},
RootComponent extends React.ElementType = 'div',
Expand All @@ -171,6 +174,9 @@ export interface GridTypeMap<
*/
declare const Grid: OverridableComponent<GridTypeMap>;

/**
* @deprecated Use the [`Grid2`](https://mui.com/material-ui/react-grid2/) component instead.
*/
export type GridProps<
RootComponent extends React.ElementType = GridTypeMap['defaultComponent'],
AdditionalProps = {},
Expand Down
1 change: 1 addition & 0 deletions packages/mui-material/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ export { default as FormLabel } from './FormLabel';
export * from './FormLabel';

export { default as Grid } from './Grid';
export { GridProps, GridTypeMap } from './Grid';

export { default as Grid2 } from './Grid2';
export * from './Grid2';
Expand Down

0 comments on commit a140ce9

Please sign in to comment.