fix type error
This commit is contained in:
parent
34ffdee266
commit
88a4ddd866
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue