Fixed #4379 - Menu components: RouterBindProps typing

This commit is contained in:
Tuğçe Küçükoğlu 2023-09-04 12:16:03 +03:00
parent e895b78e99
commit 411d62df2c
10 changed files with 206 additions and 10 deletions

View file

@ -167,6 +167,28 @@ export interface ContextMenuContext {
focused: boolean;
}
/**
* Defines valid router binding props in ContextMenu component.
*/
export interface ContextMenuRouterBindProps {
/**
* Action element binding
*/
action: object;
/**
* Icon element binding
*/
icon: object;
/**
* Label element binding
*/
label: object;
/**
* Submenuicon elemnt binding
*/
submenuicon: object;
}
/**
* Defines valid properties in ContextMenu component.
*/
@ -244,7 +266,7 @@ export interface ContextMenuSlots {
/**
* Binding properties of the menuitem
*/
props: (...args: any) => string;
props: ContextMenuRouterBindProps;
}): VNode[];
/**
* Custom item icon template.