fix type error

This commit is contained in:
Chris Kruining 2025-01-07 12:09:16 +01:00
parent 34ffdee266
commit 88a4ddd866
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2

View file

@ -75,7 +75,7 @@ const useMenu = () => {
return context;
}
type ItemProps<T extends (...args: any[]) => any> = { label: string, children: JSX.Element, command: undefined } | { command: CommandType<T> };
type ItemProps<T extends (...args: any[]) => any> = { label: string, children: JSX.Element, command?: undefined } | { command: CommandType<T> };
function Item<T extends (...args: any[]) => any>(props: ItemProps<T>) {
const id = createUniqueId();