Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

try out extending interface for @soedirgo

Jonathan Summers-Muir487ef6e53e88
diff --git a/packages/ui/src/components/Command/Command.utils.tsx b/packages/ui/src/components/Command/Command.utils.tsx
index 500f274b93e..096d51fc4c1 100644
--- a/packages/ui/src/components/Command/Command.utils.tsx
+++ b/packages/ui/src/components/Command/Command.utils.tsx
@@ -172,13 +172,16 @@ const CommandSeparator = React.forwardRef<
))
CommandSeparator.displayName = CommandPrimitive.Separator.displayName
+interface ICommandItem extends React.ElementRef<typeof CommandPrimitive.Item> {
+ type: 'link' | 'command'
+}
+
const CommandItem = React.forwardRef<
- React.ElementRef<typeof CommandPrimitive.Item>,
+ ICommandItem,
React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>
>(({ className, type, ...props }, ref) => (
<CommandPrimitive.Item
ref={ref}
- // forceMount={props.forceMount}
className={cn(
type === 'link'
? `