@@ -16,11 +16,11 @@ const Drawer = ({
1616)
1717Drawer . displayName = "Drawer"
1818
19- const DrawerTrigger = DrawerPrimitive . Trigger
19+ const DrawerTrigger : typeof DrawerPrimitive . Trigger = DrawerPrimitive . Trigger
2020
2121const DrawerPortal = DrawerPrimitive . Portal
2222
23- const DrawerClose = DrawerPrimitive . Close
23+ const DrawerClose : typeof DrawerPrimitive . Close = DrawerPrimitive . Close
2424
2525const DrawerOverlay = React . forwardRef <
2626 React . ElementRef < typeof DrawerPrimitive . Overlay > ,
@@ -31,7 +31,7 @@ const DrawerOverlay = React.forwardRef<
3131 className = { cn ( "fixed inset-0 z-50 bg-black/80" , className ) }
3232 { ...props }
3333 />
34- ) )
34+ ) ) as React . FC < React . ComponentPropsWithoutRef < typeof DrawerPrimitive . Overlay > >
3535DrawerOverlay . displayName = DrawerPrimitive . Overlay . displayName
3636
3737const DrawerContent = React . forwardRef <
@@ -52,7 +52,7 @@ const DrawerContent = React.forwardRef<
5252 { children }
5353 </ DrawerPrimitive . Content >
5454 </ DrawerPortal >
55- ) )
55+ ) ) as React . FC < React . ComponentPropsWithoutRef < typeof DrawerPrimitive . Content > >
5656DrawerContent . displayName = "DrawerContent"
5757
5858const DrawerHeader = ( {
@@ -89,7 +89,7 @@ const DrawerTitle = React.forwardRef<
8989 ) }
9090 { ...props }
9191 />
92- ) )
92+ ) ) as React . FC < React . ComponentPropsWithoutRef < typeof DrawerPrimitive . Title > >
9393DrawerTitle . displayName = DrawerPrimitive . Title . displayName
9494
9595const DrawerDescription = React . forwardRef <
@@ -101,7 +101,7 @@ const DrawerDescription = React.forwardRef<
101101 className = { cn ( "text-sm text-muted-foreground" , className ) }
102102 { ...props }
103103 />
104- ) )
104+ ) ) as React . FC < React . ComponentPropsWithoutRef < typeof DrawerPrimitive . Description > >
105105DrawerDescription . displayName = DrawerPrimitive . Description . displayName
106106
107107export {
0 commit comments