From ec1670423ead875aaa8839e85da62489fff9a0b3 Mon Sep 17 00:00:00 2001 From: siriwatknp Date: Wed, 5 Feb 2025 14:04:17 +0700 Subject: [PATCH] fix typo --- packages/mui-material/src/Alert/Alert.d.ts | 18 +++----------- .../src/CardHeader/CardHeader.d.ts | 24 ++++--------------- 2 files changed, 7 insertions(+), 35 deletions(-) diff --git a/packages/mui-material/src/Alert/Alert.d.ts b/packages/mui-material/src/Alert/Alert.d.ts index 545f104869dae6..70b81097c4dda4 100644 --- a/packages/mui-material/src/Alert/Alert.d.ts +++ b/packages/mui-material/src/Alert/Alert.d.ts @@ -67,29 +67,17 @@ export type AlertSlotsAndSlotProps = CreateSlotsAndSlotProps< * Props forwarded to the icon slot. * By default, the avaible props are based on a div element. */ - icon: SlotProps< - React.ElementType>, - AlertIconSlotPropsOverrides, - AlertOwnerState - >; + icon: SlotProps<'div', AlertIconSlotPropsOverrides, AlertOwnerState>; /** * Props forwarded to the message slot. * By default, the avaible props are based on a div element. */ - message: SlotProps< - React.ElementType>, - AlertMessageSlotPropsOverrides, - AlertOwnerState - >; + message: SlotProps<'div', AlertMessageSlotPropsOverrides, AlertOwnerState>; /** * Props forwarded to the action slot. * By default, the avaible props are based on a div element. */ - action: SlotProps< - React.ElementType>, - AlertActionSlotPropsOverrides, - AlertOwnerState - >; + action: SlotProps<'div', AlertActionSlotPropsOverrides, AlertOwnerState>; /** * Props forwarded to the closeButton slot. * By default, the avaible props are based on the [IconButton](https://mui.com/material-ui/api/icon-button/#props) component. diff --git a/packages/mui-material/src/CardHeader/CardHeader.d.ts b/packages/mui-material/src/CardHeader/CardHeader.d.ts index 466e3b22a6c2f5..a831b18036abd7 100644 --- a/packages/mui-material/src/CardHeader/CardHeader.d.ts +++ b/packages/mui-material/src/CardHeader/CardHeader.d.ts @@ -60,38 +60,22 @@ export type CardHeaderSlotsAndSlotProps = CreateSlotsAndSlotProps< * Props forwarded to the root slot. * By default, the avaible props are based on the div element. */ - root: SlotProps< - React.ElementType>, - CardHeaderRootSlotPropsOverrides, - CardHeaderOwnerState - >; + root: SlotProps<'div', CardHeaderRootSlotPropsOverrides, CardHeaderOwnerState>; /** * Props forwarded to the avatar slot. * By default, the avaible props are based on the div element. */ - avatar: SlotProps< - React.ElementType>, - CardHeaderAvatarSlotPropsOverrides, - CardHeaderOwnerState - >; + avatar: SlotProps<'div', CardHeaderAvatarSlotPropsOverrides, CardHeaderOwnerState>; /** * Props forwarded to the action slot. * By default, the avaible props are based on the div element. */ - action: SlotProps< - React.ElementType>, - CardHeaderActionSlotPropsOverrides, - CardHeaderOwnerState - >; + action: SlotProps<'div', CardHeaderActionSlotPropsOverrides, CardHeaderOwnerState>; /** * Props forwarded to the content slot. * By default, the avaible props are based on the div element. */ - content: SlotProps< - React.ElementType>, - CardHeaderContentSlotPropsOverrides, - CardHeaderOwnerState - >; + content: SlotProps<'div', CardHeaderContentSlotPropsOverrides, CardHeaderOwnerState>; /** * Props forwarded to the title slot (as long as disableTypography is not `true`). * By default, the avaible props are based on the [Typography](https://mui.com/material-ui/api/typography/#props) component.