From 88a4ddd8666f0b0e98c17340b5d97a0b19656856 Mon Sep 17 00:00:00 2001 From: Chris Kruining Date: Tue, 7 Jan 2025 12:09:16 +0100 Subject: [PATCH] fix type error --- src/features/menu/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/menu/index.tsx b/src/features/menu/index.tsx index ac31832..176b0f3 100644 --- a/src/features/menu/index.tsx +++ b/src/features/menu/index.tsx @@ -75,7 +75,7 @@ const useMenu = () => { return context; } -type ItemProps any> = { label: string, children: JSX.Element, command: undefined } | { command: CommandType }; +type ItemProps any> = { label: string, children: JSX.Element, command?: undefined } | { command: CommandType }; function Item any>(props: ItemProps) { const id = createUniqueId();