1+ import React from 'react' ;
2+
13export interface InterfaceAlertDialogProps {
24 /**
35 * If true, the AlertDialog will open. Useful for controllable state behaviour
@@ -47,7 +49,7 @@ export interface InterfaceAlertDialogProps {
4749 * @default false
4850 */
4951 useRNModal ?: boolean ;
50- children ?: any ;
52+ children ?: React . ReactNode ;
5153}
5254
5355export interface IAlertDialogContentProps {
@@ -67,28 +69,32 @@ export type IAlertDialogComponentType<
6769 StyledAlertDialogBody ,
6870 StyledAlertDialogBackdrop
6971> = React . ForwardRefExoticComponent <
70- React . RefAttributes < StyledAlertDialog > & StyledAlertDialog & IAlertDialogProps
72+ React . RefAttributes < StyledAlertDialog > &
73+ React . PropsWithoutRef < StyledAlertDialog & IAlertDialogProps >
7174> & {
7275 Content : React . ForwardRefExoticComponent <
7376 React . RefAttributes < StyledAlertDialogContent > &
74- IAlertDialogContentProps &
75- StyledAlertDialogContent
77+ React . PropsWithoutRef < IAlertDialogContentProps & StyledAlertDialogContent >
7678 > ;
7779 CloseButton : React . ForwardRefExoticComponent <
7880 React . RefAttributes < StyledAlertDialogCloseButton > &
79- StyledAlertDialogCloseButton
81+ React . PropsWithoutRef < StyledAlertDialogCloseButton >
8082 > ;
8183 Header : React . ForwardRefExoticComponent <
82- React . RefAttributes < StyledAlertDialogHeader > & StyledAlertDialogHeader
84+ React . RefAttributes < StyledAlertDialogHeader > &
85+ React . PropsWithoutRef < StyledAlertDialogHeader >
8386 > ;
8487 Footer : React . ForwardRefExoticComponent <
85- React . RefAttributes < StyledAlertDialogFooter > & StyledAlertDialogFooter
88+ React . RefAttributes < StyledAlertDialogFooter > &
89+ React . PropsWithoutRef < StyledAlertDialogFooter >
8690 > ;
8791 Body : React . ForwardRefExoticComponent <
88- React . RefAttributes < StyledAlertDialogBody > & StyledAlertDialogBody
92+ React . RefAttributes < StyledAlertDialogBody > &
93+ React . PropsWithoutRef < StyledAlertDialogBody >
8994 > ;
9095 Backdrop : React . ForwardRefExoticComponent <
91- React . RefAttributes < StyledAlertDialogBackdrop > & StyledAlertDialogBackdrop
96+ React . RefAttributes < StyledAlertDialogBackdrop > &
97+ React . PropsWithoutRef < StyledAlertDialogBackdrop >
9298 > ;
9399} ;
94100
0 commit comments