Skip to content

Commit 41dde08

Browse files
committed
stricter types
1 parent 66ee998 commit 41dde08

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/framework-docs-v2/src/components/ui/command.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ const Command = React.forwardRef<
2020
)}
2121
{...props}
2222
/>
23-
));
23+
)) as React.ForwardRefExoticComponent<
24+
React.ComponentPropsWithoutRef<typeof CommandPrimitive> &
25+
React.RefAttributes<React.ElementRef<typeof CommandPrimitive>>
26+
>;
2427
Command.displayName = CommandPrimitive.displayName;
2528

2629
const CommandDialog = ({ children, ...props }: DialogProps) => {

0 commit comments

Comments
 (0)